16aed5e2728d1d5cc48a0271f919ac4715fec803
[gnulib.git] / ChangeLog
1 2011-05-07  Bruno Haible  <bruno@clisp.org>
2
3         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
4         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
5         gl_FUNC_FNMATCH_POSIX.
6         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
7         invocations from here...
8         * modules/fnmatch (configure.ac): ... to here.
9         * modules/fnmatch-gnu (configure.ac): ... and here.
10
11 2011-05-07  Bruno Haible  <bruno@clisp.org>
12
13         flock: Move AC_LIBOBJ invocations to module description.
14         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
15         invocations from here...
16         * modules/flock (configure.ac): ... to here.
17
18 2011-05-07  Bruno Haible  <bruno@clisp.org>
19
20         fileblocks: Move AC_LIBOBJ invocations to module description.
21         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
22         gl_PREREQ_FILEBLOCKS invocations from here...
23         * modules/fileblocks (configure.ac): ... to here.
24
25 2011-05-06  Bruno Haible  <bruno@clisp.org>
26
27         fflush: Move AC_LIBOBJ invocations to module description.
28         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
29         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
30         invocations from here...
31         * modules/fflush (configure.ac): ... to here.
32
33 2011-05-06  Bruno Haible  <bruno@clisp.org>
34
35         fdopendir: Move AC_LIBOBJ invocations to module description.
36         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
37         here...
38         * modules/fdopendir (configure.ac): ... to here.
39         (Depends-on): Improve conditions.
40
41 2011-05-06  Bruno Haible  <bruno@clisp.org>
42
43         _Exit: Move AC_LIBOBJ invocations to module description.
44         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
45         invocations from here...
46         * modules/_Exit (configure.ac): ... to here.
47
48 2011-05-21  Bruno Haible  <bruno@clisp.org>
49
50         euidaccess: Respect rules for use of AC_LIBOBJ.
51         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
52         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
53         from here...
54         * modules/euidaccess (configure.ac): ... to here.
55
56 2011-05-06  Bruno Haible  <bruno@clisp.org>
57
58         error: Move AC_LIBOBJ invocations to module description.
59         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
60         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
61         invocations from here...
62         * modules/error (configure.ac): ... to here.
63
64 2011-05-06  Bruno Haible  <bruno@clisp.org>
65
66         duplocale: Move AC_LIBOBJ invocations to module description.
67         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
68         gl_PREREQ_DUPLOCALE invocations from here...
69         * modules/duplocale (configure.ac): ... to here.
70
71 2011-05-05  Bruno Haible  <bruno@clisp.org>
72
73         dirfd: Move AC_LIBOBJ invocations to module description.
74         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
75         gl_FUNC_DIRFD.
76         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
77         here...
78         * modules/dirfd (configure.ac): ... to here.
79         (Depends-on): Fix condition.
80
81 2011-05-05  Bruno Haible  <bruno@clisp.org>
82
83         chown: Respect rules for use of AC_LIBOBJ.
84         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
85         * modules/chown (configure.ac): ... to here.
86
87 2011-05-05  Bruno Haible  <bruno@clisp.org>
88
89         chdir-long: Move AC_LIBOBJ invocations to module description.
90         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
91         gl_PREREQ_CHDIR_LONG invocations from here...
92         * modules/chdir-long (configure.ac): ... to here.
93
94 2011-05-05  Bruno Haible  <bruno@clisp.org>
95
96         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
97         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
98         from here...
99         * modules/canonicalize-lgpl (configure.ac): ... to here.
100
101 2011-05-05  Bruno Haible  <bruno@clisp.org>
102
103         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
104         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
105         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
106         REPLACE_CALLOC.
107         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
108         * modules/calloc-gnu (configure.ac): Likewise.
109
110 2011-05-05  Bruno Haible  <bruno@clisp.org>
111
112         btowc: Move AC_LIBOBJ invocations to module description.
113         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
114         invocations from here...
115         * modules/btowc (configure.ac): ... to here.
116
117 2011-05-21  Bruno Haible  <bruno@clisp.org>
118
119         atexit: Move AC_LIBOBJ invocations to module description.
120         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
121         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
122         here...
123         * modules/atexit (configure.ac): ... to here.
124
125 2011-05-05  Bruno Haible  <bruno@clisp.org>
126
127         atoll: Move AC_LIBOBJ invocations to module description.
128         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
129         invocations from here...
130         * modules/atoll (configure.ac): ... to here.
131
132 2011-05-05  Bruno Haible  <bruno@clisp.org>
133
134         argz: Move AC_LIBOBJ invocations to module description.
135         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
136         * modules/argz (configure.ac): ... to here.
137
138 2011-05-05  Bruno Haible  <bruno@clisp.org>
139
140         alphasort: Move AC_LIBOBJ invocations to module description.
141         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
142         gl_PREREQ_ALPHASORT invocations from here...
143         * modules/alphasort (configure.ac): ... to here.
144
145 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
146
147         verify: new macro verify_expr; verify_true deprecated
148         * NEWS: Mention this.
149         * doc/verify.texi (Compile-time Assertions): Document this.
150         * lib/verify.h (verify_true): Deprecate.
151         (verify_expr): New macro.
152         * tests/test-verify.c (function): Test verify_expr.
153
154 2011-06-14  Jim Meyering  <meyering@redhat.com>
155
156         init.sh: give more portable redirection-related advice in a comment
157         * tests/init.sh (stderr_fileno_): Update the advice in comments.
158         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
159         for lots of discussion.  Stefano Lattarini suggested the solution
160         of putting "9>&2" after the command.  Reported by Bruno Haible.
161
162 2011-06-13  Bruno Haible  <bruno@clisp.org>
163
164         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
165         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
166         'none'.
167
168 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
169
170         ftoastr: use strtof only if HAVE_STRTOF
171         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
172         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
173         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
174         * modules/ftoastr (configure.ac): Check for strtof.
175
176 2011-06-13  Bruno Haible  <bruno@clisp.org>
177
178         gnulib-tool: Addendum to 2011-06-08 commit.
179         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
180         and --witness-c-macro have been given, augment AM_CPPFLAGS.
181
182 2011-06-13  Bruno Haible  <bruno@clisp.org>
183
184         fseeko: Provide a non-inline replacement of fseek().
185         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
186         * modules/fseeko (Depends-on): Add fseek.
187         * modules/fseek (License): Change to LGPLv2+.
188
189 2011-06-13  Bruno Haible  <bruno@clisp.org>
190
191         ftello: Provide a non-inline replacement of ftell().
192         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
193         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
194         not have ftello() (such as on mingw).
195         * modules/ftello (Depends-on): Add ftell.
196         * modules/ftell (License): Change to LGPLv2+.
197
198 2011-05-07  Bruno Haible  <bruno@clisp.org>
199
200         ftell: Move AC_LIBOBJ invocations to module description.
201         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
202         * modules/ftell (configure.ac): ... to here.
203
204 2011-05-07  Bruno Haible  <bruno@clisp.org>
205
206         ftello: Respect rules for use of AC_LIBOBJ.
207         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
208         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
209         here...
210         * modules/ftello (configure.ac): ... to here.
211
212 2011-05-07  Bruno Haible  <bruno@clisp.org>
213
214         fseeko: Simplify.
215         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
216         (gl_FUNC_FSEEKO): Inline it here.
217
218 2011-05-07  Bruno Haible  <bruno@clisp.org>
219
220         fseek: Move AC_LIBOBJ invocations to module description.
221         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
222         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
223         * modules/fseek (configure.ac): ... to here.
224
225 2011-05-07  Bruno Haible  <bruno@clisp.org>
226
227         fseek: Respect rules for use of AC_LIBOBJ.
228         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
229         here...
230         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
231
232 2011-05-07  Bruno Haible  <bruno@clisp.org>
233
234         fseeko: Respect rules for use of AC_LIBOBJ.
235         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
236         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
237         here...
238         * modules/fseeko (configure.ac): ... to here.
239
240 2011-06-13  Bruno Haible  <bruno@clisp.org>
241
242         gnulib-tool: Allow comments in the 'Depends-on' section.
243         * doc/gnulib.texi (Module description): Mention comment syntax in the
244         Depends-on section.
245         * gnulib-tool (func_get_dependencies): Filter out comment lines.
246
247 2011-06-13  Bruno Haible  <bruno@clisp.org>
248
249         file-set.h: guard __attibute__ use, now that it's not always defined
250         * lib/file-set.h (record_file): Use __attribute__ only with compiler
251         versions that support it.  This fixes a coreutils build failure with
252         the vendor cc on HP-UX 11.31.
253
254 2011-06-12  Bruno Haible  <bruno@clisp.org>
255
256         acl: Add support for HP-UX >= 11.11 JFS ACLs.
257         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
258         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
259         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
260         (acl, aclsort): New declarations.
261         (aclv_nontrivial): New declaration.
262         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
263         (file_has_acl): Read also the second kind of HP-UX ACLs.
264         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
265         kind of HP-UX ACLs if the first kind fails.
266         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
267         second kind of HP-UX ACLs.
268         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
269         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
270         agree.
271         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
272         hpuxjfs.
273         Handle hpuxjfs.
274         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
275         hpuxjfs.
276         Handle hpuxjfs.
277         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
278         (func_test_same_acls): Use both lsacl and getacl.
279         Handle hpuxjfs.
280         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
281         (func_test_same_acls): Use both lsacl and getacl.
282         Handle hpuxjfs.
283
284 2011-06-12  Bruno Haible  <bruno@clisp.org>
285
286         acl: Complete the 2010-08-10 fix.
287         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
288         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
289         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
290         explicitly.
291         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
292         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
293
294 2011-06-12  Bruno Haible  <bruno@clisp.org>
295
296         spawn-pipe tests: Comments.
297         * tests/test-spawn-pipe-child.c (main): Update comment.
298         Reported by James Youngman <jay@gnu.org>.
299
300 2011-06-11  James Youngman  <jay@gnu.org>
301
302         New module 'stat-size'.
303         * modules/stat-size: New module.  Provides macros for accessing
304         file size information in instances of struct stat.  Depends on the
305         fileblocks module because it calls st_blocks.
306         * lib/stat-size.h: New file, adapted from coreutils' system.h.
307         * doc/gnulib.texi: Include stat-size.texi.
308         * doc/stat-size.texi: Documentation for this module.
309         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
310         * m4/fileblocks.m4: Mention that stat-size depends on the call to
311         AC_STRUCT_ST_BLOCKS.
312
313 2011-06-09  Bruno Haible  <bruno@clisp.org>
314
315         thread: Support pthreads-win32.
316         * lib/glthread/thread.h (gl_thread_self): Define differently on
317         pthreads-win32.
318         (gl_null_thread): New declaration.
319         (gl_thread_self_pointer): New macro.
320         * lib/glthread/thread.c (gl_null_thread): New constant.
321         * tests/test-lock.c: Use gl_thread_self_pointer instead of
322         gl_thread_self.
323         * tests/test-tls.c: Likewise.
324         Suggested by Paul Eggert. Reported by Eric Blake.
325
326 2011-06-09  Bruno Haible  <bruno@clisp.org>
327
328         thread: Fix confusion between NULL and 0.
329         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
330         Reported by Paul Eggert.
331
332 2011-06-09  Bruno Haible  <bruno@clisp.org>
333
334         spawn-pipe tests: Avoid test failure on HP-UX 11.
335         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
336         is closed.
337
338 2011-06-09  Bruno Haible  <bruno@clisp.org>
339
340         acl tests: Fix compilation error on HP-UX 11.
341         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
342
343 2011-06-09  Bruno Haible  <bruno@clisp.org>
344
345         rmdir: Avoid test failure on HP-UX 10.20.
346         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
347         EEXIST.
348
349 2011-06-08  Eric Blake  <eblake@redhat.com>
350
351         perror: fix test on mingw
352         * modules/perror-tests (Depends-on): Add dup2.
353
354         strerror_r-posix: fix on MacOS
355         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
356         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
357         logic bug.
358         * lib/strerror_r.c (strerror_r): Fix the bug.
359         * lib/strerror.c (strerror): Likewise.
360         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
361         problem.
362         * doc/posix-functions/strerror.texi (strerror): Likewise.
363         * doc/posix-functions/perror.texi (perror): Likewise.
364         * tests/test-strerror.c (main): Enhance test.
365         * tests/test-strerror_r.c (main): Likewise.
366
367 2011-06-08  Bruno Haible  <bruno@clisp.org>
368
369         gnulib-tool: Better isolation between different gnulib-tool invocations.
370         * gnulib-tool: New option --witness-c-macro.
371         (witness_c_macro): New variable.
372         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
373         AM_CPPFLAGS define it as a C macro.
374         (func_emit_tests_Makefile_am): Likewise.
375         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
376         read it from there.
377         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
378         m4_define, not AC_DEFUN.
379         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
380         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
381         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
382         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
383         s|...|...|, to substitute the values of the GNULIB_* module indicator
384         variables.
385         * modules/dirent (Makefile.am): Likewise.
386         * modules/fcntl-h (Makefile.am): Likewise.
387         * modules/iconv-h (Makefile.am): Likewise.
388         * modules/langinfo (Makefile.am): Likewise.
389         * modules/locale (Makefile.am): Likewise.
390         * modules/math (Makefile.am): Likewise.
391         * modules/netdb (Makefile.am): Likewise.
392         * modules/poll-h (Makefile.am): Likewise.
393         * modules/pty (Makefile.am): Likewise.
394         * modules/search (Makefile.am): Likewise.
395         * modules/signal (Makefile.am): Likewise.
396         * modules/spawn (Makefile.am): Likewise.
397         * modules/stdio (Makefile.am): Likewise.
398         * modules/stdlib (Makefile.am): Likewise.
399         * modules/string (Makefile.am): Likewise.
400         * modules/sys_ioctl (Makefile.am): Likewise.
401         * modules/sys_select (Makefile.am): Likewise.
402         * modules/sys_socket (Makefile.am): Likewise.
403         * modules/sys_stat (Makefile.am): Likewise.
404         * modules/sys_times (Makefile.am): Likewise.
405         * modules/sys_utsname (Makefile.am): Likewise.
406         * modules/sys_wait (Makefile.am): Likewise.
407         * modules/termios (Makefile.am): Likewise.
408         * modules/time (Makefile.am): Likewise.
409         * modules/unistd (Makefile.am): Likewise.
410         * modules/wchar (Makefile.am): Likewise.
411
412 2011-06-08  Eric Blake  <eblake@redhat.com>
413
414         strerror: simplify replacement
415         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
416         * modules/strerror (configure.ac): No prereqs needed here...
417         * modules/strerror-override (configure.ac): ...but this needs it.
418         (Files): Add file for needed prereq macro.
419
420 2011-06-08  Bruno Haible  <bruno@clisp.org>
421
422         strerror_r-posix: Tweaks.
423         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
424         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
425         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
426         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
427         (gl_FUNC_STRERROR_R): ... to here.
428         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
429
430 2011-06-07  Eric Blake  <eblake@redhat.com>
431
432         perror: document fixed bugs
433         * doc/posix-functions/perror.texi (perror): Document recent
434         patches.
435
436 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
437
438         stat-time: get_stat_birthtime failure is better-defined
439         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
440         return a timestamp whose tv_sec and tv_nsec values are both -1.
441         Previously, the spec said only that the tv_nsec value was negative.
442         This upward-compatible change simplifies GNU tar a bit.
443
444 2011-06-07  Eric Blake  <eblake@redhat.com>
445
446         strerror_r-posix: work around cygwin 1.7.9
447         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
448         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
449         bug without replacing strerror_r.
450         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
451         strerror_r is buggy, but without requiring strerror_r compilation.
452         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
453
454         test-perror: relax test to ignore cygwin bug
455         * tests/test-perror2.c (main): Relax test on requiring detection
456         of stream errors, and use unbuffered stream.
457         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
458         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
459         * doc/posix-functions/fputc.texi (fputc): Likewise.
460         * doc/posix-functions/fputs.texi (fputs): Likewise.
461         * doc/posix-functions/fputws.texi (fputws): Likewise.
462         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
463         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
464         * doc/posix-functions/getopt.texi (getopt): Likewise.
465         * doc/posix-functions/perror.texi (perror): Likewise.
466         * doc/posix-functions/printf.texi (printf): Likewise.
467         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
468         * doc/posix-functions/psignal.texi (psignal): Likewise.
469         * doc/posix-functions/putc.texi (putc): Likewise.
470         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
471         Likewise.
472         * doc/posix-functions/putchar.texi (putchar): Likewise.
473         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
474         Likewise.
475         * doc/posix-functions/puts.texi (puts): Likewise.
476         * doc/posix-functions/putwc.texi (putwc): Likewise.
477         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
478         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
479         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
480         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
481         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
482         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
483         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
484         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
485
486 2011-05-22  Bruno Haible  <bruno@clisp.org>
487
488         strerror: Move AC_LIBOBJ invocations to module description.
489         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
490         gl_PREREQ_STRERROR invocations from here...
491         * modules/strerror (configure.ac): ... to here.
492
493 2011-05-21  Bruno Haible  <bruno@clisp.org>
494
495         perror: Use common idiom.
496         * modules/perror (configure.ac): Reorder statements.
497
498 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
499
500         tests: fix usage message in 'mktempd_'
501         * tests/init.sh (mktempd_): In the usage message, use literal
502         'mktempd_', not '$ME' (which is even undefined), as the name of
503         the subroutine.
504
505 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
506
507         tests init: new function 'fatal_', for hard errors
508         Before this patch, the only way offered by tests/init.sh to
509         properly signal a hard error was the `framework_failure_'
510         function.  But the error message issued by that function,
511         as its name would suggest, refers to a set-up failure in the
512         testsuite, while hard errors can obviously also be due to
513         other reasons.  The best way to fix this inconsistency is to
514         introduce a new function with a more general error message.
515         * tests/init.sh (fatal_): New function.
516
517 2011-06-06  Eric Blake  <eblake@redhat.com>
518
519         canonicalize-lgpl: use common idiom
520         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
521         over newer POSIX -Rf.
522         Reported by Bruno Haible.
523
524         canonicalize-lgpl: work around AIX realpath bug
525         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
526         * doc/posix-functions/realpath.texi (realpath): Document it.
527         Reported by Bruno Haible.
528
529         strerror: work around FreeBSD bug
530         * lib/strerror.c (strerror): Special case 0.
531         Reported by Bruno Haible.
532
533         strerror-override: avoid bloating errno module
534         * modules/errno (Files, configure.ac): Move replacement strings...
535         * modules/strerror-override: ...to new module.
536         * modules/strerror (Depends-on): Add strerror-override.
537         * modules/strerror_r-posix (Depends-on): Likewise.
538         * MODULES.html.sh: Document new module.
539         Reported by Bruno Haible.
540
541 2011-06-06  Bruno Haible  <bruno@clisp.org>
542
543         spawn-pipe tests: Rename program.
544         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
545         * tests/test-spawn-pipe-child.c: Update comment.
546         * tests/test-spawn-pipe.sh: Update.
547         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
548
549         spawn-pipe tests: Link the child program only against libc.
550         * tests/test-spawn-pipe-child.c: New file, extracted from
551         tests/test-spawn-pipe.c.
552         (main): Expect only one argument.
553         (is_open): New function, copied from tests/test-pipe.c.
554         * tests/test-spawn-pipe.c: Don't include <errno.h>.
555         (child_main): Remove function.
556         (test_pipe): Pass only one argument to the child program.
557         (main): Remove child process code. Expect the child program's name as
558         first argument.
559         * tests/test-spawn-pipe.sh: Pass the child program's name as first
560         argument.
561         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
562         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
563         test-spawn-pipe-child against no libraries.
564
565 2011-06-06  Bruno Haible  <bruno@clisp.org>
566
567         careadlinkat: Avoid mismatch between ssize_t and int.
568         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
569         * lib/careadlinkat.c (careadlinkatcwd): Define always.
570
571 2011-06-06  Jim Meyering  <meyering@redhat.com>
572
573         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
574         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
575         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
576
577 2011-06-05  Bruno Haible  <bruno@clisp.org>
578
579         ansi-c++-opt: Interoperability with libtool.
580         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
581         set the variable to "no", not to ":".
582         * NEWS: Mention the change.
583
584 2011-06-05  Bruno Haible  <bruno@clisp.org>
585
586         acl: Fix test failure on AIX 7.
587         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
588         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
589
590 2011-06-05  Bruno Haible  <bruno@clisp.org>
591
592         pipe-filter-ii: Fix test failure on AIX and IRIX.
593         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
594         with EAGAIN, retry with a smaller buffer size.
595
596 2011-06-05  Bruno Haible  <bruno@clisp.org>
597
598         localename: Fix link dependencies.
599         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
600         * modules/localename-tests (Makefile.am): Link test-localename with
601         $(LIBTHREAD).
602
603 2011-06-05  Bruno Haible  <bruno@clisp.org>
604
605         error: Avoid gcc warning.
606         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
607
608 2011-06-05  Bruno Haible  <bruno@clisp.org>
609
610         unsetenv: Avoid gcc warning.
611         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
612
613 2011-06-05  Bruno Haible  <bruno@clisp.org>
614
615         setenv: Avoid gcc warning.
616         * lib/setenv.c (setenv): Provide declaration if system lacks it.
617
618 2011-06-05  Bruno Haible  <bruno@clisp.org>
619
620         sys_select: Ensure memset is declared also on AIX 7.
621         * lib/sys_select.in.h: Include <string.h> also on AIX.
622         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
623         self-contained also on AIX 7.1.
624
625 2011-06-04  Jim Meyering  <meyering@redhat.com>
626
627         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
628         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
629         function name, "error".
630         (_gl_translatable_diag_func_re): New configurable variable.
631
632 2011-06-04  Bruno Haible  <bruno@clisp.org>
633
634         getopt: Avoid gcc warning.
635         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
636
637 2011-06-04  Bruno Haible  <bruno@clisp.org>
638
639         strerror_r: Fix comments.
640         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
641         commit.
642
643 2011-06-04  Bruno Haible  <bruno@clisp.org>
644
645         perror: Fix compilation error.
646         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
647         Undefine fprintf, not sprintf.
648         * modules/perror (Depends-on): Remove intprops, verify.
649
650 2011-06-04  Bruno Haible  <bruno@clisp.org>
651
652         setlocale: Enable replacement on Cygwin 1.5.
653         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
654         Cygwin 1.5.x.
655         * doc/posix-functions/setlocale.texi: Mention that the problem with the
656         LC_CTYPE category also exists on Cygwin 1.5.x.
657
658 2011-06-04  Bruno Haible  <bruno@clisp.org>
659
660         strerror-override: Don't disable symbol renamings.
661         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
662         * lib/strerror-override.c: Include config.h.
663         (strerror_override): Don't undefine.
664
665 2011-06-03  Bruno Haible  <bruno@clisp.org>
666
667         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
668         * lib/localename.h: Update copyright header.
669         * lib/localename.c: Likewise.
670         * lib/relocatable.h: Likewise.
671         * lib/relocatable.c: Likewise.
672
673 2011-06-02  Bruno Haible  <bruno@clisp.org>
674
675         doc: Fix a module name.
676         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
677
678 2011-06-02  Bruno Haible  <bruno@clisp.org>
679
680         pipe2: Remove dependency on 'nonblocking' module.
681         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
682         O_NONBLOCK is defined by gnulib.
683         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
684         is zero.
685         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
686         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
687         defined by gnulib.
688         (get_nonblocking_flag): New function.
689         (main): Test O_NONBLOCK flag only if it is nonzero.
690         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
691
692 2011-06-03  Jim Meyering  <meyering@redhat.com>
693
694         maint: three new prohibit-header-without-use rules
695         Prohibit use of cloexec.h, posixver.h, same.h without use.
696         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
697         (sc_prohibit_posixver_without_use): Likewise.
698         (sc_prohibit_same_without_use): Likewise.
699
700 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
701
702         allocator: 'die' routine is now given requested size
703         * lib/allocator.h (struct allocator.die): New size arg.
704         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
705         If the actual problem is an ssize_t limitation, not a size_t or
706         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
707
708 2011-06-01  Eric Blake  <eblake@redhat.com>
709
710         strerror: drop strerror_r dependency
711         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
712         * lib/strerror-override.c (strerror_override): ...to new file.
713         * lib/strerror-override.h: Add prototype.
714         * lib/strerror-impl.h: Delete.
715         * lib/strerror.c (strerror): New implementation.
716         * modules/errno (Files): Add new files.
717         (configure.ac): Compile new file as appropriate.
718         * modules/strerror (Files): Drop unused file.
719         (Depends-on): Drop strerror_r-posix.
720         * MODULES.html.sh: Document strerror_r-posix.
721         Requested by Sam Steingold.
722
723         perror: call strerror_r directly
724         * modules/perror (Files): Drop strerror-impl.h.
725         * lib/perror.c (perror): Use our own stack buffer, rather than
726         calling a wrapper that uses static storage.
727         * doc/posix-functions/perror.texi (perror): Document a limitation
728         of our replacement.
729
730         strerror_r: fix includes for FreeBSD
731         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
732         since we use abort on some platforms.
733         Reported by Matthias Bolte.
734
735 2011-05-31  Bruno Haible  <bruno@clisp.org>
736
737         Fix link errors in tests: openat-die uses gettext-h.
738         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
739         against $(LIBINTL).
740         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
741         against $(LIBINTL).
742         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
743         $(LIBINTL).
744         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
745         against $(LIBINTL).
746         * modules/linkat-tests (Makefile.am): Link test-linkat against
747         $(LIBINTL).
748         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
749         $(LIBINTL).
750         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
751         against $(LIBINTL).
752         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
753         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
754         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
755         $(LIBINTL).
756         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
757         $(LIBINTL).
758         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
759         $(LIBINTL).
760         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
761
762 2011-05-31  Bruno Haible  <bruno@clisp.org>
763
764         Fix link errors in tests: wait-process uses gettext-h.
765         * modules/nonblocking-pipe-tests (Makefile.am): Set
766         test_nonblocking_pipe_main_LDADD.
767         * modules/nonblocking-socket-tests (Makefile.am): Link
768         test-nonblocking-socket-main against $(LIBINTL).
769         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
770
771 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
772
773         assert-h: work around 'verify' incompatibility
774         * lib/verify.h: Use @...@ directives, not ifdef.
775         * modules/assert-h (assert.h): Implement the directives.
776         (assert.h): Substitute the symbol-prefix more consistently.
777
778 2011-05-29  Jim Meyering  <meyering@redhat.com>
779
780         trim: remove three superfluous assignments
781         * lib/trim.c (trim2): Remove three superfluous assignments
782         and correct brace positioning.
783
784 2011-05-29  Bruno Haible  <bruno@clisp.org>
785
786         wctype-h: Avoid namespace pollution on Solaris 2.6.
787         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
788         identifiers.
789         * doc/posix-headers/wctype.texi: Mention the problem.
790         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
791
792 2011-05-28  Jim Meyering  <meyering@redhat.com>
793
794         parse-datetime.y: accommodate -Wstrict-overflow
795         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
796         placate -Wstrict-overflow.
797
798         trim: avoid a warning from -O2 -Wstrict-overflow
799         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
800
801 2011-05-29  Bruno Haible  <bruno@clisp.org>
802
803         gnulib-tool: Fix bug in yesterday's commit.
804         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
805         twice.
806
807 2011-05-29  Bruno Haible  <bruno@clisp.org>
808
809         Allow multiple gnulib generated include files to be combined.
810         * gnulib-tool (func_compute_include_guard_prefix): New function.
811         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
812         ${gl_include_guard_prefix} references.
813         (func_import, func_create_testdir): Invoke
814         func_compute_include_guard_prefix.
815         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
816         * lib/ctype.in.h: Likewise.
817         * lib/dirent.in.h: Likewise.
818         * lib/errno.in.h: Likewise.
819         * lib/fcntl.in.h: Likewise.
820         * lib/float.in.h: Likewise.
821         * lib/getopt.in.h: Likewise.
822         * lib/iconv.in.h: Likewise.
823         * lib/langinfo.in.h: Likewise.
824         * lib/locale.in.h: Likewise.
825         * lib/math.in.h: Likewise.
826         * lib/netdb.in.h: Likewise.
827         * lib/netinet_in.in.h: Likewise.
828         * lib/poll.in.h: Likewise.
829         * lib/pthread.in.h: Likewise.
830         * lib/pty.in.h: Likewise.
831         * lib/sched.in.h: Likewise.
832         * lib/se-selinux.in.h: Likewise.
833         * lib/search.in.h: Likewise.
834         * lib/signal.in.h: Likewise.
835         * lib/spawn.in.h: Likewise.
836         * lib/stdarg.in.h: Likewise.
837         * lib/stddef.in.h: Likewise.
838         * lib/stdint.in.h: Likewise.
839         * lib/stdio.in.h: Likewise.
840         * lib/stdlib.in.h: Likewise.
841         * lib/string.in.h: Likewise.
842         * lib/strings.in.h: Likewise.
843         * lib/sys_file.in.h: Likewise.
844         * lib/sys_ioctl.in.h: Likewise.
845         * lib/sys_select.in.h: Likewise.
846         * lib/sys_socket.in.h: Likewise.
847         * lib/sys_stat.in.h: Likewise.
848         * lib/sys_time.in.h: Likewise.
849         * lib/sys_times.in.h: Likewise.
850         * lib/sys_uio.in.h: Likewise.
851         * lib/sys_utsname.in.h: Likewise.
852         * lib/sys_wait.in.h: Likewise.
853         * lib/sysexits.in.h: Likewise.
854         * lib/termios.in.h: Likewise.
855         * lib/time.in.h: Likewise.
856         * lib/unistd.in.h: Likewise.
857         * lib/wchar.in.h: Likewise.
858         * lib/wctype.in.h: Likewise.
859         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
860         * modules/ctype (Makefile.am): Likewise.
861         * modules/dirent (Makefile.am): Likewise.
862         * modules/errno (Makefile.am): Likewise.
863         * modules/fcntl-h (Makefile.am): Likewise.
864         * modules/float (Makefile.am): Likewise.
865         * modules/getopt-posix (Makefile.am): Likewise.
866         * modules/iconv-h (Makefile.am): Likewise.
867         * modules/langinfo (Makefile.am): Likewise.
868         * modules/locale (Makefile.am): Likewise.
869         * modules/math (Makefile.am): Likewise.
870         * modules/netdb (Makefile.am): Likewise.
871         * modules/netinet_in (Makefile.am): Likewise.
872         * modules/poll-h (Makefile.am): Likewise.
873         * modules/pthread (Makefile.am): Likewise.
874         * modules/pty (Makefile.am): Likewise.
875         * modules/sched (Makefile.am): Likewise.
876         * modules/search (Makefile.am): Likewise.
877         * modules/selinux-h (Makefile.am): Likewise.
878         * modules/signal (Makefile.am): Likewise.
879         * modules/spawn (Makefile.am): Likewise.
880         * modules/stdarg (Makefile.am): Likewise.
881         * modules/stddef (Makefile.am): Likewise.
882         * modules/stdint (Makefile.am): Likewise.
883         * modules/stdio (Makefile.am): Likewise.
884         * modules/stdlib (Makefile.am): Likewise.
885         * modules/string (Makefile.am): Likewise.
886         * modules/strings (Makefile.am): Likewise.
887         * modules/sys_file (Makefile.am): Likewise.
888         * modules/sys_ioctl (Makefile.am): Likewise.
889         * modules/sys_select (Makefile.am): Likewise.
890         * modules/sys_socket (Makefile.am): Likewise.
891         * modules/sys_stat (Makefile.am): Likewise.
892         * modules/sys_time (Makefile.am): Likewise.
893         * modules/sys_times (Makefile.am): Likewise.
894         * modules/sys_uio (Makefile.am): Likewise.
895         * modules/sys_utsname (Makefile.am): Likewise.
896         * modules/sys_wait (Makefile.am): Likewise.
897         * modules/sysexits (Makefile.am): Likewise.
898         * modules/termios (Makefile.am): Likewise.
899         * modules/time (Makefile.am): Likewise.
900         * modules/unistd (Makefile.am): Likewise.
901         * modules/wchar (Makefile.am): Likewise.
902         * modules/wctype-h (Makefile.am): Likewise.
903         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
904
905 2011-05-29  Bruno Haible  <bruno@clisp.org>
906
907         assert-h: Allow multiple gnulib generated replacements to coexist.
908         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
909
910 2011-05-29  Bruno Haible  <bruno@clisp.org>
911
912         argp: Allow coexistence with strerror_r-posix module.
913         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
914         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
915         by gnulib's <string.h> replacement), assume it has the POSIX signature,
916         not the glibc signature.
917
918 2011-05-28  Bruno Haible  <bruno@clisp.org>
919
920         gnulib-tool: Alternative structure of testdirs, similar to --import.
921         * gnulib-tool: New option --single-configure.
922         (func_usage): Document it.
923         (single_configure): New variable.
924         (func_modules_transitive_closure_separately,
925         func_modules_transitive_closure_separately,
926         func_determine_use_libtests, func_modules_add_dummy_separately,
927         func_modules_to_filelist_separately): New functions, extracted from
928         func_import.
929         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
930         (func_import): Use the new functions.
931         (func_create_testdir): Set final_modules. Handle $single_configure =
932         true case.
933
934 2011-05-28  Bruno Haible  <bruno@clisp.org>
935
936         getloadavg: Remove an unreliable safety check.
937         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
938         getloadavg.c is in place.
939         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
940         Reported by Sam Steingold <sds@gnu.org>.
941
942 2011-05-28  Bruno Haible  <bruno@clisp.org>
943
944         doc: Cleanup yet another file produced by texinfo.tex.
945         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
946
947 2011-05-28  Bruno Haible  <bruno@clisp.org>
948
949         Finish the conditional dependencies mechanism.
950         * gnulib-tool: New option --no-conditional-dependencies.
951         (func_usage): Document it. Don't mark --conditional-dependencies as
952         experimental.
953         (cond_dependencies): The possible values can now be true, false, empty.
954         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
955         (func_import): Store setting in gnulib-cache.m4 and read it from there.
956         * doc/gnulib-tool.texi (Conditional dependencies): New section.
957
958 2011-05-28  Bruno Haible  <bruno@clisp.org>
959
960         doc: Use a recent texinfo.tex.
961         * doc/Makefile (tex_opts): New variable.
962         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
963
964 2011-05-28  Jim Meyering  <meyering@redhat.com>
965
966         intprops.h: adjust comment to match code change
967         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
968         only once, it *may* have side effects.  Also fix an unrelated typo.
969         (_GL_INT_SIGNED): Likewise.
970
971 2011-05-26  Simon Josefsson  <simon@josefsson.org>
972
973         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
974
975 2011-05-26  Bruno Haible  <bruno@clisp.org>
976
977         mbsrchr: Avoid collision with system function on Interix.
978         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
979         Reported by Markus Duft <mduft@gentoo.org>.
980
981 2011-05-15  James Youngman  <jay@gnu.org>
982
983         getopt: for ambiguous options, enumerate the possibilities.
984         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
985         the ambiguous options when an ambiguous prefix is given. This was
986         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
987         glibc change was
988         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
989
990 2011-05-25  Eric Blake  <eblake@redhat.com>
991
992         getcwd: work around mingw bug
993         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
994         * doc/posix-functions/getcwd.texi (getcwd): Document it.
995         Reported by Matthias Bolte.
996
997 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
998
999         test-intprops: disable -Wtype-limits diagnostics
1000         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
1001         diagnostics.  Otherwise, the integer overflow macros generate many
1002         diagnostics.  Reported by Jim Meyering in
1003         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
1004
1005         intprops: shorten, to pacify gcc -Woverlength-strings
1006         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
1007         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
1008         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
1009         likely to run afoul of C compiler limits for string constant lengths.
1010         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
1011
1012 2011-05-24  Eric Blake  <eblake@redhat.com>
1013
1014         docs: document recently fixed glibc printf bug
1015         * doc/posix-functions/fprintf.texi (fprintf): Document it.
1016         * doc/posix-functions/printf.texi (printf): Likewise.
1017         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
1018         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
1019
1020         closein-tests: convert to init.sh
1021         * modules/closein-tests (Files): Add init.sh
1022         * tests/test-closein.sh Use it.
1023
1024         yesno-tests: convert to init.sh
1025         * modules/yesno-tests (Files): Add init.sh.
1026         * tests/test-yesno.sh: Use it.
1027
1028         atexit-tests: ensure reliable exit status
1029         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
1030         Reported by Bruno Haible.
1031
1032 2011-05-24  Bruno Haible  <bruno@clisp.org>
1033
1034         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
1035         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
1036         gl_PREREQ_STRERROR_R invocations from here...
1037         * modules/strerror_r-posix (configure.ac): ... to here.
1038
1039 2011-05-24  Eric Blake  <eblake@redhat.com>
1040
1041         strerror_r: fix missing header
1042         * lib/strerror_r.c: Avoid compiler warning about snprintf.
1043
1044         strerror_r: fix AIX test failures
1045         * lib/strerror_r.c (strerror_r): Convert silent truncation to
1046         ERANGE failure.
1047
1048         strerror_r: fix Solaris test failures
1049         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
1050         failures.
1051         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
1052
1053         strerror_r: enforce POSIX recommendations
1054         * lib/strerror_r.c (safe_copy): New helper method.
1055         (strerror_r): Guarantee a non-empty string.
1056         * tests/test-strerror_r.c (main): Enhance tests to incorporate
1057         recent POSIX rulings and to match our strerror guarantees.
1058         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
1059
1060 2011-05-24  Jim Meyering  <meyering@redhat.com>
1061
1062         test-perror2.c: avoid warning about unused variable
1063         * tests/test-perror2.c (main): Remove declaration of unused "fp".
1064
1065 2011-05-24  Eric Blake  <eblake@redhat.com>
1066
1067         perror: avoid spurious test failure on HP-UX
1068         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
1069
1070         tests: fix logic bug in init.sh
1071         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
1072         shell.
1073
1074 2011-05-24  Jim Meyering  <meyering@redhat.com>
1075
1076         utimensat: do not reference an out-of-scope buffer
1077         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
1078         declared in an inner scope, yet "times" would be dereferenced outside
1079         the scope in which "ts" was valid.
1080         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
1081         of ts[2] "out/up", so that the use of aliased "times" (via
1082         "times = ts;") does not end up referencing an out-of-scope "ts"
1083
1084         opendir-safer.c: don't clobber errno; don't close negative FD
1085         * lib/opendir-safer.c (opendir_safer):
1086         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
1087         file descriptor, and more importantly, don't clobber the
1088         offending errno value with EINVAL.  Before, upon failure
1089         of dup_safer, we would pass the negative file descriptor to
1090         fdopendir, which would clobber errno.
1091
1092 2011-05-23  Bruno Haible  <bruno@clisp.org>
1093
1094         idcache: Fix module description.
1095         * modules/idcache (Include): Set to "idcache.h".
1096
1097 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
1098
1099         gnulib-tool: fix portability problem with MacOS sed
1100         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
1101         before the "}".  Problem reported by Leo in
1102         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
1103         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
1104         sed_extract_condition1, sed_extract_condition2.
1105
1106 2011-05-23  Bruno Haible  <bruno@clisp.org>
1107
1108         hash: Simplify autoconf macro.
1109         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
1110
1111 2011-05-23  Bruno Haible  <bruno@clisp.org>
1112
1113         getugroups: Fix module description.
1114         * modules/getugroups (Include): Set to "getugroups.h".
1115
1116 2011-05-23  Bruno Haible  <bruno@clisp.org>
1117
1118         linkat: Simplify autoconf macro.
1119         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
1120
1121 2011-05-23  Bruno Haible  <bruno@clisp.org>
1122             Eric Blake  <eblake@redhat.com>
1123
1124         linkat, renameat: Update dependencies.
1125         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
1126         * modules/linkat (Depends-on): Likewise. Remove also readlink,
1127         symlinkat.
1128
1129 2011-05-23  Jim Meyering  <meyering@redhat.com>
1130
1131         maint.mk: more tight_scope improvements
1132         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
1133         (_gl_TS_headers): Define only in if-0'd block.
1134         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
1135         sometimes we must *not* use it.  Adjust uses accordingly.
1136         (sc_tight_scope): Use much simpler grep-based test to determine
1137         whether we skip this rule.
1138
1139         maint.mk: generalize/improve the tight-scope rule
1140         * top/maint.mk: Emit a warning when the test is skipped.
1141         (_gl_TS_dir): Add $(srcdir)/ prefix.
1142         (_gl_TS_function_match): Simplify, rather than trying
1143         to enumerate common types.  Otherwise, it would fail to match an
1144         "extern unsigned char const *" declaration in idutils.
1145         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
1146         a way to support use of that type of macro.
1147         (_gl_TS_var_match): Simplify regexp.
1148         (_gl_TS_obj_files): New configurable variable.
1149         (_gl_TS_headers): Likewise.
1150
1151 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
1152
1153         verify: fix bug when gnulib <assert.h> is also included
1154         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
1155         is defined, not if _GL_STATIC_ASSERT_H is not defined.
1156         Perhaps there's a better way, but this fixes the immediate problem.
1157         Problem reported by Bruno Haible in
1158         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
1159
1160 2011-05-22  Bruno Haible  <bruno@clisp.org>
1161
1162         xgetcwd: Simplify autoconf macro.
1163         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
1164
1165 2011-05-22  Bruno Haible  <bruno@clisp.org>
1166
1167         New module 'mktime-internal'.
1168         * modules/mktime-internal: New file.
1169         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
1170         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
1171         mktime_internal as a C macro if libc has __mktime_internal.
1172         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
1173         conditions.
1174         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
1175
1176 2011-05-22  Bruno Haible  <bruno@clisp.org>
1177
1178         timegm: Correct mktime replacement statements.
1179         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
1180         defining mktime as a C macro. This completes a 2009-07-28 commit.
1181
1182 2011-05-22  Bruno Haible  <bruno@clisp.org>
1183
1184         timegm: Simplify autoconf macro.
1185         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
1186
1187 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
1188
1189         clock-time: change to LGPLv2+.
1190         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
1191         BSD-like but we have no mark for that; this is good enough for now.
1192
1193 2011-05-21  Bruno Haible  <bruno@clisp.org>
1194
1195         strerror_r: Fix comments.
1196         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
1197
1198 2011-05-21  Bruno Haible  <bruno@clisp.org>
1199
1200         relocatable-prog-wrapper: Fix possible link error.
1201         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
1202         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
1203         (gl_FUNC_SETENV): ... to here.
1204         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
1205         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
1206
1207 2011-05-21  Bruno Haible  <bruno@clisp.org>
1208
1209         relocatable-prog-wrapper: Assume strerror() exists.
1210         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
1211         m4/strerror.m4.
1212         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
1213         * lib/relocwrapper.c: Remove mention of strerror module.
1214         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
1215         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
1216         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
1217         C macro.
1218
1219 2011-05-21  Bruno Haible  <bruno@clisp.org>
1220
1221         select: Simplify replacement idiom.
1222         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
1223         Win32 platforms.
1224         * lib/sys_select.in.h (select): Simplify accordingly.
1225         * modules/select (Depends-on): Likewise.
1226
1227 2011-05-21  Bruno Haible  <bruno@clisp.org>
1228
1229         mkdir-p: Simplify autoconf macro.
1230         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
1231         gl_FUNC_LCHOWN.
1232
1233 2011-05-21  Eric Blake  <eblake@redhat.com>
1234
1235         strerror_r: avoid clobbering strerror on cygwin
1236         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
1237         fall back instead to sys_errlist.
1238         * modules/strerror (configure.ac): Add witness.
1239         * tests/test-strerror_r.c (main): Enhance test.
1240         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
1241         * tests/test-perror2.c (main): Free memory before exit.
1242
1243 2011-05-21  Bruno Haible  <bruno@clisp.org>
1244
1245         mkdtemp: Use gnulib naming conventions.
1246         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
1247         * modules/mkdtemp (configure.ac): Update.
1248
1249 2011-05-20  Eric Blake  <eblake@redhat.com>
1250
1251         strerror_r: avoid corrupting errno on Solaris
1252         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
1253         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
1254
1255         strerror_r: avoid compiler warning
1256         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
1257
1258         strerror_r: simplify AIX code
1259         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
1260
1261         test-perror: avoid spurious failure on FreeBSD
1262         * modules/perror-tests (Depends-on): Add strerror, now that
1263         strerror_r no longer pulls it in.
1264
1265 2011-05-20  Bruno Haible  <bruno@clisp.org>
1266
1267         strerror_r-posix: Remove unused dependencies.
1268         * modules/strerror_r-posix (Depends-on): Remove strerror.
1269         Reported by Eric Blake.
1270
1271 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
1272
1273         intprops: remove assumption about A|B representation
1274         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
1275         is a valid integer if both A and B are.  Although this is true for
1276         all known practical hosts, the C standard doesn't guarantee it,
1277         and the code need not assume it.  Also, this change may work around
1278         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
1279         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
1280
1281 2011-05-20  Eric Blake  <eblake@redhat.com>
1282
1283         perror: work around FreeBSD bug
1284         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
1285         is broken.  Move AC_LIBOBJ...
1286         * modules/perror (configure.ac): Here.
1287         * doc/posix-functions/perror.texi (perror): Document this.
1288         * tests/test-perror2.c (main): Enhance test.
1289
1290         test-perror: check for strerror interactions
1291         * tests/macros.h (STREQ): Add macro.
1292         * modules/perror-tests (Files): Add second test.
1293         * tests/test-perror2.c (main): New file.
1294         * doc/posix-functions/perror.texi (perror): Document glibc bug.
1295
1296         test-perror: rewrite to use init script
1297         * modules/perror-tests (Files): Add init.sh.
1298         * tests/test-perror.sh: Use temporary directory.
1299
1300 2011-05-20  Jim Meyering  <meyering@redhat.com>
1301
1302         maint: replace misused "a" with "an"
1303         * doc/intprops.texi: "a integer"
1304         * doc/regex.texi: "a explanation"
1305         * lib/alignof.h: "a object"
1306         * lib/argmatch.h: "a explanation"
1307         * lib/argp-help.c: "a option" and "a OPTION_DOC"
1308         * lib/stdint.in.h: "a integer"
1309         * lib/userspec.c: "a owner"
1310         * doc/gnulib.texi: Fix "a idea", and reword.
1311
1312 2011-05-19  Jim Meyering  <meyering@redhat.com>
1313
1314         maint: correct misuse of "a" and "an"
1315         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
1316         * lib/argp-help.c: "an docum...": s/an/a/
1317         * lib/argp-parse.c: "An vector": s/An/A/
1318         * lib/execute.c: "an native": s/an/a/
1319         * lib/spawn-pipe.c: Likewise.
1320         * lib/gc.h: "an Gc_rc": s/an/a/
1321         * lib/unigbrk.in.h: "an grapheme": s/an/a/
1322         * lib/fts.c: "an stat.st_dev": s/an/a/
1323
1324 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
1325
1326         intprops-tests: work around HP-UX 11.23 cc bug with constants
1327         * tests/test-intprops.c (VERIFY): New macro.
1328         (main): Use it, instead of verify, to work around the compiler bug; see
1329         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
1330
1331         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
1332         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
1333         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
1334         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
1335         (_GL_REMAINDER_OVERFLOW): Use it.
1336
1337         intprops-tests: revert unsigned part of previous change
1338         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
1339         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
1340         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
1341         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
1342
1343 2011-05-19  Bruno Haible  <bruno@clisp.org>
1344
1345         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
1346         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
1347         strerror_r() returned without filling the buffer.
1348         Reported by Eric Blake.
1349
1350 2011-05-19  Eric Blake  <eblake@redhat.com>
1351
1352         strerror_r: guarantee unchanged errno
1353         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
1354         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
1355         failure.
1356         * tests/test-strerror_r.c (main): Enhance test.
1357
1358 2011-05-19  Bruno Haible  <bruno@clisp.org>
1359
1360         strerror_r: Reorder #if blocks.
1361         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
1362         for consistency with the previous commit.
1363
1364 2011-05-19  Bruno Haible  <bruno@clisp.org>
1365
1366         perror: Avoid clobbering the strerror buffer when possible.
1367         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
1368         * lib/strerror.c: Include it.
1369         * modules/strerror (Files): Add lib/strerror-impl.h.
1370         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
1371         (my_strerror): New function, defined through lib/strerror-impl.h.
1372         (perror): Use it instead of strerror.
1373         * modules/perror (Files): Add lib/strerror-impl.h.
1374         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
1375
1376 2011-05-19  Eric Blake  <eblake@redhat.com>
1377
1378         strerror_r: fix on newer cygwin
1379         * lib/strerror_r.c (strerror_r): Cygwin now has
1380         __xpg_strerror_r, use it.
1381
1382 2011-05-19  Bruno Haible  <bruno@clisp.org>
1383
1384         strerror_r: Avoid clobbering the strerror buffer when possible.
1385         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
1386         (sys_nerr, sys_errlist): New declarations.
1387         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
1388         HP-UX, native Win32, IRIX, and 32-bit Solaris.
1389         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
1390
1391 2011-05-19  Bruno Haible  <bruno@clisp.org>
1392
1393         strerror_r: Fix test failure on mingw.
1394         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
1395         EXTEND_STRERROR_R.
1396         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
1397         macros from errno.in.h instead.
1398
1399 2011-05-19  Eric Blake  <eblake@redhat.com>
1400
1401         strerror: relax test for Solaris
1402         * tests/test-strerror.c (main): Permit Solaris behavior.
1403         * tests/test-strerror_r.c (main): Likewise.
1404
1405         strerror: enforce POSIX ruling on strerror(0)
1406         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
1407         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
1408         * lib/strerror_r.c (rpl_strerror_r): Work around it.
1409         * doc/posix-functions/strerror.texi (strerror): Document it.
1410         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
1411         * tests/test-strerror.c (main): Strengthen test.
1412         * tests/test-strerror_r.c (main): Likewise.
1413
1414 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
1415
1416         intprop-tests: port to older and more-pedantic compilers
1417         * modules/intprops-tests (Files): Add tests/macros.h.
1418         * tests/test-intprops.c: Include macros.h.
1419         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
1420         it's no longer documented to expand to an integer constant expression.
1421         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
1422         argument is floating point, as it's no longer documented to expand
1423         to an integer constant expression in that case.
1424         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
1425         compiler bugs reported by Bruno Haible.  See
1426         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
1427         (U0, U1): New constants, to work around the same bugs.  Also,
1428         in tests, use e.g., "(unsigned int) 39" rather than "39u".
1429
1430         intprops: work around C compiler bugs
1431         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
1432         bug in Sun C 5.11 2010/08/13 and other compilers; see
1433         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
1434
1435         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
1436         * doc/intprops.texi (Integer Type Determination): Fix
1437         documentation for TYPE_IS_INTEGER: it returns an constant
1438         expression, not an integer constant expression.  Fix doc for
1439         TYPE_SIGNED: it returns an integer constant expression only if its
1440         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
1441         hardly worth documented that way....)
1442
1443 2011-05-18  Bruno Haible  <bruno@clisp.org>
1444
1445         strerror_r: Avoid clobbering the strerror buffer when possible.
1446         * lib/strerror_r.c (strerror_r): Merge the three implementations.
1447         Handle gnulib defined errno values here. When strerror() returns NULL
1448         or an empty string, return EINVAL.
1449         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
1450         gnulib defined errno values here.
1451         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
1452
1453 2011-05-18  Eric Blake  <eblake@redhat.com>
1454
1455         fnmatch: avoid compiler warning
1456         * lib/fnmatch_loop.c (FCT): Use correct type.
1457         Reported by Matthias Bolte.
1458
1459 2011-05-13  Jim Meyering  <meyering@redhat.com>
1460
1461         maint.mk: three new prohibit_<HDR>_without_use rules
1462         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
1463         (sc_prohibit_stdio-safer_without_use): Likewise.
1464         (sc_prohibit_xfreopen_without_use): Likewise.
1465
1466 2011-05-17  Jim Meyering  <meyering@redhat.com>
1467
1468         announce-gen: fail if the NEWS delta is empty
1469         If there's nothing noteworthy in NEWS, then either you forgot
1470         or you shouldn't be releasing.
1471         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
1472
1473 2011-05-17  Pádraig Brady <P@draigBrady.com>
1474
1475         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
1476         reserved symbols starting with double underscore from the check.
1477
1478 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
1479
1480         intprops: add doc
1481         * doc/intprops.texi: New file, documenting intprops.
1482         * doc/gnulib.texi (Particular Modules): Include it.
1483
1484         verify: add doc to gnulib manual and fix example
1485         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
1486         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
1487         (Compile-time Assertions): Fix example so it can't overflow.
1488
1489 2011-05-17  Jim Meyering  <meyering@redhat.com>
1490
1491         warnings.m4: don't usurp save_CPPFLAGS variable name
1492         * m4/warnings.m4: Prefix local temporary variable name with gl_.
1493
1494         doc: fix typo
1495         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
1496
1497 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
1498             Bruno Haible  <bruno@clisp.org>
1499
1500         doc: Tweak recent change.
1501         * README (Portability guidelines): Tweak new text.
1502         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
1503         Interix 6.1.
1504
1505 2011-05-16  Eric Blake  <eblake@redhat.com>
1506
1507         inttypes: avoid autoconf warning
1508         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
1509         * m4/stdint.m4 (gl_STDINT_H): Likewise.
1510
1511 2011-05-16  Sam Steingold <sds@gnu.org>
1512         and Eric Blake  <eblake@redhat.com>
1513
1514         vc-list-files: accept multiple directory operands
1515         * build-aux/vc-list-files: Iterate over all remaining operands.
1516
1517 2011-05-16  Bruno Haible  <bruno@clisp.org>
1518
1519         Fix confusion regarding deprecated modules.
1520         * modules/calloc (Status, Notice): Mark module as deprecated, not
1521         obsolete.
1522         * modules/fnmatch-posix (Status, Notice): Likewise.
1523         * modules/getdate (Status, Notice): Likewise.
1524         * modules/getopt (Status, Notice): Likewise.
1525         * modules/malloc (Status, Notice): Likewise.
1526         * modules/pipe (Status, Notice): Likewise.
1527         * modules/realloc (Status, Notice): Likewise.
1528         * modules/rename-dest-slash (Status, Notice): Likewise.
1529         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
1530         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
1531         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
1532         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
1533         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
1534
1535 2011-05-16  Bruno Haible  <bruno@clisp.org>
1536
1537         doc: List the target platforms.
1538         * doc/gnulib-intro.texi (Target Platforms): New section.
1539         * doc/gnulib.texi (Introduction): Update menu.
1540         * README (Portability guidelines): Refer to the new section. Update
1541         statement about oldest supported environment. Remove rationale why
1542         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
1543         unportable C89 function.
1544         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
1545         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
1546
1547 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
1548
1549         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
1550
1551 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
1552
1553         intprops-tests: new module
1554         * modules/intprops-tests, tests/test-intprops.c: New files.
1555
1556         intprops: add safe, portable integer overflow checking
1557         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
1558         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
1559         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
1560         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
1561         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
1562         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
1563         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
1564         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
1565         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
1566         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
1567         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
1568
1569 2011-05-12  James Youngman  <jay@gnu.org>
1570
1571         Add a test for glibc's Bugzilla bug #12378.
1572         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
1573         doesn't allow the literal matching of a lone "[" (which is
1574         required by POSIX).
1575         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
1576
1577 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
1578
1579         Sync glibc change fixing Bugzilla bug #12378.
1580         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
1581         beginning and fall back to matching as normal character if the
1582         string ends before the matching ']' is found.  This is what POSIX
1583         requires.
1584
1585 2011-05-13  Eric Blake  <eblake@redhat.com>
1586
1587         getcwd-lgpl: relax test for FreeBSD
1588         * doc/posix-functions/getcwd.texi (getcwd): Document portability
1589         issue.
1590         * tests/test-getcwd-lgpl.c (main): Relax test.
1591         Reported by Matthias Bolte.
1592
1593 2011-05-11  Eric Blake  <eblake@redhat.com>
1594
1595         test-fflush: silence compiler warning
1596         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
1597
1598 2011-05-11  Bruno Haible  <bruno@clisp.org>
1599
1600         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
1601         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
1602         * modules/canonicalize (Depends-on): Add 'nocrash'.
1603         * modules/canonicalize-lgpl (Depends-on): Likewise.
1604         * doc/posix-functions/realpath.texi: Update platforms list.
1605         Reported by Ryan Schmidt <ryandesign@macports.org>.
1606
1607 2011-05-11  Bruno Haible  <bruno@clisp.org>
1608
1609         group-member: Declare function in <unistd.h>.
1610         * lib/unistd.in.h (group_member): New declaration.
1611         * lib/group-member.h: Remove file.
1612         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
1613         * tests/test-unistd-c++.cc: Check signature of group_member.
1614         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
1615         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
1616         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
1617         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
1618         HAVE_GROUP_MEMBER.
1619         * modules/group-member (Files): Remove lib/group-member.h.
1620         (Depends-on): Add unistd. Specify conditions.
1621         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
1622         (Include): Change to <unistd.h>.
1623         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
1624         HAVE_GROUP_MEMBER.
1625         * NEWS: Mention the change.
1626         * lib/euidaccess.c: Don't include group-member.h.
1627
1628 2011-05-11  Bruno Haible  <bruno@clisp.org>
1629
1630         group-member: Document module.
1631         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
1632         module.
1633
1634 2011-05-11  Bruno Haible  <bruno@clisp.org>
1635
1636         fclose: Fix mistake earlier today.
1637         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
1638
1639 2011-05-11  Eric Blake  <eblake@redhat.com>
1640
1641         fclose: preserve fflush errors
1642         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
1643         Reported by Jim Meyering.
1644
1645         bootstrap: support a prereq of 'rpcgen -' on RHEL5
1646         * build-aux/bootstrap (check_versions): When no specific version
1647         is required, merely check that the app produces an exit status
1648         that indicates its existence.
1649
1650         maint.mk: drop redundant check
1651         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
1652         the same but better.
1653
1654 2011-05-11  Bruno Haible  <bruno@clisp.org>
1655
1656         fclose: Fix possible link error.
1657         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
1658         unregister_shadow_fd. Improve comments.
1659         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
1660         Eric Blake.
1661
1662 2011-05-11  Jim Meyering  <meyering@redhat.com>
1663
1664         maint.mk: improve "can not" detection and generalize rule name
1665         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
1666         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
1667         Use the same technique as in sc_prohibit_doubled_word, so that
1668         we recognize "can not" also when the words are separated by a newline.
1669         Suggested by Eric Blake.
1670         (perl_filename_lineno_text_): Define.  Factored out of...
1671         (prohibit_doubled_word_): ...here.  Use the new definition.
1672         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
1673         (prohibit_undesirable_word_seq_RE_): New overridable variable.
1674         (ignore_undesirable_word_sequence_RE_): New overridable variable.
1675
1676 2011-05-10  Eric Blake  <eblake@redhat.com>
1677
1678         fclose: avoid double close race when possible
1679         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
1680         all but WINDOWS_SOCKETS.
1681
1682 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
1683
1684         openat: correct new comment
1685         * lib/openat-proc.c (openat_proc_name): Correct the comment.
1686
1687 2011-05-10  Jim Meyering  <meyering@redhat.com>
1688
1689         openat: add comments
1690         * lib/openat-proc.c (openat_proc_name): Add comments,
1691         mostly from Eric Blake.
1692
1693 2011-05-09  Eric Blake  <eblake@redhat.com>
1694
1695         openat: reduce syscalls in first probe of /proc
1696         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
1697         be a directory.  Simplify the probe for .. bugs.
1698         * modules/openat (Depends-on): Drop same-inode.
1699         Reported by Bastien ROUCARIES.
1700
1701 2011-05-09  Jim Meyering  <meyering@redhat.com>
1702
1703         maint.mk: change semantics/name of tight_scope variables
1704         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
1705         Rename variables to align with semantics that make them more useful.
1706
1707         maint.mk: tweak new rule's name not to impinge
1708         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
1709         (sc_tight_scope): Use new rule name rather than $@-0.
1710
1711         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
1712         * top/maint.mk (sc_tight_scope): New rule.
1713         (sc_tight_scope-0): New rule, ifdef'd out.
1714         (_gl_TS_dir): Default.
1715         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
1716         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
1717
1718 2011-05-09  Simon Josefsson  <simon@josefsson.org>
1719
1720         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
1721         Haible <bruno@clisp.org>.
1722
1723 2011-05-08  Bruno Haible  <bruno@clisp.org>
1724
1725         Comments.
1726         * m4/isnanf.m4: Add comment.
1727         * m4/isnanl.m4: Likewise.
1728
1729 2011-05-08  Bruno Haible  <bruno@clisp.org>
1730
1731         glob: Remove obsolete macro.
1732         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
1733
1734 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
1735
1736         intprops: Sun C 5.11 supports __typeof__
1737         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
1738         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
1739         which is new.
1740         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
1741
1742         intprops: switch to usual gnulib indenting and naming
1743         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
1744         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
1745
1746         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
1747
1748 2011-05-08  Jim Meyering  <meyering@redhat.com>
1749
1750         maint.mk: suppress "Entering/Leaving directory" diag in announcement
1751         * top/maint.mk (release-prep): Use make's --no-print-directory
1752         option when generating the announcement.  This eliminates the
1753         pesky "make[2]: Entering/Leaving directory" diagnostics in the
1754         generated announcement template.
1755
1756 2011-05-08  Bruno Haible  <bruno@clisp.org>
1757
1758         tzset: Fix gettimeofday wrapper on Solaris 2.6.
1759         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
1760         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
1761
1762 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
1763
1764         ignore-value, verify: Omit include files from lib_SOURCES.
1765         * modules/ignore-value, modules/verify (Makefile.am):
1766         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
1767         that leads Automake to duplicate use of am__objects_... variables
1768         in Makefile.in.  See
1769         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
1770
1771 2011-05-07  Bruno Haible  <bruno@clisp.org>
1772
1773         fclose: Simplify autoconf macro.
1774         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
1775         defined.
1776
1777 2011-05-07  Bruno Haible  <bruno@clisp.org>
1778
1779         canonicalize-lgpl: Fix autoconf macro ordering bug.
1780         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
1781         gl_STDLIB_H_DEFAULTS.
1782
1783 2011-05-06  Eric Blake  <eblake@redhat.com>
1784
1785         maintainer-makefile: make sc_po_check easier to tune
1786         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
1787         to probe for strings, such as an alternate location for gnulib.
1788
1789         fclose: guarantee behavior on seekable stdin
1790         * modules/fclose (Depends-on): Add fflush.
1791         * doc/posix-functions/fclose.texi (fclose): Document this.
1792         * tests/test-fclose.c (main): Make test for this unconditional.
1793
1794 2011-05-06  Bruno Haible  <bruno@clisp.org>
1795
1796         fflush, fpurge: Relicense under LGPLv2+.
1797         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
1798         * modules/fpurge (License): Likewise.
1799         With permission from Eric Blake and Jim Meyering.
1800         Suggested by Eric Blake.
1801
1802 2011-05-06  Karl Berry  <karl@gnu.org>
1803
1804         * MODULES.html.sh (func_all_modules): remove exit.
1805
1806 2011-05-06  Jim Meyering  <meyering@redhat.com>
1807
1808         maint.mk: use info-gnu@ as the default only for a stable release
1809         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
1810         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
1811         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
1812         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
1813
1814 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
1815
1816         assert-h: new module, which supports C1X-style static_assert
1817         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
1818         * lib/verify.h: Revamp so that this can be copied into assert.h,
1819         while retaining the ability to use it standalone as before.
1820         Rename private identifiers so as not to encroach on the
1821         standard C namespace, since this is now used by assert.h.
1822         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
1823         the old verify_true.
1824         (_GL_VERIFY_TRUE): New macro, with much of the contents of
1825         the old verify_true.  Use _GL_VERIFY_TYPE.
1826         (_GL_VERIFY): New macro, with much of the contents of the old verify.
1827         (static_assert): New macro, if _GL_STATIC_ASSERT_H
1828         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
1829         defined when this file is copied into the replacement assert.h.
1830         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
1831         and _Static_assert is not built in.
1832         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
1833         defined, and use the new macros mentioned above.
1834         * doc/posix-headers/assert.texi: Document this.
1835
1836 2011-05-05  Bruno Haible  <bruno@clisp.org>
1837
1838         fclose, fflush: Respect rules for use of AC_LIBOBJ.
1839         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
1840         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
1841         gl_REPLACE_FCLOSE here.
1842         * modules/fflush (Depends-on): Remove fclose.
1843         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
1844         combination with module 'fclose'.
1845
1846 2011-05-05  Bruno Haible  <bruno@clisp.org>
1847
1848         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
1849         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
1850         gl_FUNC_FFLUSH.
1851         (gl_FUNC_FFLUSH): Use it.
1852         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
1853         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
1854         gl_REPLACE_FSEEKO here.
1855
1856 2011-05-05  Bruno Haible  <bruno@clisp.org>
1857
1858         tzset: Relicense under LGPL.
1859         * modules/tzset (License): Change to LGPL.
1860         No agreement needed; it's a no-op.
1861
1862         strtoimax, strtoumax: Relicense under LGPL.
1863         * modules/strtoimax (License): Change to LGPL.
1864         * modules/strtoumax (License): Likewise.
1865         With permission from Jim Meyering, Paul Eggert:
1866         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
1867         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
1868
1869         getgroups: Relicense under LGPL.
1870         * modules/getgroups (License): Change to LGPL.
1871         With permission from Jim Meyering, Paul Eggert, Eric Blake:
1872         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
1873         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
1874         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
1875
1876         nanosleep: Relicense under LGPL.
1877         * modules/nanosleep (License): Change to LGPL.
1878         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
1879         Haible:
1880         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
1881         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
1882         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
1883         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
1884
1885         futimens: Relicense under LGPL.
1886         * modules/futimens (License): Change to LGPL.
1887         With permission from Eric Blake:
1888         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
1889
1890         fflush: Relicense under LGPL.
1891         * modules/fflush (License): Change to LGPL.
1892         With permission from Eric Blake, Bruno Haible, Jim Meyering:
1893         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
1894         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
1895         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
1896
1897         tmpfile: Relicense under LGPL.
1898         * modules/tmpfile (License): Change to LGPL.
1899         With permission from Ben Pfaff:
1900         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
1901
1902         isfinite: Relicense under LGPL.
1903         * modules/isfinite (License): Change to LGPL.
1904         With permission from Ben Pfaff, Bruno Haible:
1905         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
1906         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
1907
1908         acosl..tanl: Relicense under LGPL.
1909         * modules/acosl (License): Change to LGPL.
1910         * modules/asinl (License): Likewise.
1911         * modules/atanl (License): Likewise.
1912         * modules/cosl (License): Likewise.
1913         * modules/expl (License): Likewise.
1914         * modules/logl (License): Likewise.
1915         * modules/sinl (License): Likewise.
1916         * modules/sqrtl (License): Likewise.
1917         * modules/tanl (License): Likewise.
1918         Source code originally from glibc and Paolo Bonzini. Agreements:
1919         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
1920         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
1921
1922 2011-05-05  Bruno Haible  <bruno@clisp.org>
1923
1924         signal: Define sighandler_t.
1925         * lib/signal.in.h (sighandler_t): New type.
1926         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
1927         whether sighandler_t is defined.
1928         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
1929         * modules/signal (Depends-on): Add extensions.
1930         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
1931         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
1932         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
1933
1934 2011-05-05  Eric Blake  <eblake@redhat.com>
1935
1936         maint: remove useless REPLACE_*_H macros
1937         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
1938         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
1939         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
1940         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
1941         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
1942         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
1943         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
1944         * m4/btowc.m4: Update callers.
1945         * m4/dirfd.m4: Likewise.
1946         * m4/duplocale.m4: Likewise.
1947         * m4/fchdir.m4: Likewise.
1948         * m4/fdopendir.m4: Likewise.
1949         * m4/inet_ntop.m4: Likewise.
1950         * m4/inet_pton.m4: Likewise.
1951         * m4/ioctl.m4: Likewise.
1952         * m4/mbrlen.m4: Likewise.
1953         * m4/mbrtowc.m4: Likewise.
1954         * m4/mbsinit.m4: Likewise.
1955         * m4/mbsnrtowcs.m4: Likewise.
1956         * m4/mbsrtowcs.m4: Likewise.
1957         * m4/poll.m4: Likewise.
1958         * m4/setlocale.m4: Likewise.
1959         * m4/wcrtomb.m4: Likewise.
1960         * m4/wcsnrtombs.m4: Likewise.
1961         * m4/wcsrtombs.m4: Likewise.
1962         * m4/wctob.m4: Likewise.
1963         * m4/wcwidth.m4: Likewise.
1964         * modules/posix_spawn: Likewise.
1965         * modules/posix_spawn_file_actions_addclose: Likewise.
1966         * modules/posix_spawn_file_actions_adddup2: Likewise.
1967         * modules/posix_spawn_file_actions_addopen: Likewise.
1968         * modules/posix_spawn_file_actions_destroy: Likewise.
1969         * modules/posix_spawn_file_actions_init: Likewise.
1970         * modules/posix_spawnattr_destroy: Likewise.
1971         * modules/posix_spawnattr_getflags: Likewise.
1972         * modules/posix_spawnattr_getpgroup: Likewise.
1973         * modules/posix_spawnattr_getschedparam: Likewise.
1974         * modules/posix_spawnattr_getschedpolicy: Likewise.
1975         * modules/posix_spawnattr_getsigdefault: Likewise.
1976         * modules/posix_spawnattr_getsigmask: Likewise.
1977         * modules/posix_spawnattr_init: Likewise.
1978         * modules/posix_spawnattr_setflags: Likewise.
1979         * modules/posix_spawnattr_setpgroup: Likewise.
1980         * modules/posix_spawnattr_setschedparam: Likewise.
1981         * modules/posix_spawnattr_setschedpolicy: Likewise.
1982         * modules/posix_spawnattr_setsigdefault: Likewise.
1983         * modules/posix_spawnattr_setsigmask: Likewise.
1984         * modules/posix_spawnp: Likewise.
1985
1986 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
1987
1988         Add option to do-release-commit-and-tag to specify branch.
1989         * build-aux/do-release-commit-and-tag: Add --branch.
1990
1991 2011-05-03  Bruno Haible  <bruno@clisp.org>
1992
1993         Avoid unnecessary compilation units, through conditional dependencies.
1994         * modules/accept (Depends-on): Add conditions to the dependencies.
1995         * modules/acosl (Depends-on): Likewise.
1996         * modules/argz (Depends-on): Likewise.
1997         * modules/asinl (Depends-on): Likewise.
1998         * modules/atanl (Depends-on): Likewise.
1999         * modules/atoll (Depends-on): Likewise.
2000         * modules/bind (Depends-on): Likewise.
2001         * modules/btowc (Depends-on): Likewise.
2002         * modules/canonicalize-lgpl (Depends-on): Likewise.
2003         * modules/ceil (Depends-on): Likewise.
2004         * modules/ceilf (Depends-on): Likewise.
2005         * modules/ceill (Depends-on): Likewise.
2006         * modules/chdir-long (Depends-on): Likewise.
2007         * modules/chown (Depends-on): Likewise.
2008         * modules/close (Depends-on): Likewise.
2009         * modules/connect (Depends-on): Likewise.
2010         * modules/cosl (Depends-on): Likewise.
2011         * modules/dirfd (Depends-on): Likewise.
2012         * modules/dprintf (Depends-on): Likewise.
2013         * modules/dprintf-posix (Depends-on): Likewise.
2014         * modules/error (Depends-on): Likewise.
2015         * modules/euidaccess (Depends-on): Likewise.
2016         * modules/expl (Depends-on): Likewise.
2017         * modules/faccessat (Depends-on): Likewise.
2018         * modules/fchdir (Depends-on): Likewise.
2019         * modules/fclose (Depends-on): Likewise.
2020         * modules/fcntl (Depends-on): Likewise.
2021         * modules/fdopendir (Depends-on): Likewise.
2022         * modules/fflush (Depends-on): Likewise.
2023         * modules/floor (Depends-on): Likewise.
2024         * modules/floorf (Depends-on): Likewise.
2025         * modules/floorl (Depends-on): Likewise.
2026         * modules/fnmatch (Depends-on): Likewise.
2027         * modules/fopen (Depends-on): Likewise.
2028         * modules/fprintf-posix (Depends-on): Likewise.
2029         * modules/frexp (Depends-on): Likewise.
2030         * modules/frexp-nolibm (Depends-on): Likewise.
2031         * modules/frexpl (Depends-on): Likewise.
2032         * modules/frexpl-nolibm (Depends-on): Likewise.
2033         * modules/fseek (Depends-on): Likewise.
2034         * modules/fsusage (Depends-on): Likewise.
2035         * modules/ftell (Depends-on): Likewise.
2036         * modules/ftello (Depends-on): Likewise.
2037         * modules/futimens (Depends-on): Likewise.
2038         * modules/getcwd (Depends-on): Likewise.
2039         * modules/getcwd-lgpl (Depends-on): Likewise.
2040         * modules/getdelim (Depends-on): Likewise.
2041         * modules/getdomainname (Depends-on): Likewise.
2042         * modules/getgroups (Depends-on): Likewise.
2043         * modules/gethostname (Depends-on): Likewise.
2044         * modules/getline (Depends-on): Likewise.
2045         * modules/getlogin_r (Depends-on): Likewise.
2046         * modules/getopt-posix (Depends-on): Likewise.
2047         * modules/getpeername (Depends-on): Likewise.
2048         * modules/getsockname (Depends-on): Likewise.
2049         * modules/getsockopt (Depends-on): Likewise.
2050         * modules/getsubopt (Depends-on): Likewise.
2051         * modules/getusershell (Depends-on): Likewise.
2052         * modules/glob (Depends-on): Likewise.
2053         * modules/grantpt (Depends-on): Likewise.
2054         * modules/iconv_open (Depends-on): Likewise.
2055         * modules/iconv_open-utf (Depends-on): Likewise.
2056         * modules/inet_ntop (Depends-on): Likewise.
2057         * modules/inet_pton (Depends-on): Likewise.
2058         * modules/ioctl (Depends-on): Likewise.
2059         * modules/isapipe (Depends-on): Likewise.
2060         * modules/isfinite (Depends-on): Likewise.
2061         * modules/isinf (Depends-on): Likewise.
2062         * modules/lchown (Depends-on): Likewise.
2063         * modules/ldexpl (Depends-on): Likewise.
2064         * modules/link (Depends-on): Likewise.
2065         * modules/linkat (Depends-on): Likewise.
2066         * modules/listen (Depends-on): Likewise.
2067         * modules/logl (Depends-on): Likewise.
2068         * modules/lstat (Depends-on): Likewise.
2069         * modules/mbrlen (Depends-on): Likewise.
2070         * modules/mbrtowc (Depends-on): Likewise.
2071         * modules/mbsinit (Depends-on): Likewise.
2072         * modules/mbsnrtowcs (Depends-on): Likewise.
2073         * modules/mbsrtowcs (Depends-on): Likewise.
2074         * modules/mbtowc (Depends-on): Likewise.
2075         * modules/memcmp (Depends-on): Likewise.
2076         * modules/mkdir (Depends-on): Likewise.
2077         * modules/mkdtemp (Depends-on): Likewise.
2078         * modules/mkfifo (Depends-on): Likewise.
2079         * modules/mkfifoat (Depends-on): Likewise.
2080         * modules/mknod (Depends-on): Likewise.
2081         * modules/mkostemp (Depends-on): Likewise.
2082         * modules/mkostemps (Depends-on): Likewise.
2083         * modules/mkstemp (Depends-on): Likewise.
2084         * modules/mkstemps (Depends-on): Likewise.
2085         * modules/mktime (Depends-on): Likewise.
2086         * modules/nanosleep (Depends-on): Likewise.
2087         * modules/open (Depends-on): Likewise.
2088         * modules/openat (Depends-on): Likewise.
2089         * modules/perror (Depends-on): Likewise.
2090         * modules/poll (Depends-on): Likewise.
2091         * modules/popen (Depends-on): Likewise.
2092         * modules/posix_spawn (Depends-on): Likewise.
2093         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
2094         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
2095         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
2096         * modules/posix_spawnp (Depends-on): Likewise.
2097         * modules/pread (Depends-on): Likewise.
2098         * modules/printf-posix (Depends-on): Likewise.
2099         * modules/ptsname (Depends-on): Likewise.
2100         * modules/putenv (Depends-on): Likewise.
2101         * modules/pwrite (Depends-on): Likewise.
2102         * modules/readline (Depends-on): Likewise.
2103         * modules/readlink (Depends-on): Likewise.
2104         * modules/readlinkat (Depends-on): Likewise.
2105         * modules/recv (Depends-on): Likewise.
2106         * modules/recvfrom (Depends-on): Likewise.
2107         * modules/regex (Depends-on): Likewise.
2108         * modules/remove (Depends-on): Likewise.
2109         * modules/rename (Depends-on): Likewise.
2110         * modules/renameat (Depends-on): Likewise.
2111         * modules/rmdir (Depends-on): Likewise.
2112         * modules/round (Depends-on): Likewise.
2113         * modules/roundf (Depends-on): Likewise.
2114         * modules/roundl (Depends-on): Likewise.
2115         * modules/rpmatch (Depends-on): Likewise.
2116         * modules/select (Depends-on): Likewise.
2117         * modules/send (Depends-on): Likewise.
2118         * modules/sendto (Depends-on): Likewise.
2119         * modules/setenv (Depends-on): Likewise.
2120         * modules/setlocale (Depends-on): Likewise.
2121         * modules/setsockopt (Depends-on): Likewise.
2122         * modules/shutdown (Depends-on): Likewise.
2123         * modules/sigaction (Depends-on): Likewise.
2124         * modules/signbit (Depends-on): Likewise.
2125         * modules/sigprocmask (Depends-on): Likewise.
2126         * modules/sinl (Depends-on): Likewise.
2127         * modules/sleep (Depends-on): Likewise.
2128         * modules/snprintf (Depends-on): Likewise.
2129         * modules/snprintf-posix (Depends-on): Likewise.
2130         * modules/socket (Depends-on): Likewise.
2131         * modules/sprintf-posix (Depends-on): Likewise.
2132         * modules/sqrtl (Depends-on): Likewise.
2133         * modules/stat (Depends-on): Likewise.
2134         * modules/strchrnul (Depends-on): Likewise.
2135         * modules/strdup-posix (Depends-on): Likewise.
2136         * modules/strerror (Depends-on): Likewise.
2137         * modules/strerror_r-posix (Depends-on): Likewise.
2138         * modules/strndup (Depends-on): Likewise.
2139         * modules/strnlen (Depends-on): Likewise.
2140         * modules/strptime (Depends-on): Likewise.
2141         * modules/strsep (Depends-on): Likewise.
2142         * modules/strsignal (Depends-on): Likewise.
2143         * modules/strstr-simple (Depends-on): Likewise.
2144         * modules/strtod (Depends-on): Likewise.
2145         * modules/strtoimax (Depends-on): Likewise.
2146         * modules/strtok_r (Depends-on): Likewise.
2147         * modules/strtoumax (Depends-on): Likewise.
2148         * modules/symlink (Depends-on): Likewise.
2149         * modules/symlinkat (Depends-on): Likewise.
2150         * modules/tanl (Depends-on): Likewise.
2151         * modules/tcgetsid (Depends-on): Likewise.
2152         * modules/tmpfile (Depends-on): Likewise.
2153         * modules/trunc (Depends-on): Likewise.
2154         * modules/truncf (Depends-on): Likewise.
2155         * modules/truncl (Depends-on): Likewise.
2156         * modules/uname (Depends-on): Likewise.
2157         * modules/unlink (Depends-on): Likewise.
2158         * modules/unlockpt (Depends-on): Likewise.
2159         * modules/unsetenv (Depends-on): Likewise.
2160         * modules/usleep (Depends-on): Likewise.
2161         * modules/utimensat (Depends-on): Likewise.
2162         * modules/vasprintf (Depends-on): Likewise.
2163         * modules/vdprintf (Depends-on): Likewise.
2164         * modules/vdprintf-posix (Depends-on): Likewise.
2165         * modules/vfprintf-posix (Depends-on): Likewise.
2166         * modules/vprintf-posix (Depends-on): Likewise.
2167         * modules/vsnprintf (Depends-on): Likewise.
2168         * modules/vsnprintf-posix (Depends-on): Likewise.
2169         * modules/vsprintf-posix (Depends-on): Likewise.
2170         * modules/wcrtomb (Depends-on): Likewise.
2171         * modules/wcscasecmp (Depends-on): Likewise.
2172         * modules/wcscspn (Depends-on): Likewise.
2173         * modules/wcsdup (Depends-on): Likewise.
2174         * modules/wcsncasecmp (Depends-on): Likewise.
2175         * modules/wcsnrtombs (Depends-on): Likewise.
2176         * modules/wcspbrk (Depends-on): Likewise.
2177         * modules/wcsrtombs (Depends-on): Likewise.
2178         * modules/wcsspn (Depends-on): Likewise.
2179         * modules/wcsstr (Depends-on): Likewise.
2180         * modules/wcstok (Depends-on): Likewise.
2181         * modules/wcswidth (Depends-on): Likewise.
2182         * modules/wctob (Depends-on): Likewise.
2183         * modules/wctomb (Depends-on): Likewise.
2184         * modules/wctype (Depends-on): Likewise.
2185         * modules/wcwidth (Depends-on): Likewise.
2186         * modules/write (Depends-on): Likewise.
2187
2188 2011-05-03  Bruno Haible  <bruno@clisp.org>
2189
2190         Support for conditional dependencies.
2191         * doc/gnulib.texi (Module description): Document the syntax of
2192         conditional dependencies.
2193         * gnulib-tool: New option --conditional-dependencies.
2194         (func_usage): Document it.
2195         (cond_dependencies): New variable.
2196         (func_get_automake_snippet_conditional,
2197         func_get_automake_snippet_unconditional): New functions, extracted from
2198         func_get_automake_snippet.
2199         (func_get_automake_snippet): Use them.
2200         (sed_first_32_chars): New variable.
2201         (func_module_shellfunc_name): New function.
2202         (func_module_shellvar_name): New function.
2203         (func_module_conditional_name): New function.
2204         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
2205         func_cond_module_condition): New functions.
2206         (func_modules_transitive_closure): Add support for conditional
2207         dependencies.
2208         (func_emit_lib_Makefile_am): For a conditional module, enclose the
2209         conditional automake snippet in an automake conditional.
2210         (func_emit_autoconf_snippets): Emit shell functions that contain the
2211         code for conditional modules.
2212         (func_import, func_create_testdir): Update specification.
2213
2214 2011-05-03  Eric Blake  <eblake@redhat.com>
2215
2216         test-getaddrinfo: report error information
2217         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
2218
2219 2011-05-03  Jim Meyering  <meyering@redhat.com>
2220
2221         bootstrap: avoid build failure when $GZIP is set
2222         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
2223         program name.  If defined at all, it is supposed to list gzip options.
2224         Reported by Alan Curry in http://debbugs.gnu.org/8609
2225
2226 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
2227
2228         readme-release: new module with release instructions
2229         * modules/readme-release: New module.
2230         * top/README-release: New file, from coreutils, grep, diffutils.
2231         * MODULES.html.sh (Support for maintaining and releasing): Add it.
2232
2233 2011-05-02  Eric Blake  <eblake@redhat.com>
2234
2235         fflush: also replace fclose when fixing fflush
2236         * modules/fflush (Depends-on): Add fclose.
2237         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
2238         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
2239         memstreams with no backing fd.
2240         * doc/posix-functions/fclose.texi (fclose): Document the use of
2241         fflush module to fix the bug.
2242         * tests/test-fclose.c (main): Relax test when fclose is used in
2243         isolation.
2244
2245         fclose: add some tests
2246         * modules/fclose-tests: New test module.
2247         * tests/test-fclose.c: New file.
2248         * doc/posix-functions/fclose.texi (fclose): Document the bug.
2249
2250         fclose: reduced dependencies
2251         * modules/fclose (Depends-on): Switch from fflush/fseeko to
2252         simpler lseek.
2253         * lib/fclose.c (rpl_fclose): Likewise.
2254         Reported by Simon Josefsson.
2255
2256         exit: drop remaining clients
2257         * modules/argmatch (Depends-on): Replace exit with stdlib.
2258         * modules/copy-file (Depends-on): Likewise.
2259         * modules/execute (Depends-on): Likewise.
2260         * modules/exitfail (Depends-on): Likewise.
2261         * modules/obstack (Depends-on): Likewise.
2262         * modules/pagealign_alloc (Depends-on): Likewise.
2263         * modules/pipe-filter-gi (Depends-on): Likewise.
2264         * modules/pipe-filter-ii (Depends-on): Likewise.
2265         * modules/savewd (Depends-on): Likewise.
2266         * modules/spawn-pipe (Depends-on): Likewise.
2267         * modules/wait-process (Depends-on): Likewise.
2268         * modules/xsetenv (Depends-on): Likewise.
2269         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
2270         * modules/git-merge-changelog (Depends-on): Likewise.
2271         * modules/long-options (Depends-on): Likewise.
2272         * modules/pt_chown (Depends-on): Likewise.
2273         * modules/sysexits (Depends-on): Likewise.
2274
2275         freading: relax license from LGPLv3+ to LGPLv2+
2276         * modules/freading (License): Relax LGPL version.
2277
2278 2011-05-02  Bruno Haible  <bruno@clisp.org>
2279
2280         fchdir: Remove unused dependencies.
2281         * modules/fchdir (Depends-on): Remove include_next.
2282
2283 2011-05-02  Bruno Haible  <bruno@clisp.org>
2284
2285         gnulib-tool: Refactor.
2286         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
2287         from func_emit_autoconf_snippets.
2288         (func_emit_autoconf_snippets): Use it.
2289
2290 2011-05-02  Simon Josefsson  <simon@josefsson.org>
2291
2292         * NEWS: Document removal of 'exit'.
2293         * modules/exit: Remove file.
2294
2295 2011-05-01  Bruno Haible  <bruno@clisp.org>
2296
2297         Update DEPENDENCIES.
2298         * DEPENDENCIES (gettext): Recommend the newest release.
2299         Reported by Simon Josefsson.
2300
2301 2011-05-01  Bruno Haible  <bruno@clisp.org>
2302
2303         gnulib-tool: Reduce code duplication.
2304         * gnulib-tool (func_emit_autoconf_snippets): New function.
2305         (func_import, func_create_testdir): Use it.
2306
2307 2011-04-30  Eric Blake  <eblake@redhat.com>
2308
2309         fclose: don't fail on non-seekable input stream
2310         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
2311         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
2312         since fflush is allowed to fail in that case.
2313
2314 2011-04-30  Bruno Haible  <bruno@clisp.org>
2315
2316         dup3: cleanup
2317         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
2318
2319 2011-04-30  Bruno Haible  <bruno@clisp.org>
2320
2321         netdb: Make it work in C++ mode.
2322         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
2323         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
2324         module.
2325         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
2326         gl_MODULE_INDICATOR_FOR_TESTS.
2327         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
2328         * modules/netdb-c++-tests: New file.
2329         * tests/test-netdb-c++.cc: New file.
2330
2331 2011-04-30  Bruno Haible  <bruno@clisp.org>
2332
2333         New modules 'vfscanf', 'vscanf'.
2334         * modules/vfscanf: New file.
2335         * modules/vscanf: New file.
2336         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
2337         here.
2338         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
2339         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
2340
2341 2011-04-30  Bruno Haible  <bruno@clisp.org>
2342
2343         passfd: Add comments.
2344         * lib/passfd.c: Add comments about platforms.
2345
2346 2011-04-30  Bruno Haible  <bruno@clisp.org>
2347
2348         sys_uio: Make <sys/uio.h> self-contained.
2349         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
2350         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
2351
2352 2011-04-30  Bruno Haible  <bruno@clisp.org>
2353
2354         sys_socket: Ensure 'struct iovec' definition.
2355         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
2356         <sys/socket.h>.
2357         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
2358
2359 2011-04-30  Bruno Haible  <bruno@clisp.org>
2360
2361         sys_uio: Protect definition of 'struct iovec'.
2362         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
2363         it as a C struct.
2364
2365 2011-04-30  Bruno Haible  <bruno@clisp.org>
2366
2367         manywarnings: fix indentation
2368         * m4/manywarnings.m4: Indent by 2 spaces consistently.
2369
2370 2011-04-30  Pádraig Brady <P@draigBrady.com>
2371
2372         manywarnings: add -Wno-missing-field-initializers if needed.
2373         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
2374         option if it's needed to allow initialization with { 0, }
2375
2376 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
2377
2378         announce-gen: cosmetic improvement
2379         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
2380
2381 2011-04-29  Jim Meyering  <meyering@redhat.com>
2382
2383         vc-list-files: indent with spaces, not TABs
2384         * build-aux/vc-list-files: Convert leading TABs to spaces,
2385         to match the style of most other files in gnulib.
2386
2387         announce-gen: indent with spaces, not TABs
2388         * build-aux/announce-gen: Convert all TABs to spaces, to match
2389         the style of most other files in gnulib.
2390
2391 2011-04-29  Eric Blake  <eblake@redhat.com>
2392
2393         quotearg: avoid uninitialized variable use
2394         * lib/quotearg.c (quoting_options_from_style): Initialize
2395         remaining fields, and ensure that custom styles are only used via
2396         quoting_options rather than quoting_style.
2397
2398 2011-04-29  Jim Meyering  <meyering@redhat.com>
2399
2400         maint.mk: remove unused VC-tag variable
2401         * top/maint.mk (VC-tag): Remove unused variable.
2402
2403 2011-04-29  Bruno Haible  <bruno@clisp.org>
2404
2405         netdb: fix gai_strerror replacements
2406         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
2407         * modules/netdb: Substitute it.
2408
2409 2011-04-29  Jim Meyering  <meyering@redhat.com>
2410
2411         test-getcwd.c: avoid new set-but-not-used warning
2412         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
2413         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
2414         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
2415         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
2416
2417         test-hash.c: avoid a new shadowing warning
2418         * tests/test-hash.c (main): Don't shadow "dup".
2419
2420 2011-04-28  Eric Blake  <eblake@redhat.com>
2421
2422         getaddrinfo: fix gai_strerror signature
2423         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
2424         and work around mingw with UNICODE defined.
2425         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
2426         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
2427         * modules/netdb (Makefile.am): Substitute it.
2428         * lib/netdb.in.h (gai_strerror): Declare replacement.
2429         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
2430         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
2431         the fix.
2432
2433         getsockopt: avoid compiler warning
2434         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
2435         Reported by Matthias Bolte.
2436
2437         tests: drop unused link dependency
2438         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
2439         * modules/dirent-safer-tests (Makefile.am): Likewise.
2440         * modules/fdopendir-tests (Makefile.am): Likewise.
2441         * modules/mkfifoat-tests (Makefile.am): Likewise.
2442         * modules/openat-safer-tests (Makefile.am): Likewise.
2443         * modules/openat-tests (Makefile.am): Likewise.
2444         * modules/readlinkat-tests (Makefile.am): Likewise.
2445         * modules/symlinkat-tests (Makefile.am): Likewise.
2446         * modules/linkat-tests (Makefile.am): Likewise.
2447         (Depends-on): Switch to filenamecat-lgpl.
2448         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
2449         LIBINTL.
2450         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
2451         * tests/test-linkat.c (main): Don't require xalloc.
2452
2453         hash, mgetgroups: drop xalloc dependency
2454         * lib/hash.c (includes): Adjust includes.
2455         * lib/mgetgroups.c (includes): Likewise.
2456         (xgetgroups): Move...
2457         * lib/xgetgroups.c: ...to new file.
2458         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
2459         * modules/xgetgroups: New file, split from...
2460         * modules/mgetgroups: ...here.
2461         (Depends-on): Add xalloc-oversized.
2462         * modules/hash (Depends-on): Likewise.
2463         * modules/hash-tests (Depends-on): Drop xalloc.
2464         (test_hash_LDADD): Drop unused library.
2465         * tests/test-hash.c (main): Break xalloc dependency.
2466         (includes): Drop unused include.
2467
2468         xalloc-oversized: new module
2469         * modules/xalloc-oversized: New module.
2470         * modules/xalloc (Depends-on): Add it.
2471         * lib/xalloc.h (xalloc_oversized): Move...
2472         * lib/xalloc-oversized.h: ...into new file.
2473
2474         utimecmp: drop dependency on xmalloc
2475         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
2476         due to memory pressure.
2477         * modules/utimecmp (Depends-on): Drop xalloc.
2478
2479 2011-04-27  Eric Blake  <eblake@redhat.com>
2480
2481         getcwd: fix mingw bugs
2482         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
2483         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
2484         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
2485
2486 2011-04-27  Bruno Haible  <bruno@clisp.org>
2487
2488         mkstemps: Ensure declaration on MacOS X 10.5.
2489         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
2490         * doc/glibc-functions/mkstemps.texi: Document header file problem on
2491         MacOS X.
2492
2493 2011-04-27  Bruno Haible  <bruno@clisp.org>
2494
2495         mkstemp: More documentation.
2496         * doc/posix-functions/mkstemp.texi: Document header file problem on
2497         MacOS X.
2498
2499 2011-04-27  Bruno Haible  <bruno@clisp.org>
2500
2501         mkstemp: Tweak configure message when cross-compiling.
2502         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
2503         result as a guess.
2504
2505 2011-04-27  Bruno Haible  <bruno@clisp.org>
2506
2507         clean-temp: Clarify what it does.
2508         * lib/clean-temp.h: Add more comments.
2509         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
2510         module.
2511         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
2512         * doc/glibc-functions/mkstemps.texi: Likewise.
2513         * doc/glibc-functions/mkostemps.texi: Likewise.
2514
2515 2011-04-27  Eric Blake  <eblake@redhat.com>
2516
2517         fchdir: avoid extra chdir and fix test
2518         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
2519         getcwd-lgpl.
2520         * lib/fchdir.c (get_name): Any absolute name will do; it does not
2521         have to be canonical.
2522         (canonicalize_file_name): Drop unused macro.
2523         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
2524
2525         filenamecat-lgpl: fix licence
2526         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
2527         when it was first created.
2528
2529         linkat, renameat: add missing dependency
2530         * modules/linkat (Depends-on): Require getcwd-lgpl.
2531         * modules/renameat (Depends-on): Likewise.
2532
2533         tests: reduce dependencies
2534         * tests/test-linkat.c (main): Use lighter-weight getcwd.
2535         * tests/test-renameat.c (main): Likewise.
2536         * modules/linkat-tests (Depends-on): Relax dependency.
2537         * modules/renameat-tests (Depends-on): Likewise.
2538         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
2539         dependency explicit.
2540
2541         save-cwd: reduce default dependency
2542         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
2543         * lib/save-cwd.c: Update comments.
2544         * NEWS: Document the semantic change.
2545
2546         getcwd: enhance tests
2547         * tests/test-getcwd-lgpl.c: New file, taken from...
2548         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
2549         repeat long path stress tests from m4 probe.
2550         * modules/getcwd-lgpl-tests: New module.
2551         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
2552         * m4/getcwd-abort-bug.m4: Update comment.
2553         * m4/getcwd-path-max.m4: Likewise.
2554
2555         getcwd-lgpl: new module
2556         * modules/getcwd-lgpl: New module.
2557         * lib/getcwd-lgpl.c: New file.
2558         * doc/posix-functions/getcwd.texi (getcwd): Document it.
2559         * MODULES.html.sh (lacking POSIX:2008): Likewise.
2560         * modules/getcwd (configure.ac): Set C witness.
2561         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
2562
2563         getcwd: tweak comments
2564         * m4/getcwd-abort-bug.m4: Fix comments.
2565         * m4/getcwd-path-max.m4: Likewise.
2566         * m4/getcwd.m4: Likewise.
2567
2568 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
2569         and Eric Blake  <eblake@redhat.com>
2570
2571         mkstemp: replace if system version uses wrong permissions
2572         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
2573         read/write mode bits set in file created by mkstemp.
2574         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
2575
2576 2011-04-27  Eric Blake  <eblake@redhat.com>
2577
2578         passfd: avoid compiler warning
2579         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
2580         Reported by Laine Stump.
2581
2582 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
2583
2584         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
2585         required by the NetBSD (and perhaps other 4.4BSD derived) join.
2586
2587 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
2588         and Eric Blake  <eblake@redhat.com>
2589
2590         mkstemp: mention clean-temp module
2591         * lib/mkstemp.c: Add comment.
2592         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
2593
2594 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
2595
2596         inttypes: also provide default values for 32-bit tests
2597         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
2598         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
2599
2600 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
2601
2602         strtoumax: remove dependency on strtoimax
2603         This is like the strtoull change of yesterday.
2604         * modules/strtoumax (Files): Add lib/strtoimax.c.
2605         (Depends-on): Remove strtoimax and add verify.
2606
2607         inttypes-incomplete: new module
2608         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
2609         all but the PRI* and SCN* parts of gl_INTTYPES_H.
2610         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
2611         of gl_INTTYPES_H.
2612         (gl_INTTYPES_H): Rewrite in terms of these new macros.
2613         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
2614         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
2615         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
2616         * modules/strtoumax, modules/xstrtol (Depends-on):
2617         Depend on inttypes-incomplete, not inttypes.
2618         * modules/inttypes-incomplete: New module, containing the contents
2619         of the old modules/inttypes module, except that the Files: section
2620         omits m4/inttypes-pri.m4, and the configure.ac section invokes
2621         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
2622         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
2623         (Depends-on): Depend only on inttypes-incomplete.
2624         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
2625
2626         inttypes: omit now-redundant strtoimax and strtoumax work
2627         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
2628         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
2629
2630         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
2631         This supports apps that need pointers to strtoimax and strtoumax,
2632         and ports to HP-UX 11.00 64.bit, which has macros that expand to
2633         nonexistent functions.  See
2634         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
2635         et seq.
2636         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
2637         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
2638         a macro.
2639         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
2640
2641 2011-04-25  Simon Josefsson  <simon@josefsson.org>
2642
2643         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
2644
2645 2011-04-25  Bruno Haible  <bruno@clisp.org>
2646
2647         strtol, strtoul: Mark modules as obsolete.
2648         * modules/strtol (Status, Notice): New sections.
2649         * modules/strtoul (Status, Notice): New sections.
2650
2651 2011-04-25  Bruno Haible  <bruno@clisp.org>
2652
2653         strtod: Remove check for strtod, unless supporting old platforms.
2654         * modules/strtod-obsolete: New file.
2655         * m4/strtod-obsolete.m4: New file.
2656         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
2657         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
2658         * modules/strtod (Depends-on): Add strtod-obsolete.
2659         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
2660
2661 2011-04-25  Bruno Haible  <bruno@clisp.org>
2662
2663         strcase: Make module obsolete.
2664         * modules/strcase (Status, Notice): New sections.
2665
2666 2011-04-25  Bruno Haible  <bruno@clisp.org>
2667
2668         dup2: Remove check for dup2, unless supporting old obsolete platforms.
2669         * modules/dup2-obsolete: New file.
2670         * m4/dup2-obsolete.m4: New file.
2671         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
2672         gl_FUNC_DUP2_OBSOLETE is not also defined.
2673         * modules/dup2 (Depends-on): Add dup2-obsolete.
2674         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
2675
2676 2011-04-25  Bruno Haible  <bruno@clisp.org>
2677
2678         strnlen: Avoid memchr related link error on old obsolete platforms.
2679         * modules/memchr-obsolete: New file.
2680         * m4/memchr-obsolete.m4: New file.
2681         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
2682         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
2683         * modules/memchr (Depends-on): Add memchr-obsolete.
2684         * modules/strnlen (Depends-on): Likewise.
2685         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
2686
2687 2011-04-25  Jim Meyering  <meyering@redhat.com>
2688
2689         maint.mk: makefile_at_at_check extend and clean up
2690         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
2691         in addition to */Makefile.am.
2692         Exempt legitimate uses of @VAR@ notation, e.g.,
2693         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
2694         Remove obsolete coreutils-specific comment.
2695         Prompted by discussion here:
2696         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
2697
2698 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
2699
2700         strtoul: remove dependency on strtol
2701         This is so that 'configure' need not check for strtol merely because
2702         the application needs strtoul.
2703         * modules/strtoul (Files): Add lib/strtol.c.
2704         (Depends-on): Remove strtol.
2705
2706         strtoull: remove dependency on strtoul
2707         This is like the strtoll change.
2708         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
2709         (Depends-on): Remove strtoul.
2710
2711         strtoll: remove dependency on strtol
2712         This is so that 'configure' need not check for strtol merely because
2713         the application needs strtoll.
2714         * modules/strtoll (Files): Add lib/strtol.c.
2715         (Depends-on): Remove strtol.
2716
2717 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
2718
2719         inttypes: Move some configure check to module 'imaxdiv'.
2720         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
2721         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
2722         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
2723
2724 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
2725
2726         inttypes: Move some configure check to module 'imaxabs'.
2727         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
2728         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
2729         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
2730
2731 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
2732
2733         inttypes: Remove configure tests that are not needed since 2009-12-31.
2734         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
2735         gl_cv_header_working_inttypes_h.
2736
2737 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
2738
2739         * modules/strnlen (Depends-on): Remove memchr.
2740         The strnlen implementation doesn't need the memchr module's fixes; see
2741         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
2742
2743         strtol: remove dependency on wchar
2744         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
2745         * modules/strtol (Depends-on): Remove wchar.
2746
2747 2011-04-21  Eric Blake  <eblake@redhat.com>
2748
2749         passfd: fix test regression on Linux
2750         * modules/passfd-tests (configure.ac): Correct socketpair check.
2751
2752         passfd: speed up configure and drop unused code
2753         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
2754         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
2755         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
2756         Instead of probing at configure for unix_scm_rights_bsd44_way,
2757         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
2758         check to a struct member probe.
2759         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
2760         (sendfd, recvfd): Update preprocessor checks.
2761         * modules/passfd (Files): Reflect rename, and drop unused file.
2762         (Depends-on): Drop unused dependency.
2763
2764         passfd: allow compilation on mingw
2765         * modules/sys_socket (Depends-on): Add sys_uio.
2766         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
2767         iovec and a minimal struct msghdr.
2768         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
2769         * tests/test-sys_socket.c (main): Enhance test.
2770         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
2771         guaranteed to provide what we need.
2772         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
2773         * modules/passfd-tests (Depends-on): Add sys_wait.
2774         * tests/test-passfd.c (main): Skip test on mingw, for now.
2775         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
2776         partial 'struct msghdr' implementation.
2777
2778         sys_uio: new module
2779         * modules/sys_uio: New module.
2780         * modules/sys_uio-tests: Likewise.
2781         * lib/sys_uio.in.h: New file.
2782         * m4/sys_uio_h.m4: Likewise.
2783         * tests/test-sys_uio.c: Likewise.
2784         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
2785         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
2786
2787 2011-04-20  Jim Meyering  <meyering@redhat.com>
2788
2789         useless-if-before-free: avoid false-positive
2790         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
2791         disjunct so that it too requires a terminating ";".  Without that,
2792         this script would identify as useless one statement from gcc that
2793         was not:
2794           if (aligned_ptr)
2795             free (((void **) aligned_ptr) [-1]);
2796
2797 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
2798
2799         doc: update users.txt.
2800         * users.txt: Add barcode.
2801
2802 2011-04-19  Bruno Haible  <bruno@clisp.org>
2803
2804         ioctl: Remove link dependency on native Windows.
2805         * lib/fd-hook.h: Renamed from lib/close-hook.h.
2806         (gl_close_fn, gl_ioctl_fn): New types.
2807         (struct fd_hook): Renamed from struct close_hook. Change type of
2808         private_close_fn field. Add private_ioctl_fn field.
2809         (close_hook_fn): Add parameter for primary close method.
2810         (execute_close_hooks, execute_all_close_hooks): Likewise.
2811         (ioctl_hook_fn): New type.
2812         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
2813         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
2814         argument.
2815         (unregister_fd_hook): Renamed from unregister_close_hook.
2816         * lib/fd-hook.c: Renamed from lib/close-hook.c.
2817         Don't include <unistd.h>.
2818         (close): Remove undef.
2819         (anchor): Update.
2820         (execute_close_hooks): Add argument for primary close method.
2821         (execute_all_close_hooks): Likewise.
2822         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
2823         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
2824         argument. Allow each argument to be NULL.
2825         (unregister_fd_hook): Renamed from unregister_close_hook.
2826         * lib/close.c (rpl_close): Pass 'close' function pointer to
2827         execute_all_close_hooks.
2828         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
2829         (primary_ioctl): New function.
2830         (ioctl): Don't call ioctlsocket here. Instead, call
2831         execute_all_ioctl_hooks.
2832         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
2833         close method.
2834         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
2835         (fd_sockets_hook): Renamed from close_sockets_hook.
2836         (gl_sockets_startup, gl_sockets_cleanup): Update.
2837         * modules/fd-hook: Renamed from modules/close-hook. Update.
2838         * modules/close (Depends-on): Add fd-hook, remove close-hook.
2839         * modules/sockets (Depends-on): Likewise.
2840         * modules/ioctl (Depends-on): Add fd-hook.
2841         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
2842         GNULIB_SOCKET.
2843
2844 2011-04-19  Bruno Haible  <bruno@clisp.org>
2845
2846         Move the support of O_NONBLOCK in open() to the 'open' module.
2847         * modules/nonblocking (Depends-on): Remove 'open'.
2848         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
2849         gl_cv_have_open_O_NONBLOCK.
2850         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
2851         O_NONBLOCK support.
2852         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
2853
2854 2011-04-17  Bruno Haible  <bruno@clisp.org>
2855
2856         pipe2: Simplify code.
2857         * lib/pipe2.c (pipe2): Reduce code duplication.
2858
2859 2011-04-17  Bruno Haible  <bruno@clisp.org>
2860
2861         nonblocking: Add comment.
2862         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
2863
2864 2011-04-17  Bruno Haible  <bruno@clisp.org>
2865
2866         nonblocking: Add tests for sockets.
2867         * tests/test-nonblocking-socket.sh: New file.
2868         * tests/test-nonblocking-socket-main.c: New file.
2869         * tests/test-nonblocking-socket-child.c: New file.
2870         * tests/test-nonblocking-socket.h: New file.
2871         * tests/socket-server.h: New file.
2872         * tests/socket-client.h: New file.
2873         * modules/nonblocking-socket-tests: New file.
2874         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
2875
2876 2011-04-17  Bruno Haible  <bruno@clisp.org>
2877
2878         nonblocking: Add tests for pipes.
2879         * tests/test-nonblocking-pipe.sh: New file.
2880         * tests/test-nonblocking-pipe-main.c: New file.
2881         * tests/test-nonblocking-pipe-child.c: New file.
2882         * tests/test-nonblocking-pipe.h: New file.
2883         * tests/test-nonblocking-writer.h: New file.
2884         * tests/test-nonblocking-reader.h: New file.
2885         * tests/test-nonblocking-misc.h: New file.
2886         * modules/nonblocking-pipe-tests: New file.
2887         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
2888
2889 2011-04-16  Bruno Haible  <bruno@clisp.org>
2890
2891         gettext: Clarify the needed programmer actions.
2892         * modules/gettext (Notice): New field.
2893         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
2894
2895 2011-04-16  Bruno Haible  <bruno@clisp.org>
2896
2897         strchrnul: Tweak last commit.
2898         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
2899         bug.
2900         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
2901         as in _GL_FUNCDECL_SYS.
2902         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
2903         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
2904
2905 2011-04-15  Eric Blake  <eblake@redhat.com>
2906
2907         strchrnul: work around cygwin bug
2908         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
2909         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
2910         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
2911         * modules/string (Makefile.am): Substitute it.
2912         * lib/string.in.h (strchrnul): Use it.
2913
2914 2011-04-15  Bruno Haible  <bruno@clisp.org>
2915
2916         Don't require lib/stdio-write.c when only module 'stdio' is used.
2917         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
2918         invocation.
2919         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
2920
2921 2011-04-14  Bruno Haible  <bruno@clisp.org>
2922
2923         Support non-blocking pipe I/O in read() on native Windows.
2924         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
2925         (read): New declaration.
2926         * lib/read.c: New file.
2927         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
2928         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
2929         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
2930         vscanf): New declarations.
2931         * lib/stdio-read.c: New file.
2932         * m4/read.m4: New file.
2933         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
2934         REPLACE_READ.
2935         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
2936         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
2937         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
2938         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
2939         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
2940         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
2941         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
2942         * modules/read: New file.
2943         * modules/nonblocking (Files): Add lib/stdio-read.c.
2944         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
2945         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
2946         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
2947         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
2948         * modules/pread (Depends-on): Add read.
2949         * modules/safe-read (Depends-on): Likewise.
2950         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
2951         gets, scanf, vfscanf, vscanf): Verify signatures.
2952         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
2953         problem with non-blocking pipes.
2954         * doc/posix-functions/fgetc.texi: Likewise.
2955         * doc/posix-functions/fgets.texi: Likewise.
2956         * doc/posix-functions/fread.texi: Likewise.
2957         * doc/posix-functions/fscanf.texi: Likewise.
2958         * doc/posix-functions/getc.texi: Likewise.
2959         * doc/posix-functions/getchar.texi: Likewise.
2960         * doc/posix-functions/gets.texi: Likewise.
2961         * doc/posix-functions/scanf.texi: Likewise.
2962         * doc/posix-functions/vfscanf.texi: Likewise.
2963         * doc/posix-functions/vscanf.texi: Likewise.
2964
2965 2011-04-14  Bruno Haible  <bruno@clisp.org>
2966
2967         Support non-blocking pipe I/O in write() on native Windows.
2968         * lib/write.c (rpl_write): Split a write request that failed merely
2969         because the byte count was larger than the pipe buffer's size.
2970         * doc/posix-functions/write.texi: Mention the problem with large byte
2971         counts.
2972
2973 2011-04-14  Bruno Haible  <bruno@clisp.org>
2974
2975         wchar: Ensure that wchar_t gets defined on uClibc.
2976         * lib/wchar.in.h: On uClibc, include <stddef.h>.
2977         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
2978
2979 2011-04-13  Bruno Haible  <bruno@clisp.org>
2980
2981         safe-write, full-read: Avoid unnecessary compilation units.
2982         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
2983         (Depends-on): Remove safe-read. Add ssize_t.
2984         * modules/full-read (Files): Add lib/full-write.c.
2985         (Depends-on): Add full-write.
2986
2987 2011-04-13  Bruno Haible  <bruno@clisp.org>
2988
2989         Support non-blocking pipe I/O and SIGPIPE in pwrite().
2990         * modules/pwrite (Depends-on): Add 'write'.
2991
2992 2011-04-13  Bruno Haible  <bruno@clisp.org>
2993
2994         Support non-blocking pipe I/O in write() on native Windows.
2995         * lib/unistd.in.h (write): Enable replacement also if
2996         GNULIB_UNISTD_H_NONBLOCKING is 1.
2997         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
2998         (rpl_write): When failing to write on a non-blocking pipe, change
2999         errno from ENOSPC to EAGAIN.
3000         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
3001         putchar, puts, vfprintf, vprintf): Enable replacement also if
3002         GNULIB_STDIO_H_NONBLOCKING is 1.
3003         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
3004         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
3005         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
3006         CALL_WITH_SIGPIPE_EMULATION.
3007         (CALL_WITH_SIGPIPE_EMULATION): Use them.
3008         * m4/nonblocking.m4: New file.
3009         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
3010         for non-blocking I/O support.
3011         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
3012         GNULIB_UNISTD_H_NONBLOCKING.
3013         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
3014         required for non-blocking I/O support.
3015         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
3016         * modules/nonblocking (Files): Add m4/nonblocking.m4,
3017         lib/stdio-write.c, m4/asm-underscore.m4.
3018         (Depends-on): Add stdio, unistd.
3019         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
3020         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
3021         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
3022         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
3023         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
3024         problem with non-blocking pipes.
3025         * doc/posix-functions/fputc.texi: Likewise.
3026         * doc/posix-functions/fputs.texi: Likewise.
3027         * doc/posix-functions/fwrite.texi: Likewise.
3028         * doc/posix-functions/printf.texi: Likewise.
3029         * doc/posix-functions/putc.texi: Likewise.
3030         * doc/posix-functions/putchar.texi: Likewise.
3031         * doc/posix-functions/puts.texi: Likewise.
3032         * doc/posix-functions/vfprintf.texi: Likewise.
3033         * doc/posix-functions/vprintf.texi: Likewise.
3034         * doc/posix-functions/write.texi: Likewise.
3035
3036 2011-04-10  Jim Meyering  <meyering@redhat.com>
3037
3038         maint.mk: prohibit doubled words
3039         Detect them also when they're separated by a newline.
3040         There are 3 ways to customize it:
3041           - disable the test on a per file basis, as usual with rules using
3042             $(VC_LIST_EXCEPT)
3043           - replace the default doubled-word-selecting regexp (affects all files)
3044           - ignore a particular file-vs-doubled-word match
3045         I nearly used that last one to ignore the "is is" match in
3046         coreutils' NEWS file, since the text was "ls -is is ..."
3047         To do that, I would have added this line to cfg.mk:
3048           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
3049         but it would have ignored any "is is" match in NEWS.
3050         Low probability, but still...
3051         Instead, I changed the text, slightly:
3052           -  ls -is is now consistent with ls -lis in ignoring values returned
3053           +  "ls -is" is now consistent with ls -lis in ignoring values returned
3054         * top/maint.mk (prohibit_double_word_RE_): Provide default.
3055         (prohibit_doubled_word_): Define.
3056         (sc_prohibit_doubled_word): New rule.
3057         (sc_prohibit_the_the): Remove.  Subsumed by the above.
3058
3059 2011-04-10  Jim Meyering  <meyering@redhat.com>
3060
3061         maint: fix doubled-word typo in comment
3062         * m4/gethostname.m4: s/is is/it is/
3063         * m4/getdomainname.m4: Likewise.
3064
3065 2011-04-10  Jim Meyering  <meyering@redhat.com>
3066
3067         maint: remove doubled word: s/it it/it/
3068         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
3069
3070 2011-04-10  Jim Meyering  <meyering@redhat.com>
3071
3072         maint.mk: remove useless semicolon and backslash
3073         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
3074         semicolon and backslash.
3075
3076 2011-04-10  Bruno Haible  <bruno@clisp.org>
3077
3078         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
3079         * modules/stdint-tests (Depends-on): Add wchar.
3080
3081 2011-04-10  Jim Meyering  <meyering@redhat.com>
3082
3083         maint: remove doubled words in comments, e.g., s/a a/a/
3084         * lib/strptime.c (day_of_the_week): s/the the/the/
3085         * tests/test-chown.h (test_chown): s/a a/a/
3086
3087         test-chown.h: correct a cast
3088         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
3089         when the destination is a stat.st_gid.
3090
3091 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
3092
3093         getaddrinfo: Fix test for sa_len member.
3094         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
3095         include <sys/types.h> before <sys/socket.h>.
3096
3097 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
3098
3099         maint: change "can not" to "cannot"
3100         * doc/posix-functions/iconv.texi (iconv): This one crossed line
3101         boundaries.
3102
3103 2011-04-09  Jim Meyering  <meyering@redhat.com>
3104
3105         maint: change "a a" to "a"
3106         * tests/test-lchown.h (test_lchown): s/a a/a/
3107
3108         maint.mk: prohibit \<the the\>
3109         * top/maint.mk (sc_prohibit_the_the): New rule.
3110
3111         maint: fix "the the" in comment
3112         * lib/count-one-bits.h: s/the the/the/
3113
3114         maint: change "can not" to "cannot"
3115         But do not change the occurrences in maintain.texi or in
3116         build-aux/po/Makefile.in.in, which I presume comes from gettext.
3117         * doc/gnulib-tool.texi: s/can not/cannot/
3118         * doc/posix-functions/accept.texi (accept): Likewise.
3119         * doc/posix-functions/socket.texi (socket): Likewise.
3120         * lib/mbrtowc.c: Likewise.
3121
3122         maint.mk: prohibit use of "can not"
3123         * top/maint.mk (sc_prohibit_can_not): New rule.
3124         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
3125
3126 2011-04-09  Bruno Haible  <bruno@clisp.org>
3127
3128         careadlinkat: Guard against misuse of careadlinkatcwd.
3129         * lib/careadlinkat.c: Include <stdlib.h>.
3130         (careadlinkatcwd): Check that the fd argument is as expected.
3131
3132 2011-04-09  Bruno Haible  <bruno@clisp.org>
3133
3134         careadlinkat: Use common coding style.
3135         * lib/careadlinkat.c: Move gnulib includes after system includes.
3136
3137 2011-04-09  Bruno Haible  <bruno@clisp.org>
3138
3139         careadlinkat: Clarify specification.
3140         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
3141         (careadlinkatcwd): Add comment.
3142         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
3143
3144 2011-04-09  Bruno Haible  <bruno@clisp.org>
3145
3146         areadlinkat: Avoid link error on many platforms.
3147         * modules/areadlinkat (Depends-on): Add areadlink.
3148
3149 2011-04-09  Bruno Haible  <bruno@clisp.org>
3150
3151         allocator, careadlinkat: Fix double-inclusion guard.
3152         * lib/allocator.h: Fix double-inclusion guard.
3153         * lib/careadlinkat.h: Likewise.
3154
3155 2011-04-09  Bruno Haible  <bruno@clisp.org>
3156
3157         relocatable-prog-wrapper: Update after module 'areadlink' changed.
3158         * lib/relocwrapper.c: Update dependencies hierarchy.
3159         * build-aux/install-reloc: Update list of files to be compiled.
3160         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
3161         lib/allocator.[hc].
3162
3163 2011-04-08  Eric Blake  <eblake@redhat.com>
3164
3165         strftime: silence gnulib-tool warning
3166         * modules/strftime-tests (Depends-on): Drop automatic dependency.
3167
3168 2011-04-08  Bruno Haible  <bruno@clisp.org>
3169
3170         verify: Fix syntax error with GCC 4.6 in C++ mode.
3171         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
3172         (HAVE_STATIC_ASSERT): New macro.
3173         (verify_true, verify): Use 'static_assert' if it is supported and
3174         '_Static_assert' is not supported.
3175
3176 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
3177
3178         allocator: New module.
3179         * modules/allocator, lib/allocator.c: New files.
3180         * lib/allocator.h (stdlib_allocator): New decl.
3181         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
3182         Remove.  Do not include <stdlib.h>.
3183         (careadlinkat): Use stdlib_allocator instead of rolling our own.
3184         * modules/careadlinkat (Files): Remove lib/allocator.h.
3185         (Depends-on): Add allocator.
3186
3187         stdlib: let modules use system malloc, realloc
3188         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
3189         if !_GL_USE_STDLIB_ALLOC.
3190         (malloc, realloc): Limit this change to a smaller scope.
3191
3192         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
3193         (malloc, realloc): Don't #undef; no longer needed.
3194         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
3195         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
3196         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
3197         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
3198         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
3199         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
3200         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
3201         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
3202
3203         careadlinkat: rename members to avoid problem
3204         * lib/allocator.h (struct allocator): Rename members from
3205         malloc/realloc to allocate/reallocate, to avoid problems if malloc
3206         and realloc are #define'd.  Reported by Eric Blake in
3207         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
3208         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
3209
3210 2011-04-08  Eric Blake  <eblake@redhat.com>
3211
3212         nonblocking: reduce dependency
3213         * tests/test-nonblocking.c: Only test sockets when in use.
3214         * modules/nonblocking-tests (Depends-on): Drop socket.
3215         (Makefile.am): Link even if sockets are not present.
3216         * modules/pipe2-tests (Makefile.am): Likewise.
3217         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
3218
3219         pipe2: fix O_NONBLOCK support on mingw
3220         * modules/pipe2 (Depends-on): Add nonblocking.
3221         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
3222         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
3223         * tests/test-nonblocking.c (main): Likewise.
3224         * modules/pipe2-tests (Makefile.am): Avoid link failure.
3225
3226         fcntl-h: fix O_ACCMODE on cygwin
3227         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
3228         * lib/fcntl.in.h (O_ACCMODE): Fix it.
3229
3230         pipe-filter: drop O_NONBLOCK workarounds
3231         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
3232         * modules/pipe-filter-ii (Depends-on): Likewise.
3233         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
3234
3235         nonblocking: provide O_NONBLOCK for mingw
3236         * modules/nonblocking (Depends-on): Add open.
3237         (configure.ac): Set new witness macro.
3238         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
3239         * modules/fcntl-h (Makefile.am): Substitute it.
3240         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
3241         nonblocking module is in use.
3242         * lib/nonblocking.c: Adjust portability test.
3243         * lib/open.c (open): Don't let native open see gnulib flag.
3244         * tests/test-fcntl-h.c (main): Enhance test.
3245         * tests/test-open.h (test_open): Likewise.
3246         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
3247
3248         careadlinkat: fix compilation error on mingw
3249         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
3250         within struct allocator.
3251
3252 2011-04-06  Eric Blake  <eblake@redhat.com>
3253
3254         binary-io: relicense under LGPLv2+
3255         * modules/binary-io (License): Relax to LGPLv2+.
3256         Requested for libvirt, and required by pipe2.
3257
3258 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
3259
3260         verify: use _Static_assert if available
3261         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
3262         (verify_true, verify): Use it if available.  This generates better
3263         diagnostics with GCC 4.6.0 and later.
3264
3265 2011-04-05  Bruno Haible  <bruno@clisp.org>
3266
3267         Remove leftover generated .h files after config.status changed.
3268
3269         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
3270         GL_GENERATE_ALLOCA_H.
3271         * modules/alloca-opt (Makefile.am): Remove alloca.h if
3272         GL_GENERATE_ALLOCA_H evaluates to false.
3273
3274         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
3275         GL_GENERATE_ARGZ_H.
3276         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
3277         evaluates to false.
3278
3279         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
3280         GL_GENERATE_BYTESWAP_H.
3281         * modules/byteswap (Makefile.am): Remove byteswap.h if
3282         GL_GENERATE_BYTESWAP_H evaluates to false.
3283
3284         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
3285         GL_GENERATE_ERRNO_H.
3286         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
3287         evaluates to false.
3288
3289         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
3290         GL_GENERATE_FLOAT_H.
3291         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
3292         evaluates to false.
3293
3294         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
3295         GL_GENERATE_FNMATCH_H.
3296         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
3297         GL_GENERATE_FNMATCH_H evaluates to false.
3298
3299         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
3300         GL_GENERATE_GLOB_H.
3301         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
3302         evaluates to false.
3303
3304         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
3305         automake conditional GL_GENERATE_ICONV_H.
3306         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
3307         evaluates to false.
3308
3309         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
3310         GL_GENERATE_NETINET_IN_H.
3311         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
3312         GL_GENERATE_NETINET_IN_H evaluates to false.
3313
3314         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
3315         conditional GL_GENERATE_PTHREAD_H.
3316         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
3317         * modules/pthread (Makefile.am): Remove pthread.h if
3318         GL_GENERATE_PTHREAD_H evaluates to false.
3319
3320         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
3321         GL_GENERATE_SCHED_H.
3322         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
3323         evaluates to false.
3324
3325         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
3326         conditional GL_GENERATE_SELINUX_CONTEXT_H.
3327         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
3328         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
3329
3330         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
3331         GL_GENERATE_STDARG_H.
3332         * modules/stdarg (Makefile.am): Remove stdarg.h if
3333         GL_GENERATE_STDARG_H evaluates to false.
3334
3335         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
3336         GL_GENERATE_STDBOOL_H.
3337         * modules/stdbool (Makefile.am): Remove stdbool.h if
3338         GL_GENERATE_STDBOOL_H evaluates to false.
3339
3340         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
3341         conditional GL_GENERATE_STDDEF_H.
3342         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
3343         * modules/stddef (Makefile.am): Remove stddef.h if
3344         GL_GENERATE_STDDEF_H evaluates to false.
3345
3346         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
3347         GL_GENERATE_STDINT_H.
3348         * modules/stdint (Makefile.am): Remove stdint.h if
3349         GL_GENERATE_STDINT_H evaluates to false.
3350
3351         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
3352         GL_GENERATE_SYSEXITS_H.
3353         * modules/sysexits (Makefile.am): Remove sysexits.h if
3354         GL_GENERATE_SYSEXITS_H evaluates to false.
3355
3356         Reported by Karl Berry and Ralf Wildenhues.
3357
3358 2011-04-05  Bruno Haible  <bruno@clisp.org>
3359
3360         Ensure to rebuild generated .h files when config.status has changed.
3361         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
3362         config.status.
3363         * modules/ctype (Makefile.am): Likewise.
3364         * modules/dirent (Makefile.am): Likewise.
3365         * modules/errno (Makefile.am): Likewise.
3366         * modules/fcntl-h (Makefile.am): Likewise.
3367         * modules/float (Makefile.am): Likewise.
3368         * modules/getopt-posix (Makefile.am): Likewise.
3369         * modules/glob (Makefile.am): Likewise.
3370         * modules/iconv-h (Makefile.am): Likewise.
3371         * modules/inttypes (Makefile.am): Likewise.
3372         * modules/langinfo (Makefile.am): Likewise.
3373         * modules/locale (Makefile.am): Likewise.
3374         * modules/math (Makefile.am): Likewise.
3375         * modules/netdb (Makefile.am): Likewise.
3376         * modules/netinet_in (Makefile.am): Likewise.
3377         * modules/poll-h (Makefile.am): Likewise.
3378         * modules/pthread (Makefile.am): Likewise.
3379         * modules/pty (Makefile.am): Likewise.
3380         * modules/sched (Makefile.am): Likewise.
3381         * modules/search (Makefile.am): Likewise.
3382         * modules/selinux-h (Makefile.am): Likewise.
3383         * modules/signal (Makefile.am): Likewise.
3384         * modules/spawn (Makefile.am): Likewise.
3385         * modules/stdarg (Makefile.am): Likewise.
3386         * modules/stdbool (Makefile.am): Likewise.
3387         * modules/stddef (Makefile.am): Likewise.
3388         * modules/stdint (Makefile.am): Likewise.
3389         * modules/stdio (Makefile.am): Likewise.
3390         * modules/stdlib (Makefile.am): Likewise.
3391         * modules/string (Makefile.am): Likewise.
3392         * modules/strings (Makefile.am): Likewise.
3393         * modules/sys_file (Makefile.am): Likewise.
3394         * modules/sys_ioctl (Makefile.am): Likewise.
3395         * modules/sys_select (Makefile.am): Likewise.
3396         * modules/sys_socket (Makefile.am): Likewise.
3397         * modules/sys_stat (Makefile.am): Likewise.
3398         * modules/sys_time (Makefile.am): Likewise.
3399         * modules/sys_times (Makefile.am): Likewise.
3400         * modules/sys_utsname (Makefile.am): Likewise.
3401         * modules/sys_wait (Makefile.am): Likewise.
3402         * modules/sysexits (Makefile.am): Likewise.
3403         * modules/termios (Makefile.am): Likewise.
3404         * modules/time (Makefile.am): Likewise.
3405         * modules/unistd (Makefile.am): Likewise.
3406         * modules/wchar (Makefile.am): Likewise.
3407         * modules/wctype-h (Makefile.am): Likewise.
3408         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
3409
3410 2011-04-05  Bruno Haible  <bruno@clisp.org>
3411
3412         pipe2: Relicense under LGPLv2+.
3413         * modules/pipe2 (License): Change to LGPLv2+.
3414         Requested by Eric Blake, for libvirt.
3415
3416 2011-04-05  Bruce Korb  <bkorb@gnu.org>
3417
3418         bootstrap: compute gnulib_extra_files after updating build_aux
3419         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
3420         change build_aux or also supply gnulib_extra_files.  Handle correctly.
3421
3422 2011-04-05  Eric Blake  <eblake@redhat.com>
3423
3424         bootstrap: preserve git whitelist item sorting
3425         * build-aux/bootstrap (sort_patterns): New function.
3426         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
3427
3428 2011-04-05  Simon Josefsson  <simon@josefsson.org>
3429
3430         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
3431         sc_space_tab check.
3432
3433 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
3434
3435         areadlink, areadlinkat: rewrite in terms of careadlinkat
3436         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
3437         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
3438         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
3439         (malloc, realloc): Remove #undefs.
3440         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
3441         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
3442         readlink, ssize_t, stdint, unistd.
3443         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
3444         areadlink, stdint.
3445
3446         careadlinkat: new module
3447         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
3448         * modules/careadlinkat: New files, written by me with
3449         a review and feedback from Ben Pfaff in
3450         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
3451
3452 2011-04-01  Bruno Haible  <bruno@clisp.org>
3453
3454         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
3455         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
3456         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
3457         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
3458         Reported by Bruce Korb <bruce.korb@gmail.com>.
3459
3460 2011-04-01  Bruno Haible  <bruno@clisp.org>
3461
3462         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
3463         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
3464         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
3465         * modules/wcpcpy (Depends-on): Add extensions.
3466         * modules/wcpncpy (Depends-on): Likewise.
3467         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
3468         systems.
3469         * doc/posix-functions/wcpncpy.texi: Likewise.
3470         * doc/posix-functions/wcwidth.texi: Likewise.
3471
3472 2011-03-31  Eric Blake  <eblake@redhat.com>
3473
3474         nonblocking: fix mingw test failures
3475         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
3476         non-blocking flag on regular file.
3477         (get_nonblocking_flag): Set errno on invalid fd.
3478         * tests/test-nonblocking.c (main): Avoid test failure on
3479         directories if fchdir is not active.
3480         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
3481
3482 2011-03-31  Bruno Haible  <bruno@clisp.org>
3483
3484         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
3485         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
3486         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
3487         Reported by Simon Josefsson <simon@josefsson.org>.
3488
3489 2011-03-31  Bruno Haible  <bruno@clisp.org>
3490         and Eric Blake  <eblake@redhat.com>
3491
3492         nonblocking: new module
3493         * modules/nonblocking: New module.
3494         * modules/nonblocking-tests: Likewise.
3495         * lib/nonblocking.h: New file.
3496         * lib/nonblocking.c: Likewise.
3497         * tests/test-nonblocking.c: New test.
3498         * lib/ioctl.c (ioctl) [mingw]: Update comment.
3499
3500 2011-03-30  Bruno Haible  <bruno@clisp.org>
3501
3502         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
3503         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
3504         instead of 'printf' format for GCC >= 4.4.
3505         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
3506         (fprintf, printf, vfprintf, vprintf): Declare with
3507         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
3508         the system's vfprintf() function.
3509         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
3510
3511 2011-03-30  Eric Blake  <eblake@redhat.com>
3512
3513         passfd: fix scoping bug
3514         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
3515         before sendmsg/recvmsg.
3516
3517         passfd: standardize coding conventions
3518         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
3519         can be learned at compile time.
3520         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
3521         ifdefs.
3522         (sendfd, recvfd): Follow gnulib code conventions.
3523
3524         passfd: fix incorrect sendmsg arguments
3525         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
3526         incorrect msg_controllen value.
3527         * modules/passfd-tests (Depends-on): Check for alarm.
3528         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
3529         Reported by Bastien ROUCARIES.
3530
3531 2011-03-30  Bruno Haible  <bruno@clisp.org>
3532
3533         c-strcasestr: Relicense under LGPLv2+.
3534         * modules/c-strcasestr (License): Change to LGPLv2+.
3535         Requested by Eric Blake, for libvirt.
3536
3537 2011-03-30  Simon Josefsson  <simon@josefsson.org>
3538
3539         * users.txt: Add libidn2.  Fix libtasn1 link.
3540
3541 2011-03-30  Jim Meyering  <meyering@redhat.com>
3542
3543         tests: readlink* ("",... fails with EINVAL on newer kernels
3544         readlink and readlinkat have typically failed with ENOENT for
3545         the invalid, empty file name,  "".  However, with the advent
3546         of linux-2.6.39, they fail with EINVAL.
3547         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
3548         when operating on the empty file name.
3549         * tests/test-readlink.h (test_readlink): Likewise.
3550
3551 2011-03-29  Bruno Haible  <bruno@clisp.org>
3552
3553         Relicense some modules under LGPLv2+, for libidn2.
3554         * modules/array-mergesort (License): Change to LGPLv2+.
3555         * modules/c-strcaseeq (License): Likewise.
3556         * modules/striconveh (License): Likewise.
3557         * modules/striconveha (License): Likewise.
3558         * modules/uniconv/base (License): Likewise.
3559         * modules/uniconv/u8-conv-from-enc (License): Likewise.
3560         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
3561         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
3562         * modules/unictype/base (License): Likewise.
3563         * modules/unictype/bidiclass-of (License): Likewise.
3564         * modules/unictype/category-M (License): Likewise.
3565         * modules/unictype/category-none (License): Likewise.
3566         * modules/unictype/category-of (License): Likewise.
3567         * modules/unictype/category-test (License): Likewise.
3568         * modules/unictype/category-test-withtable (License): Likewise.
3569         * modules/unictype/combining-class (License): Likewise.
3570         * modules/unictype/joiningtype-of (License): Likewise.
3571         * modules/unictype/scripts (License): Likewise.
3572         * modules/uninorm/base (License): Likewise.
3573         * modules/uninorm/canonical-decomposition (License): Likewise.
3574         * modules/uninorm/composition (License): Likewise.
3575         * modules/uninorm/decompose-internal (License): Likewise.
3576         * modules/uninorm/decomposition-table (License): Likewise.
3577         * modules/uninorm/nfc (License): Likewise.
3578         * modules/uninorm/nfd (License): Likewise.
3579         * modules/uninorm/u32-normalize (License): Likewise.
3580         * modules/unistr/base (License): Likewise.
3581         * modules/unistr/u32-cpy (License): Likewise.
3582         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
3583         * modules/unistr/u32-to-u8 (License): Likewise.
3584         * modules/unistr/u32-uctomb (License): Likewise.
3585         * modules/unistr/u8-check (License): Likewise.
3586         * modules/unistr/u8-mblen (License): Likewise.
3587         * modules/unistr/u8-mbtouc (License): Likewise.
3588         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
3589         * modules/unistr/u8-mbtoucr (License): Likewise.
3590         * modules/unistr/u8-prev (License): Likewise.
3591         * modules/unistr/u8-strlen (License): Likewise.
3592         * modules/unistr/u8-to-u32 (License): Likewise.
3593         * modules/unistr/u8-uctomb (License): Likewise.
3594         * modules/unitypes (License): Likewise.
3595         Requested by Simon Josefsson.
3596
3597 2011-03-29  Simon Josefsson  <simon@josefsson.org>
3598
3599         lib-symbol-visibility: Add a notice.
3600         * modules/lib-symbol-visibility (Notice): New field.
3601
3602 2011-03-29  Bruno Haible  <bruno@clisp.org>
3603
3604         getaddrinfo: Doc fix.
3605         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
3606         section "fixed in Gnulib".
3607
3608 2011-03-28  Simon Josefsson  <simon@josefsson.org>
3609
3610         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
3611         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
3612
3613 2011-03-26  Bruno Haible  <bruno@clisp.org>
3614
3615         unictype/property-byname: Reduce the number of load-time relocations.
3616         * lib/unictype/pr_byname.c: Include <stdlib.h>.
3617         (UC_PROPERTY_INDEX_*): New enumeration values.
3618         (uc_property_byname): Convert an index from the lookup table to an
3619         uc_property_t.
3620         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
3621         values.
3622
3623 2011-03-26  Bruno Haible  <bruno@clisp.org>
3624
3625         unictype/property-byname: Allow omitted word separators and aliases.
3626         * lib/unictype/pr_byname.gperf: Add property names without word
3627         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
3628         for 'space'.
3629
3630 2011-03-26  Bruno Haible  <bruno@clisp.org>
3631
3632         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
3633         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
3634         also hyphens to space.
3635         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
3636         without spaces.
3637         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
3638
3639 2011-03-26  Bruno Haible  <bruno@clisp.org>
3640
3641         unictype/joiningtype-byname: Recognize long names as well.
3642         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
3643         a long name.
3644         * lib/unictype/joiningtype_byname.c: Include <string.h>,
3645         unictype/joiningtype_byname.h.
3646         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
3647         * lib/unictype/joiningtype_byname.gperf: New file.
3648         * modules/unictype/joiningtype-byname (Files): Add
3649         lib/unictype/joiningtype_byname.gperf.
3650         (Depends-on): Add gperf.
3651         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
3652         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
3653         long names.
3654
3655         Tests for module 'unictype/joiningtype-longname'.
3656         * modules/unictype/joiningtype-longname-tests: New file.
3657         * tests/unictype/test-joiningtype_longname.c: New file.
3658
3659         New module 'unictype/joiningtype-longname'.
3660         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
3661         * lib/unictype/joiningtype_longname.c: New file.
3662         * modules/unictype/joiningtype-longname: New file.
3663         * modules/unictype/joiningtype-all (Depends-on): Add
3664         unictype/joiningtype-longname.
3665
3666 2011-03-26  Bruno Haible  <bruno@clisp.org>
3667
3668         unictype/bidiclass-byname: Recognize long names as well.
3669         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
3670         name.
3671         * lib/unictype/bidi_byname.c: Include <string.h>,
3672         unictype/bidi_byname.h.
3673         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
3674         * lib/unictype/bidi_byname.gperf: New file.
3675         * modules/unictype/bidiclass-byname (Files): Add
3676         lib/unictype/bidi_byname.gperf.
3677         (Depends-on): Add gperf.
3678         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
3679         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
3680         long names.
3681
3682         Tests for module 'unictype/bidiclass-longname'.
3683         * modules/unictype/bidiclass-longname-tests: New file.
3684         * tests/unictype/test-bidi_longname.c: New file.
3685
3686         New module 'unictype/bidiclass-longname'.
3687         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
3688         * lib/unictype/bidi_longname.c: New file.
3689         * modules/unictype/bidiclass-longname: New file.
3690         * modules/unictype/bidiclass-all (Depends-on): Add
3691         unictype/bidiclass-longname.
3692
3693 2011-03-26  Bruno Haible  <bruno@clisp.org>
3694
3695         unictype/bidi*: Rename modules.
3696         * modules/unictype/bidiclass-all: Renamed from
3697         modules/unictype/bidicategory-all.
3698         * modules/unictype/bidiclass-name: Renamed from
3699         modules/unictype/bidiclass-name.
3700         (Description): Update.
3701         * modules/unictype/bidiclass-name-tests: Renamed from
3702         modules/unictype/bidicategory-name-tests.
3703         * modules/unictype/bidiclass-byname: Renamed from
3704         modules/unictype/bidicategory-byname.
3705         (Description): Update.
3706         * modules/unictype/bidiclass-byname-tests: Renamed from
3707         modules/unictype/bidicategory-byname-tests.
3708         * modules/unictype/bidiclass-of: Renamed from
3709         modules/unictype/bidicategory-of.
3710         (Description): Update.
3711         * modules/unictype/bidiclass-of-tests: Renamed from
3712         modules/unictype/bidicategory-of-tests.
3713         * modules/unictype/bidiclass-test: Renamed from
3714         modules/unictype/bidicategory-test.
3715         (Description): Update.
3716         * modules/unictype/bidiclass-test-tests: Renamed from
3717         modules/unictype/bidicategory-test-tests.
3718         * modules/unictype/bidicategory-all: New file, a simple redirection.
3719         * modules/unictype/bidicategory-name: Likewise.
3720         * modules/unictype/bidicategory-byname: Likewise.
3721         * modules/unictype/bidicategory-of: Likewise.
3722         * modules/unictype/bidicategory-test: Likewise.
3723         * modules/unictype/property-bidi-* (Dependencies): Update.
3724         * lib/unictype/bidi_*.c: Update comment.
3725
3726 2011-03-26  Bruno Haible  <bruno@clisp.org>
3727
3728         unictype/bidi*: Rename functions, part 2.
3729         * modules/unictype/bidicategory-name (configure.ac): Update required
3730         libunistring version.
3731         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
3732
3733 2011-03-25  Bruno Haible  <bruno@clisp.org>
3734
3735         New module 'unictype/combining-class-all'.
3736         * modules/unictype/combining-class-all: New file.
3737
3738         Tests for module 'unictype/combining-class-byname'.
3739         * modules/unictype/combining-class-byname-tests: New file.
3740         * tests/unictype/test-combiningclass_byname.c: New file.
3741
3742         New module 'unictype/combining-class-byname'.
3743         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
3744         * lib/unictype/combiningclass_byname.c: New file.
3745         * lib/unictype/combiningclass_byname.gperf: New file.
3746         * modules/unictype/combining-class-byname: New file.
3747
3748         Tests for module 'unictype/combining-class-longname'.
3749         * modules/unictype/combining-class-longname-tests: New file.
3750         * tests/unictype/test-combiningclass_longname.c: New file.
3751
3752         New module 'unictype/combining-class-longname'.
3753         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
3754         * lib/unictype/combiningclass_longname.c: New file.
3755         * modules/unictype/combining-class-longname: New file.
3756
3757         Tests for module 'unictype/combining-class-name'.
3758         * modules/unictype/combining-class-name-tests: New file.
3759         * tests/unictype/test-combiningclass_name.c: New file.
3760
3761         New module 'unictype/combining-class-name'.
3762         * lib/unictype.in.h (uc_combining_class_name): New declaration.
3763         * lib/unictype/combiningclass_name.c: New file.
3764         * modules/unictype/combining-class-name: New file.
3765
3766 2011-03-25  Bruno Haible  <bruno@clisp.org>
3767
3768         unictype/combining-class: Rename source files.
3769         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
3770         of unictype/combining.h.
3771         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
3772         Update.
3773         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
3774         * modules/unictype/combining-class (Description): Fix.
3775         (Files, Makefile.am): Update.
3776         * tests/unictype/test-combiningclass.c: Renamed from
3777         tests/unictype/test-combining.c.
3778         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
3779
3780 2011-03-25  Bruno Haible  <bruno@clisp.org>
3781
3782         unictype: Update list of canonical combining classes.
3783         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
3784
3785 2011-03-25  Bruno Haible  <bruno@clisp.org>
3786
3787         unictype/category-byname: Recognize long names as well.
3788         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
3789         a long name.
3790         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
3791         unictype/categ_byname.h.
3792         (UC_CATEGORY_INDEX_*): New enumeration values.
3793         (uc_general_category_byname): Use uc_general_category_lookup and
3794         convert from index to value.
3795         * lib/unictype/categ_byname.gperf: New file.
3796         * modules/unictype/category-byname (Files): Add
3797         lib/unictype/categ_byname.gperf.
3798         (Depends-on): Add gperf.
3799         (Makefile.am): Add rule for generating unictype/categ_byname.h.
3800         * tests/unictype/test-categ_byname.c (main): Test the recognition of
3801         long names.
3802
3803         Tests for module 'unictype/category-longname'.
3804         * modules/unictype/category-longname-tests: New file.
3805         * tests/unictype/test-categ_longname.c: New file.
3806
3807         New module 'unictype/category-longname'.
3808         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
3809         * lib/unictype/categ_longname.c: New file.
3810         * modules/unictype/category-longname: New file.
3811         * modules/unictype/category-all (Depends-on): Add it.
3812
3813 2011-03-25  Bruno Haible  <bruno@clisp.org>
3814
3815         Tests for module 'unictype/category-LC'.
3816         * modules/unictype/category-LC-tests: New file.
3817         * tests/unictype/test-categ_LC.c: New file, automatically generated.
3818
3819         New module 'unictype/category-LC'.
3820         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
3821         (UC_CATEGORY_LC): New declaration.
3822         (UC_CASED_LETTER): New macro.
3823         * lib/gen-uni-tables.c (is_category_LC): New function.
3824         (output_categories): Also handle category LC.
3825         (UC_CATEGORY_MASK_LC): New enumeration value.
3826         (general_category_byname): Also handle category LC.
3827         * lib/unictype/categ_LC.c: New file.
3828         * lib/unictype/categ_LC.h: New file, automatically generated.
3829         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
3830         category LC.
3831         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
3832         * modules/unictype/category-LC: New file.
3833         * modules/unictype/category-byname (Depends-on): Add
3834         unictype/category-LC.
3835         * modules/unictype/category-all (Depends-on): Likewise.
3836
3837 2011-03-25  Eric Blake  <eblake@redhat.com>
3838
3839         xmalloc: revert yesterday's regression
3840         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
3841         realloc's underlying behavior (allowing allocation of zero-size
3842         objects, especially if malloc-gnu is also in use).
3843
3844 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
3845
3846         maint.mk: add missing version to VC-tag
3847         * top/maint.mk: git tag was missing actual tag name; add it.
3848
3849         valgrind: do leak checking, and exit with code 1 on error (not 0)
3850         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
3851         to VALGRIND.
3852
3853 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
3854
3855         posix-modules: say what it does.
3856         * posix-modules: Add a line to the --help output saying what it does.
3857
3858 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
3859
3860         xmalloc: Do not leak if underlying realloc is C99 compatible.
3861         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
3862         This avoids a leak on C99-based systems.  See
3863         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
3864
3865 2011-03-24  Eric Blake  <eblake@redhat.com>
3866
3867         realloc: document portability problem
3868         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
3869         passing 0 size to realloc.
3870
3871 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
3872
3873         doc: update users.txt
3874         * users.txt: Add cvsps, tmpwatch
3875
3876 2011-03-23  Matt Rice  <ratmice@gmail.com>
3877
3878         doc: update users.txt
3879         * users.txt: Add gdb.
3880
3881 2011-03-23  Jim Meyering  <meyering@redhat.com>
3882
3883         doc: update users.txt
3884         Looking through matches up to the following URL (there are still
3885         several more pages), I found several projects that use gnulib:
3886         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
3887         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
3888         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
3889
3890 2011-03-22  Bruno Haible  <bruno@clisp.org>
3891
3892         unictype/bidi*: Rename functions.
3893         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
3894         uc_bidi_class, uc_is_bidi_class): New declarations.
3895         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
3896         uc_bidi_category_byname.
3897         (uc_bidi_category_byname): New function.
3898         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
3899         u_bidi_category_name.
3900         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
3901         (uc_bidi_category_name): New function.
3902         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
3903         uc_bidi_category.
3904         (uc_bidi_category): New function.
3905         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
3906         uc_is_bidi_category. Invoke uc_bidi_class.
3907         (uc_is_bidi_category): New function.
3908         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
3909         instead of uc_bidi_category_byname.
3910         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
3911         instead of uc_bidi_category_name.
3912         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
3913         uc_bidi_category.
3914         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
3915         instead of uc_is_bidi_category.
3916
3917 2011-03-21  Bruno Haible  <bruno@clisp.org>
3918
3919         New module 'unictype/joininggroup-all'.
3920         * modules/unictype/joininggroup-all: New file.
3921
3922         Tests for module 'unictype/joininggroup-of'.
3923         * modules/unictype/joininggroup-of-tests: New file.
3924         * tests/unictype/test-joininggroup_of.c: New file.
3925         * tests/unictype/test-joininggroup_of.h: New file, automatically
3926         generated by gen-uni-tables.
3927
3928         New module 'unictype/joininggroup-of'.
3929         * modules/unictype/joininggroup-of: New file.
3930         * lib/unictype/joininggroup_of.c: New file.
3931         * lib/unictype/joininggroup_of.h: New file, automatically generated by
3932         gen-uni-tables.
3933
3934         Tests for module 'unictype/joininggroup-byname'.
3935         * modules/unictype/joininggroup-byname-tests: New file.
3936         * tests/unictype/test-joininggroup_byname.c: New file.
3937
3938         New module 'unictype/joininggroup-byname'.
3939         * modules/unictype/joininggroup-byname: New file.
3940         * lib/unictype/joininggroup_byname.c: New file.
3941         * lib/unictype/joininggroup_byname.gperf: New file.
3942
3943         Tests for module 'unictype/joininggroup-name'.
3944         * modules/unictype/joininggroup-name-tests: New file.
3945         * tests/unictype/test-joininggroup_name.c: New file.
3946
3947         New module 'unictype/joininggroup-name'.
3948         * modules/unictype/joininggroup-name: New file.
3949         * lib/unictype/joininggroup_name.c: New file.
3950         * lib/unictype/joininggroup_name.h: New file.
3951
3952         New module 'unictype/joiningtype-all'.
3953         * modules/unictype/joiningtype-all: New file.
3954
3955         Tests for module 'unictype/joiningtype-of'.
3956         * modules/unictype/joiningtype-of-tests: New file.
3957         * tests/unictype/test-joiningtype_of.c: New file.
3958         * tests/unictype/test-joiningtype_of.h: New file, automatically
3959         generated by gen-uni-tables.
3960
3961         New module 'unictype/joiningtype-of'.
3962         * modules/unictype/joiningtype-of: New file.
3963         * lib/unictype/joiningtype_of.c: New file.
3964         * lib/unictype/joiningtype_of.h: New file, automatically generated by
3965         gen-uni-tables.
3966
3967         Tests for module 'unictype/joiningtype-byname'.
3968         * modules/unictype/joiningtype-byname-tests: New file.
3969         * tests/unictype/test-joiningtype_byname.c: New file.
3970
3971         New module 'unictype/joiningtype-byname'.
3972         * modules/unictype/joiningtype-byname: New file.
3973         * lib/unictype/joiningtype_byname.c: New file.
3974
3975         Tests for module 'unictype/joiningtype-name'.
3976         * modules/unictype/joiningtype-name-tests: New file.
3977         * tests/unictype/test-joiningtype_name.c: New file.
3978
3979         New module 'unictype/joiningtype-name'.
3980         * modules/unictype/joiningtype-name: New file.
3981         * lib/unictype/joiningtype_name.c: New file.
3982
3983         unictype: Add support for Arabic shaping properties.
3984         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
3985         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
3986         declarations.
3987         (UC_JOINING_GROUP_*): New enumeration values.
3988         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
3989         declarations.
3990         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
3991         (unicode_joining_type): New variable.
3992         (UC_JOINING_GROUP_*): New enumeration values.
3993         (unicode_joining_group): New variable.
3994         (fill_arabicshaping, joining_type_as_c_identifier,
3995         output_joining_type_test, output_joining_type,
3996         joining_group_as_c_identifier, output_joining_group_test,
3997         output_joining_group): New functions.
3998         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
3999         fill_arabicshaping and output_joining_type_test, output_joining_type,
4000         output_joining_group_test, output_joining_group.
4001         Reported by Simon Josefsson.
4002
4003 2011-03-21  Jim Meyering  <meyering@redhat.com>
4004
4005         strftime: fix a bug in yesterday's change
4006         * lib/strftime.c (add): Accommodate width's initial value of -1.
4007         Otherwise, nstrftime would copy uninitialized data into
4008         the result buffer.
4009
4010 2011-03-21  Jim Meyering  <meyering@redhat.com>
4011
4012         tests: add strftime-tests module
4013         * tests/test-strftime.c: New file.
4014         * modules/strftime-tests: New module.
4015
4016 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
4017
4018         strftime: don't assume a byte count fits in 'int'
4019         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
4020         found this problem by static analysis, using gcc -Wstrict-overflow
4021         (GCC 4.5.2, x86-64).  This reported an optimization that depended
4022         on an integer overflow having undefined behavior, but it turns out
4023         that the argument is a size, which might not fit in 'int' anyway,
4024
4025 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
4026
4027         stdio: don't require ignore_value around fwrite
4028
4029         This patch works around libc bug 11959
4030         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
4031         Without this patch, applications must often write
4032         ignore_value (fwrite (...)) even though the ignore_value is
4033         not helpful here.  It's common to write many objects, using
4034         fwrite/printf/etc., and then use ferror to detect output error.
4035
4036         I considered making this patch optional, but decided against it,
4037         because libc is obviously being inconsistent here: there is no
4038         reason libc should insist that user code must inspect fwrite
4039         return's value without also insisting that it inspect printf's,
4040         putchar's, etc.  If user code wants to have a strict style where
4041         all these functions' values are checked (so that ferror need not
4042         be checked), we could add support for that style in a new gnulib
4043         module, but in the meantime it's better to be consistent and to
4044         support common usage.
4045
4046         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
4047         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
4048         that we are compiling in checking mode, and if not C++, and
4049         if not already wrapping fwrite for some other reason.
4050         (fwrite): #define to rpl_fwrite if the latter is defined.
4051
4052 2011-03-20  Bruno Haible  <bruno@clisp.org>
4053
4054         verror: Fix compilation error introduced on 2011-02-13.
4055         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
4056         instead of __attribute__.
4057         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
4058
4059 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
4060             Bruno Haible  <bruno@clisp.org>
4061
4062         socklen: do not depend on sys_socket
4063         While trying to modify Emacs to use gnulib's socklen module,
4064         I discovered a circular dependency: socklen depends on sys_socket
4065         and vice versa.  Emacs can use socklen, but it does not need
4066         sys_socket because it has its own substitute for sys/socket.h.
4067         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
4068         gl_TYPE_SOCKLEN_T.
4069         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
4070         gl_PREREQ_SYS_H_SOCKET.
4071         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
4072         gl_PREREQ_SYS_H_SOCKET.
4073         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
4074         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
4075         * modules/socklen (Depends-on): Do not depend on sys_socket.
4076         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
4077
4078 2011-03-20  Jim Meyering  <meyering@redhat.com>
4079
4080         maint.mk: sort file names *after* new transformation
4081         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
4082         prefix would have led to an unwarranted failure in GNU parted.
4083         Sort after that transformation.
4084
4085 2011-03-19  Jim Meyering  <meyering@redhat.com>
4086
4087         maint.mk: fix po-file syntax-check rule
4088         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
4089         Patch by Bruno Haible.
4090
4091 2011-03-19  Bruno Haible  <bruno@clisp.org>
4092
4093         socklen: Update comment.
4094         * m4/socklen.m4: Update comment about platforms.
4095
4096 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
4097             Bruno Haible  <bruno@clisp.org>
4098
4099         inet_ntop, inet_pton: Simplify.
4100         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
4101         documented to provide socklen_t and we already depend on sys_socket.
4102         * modules/inet_pton (Depends-on): Likewise.
4103         * lib/arpa_inet.in.h: Adjust comment.
4104
4105 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
4106             Bruno Haible  <bruno@clisp.org>
4107
4108         netdb: Simplify.
4109         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
4110         documented to provide socklen_t and we already depend on sys_socket.
4111         * lib/netdb.in.h: Adjust comment.
4112
4113 2011-03-19  Bruno Haible  <bruno@clisp.org>
4114
4115         sys_socket, netdb: Document problem with socklen_t.
4116         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
4117         platforms.
4118         * doc/posix-headers/netdb.texi: Likewise.
4119
4120 2011-03-18  Eric Blake  <eblake@redhat.com>
4121
4122         maint.mk: let po check work in VPATH build
4123         * top/maint.mk (po_file): Allow cfg.mk override.
4124         (sc_po_check): Allow VPATH use.
4125         Reported by Jiri Denemark.
4126
4127 2011-03-16  Jim Meyering  <meyering@redhat.com>
4128
4129         maint.mk: allow fine-grained syntax-check exclusion via Make variables
4130         Before, you would have had to create one .x-sc_ file per rule in order
4131         to exempt offending files.  Now, you may instead use a Make variable --
4132         usually defined in cfg.mk -- whose name identifies the affected rule.
4133         * top/maint.mk (_sc_excl): Define.
4134         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
4135         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
4136
4137 2011-03-13  Bruno Haible  <bruno@clisp.org>
4138
4139         ignore-value tests: Avoid warnings.
4140         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
4141         empty for gcc < 3.4.
4142
4143 2011-03-13  Bruno Haible  <bruno@clisp.org>
4144
4145         passfd: Fix link error on Solaris.
4146         * modules/passfd (Description): Correct.
4147         (Depends-on): Add socketlib.
4148         (Link): New section.
4149         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
4150
4151 2011-03-13  Bruno Haible  <bruno@clisp.org>
4152
4153         passfd: Fix link error on AIX 5.2.
4154         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
4155
4156 2011-03-13  Bruno Haible  <bruno@clisp.org>
4157
4158         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
4159         * lib/sys_socket.in.h: Include <stddef.h>.
4160         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
4161         CMSG_FIRSTHDR. Remove unused variable.
4162
4163 2011-03-13  Bruno Haible  <bruno@clisp.org>
4164
4165         passfd: Fix compilation error on OpenBSD.
4166         * lib/passfd.c: Include <sys/uio.h>.
4167
4168 2011-03-13  Bruno Haible  <bruno@clisp.org>
4169
4170         passfd test: Fix warnings.
4171         * tests/test-passfd.c: Include <sys/wait.h>.
4172         (main): Fix typo.
4173
4174 2011-03-13  Bruno Haible  <bruno@clisp.org>
4175
4176         passfd module, part 4, tweaks.
4177         * tests/test-passfd.c: Reorder includes.
4178         (main): Fix perror and printf calls.
4179
4180 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
4181
4182         passfd module, part 4.
4183         * modules/passfd-tests: New file.
4184         * tests/test-passfd.c: New file.
4185
4186 2011-03-13  Jim Meyering  <meyering@redhat.com>
4187
4188         Makefile: rely on GNU make; derive syntax-check rule names
4189         Rather than requiring that each sc_ rule be listed as a dependent
4190         of "check", use features of GNU make to derive the list.
4191         * Makefile (syntax-check-rules): Define.
4192         (check): Depend on the new variable, not the hard-coded list.
4193
4194 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
4195             Bruno Haible  <bruno@clisp.org>
4196
4197         passfd module, part 3.
4198         * lib/passfd.h (recvfd): Add a flags argument.
4199         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
4200         (recvfd): Add a flags argument.
4201         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
4202         exists.
4203         * modules/passfd (Depends-on): Add cloexec.
4204         Suggested by Eric Blake.
4205
4206 2011-03-13  Bruno Haible  <bruno@clisp.org>
4207
4208         passfd module, part 2, tweaks.
4209         * modules/passfd (Files): Reorder.
4210         (Depends-on): Remove errno.
4211         (Include): Remove <sys/socket.h>, <sys/un.h>.
4212         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
4213         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
4214         specification header. Include <sys/socket.h> always. Don't include
4215         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
4216         (sendfd): Clarify that it sets errno when it fails.
4217         (recvfd): Fix specification.
4218
4219 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
4220
4221         passfd module, part 2.
4222         * modules/passfd: New file.
4223         * lib/passfd.h: New file.
4224         * lib/passfd.c: New file.
4225
4226 2011-03-12  Bruno Haible  <bruno@clisp.org>
4227
4228         wcswidth, mbswidth: Avoid integer overflow.
4229         * lib/wcswidth.c: Include <limits.h>.
4230         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
4231         * lib/mbswidth.c: Include <limits.h>.
4232         (mbsnwidth): Avoid 'int' overflow.
4233         Reported by Jim Meyering.
4234
4235 2011-03-12  Bruno Haible  <bruno@clisp.org>
4236
4237         futimens, utimensat: Avoid endless recursion on Solaris 10.
4238         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
4239         Solaris.
4240         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
4241         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
4242
4243 2011-03-11  Jim Meyering  <meyering@redhat.com>
4244
4245         maint.mk: relax a regexp to accommodate other formatting styles
4246         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
4247         between "ngettext" and the following "(".
4248
4249 2011-03-11  Pádraig Brady <P@draigBrady.com>
4250
4251         maint.mk: suppress a false positive warning
4252         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
4253         diagnostics are marked with ngettext.
4254
4255 2011-03-10  Eric Blake  <eblake@redhat.com>
4256
4257         wchar: add explicit dependencies, for Tru64
4258         * modules/mbmemcasecoll (Depends-on): Add wchar.
4259         * modules/mbtowc (Depends-on): Likewise.
4260         * modules/vasnprintf (Depends-on): Likewise.
4261         * modules/unistdio/u-printf-args (Depends-on): Likewise.
4262         * modules/wctomb (Depends-on): Likewise.
4263         Reported by Peter O'Gorman.
4264
4265 2011-03-08  Bruno Haible  <bruno@clisp.org>
4266
4267         passfd module, part 1, tweaks.
4268         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
4269         Improve indentation. Improve AC_MSG_CHECKING messages.
4270         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
4271         gl_SOCKET_FAMILIES.
4272
4273 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
4274
4275         passfd module, part 1.
4276         * m4/afunix.m4: New file.
4277         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
4278         sockets.
4279
4280 2011-03-08  Bruno Haible  <bruno@clisp.org>
4281
4282         regex-quote: New API.
4283         * lib/regex-quote.h: Include <stdbool.h>.
4284         (struct regex_quote_spec): New type.
4285         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
4286         New declarations.
4287         (regex_quote_length, regex_quote_copy, regex_quote): Take a
4288         'const struct regex_quote_spec *' argument.
4289         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
4290         (pcre_special): New constant.
4291         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
4292         New functions.
4293         (regex_quote_length, regex_quote_copy, regex_quote): Take a
4294         'const struct regex_quote_spec *' argument.
4295         * modules/regex-quote (Depends-on): Add stdbool.
4296         * tests/test-regex-quote.c (check): Update for new API. Add test for
4297         anchored results.
4298         * NEWS: Mention the API change.
4299         Reported by Reuben Thomas and Eric Blake.
4300
4301 2011-03-06  Bruno Haible  <bruno@clisp.org>
4302
4303         regex-quote: Fix creation of POSIX extended regular expressions.
4304         * lib/regex-quote.c (ere_special): Add grouping and alternation
4305         operators.
4306
4307 2011-03-05  Bruno Haible  <bruno@clisp.org>
4308
4309         doc: Improve doc regarding autopoint vs. gnulib.
4310         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
4311         disable autopoint while running autoreconf.
4312         Suggested by Ralf Wildenhues.
4313
4314 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4315
4316         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
4317         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
4318
4319 2011-03-03  Bruce Korb  <bkorb@gnu.org>
4320
4321         parse-duration: remove xalloc.h dependency
4322         * lib/parse-duration.c (parse_period): handle NULL return from
4323         strdup instead of calling xstrdup().
4324         * modules/parse-duration: remove "xalloc" dependency
4325
4326 2011-03-03  Matthew Booth  <mbooth@redhat.com>
4327
4328         bootstrap: honor m4_base when running aclocal
4329         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
4330
4331 2011-03-02  Jim Meyering  <meyering@redhat.com>
4332
4333         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
4334         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
4335         on request from Matt Booth.
4336
4337 2011-03-01  Eric Blake  <eblake@redhat.com>
4338
4339         test-link: work on Hurd
4340         * tests/test-link.h (test_link): Hurd rejects linking directories
4341         with EISDIR instead of the POSIX-mandated EPERM.
4342
4343 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
4344
4345         stdio: simplify by moving files to printf-posix, sigpipe
4346         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
4347         since this symbol is needed only if printf is replaced.
4348         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
4349         Require gl_ASM_SYMBOL_PREFIX.
4350         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
4351         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
4352         (Depends-on): Add 'raise'.
4353         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
4354         * modules/stdio (Files): Remove lib/stdio-write.c,
4355         m4/asm-underscore.m4.
4356         (Depends-on): Remove 'raise'.
4357
4358         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
4359         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
4360         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
4361         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
4362
4363 2011-02-28  Bruno Haible  <bruno@clisp.org>
4364
4365         localcharset: Assume ANSI C behaviour of free().
4366         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
4367         calling free().
4368         Suggested by Simon Josefsson <simon@josefsson.org>.
4369
4370 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
4371             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
4372             Bruno Haible  <bruno@clisp.org>  (tiny change)
4373
4374         On Cygwin, use /proc file system instead of win32 API.
4375         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
4376         Win32 file names.
4377         (DllMain): Simplify by removing Cygwin specific code.
4378         (find_shared_library_fullname): Use Linux specific implementation also
4379         for Cygwin.
4380         (get_shared_library_fullname): Update accordingly.
4381         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
4382         Win32 file names.
4383         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
4384         Cygwin specific code.
4385
4386 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
4387             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
4388
4389         Fix OpenMP flag detection for various Fortran compilers.
4390         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
4391         OpenMP-conditional compilation construct, to force compile
4392         failure with missing OpenMP flag.
4393         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
4394
4395 2011-02-25  Eric Blake  <eblake@redhat.com>
4396
4397         strstr: expand test coverage
4398         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
4399         compilation.
4400         * tests/test-memmem.c (main): Duplicate tests.
4401         * tests/test-strcasestr.c (main): Likewise.
4402         * tests/test-c-strcasestr.c (main): Likewise.
4403
4404 2011-02-25  Jim Meyering  <meyering@redhat.com>
4405
4406         maint.mk: detect missing-NL-at-EOF, too
4407         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
4408         it also detects when a file lacks a newline at EOF.
4409         (require_exactly_one_NL_at_EOF_): Renamed from
4410         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
4411         since people may well have .x-sc_... file names tied to the
4412         existing name.  Suggested by Eric Blake.
4413
4414 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
4415
4416         dirname: move m4/dos.m4 functionality into lib/dosname.h
4417
4418         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
4419         extracts symbols from it, puts them into config.h; but it's much
4420         easier to use the symbols directly.  filename.h already does this,
4421         but it disagrees with dos.m4 in some respects.  This patch
4422         introduces a different include file dosname.h that packages up
4423         dos.m4, and then later we can work on merging filename.h and
4424         dosname.h.  Applications that need only the easy-to-configure
4425         symbols should consider including dosname.h rather than dirname.h.
4426         * NEWS: Mention incompatible changes.
4427         * m4/dos.m4: Remove.
4428         * lib/dosname.h, modules/dosname: New files.
4429         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
4430         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
4431         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
4432         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
4433         Include dosname.h, not dirname.h.
4434         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
4435         Include dosname.h, for definitions of symbols like ISSLASH
4436         that used to be in config.h.
4437         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
4438         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
4439         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
4440         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
4441         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
4442         * modules/rmdir (Files): Likewise.
4443         * modules/stat (Files): Likewise.
4444         * modules/unlink (Files): Likewise.
4445         * modules/dirname-lgpl (Depends-on): Add dosname.
4446         * modules/lstat (Depends-on): Likewise.
4447         * modules/openat (Depends-on): Likewise.
4448         * modules/rmdir (Depends-on): Likewise.
4449         * modules/savewd (Depends-on): Likewise.
4450         * modules/stat (Depends-on): Likewise.
4451         * modules/unlink (Depends-on): Likewise.
4452         * modules/openat (Depends-on): Remove dirname-lgpl.
4453         * modules/savewd (Depends-on): Likewise.
4454         * tests/test-dirname.c: Do not use removed symbols like
4455         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
4456         the remaining symbols, e.g., ISSLASH ('\\').
4457
4458 2011-02-25  Eric Blake  <eblake@redhat.com>
4459
4460         strstr: revert patches that introduced bug and pessimization
4461         * lib/str-two-way.h: Add another reference.
4462         (two_way_short_needle, two_way_long_needle): Revert changes from
4463         2011-02-24; they pessimize search speed.
4464         (critical_factorization): Partially revert changes from
4465         2010-06-22; they violate the requirement that the left half of the
4466         needle be smaller than the period of the needle.
4467
4468 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
4469
4470         filenamecat: remove unnecessary dependency on dirname-lgpl
4471         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
4472         is no direct dependency, just an indirect one via filenamecat-lgpl.
4473
4474         remove: remove unnecessary use of m4/dos.m4
4475         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
4476         * modules/remove (FILES): Remove m4/dos.m4.
4477
4478         * lib/openat-proc.c: Don't include dirname.h; not needed.
4479
4480         backupfile: remove unnecessary use of m4/dos.m4
4481         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
4482         of its symbols are used by the backupfile code.  backupfile.c does
4483         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
4484         for the rare case of programs that want all their backup file
4485         names to live within 8+3 limits, and dos.m4 doesn't address that.
4486         * modules/backupfile (Files): Remove m4/dos.m4.
4487
4488 2011-02-24  Jim Meyering  <meyering@redhat.com>
4489
4490         strstr: fix a bug whereby strstr would mistakenly return NULL
4491         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
4492         in period calculation.
4493         (two_way_long_needle): Likewise.
4494         The original problem was reported by Mike Stump in
4495         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
4496         Ralf Wildenhues provided the short needle and haystack.
4497         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
4498         Add a more involved test to trigger the bug in two_way_long_needle.
4499
4500 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
4501
4502         gnulib-tool: remove use of bold display in help screen
4503         * gnulib-tool (func_usage): Do not use bold display anymore in the
4504         help screen.  That was just meant to be a temporary emphasis for a
4505         backward-incompatible change.
4506
4507 2011-02-23  Bruno Haible  <bruno@clisp.org>
4508
4509         Fix misindentation of preprocessor directives.
4510         * lib/argp-namefrob.h: Reindent preprocessor directives.
4511         * lib/getopt_int.h (struct _getopt_data): Likewise.
4512         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
4513         * lib/vasnprintf.c (decode_long_double): Likewise.
4514         * tests/test-argmatch.c: Insert blank lines, for clarity.
4515         * tests/test-exclude.c: Likewise.
4516
4517 2011-02-22  Bruno Haible  <bruno@clisp.org>
4518
4519         ioctl: Fix for MacOS X in 64-bit mode.
4520         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
4521         value.
4522         Suggested by Eric Blake.
4523         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
4524
4525 2011-02-22  Jim Meyering  <meyering@redhat.com>
4526
4527         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
4528         * Makefile (sc_cpp_indent_check): Don't limit the check to files
4529         in lib/.
4530
4531 2011-02-22  Eric Blake  <eblake@redhat.com>
4532
4533         maint: avoid any CDPATH issue
4534         * Makefile (sc_cpp_indent_check): Anchor cd argument.
4535
4536         maint: adjust cpp indentation for my modules, as well
4537         * Makefile (sc_cpp_indent_check): Add my name.
4538         * lib/fbufmode.c: Filter through cppi.
4539         * lib/fpurge.c: Likewise.
4540         * lib/freadable.c: Likewise.
4541         * lib/freading.c: Likewise.
4542         * lib/fwritable.c: Likewise.
4543         * lib/fwriting.c: Likewise.
4544         * lib/sigaction.c: Likewise.
4545
4546 2011-02-22  Jim Meyering  <meyering@redhat.com>
4547
4548         maint: adjust cpp indentation to reflect nesting depth
4549         I.e., in a block of code that begins with an unnested "#if",
4550         put one space between the "#" in column 1 and following token.
4551         For example,
4552         -#include <sys/vfs.h>
4553         +# include <sys/vfs.h>
4554         Do this only in .c files that are part of a module I maintain.
4555         * lib/linkat.c: Filter through cppi.
4556         * lib/nanosleep.c: Likewise.
4557         * lib/openat.c: Likewise.
4558         * lib/openat-die.c: Likewise.
4559         * lib/dup3.c: Likewise.
4560         * lib/fchownat.c: Likewise.
4561         * lib/flock.c: Likewise.
4562         * lib/fsync.c: Likewise.
4563         * lib/fts.c: Likewise.
4564         * lib/getpass.c: Likewise.
4565         * lib/gettimeofday.c: Likewise.
4566         * lib/userspec.c: Likewise.
4567         * Makefile (sc_cpp_indent_check): New rule, to check this.
4568
4569 2011-02-22  Bruno Haible  <bruno@clisp.org>
4570
4571         New module 'wctomb'.
4572         * lib/stdlib.in.h (wctomb): New declaration.
4573         * lib/wctomb.c: New file.
4574         * lib/wctomb-impl.h: New file.
4575         * m4/wctomb.m4: New file.
4576         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
4577         REPLACE_WCTOMB.
4578         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
4579         REPLACE_WCTOMB.
4580         * modules/wctomb: New file.
4581         * tests/test-stdlib-c++.cc: Test signature of wctomb.
4582         * doc/posix-functions/wctomb.texi: Mention the new module.
4583         * modules/wctob (Depends-on): Add wctomb.
4584
4585 2011-02-22  Bruno Haible  <bruno@clisp.org>
4586
4587         New module 'mbtowc'.
4588         * lib/stdlib.in.h (mbtowc): New declaration.
4589         * lib/mbtowc.c: New file.
4590         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
4591         * m4/mbtowc.m4: New file.
4592         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
4593         REPLACE_MBTOWC.
4594         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
4595         REPLACE_MBTOWC.
4596         * modules/mbtowc: New file.
4597         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
4598         * doc/posix-functions/mbtowc.texi: Mention the new module.
4599         * modules/btowc (Depends-on): Add mbtowc.
4600
4601 2011-02-22  Bruno Haible  <bruno@clisp.org>
4602
4603         wcrtomb: Add more tests for native Windows platforms.
4604         * tests/test-wcrtomb-w32-1.sh: New file.
4605         * tests/test-wcrtomb-w32-2.sh: New file.
4606         * tests/test-wcrtomb-w32-3.sh: New file.
4607         * tests/test-wcrtomb-w32-4.sh: New file.
4608         * tests/test-wcrtomb-w32-5.sh: New file.
4609         * tests/test-wcrtomb-w32.c: New file.
4610         * modules/wcrtomb-tests (Files): Add them.
4611         (Makefile.am): Arrange to run these tests.
4612         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
4613         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
4614
4615 2011-02-20  Bruno Haible  <bruno@clisp.org>
4616
4617         wcrtomb: Enhance test.
4618         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
4619
4620 2011-02-20  Bruno Haible  <bruno@clisp.org>
4621
4622         mbrtowc: Tiny optimization.
4623         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
4624
4625 2011-02-20  Jim Meyering  <meyering@redhat.com>
4626
4627         test-exclude.c: remove unmatched #endif
4628         * tests/test-exclude.c: Remove stray #endif, left over from
4629         the change of a week ago.
4630
4631 2011-02-19  Jim Meyering  <meyering@redhat.com>
4632
4633         git-version-gen: skip "-dirty" check when appropriate
4634         * build-aux/git-version-gen: Don't run any git commands when the
4635         version string comes from .tarball-version.  Prior to this, we
4636         would run git update-index --refresh even from a just-unpacked
4637         tarball directory, and that could affect a .git/ directory in a
4638         parent of the build directory.  Reported by Mike Frysinger.
4639
4640 2011-02-19  Bruno Haible  <bruno@clisp.org>
4641
4642         unictype/property-byname: Reduce the size of the 'data' segment.
4643         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
4644
4645 2011-02-19  Bruno Haible  <bruno@clisp.org>
4646
4647         unictype/scripts: Reduce the size of the 'data' segment.
4648         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
4649         '%pic'.
4650         * lib/unictype/scripts_byname.gperf: Regenerated.
4651
4652 2011-02-19  Bruno Haible  <bruno@clisp.org>
4653
4654         stdint: Update documentation.
4655         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
4656
4657 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
4658
4659         stdint: omit redundant check for wchar.h
4660         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
4661         always tests whether wchar.h exists, so remove the now-redundant test.
4662
4663 2011-02-18  Bruno Haible  <bruno@clisp.org>
4664
4665         stdint: Cut dependency to module 'wchar'.
4666         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
4667         include the necessary prerequisites.
4668         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
4669         * modules/stdint (Depends-on): Remove wchar.
4670         (Makefile.am): Substitute HAVE_WCHAR_H.
4671         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
4672
4673 2011-02-18  Eric Blake  <eblake@redhat.com>
4674
4675         longlong: skip, rather than fail, on cross-compilation
4676         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
4677         when cross-compiling; regression from 2011-02-16.
4678
4679 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
4680
4681         * NEWS: Mention 2011-02-08 change to stdlib.
4682
4683 2011-02-17  Bruno Haible  <bruno@clisp.org>
4684
4685         getloadavg: Add comments about platforms.
4686         * m4/getloadavg.m4: Add comment.
4687         * lib/getloadavg.c: Likewise.
4688
4689 2011-02-17  Bruno Haible  <bruno@clisp.org>
4690
4691         getloadavg: Fix link error on Solaris 2.6.
4692         * modules/getloadavg (Link): New section.
4693         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
4694         linking test-getloadavg.
4695         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
4696         getloadavg.
4697
4698 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
4699
4700         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
4701         It was 'int', but this doesn't match the IRIX 6.5 manual.
4702         Suggested by Bruno Haible in
4703         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
4704
4705 2011-02-17  Bruno Haible  <bruno@clisp.org>
4706
4707         havelib: Fix comments.
4708         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
4709         change.
4710
4711 2011-02-17  Bruno Haible  <bruno@clisp.org>
4712
4713         havelib: Update config.rpath.
4714         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
4715
4716 2011-02-17  Bruno Haible  <bruno@clisp.org>
4717
4718         getloadavg test: Add some plausibility checks.
4719         * tests/test-getloadavg.c (check_avg): Print a warning when the value
4720         is improbable.
4721
4722 2011-02-16  Eric Blake  <eblake@redhat.com>
4723
4724         maintainer-makefile: make syntax-check a no-op from tarballs
4725         * top/maint.mk (no-vc-detected): New rule.
4726         (local-checks-available): Use it to avoid hanging if someone tries
4727         'make syntax-check' from a tarball.  Also append to any non-syntax
4728         checks already defined in cfg.mk.
4729
4730 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
4731
4732         longlong: tune, particularly for common case of c99
4733
4734         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
4735         or running anything if c99, or if unsigned long long int does not
4736         work.  In either case, we know the answer without further tests.
4737         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
4738         it at most once, and use its results for both long long int and
4739         unsigned long long int.  This is more likely to be efficient in
4740         the common case where the program wants to check for both long
4741         long int and unsigned long long int.
4742         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
4743         since the answer is already known.
4744
4745 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
4746
4747         getloadavg: set errno
4748         * lib/getloadavg.c: Set errno when returning -1.  If no other
4749         error number looks appropriate, set it to ENOSYS if the getloadavg
4750         looks like it can't possibly ever work, ENOTSUP otherwise.
4751         Suggested by Bruno Haible in
4752         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
4753
4754         getloadavg: trim unused parts and speed up 'configure'
4755         * NEWS: Document this.
4756         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
4757         always compiled if getloadavg is absent.
4758         Move test code to ...
4759         * tests/test-getloadavg.c: New file, containing previous
4760         contents of test from lib/getloadavg.c.  It also contains
4761         suggestions by Bruno Haible in
4762         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
4763         * modules/getloadavg-tests: New file.
4764         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
4765         Do tests in the same order as they're needed for getloadavg.c.
4766         Omit setgid-related tests that generate symbols KMEM_GROUP,
4767         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
4768         Do only the tests that are needed to see whether the system has
4769         getloadavg, moving the other tests into ...
4770         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
4771         NLIST_NAME_UNION; nobody should be using it.  Do not define
4772         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
4773         relevant, as the user of this module shouldn't care how getloadavg
4774         is implemented.
4775
4776         getloadavg: omit unused var
4777         * lib/getloadavg.c (getloadavg): Omit unused local variable.
4778
4779 2011-02-15  Jim Meyering  <meyering@redhat.com>
4780
4781         doc: update users.txt
4782         * users.txt: Update iwhd's URL.
4783
4784 2011-02-13  Bruno Haible  <bruno@clisp.org>
4785
4786         Consistent macro naming for macros that use GCC __attribute__.
4787         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
4788         _ATTRIBUTE_NONNULL_.
4789         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
4790         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
4791         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
4792         ATTRIBUTE_DEPRECATED.
4793         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
4794         ATTRIBUTE_NORETURN.
4795         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
4796         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
4797         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
4798         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
4799         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
4800         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
4801         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
4802         ATTRIBUTE_SENTINEL.
4803         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
4804         ATTRIBUTE_RETURN_CHECK.
4805         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
4806         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
4807         ATTRIBUTE_NORETURN.
4808         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
4809         Reported by Paul Eggert.
4810
4811 2011-02-13  Bruno Haible  <bruno@clisp.org>
4812
4813         Don't interfere with a program's definition of __attribute__.
4814         * lib/argp.h (__attribute__): Remove definition.
4815         (_GL_ATTRIBUTE_FORMAT): New macro.
4816         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
4817         * lib/argp-fmtstream.h (__attribute__): Remove definition.
4818         (_GL_ATTRIBUTE_FORMAT): New macro.
4819         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
4820         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
4821         GCC 3 or newer.
4822         * lib/error.h (__attribute__): Remove definition.
4823         (_GL_ATTRIBUTE_FORMAT): New macro.
4824         (error, error_at_line): Use it.
4825         * lib/hash.h (__attribute__): Remove definition.
4826         (ATTRIBUTE_WUR): Update definition. Define always.
4827         * lib/openat.h (__attribute__): Remove definition.
4828         (ATTRIBUTE_NORETURN): Update definition. Define always.
4829         * lib/sigpipe-die.h (__attribute__): Remove definition.
4830         (ATTRIBUTE_NORETURN): Update definition. Define always.
4831         * lib/vasnprintf.h (__attribute__): Remove definition.
4832         (_GL_ATTRIBUTE_FORMAT): New macro.
4833         (asnprintf, vasnprintf): Use it.
4834         * lib/xalloc.h (__attribute__): Remove definition.
4835         (ATTRIBUTE_NORETURN): Update definition. Define always.
4836         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
4837         * lib/xmemdup0.h (__attribute__): Remove definition.
4838         (ATTRIBUTE_NORETURN): Update definition. Define always.
4839         * lib/xprintf.h (__attribute__): Remove definition.
4840         (_GL_ATTRIBUTE_FORMAT): New macro.
4841         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
4842         * lib/xstrtol.h (__attribute__): Remove definition.
4843         (ATTRIBUTE_NORETURN): Update definition. Define always.
4844         * lib/xvasprintf.h (__attribute__): Remove definition.
4845         (_GL_ATTRIBUTE_FORMAT): New macro.
4846         (xasprintf, xvasprintf): Use it.
4847         * tests/test-argmatch.c (__attribute__): Remove definition.
4848         (ATTRIBUTE_NORETURN): Update definition. Define always.
4849         * tests/test-exclude.c (__attribute__): Remove definition.
4850         (ATTRIBUTE_NORETURN): Update definition. Define always.
4851         Reported by Paul Eggert.
4852
4853 2011-02-13  Bruno Haible  <bruno@clisp.org>
4854
4855         mbrtowc: Add more tests for native Windows platforms.
4856         * tests/test-mbrtowc-w32-1.sh: New file.
4857         * tests/test-mbrtowc-w32-2.sh: New file.
4858         * tests/test-mbrtowc-w32-3.sh: New file.
4859         * tests/test-mbrtowc-w32-4.sh: New file.
4860         * tests/test-mbrtowc-w32-5.sh: New file.
4861         * tests/test-mbrtowc-w32.c: New file.
4862         * modules/mbrtowc-tests (Files): Add them.
4863         (Makefile.am): Arrange to run these tests.
4864         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
4865         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
4866
4867 2011-02-13  Bruno Haible  <bruno@clisp.org>
4868
4869         mbrtowc: Work around native Windows bug.
4870         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
4871         guess when no suitable locale for testing was found.
4872         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
4873
4874 2011-02-13  Bruno Haible  <bruno@clisp.org>
4875
4876         mbsinit: Work around mingw bug.
4877         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
4878         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
4879         Windows.
4880         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
4881
4882 2011-02-13  Bruno Haible  <bruno@clisp.org>
4883
4884         mbsinit: Don't crash for a NULL argument.
4885         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
4886         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
4887
4888 2011-02-13  Bruno Haible  <bruno@clisp.org>
4889
4890         Don't interfere with a program's definition of __attribute__.
4891         * lib/stdio.in.h (__attribute__): Remove definition.
4892         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
4893         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
4894         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
4895         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
4896         * lib/string.in.h (__attribute__): Remove definition.
4897         Reported by Paul Eggert.
4898
4899 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
4900
4901         stdlib: don't get in the way of non-GCC __attribute__
4902         See thread starting at
4903         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
4904         Revert previous stdlib change, installing the following instead:
4905         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
4906         to get in the way of a non-GCC compiler that supports __attribute__.
4907         (_GL_ATTRIBUTE_RETURN): New macro.
4908         (_Exit): Use it instead of __attribute__.
4909
4910 2011-02-12  Bruno Haible  <bruno@clisp.org>
4911
4912         quotearg test: Avoid test failure on mingw.
4913         * tests/test-quotearg.sh: Convert the locale identifier from native
4914         Windows syntax to Unix syntax.
4915
4916 2011-02-12  Bruno Haible  <bruno@clisp.org>
4917
4918         setlocale: Prefer gnulib's override over libintl's override.
4919         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
4920         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
4921         GNULIB_defined_setlocale is set.
4922
4923 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
4924
4925         stdlib: support non-GCC __attribute__
4926
4927         Fix a serious and tricky problem encountered when attempting to
4928         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
4929         5.5, but it crashed due to memory corruption on Solaris 10 with
4930         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
4931         bits that are otherwise zero.  This tagging is optional inside
4932         Emacs but is preferred and is used when __attribute__ ((__aligned
4933         (8))) works, as it does with both recent-enough GCC and with Sun C
4934         5.11.  However, Sun C 5.11 is not GCC and does not #define
4935         __GNUC__ and __GNUC_MINOR__.
4936
4937         When I added the getloadavg module to Emacs, it brought in
4938         stdlib.in.h, which contained this fragment:
4939
4940            #ifndef __attribute__
4941            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
4942            #  define __attribute__(Spec)   /* empty */
4943            # endif
4944            #endif
4945
4946         When files that include <stdlib.h> were compiled with Sun C 5.11,
4947         the above code disabled __attribute__ ((__aligned (8))), which
4948         caused variables to not be properly aligned, which eventually led
4949         to the pointer corruption mentioned above.  (This was a bit hard
4950         to diagnose, unfortunately.)
4951
4952         Several "#define __attribute__(X) /* empty */" code snippets need
4953         to be eradicated from Gnulib to work with non-GCC compilers that
4954         support __attribute__.  The Autoconf way to do this is to test for
4955         each kind of attribute that we want support for, and selectively
4956         enable that in source code.
4957
4958         Fix this problem just for stdlib.h, by adding a test for the
4959         __noreturn__ attribute, and change stdlib.in.h to use that test
4960         when needed.  This technique can be easily generalized to the
4961         other *.in.h files and attributes, and a similar technique can be
4962         used for *.h and *.c files.  This patch is enough to solve the
4963         problem for Emacs + getloadavg, and I thought I'd publish it for
4964         feedback before undertaking further, similar fixes in other
4965         modules.
4966
4967         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
4968         because it's not needed for stdlib.h.  It merely substitutes the
4969         value directly into stdlib.h.  We may well need to #define it, or
4970         similar symbols, for other modules, but it's nice to also have an
4971         option to not #define it for applications like Emacs that do not
4972         need it.
4973
4974         * lib/stdlib.in.h (__attribute__): Do not #define.
4975         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
4976         be defined only if the _Exit module is also used.
4977         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
4978         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
4979         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
4980         platforms.
4981         * modules/_Exit (Files): Add m4/attribute.m4.
4982         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
4983         * m4/attribute.m4: New file.
4984
4985 2011-02-12  Bruno Haible  <bruno@clisp.org>
4986
4987         wcsrtombs: Work around bug on native Windows.
4988         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
4989         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
4990         instead of len.
4991         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
4992
4993 2011-02-12  Bruno Haible  <bruno@clisp.org>
4994
4995         mbsrtowcs: Work around bug on native Windows.
4996         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
4997         against mingw bug.
4998         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
4999
5000 2011-02-12  Bruno Haible  <bruno@clisp.org>
5001
5002         Avoid setlocale bugs in tests.
5003         * modules/btowc (Dependencies): Add setlocale.
5004         * modules/c-strcase (Dependencies): Likewise.
5005         * modules/mbmemcasecmp (Dependencies): Likewise.
5006         * modules/mbmemcasecoll (Dependencies): Likewise.
5007         * modules/mbrtowc (Dependencies): Likewise.
5008         * modules/mbscasecmp (Dependencies): Likewise.
5009         * modules/mbscasestr (Dependencies): Likewise.
5010         * modules/mbschr (Dependencies): Likewise.
5011         * modules/mbscspn (Dependencies): Likewise.
5012         * modules/mbsinit (Dependencies): Likewise.
5013         * modules/mbsncasecmp (Dependencies): Likewise.
5014         * modules/mbsnrtowcs (Dependencies): Likewise.
5015         * modules/mbspbrk (Dependencies): Likewise.
5016         * modules/mbspcasecmp (Dependencies): Likewise.
5017         * modules/mbsrchr (Dependencies): Likewise.
5018         * modules/mbsrtowcs (Dependencies): Likewise.
5019         * modules/mbsspn (Dependencies): Likewise.
5020         * modules/mbsstr (Dependencies): Likewise.
5021         * modules/nl_langinfo (Dependencies): Likewise.
5022         * modules/quotearg (Dependencies): Likewise.
5023         * modules/unicase/locale-language (Dependencies): Likewise.
5024         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
5025         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
5026         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
5027         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
5028         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
5029         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
5030         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
5031         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
5032         * modules/vasnprintf-posix (Dependencies): Likewise.
5033         * modules/wcrtomb (Dependencies): Likewise.
5034         * modules/wcsnrtombs (Dependencies): Likewise.
5035         * modules/wcsrtombs (Dependencies): Likewise.
5036
5037 2011-02-12  Bruno Haible  <bruno@clisp.org>
5038
5039         setlocale: Workaround native Windows bug.
5040         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
5041         succeeds but sets LC_CTYPE to "C", report a failure.
5042         * tests/test-setlocale2.sh: New file.
5043         * tests/test-setlocale2.c: New file.
5044         * modules/setlocale-tests (Files): Add the new files.
5045         (Makefile.am): Enable test-setlocale2.sh test.
5046         * doc/posix-functions/setlocale.texi: Mention workaround.
5047
5048 2011-02-11  Bruno Haible  <bruno@clisp.org>
5049
5050         Tests for module 'setlocale'.
5051         * modules/setlocale-tests: New file.
5052         * tests/test-setlocale1.sh: New file.
5053         * tests/test-setlocale1.c: New file.
5054
5055         New module 'setlocale'.
5056         * lib/locale.in.h (setlocale): New declaration.
5057         * lib/setlocale.c: New file, based on
5058         gettext/gettext-runtime/intl/setlocale.c.
5059         * m4/setlocale.m4: New file.
5060         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
5061         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
5062         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
5063         REPLACE_SETLOCALE.
5064         * modules/setlocale: New file.
5065         * tests/test-locale-c++.cc: Test the declaration of setlocale.
5066         * doc/posix-functions/setlocale.texi: Mention the new module.
5067
5068 2011-02-11  Bruno Haible  <bruno@clisp.org>
5069
5070         Prepare for locale dependent tests on mingw.
5071         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
5072         because it has the wrong locale encoding.
5073         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
5074         French_France.1252 instead of "fr".
5075         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
5076         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
5077         because it has the wrong locale encoding.
5078         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
5079         native Windows, try Turkish_Turkey.65001.
5080         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
5081         Chinese_China.54936.
5082
5083         Prepare for locale dependent tests on mingw.
5084         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
5085         differently.
5086         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
5087         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
5088         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
5089         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
5090
5091 2011-02-11  Eric Blake  <eblake@redhat.com>
5092
5093         strptime: avoid compiler warnings
5094         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
5095         compiler warnings about dead code.
5096         Reported by Daniel P. Berrange.
5097
5098 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
5099
5100         doc: update users.txt
5101         * users.txt: Add rcs.
5102
5103 2011-02-10  John W. Eaton  <jwe@gnu.org>
5104
5105         doc: update users.txt
5106         * users.txt: Add octave.
5107
5108 2011-02-10  Jim Meyering  <meyering@redhat.com>
5109
5110         doc: update users.txt
5111         * users.txt: Add iwhd.
5112
5113 2011-02-09  Bruno Haible  <bruno@clisp.org>
5114
5115         gnulib-tool: Make copyright notice adjustment more robust.
5116         * gnulib-tool (func_import): In sed_transform_main_lib_file,
5117         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
5118         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
5119         License".
5120         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
5121
5122 2011-02-06  Bruno Haible  <bruno@clisp.org>
5123
5124         New module 'towctrans'.
5125         * modules/towctrans: New file.
5126         * lib/wctype.in.h (towctrans): New declaration.
5127         * lib/towctrans.c: New file.
5128         * lib/towctrans-impl.h: New file.
5129         * m4/towctrans.m4: New file.
5130         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
5131         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
5132         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
5133         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
5134         * doc/posix-functions/towctrans.texi: Mention the new module.
5135
5136 2011-02-06  Bruno Haible  <bruno@clisp.org>
5137
5138         New module 'wctrans'.
5139         * modules/wctrans: New file.
5140         * lib/wctype.in.h (wctrans): New declaration.
5141         * lib/wctrans.c: New file.
5142         * lib/wctrans-impl.h: New file.
5143         * m4/wctrans.m4: New file.
5144         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
5145         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
5146         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
5147         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
5148         * doc/posix-functions/wctrans.texi: Mention the new module.
5149
5150 2011-02-06  Bruno Haible  <bruno@clisp.org>
5151
5152         New module 'iswctype'.
5153         * modules/iswctype: New file.
5154         * lib/wctype.in.h (iswctype): New declaration.
5155         * lib/iswctype.c: New file.
5156         * lib/iswctype-impl.h: New file.
5157         * m4/iswctype.m4: New file.
5158         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
5159         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
5160         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
5161         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
5162         * doc/posix-functions/iswctype.texi: Mention the new module and the
5163         HP-UX 11.00 problem.
5164
5165 2011-02-06  Bruno Haible  <bruno@clisp.org>
5166
5167         New module 'wctype'.
5168         * modules/wctype: Change to represent the wctype() substitute.
5169         * lib/wctype.in.h (wctype): New declaration.
5170         * lib/wctype.c: New file.
5171         * lib/wctype-impl.h: New file.
5172         * m4/wctype.m4: New file.
5173         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
5174         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
5175         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
5176         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
5177         * doc/posix-functions/wctype.texi: Mention the new module and the
5178         HP-UX 11.00 problem.
5179
5180 2011-02-06  Bruno Haible  <bruno@clisp.org>
5181
5182         wctype-h: Ensure wctype_t and wctrans_t are defined.
5183         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
5184         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
5185         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
5186         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
5187         HAVE_WCTRANS_T.
5188         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
5189
5190 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
5191
5192         flock: fix license typo
5193
5194         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
5195         omitted.
5196
5197 2011-02-08  Bruno Haible  <bruno@clisp.org>
5198
5199         Split large sed scripts, for HP-UX sed.
5200         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
5201         to avoid HP-UX limit of 99 commands, in the near future.
5202         * modules/stdlib (Makefile.am): Likewise.
5203         * modules/unistd (Makefile.am): Likewise.
5204         * modules/wchar (Makefile.am): Likewise.
5205         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
5206         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
5207         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
5208
5209 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
5210             Bruno Haible  <bruno@clisp.org>
5211
5212         stdlib: improve random_r modularization
5213         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
5214         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
5215         you also need the random_r module to get this material right.
5216         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
5217         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
5218         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
5219
5220 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
5221
5222         stdlib: don't depend on stdint
5223         * lib/stdlib.in.h: Don't include <stdint.h> merely because
5224         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
5225         be independent of whether stdint.h is needed.
5226         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
5227         here, instead of ...
5228         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
5229         struct random_data should be using the random_r module, not just
5230         the stdlib module (which wouldn't make sense: what package needs
5231         just struct random_data without also needing random_r?).
5232         * modules/stdlib (Depends-on): Remove stdint.
5233
5234         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
5235         See the thread rooted at
5236         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
5237         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
5238         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
5239         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
5240         __VMS)); previously it was always included (via fcntl--.h).
5241         (getloadavg): Do not use c_strtod.  Instead, approximate it by
5242         hand; this is good enough for load averages.  Also, do not use
5243         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
5244         flags directly if available and don't bother otherwise.  (Packages
5245         that need the extra reliability should use the modules that define
5246         these flags on older platforms that lack them.)
5247         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
5248         fcntl-safer.
5249
5250 2011-02-08  Jim Meyering  <meyering@redhat.com>
5251
5252         di-set.h, ino-map.h: add multiple-inclusion guard
5253         Technically, the guard is required only for ino-map.h, due to its
5254         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
5255         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
5256         * lib/ino-map.h: Likewise.
5257
5258 2011-02-06  Bruno Haible  <bruno@clisp.org>
5259
5260         iswblank: Ensure declaration on glibc systems.
5261         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
5262         * modules/iswblank (Dependencies): Add 'extensions'.
5263         * doc/posix-functions/iswblank.texi: Document the glibc problem.
5264
5265 2011-02-06  Bruno Haible  <bruno@clisp.org>
5266
5267         New module 'iswblank'.
5268         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
5269         * modules/iswblank: New file.
5270         * modules/wctype-h (Files): Remove lib/iswblank.c.
5271         (Makefile.am): Substitute GNULIB_ISWBLANK.
5272         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
5273         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
5274         (gl_WCTYPE_H_DEFAULTS): New macro.
5275         (gl_WCTYPE_H): Require it. Remove iswblank related code.
5276         * modules/iswblank-tests: New file.
5277         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
5278         * tests/test-wctype-h.c (main): Remove iswblank tests.
5279         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
5280         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
5281         of 'wctype-h'.
5282         * NEWS: Mention the change.
5283         * modules/mbchar (Depends-on): Add iswblank.
5284
5285 2011-02-08  Bruno Haible  <bruno@clisp.org>
5286
5287         di-set tests: Refactor.
5288         * tests/test-di-set.c: Include di-set.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/di-set-tests (Files): Add tests/macros.h.
5294
5295 2011-02-08  Bruno Haible  <bruno@clisp.org>
5296
5297         ino-map tests: Refactor.
5298         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
5299         unnecessary includes.
5300         (ASSERT): Remove macro.
5301         (main): Make C90 compliant by avoiding variable declaration after
5302         statement.
5303         * modules/ino-map-tests (Files): Add tests/macros.h.
5304
5305 2011-02-08  Jim Meyering  <meyering@redhat.com>
5306
5307         di-set: add "const" to a cast
5308         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
5309         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
5310
5311 2011-02-06  Bruno Haible  <bruno@clisp.org>
5312
5313         Rename module 'wctype' to 'wctype-h'.
5314         * modules/wctype-h: Renamed from modules/wctype.
5315         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
5316         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
5317         (Files, Depends-on, Makefile.am): Update.
5318         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
5319         (Files, Makefile.am): Update.
5320         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
5321         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
5322         * doc/posix-headers/wctype.texi: Update.
5323         * doc/posix-functions/iswalnum.texi: Update.
5324         * doc/posix-functions/iswalpha.texi: Update.
5325         * doc/posix-functions/iswblank.texi: Update.
5326         * doc/posix-functions/iswcntrl.texi: Update.
5327         * doc/posix-functions/iswdigit.texi: Update.
5328         * doc/posix-functions/iswgraph.texi: Update.
5329         * doc/posix-functions/iswlower.texi: Update.
5330         * doc/posix-functions/iswprint.texi: Update.
5331         * doc/posix-functions/iswpunct.texi: Update.
5332         * doc/posix-functions/iswspace.texi: Update.
5333         * doc/posix-functions/iswupper.texi: Update.
5334         * doc/posix-functions/iswxdigit.texi: Update.
5335         * doc/posix-functions/towlower.texi: Update.
5336         * doc/posix-functions/towupper.texi: Update.
5337         * NEWS: Mention the change.
5338         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
5339         * modules/mbchar (Dependencies): Likewise.
5340         * modules/mbswidth (Dependencies): Likewise.
5341         * modules/quotearg (Dependencies): Likewise.
5342         * modules/regex (Dependencies): Likewise.
5343         * modules/wcscasecmp (Dependencies): Likewise.
5344         * modules/wcsncasecmp (Dependencies): Likewise.
5345         * modules/wcwidth (Dependencies): Likewise.
5346
5347 2011-02-06  Bruno Haible  <bruno@clisp.org>
5348
5349         New module 'wcswidth'.
5350         * modules/wcswidth: New file.
5351         * lib/wchar.in.h (wcswidth): New declaration.
5352         * lib/wcswidth.c: New file.
5353         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
5354         * m4/wcswidth.m4: New file.
5355         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
5356         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
5357         REPLACE_WCSWIDTH.
5358         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
5359         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
5360         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
5361         * doc/posix-functions/wcswidth.texi: Mention the new module.
5362
5363 2011-02-06  Bruno Haible  <bruno@clisp.org>
5364
5365         New module 'wcstok'.
5366         * modules/wcstok: New file.
5367         * lib/wchar.in.h (wcstok): New declaration.
5368         * lib/wcstok.c: New file.
5369         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
5370         * m4/wcstok.m4: New file.
5371         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
5372         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
5373         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
5374         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
5375         * doc/posix-functions/wcstok.texi: Mention the new module.
5376
5377 2011-02-06  Bruno Haible  <bruno@clisp.org>
5378
5379         New module 'wcsstr'.
5380         * modules/wcsstr: New file.
5381         * lib/wchar.in.h (wcsstr): New declaration.
5382         * lib/wcsstr.c: New file.
5383         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
5384         * m4/wcsstr.m4: New file.
5385         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
5386         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
5387         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
5388         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
5389         * doc/posix-functions/wcsstr.texi: Mention the new module.
5390
5391 2011-02-06  Bruno Haible  <bruno@clisp.org>
5392
5393         New module 'wcspbrk'.
5394         * modules/wcspbrk: New file.
5395         * lib/wchar.in.h (wcspbrk): New declaration.
5396         * lib/wcspbrk.c: New file.
5397         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
5398         * m4/wcspbrk.m4: New file.
5399         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
5400         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
5401         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
5402         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
5403         * doc/posix-functions/wcspbrk.texi: Mention the new module.
5404
5405 2011-02-06  Bruno Haible  <bruno@clisp.org>
5406
5407         New module 'wcsspn'.
5408         * modules/wcsspn: New file.
5409         * lib/wchar.in.h (wcsspn): New declaration.
5410         * lib/wcsspn.c: New file.
5411         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
5412         * m4/wcsspn.m4: New file.
5413         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
5414         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
5415         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
5416         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
5417         * doc/posix-functions/wcsspn.texi: Mention the new module.
5418
5419 2011-02-06  Bruno Haible  <bruno@clisp.org>
5420
5421         New module 'wcscspn'.
5422         * modules/wcscspn: New file.
5423         * lib/wchar.in.h (wcscspn): New declaration.
5424         * lib/wcscspn.c: New file.
5425         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
5426         * m4/wcscspn.m4: New file.
5427         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
5428         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
5429         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
5430         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
5431         * doc/posix-functions/wcscspn.texi: Mention the new module.
5432
5433 2011-02-06  Bruno Haible  <bruno@clisp.org>
5434
5435         New module 'wcsrchr'.
5436         * modules/wcsrchr: New file.
5437         * lib/wchar.in.h (wcsrchr): New declaration.
5438         * lib/wcsrchr.c: New file.
5439         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
5440         * m4/wcsrchr.m4: New file.
5441         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
5442         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
5443         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
5444         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
5445         * doc/posix-functions/wcsrchr.texi: Mention the new module.
5446
5447 2011-02-06  Bruno Haible  <bruno@clisp.org>
5448
5449         New module 'wcschr'.
5450         * modules/wcschr: New file.
5451         * lib/wchar.in.h (wcschr): New declaration.
5452         * lib/wcschr.c: New file.
5453         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
5454         * m4/wcschr.m4: New file.
5455         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
5456         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
5457         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
5458         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
5459         * doc/posix-functions/wcschr.texi: Mention the new module.
5460
5461 2011-02-06  Bruno Haible  <bruno@clisp.org>
5462
5463         New module 'wcsdup'.
5464         * modules/wcsdup: New file.
5465         * lib/wchar.in.h (wcsdup): New declaration.
5466         * lib/wcsdup.c: New file.
5467         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
5468         * m4/wcsdup.m4: New file.
5469         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
5470         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
5471         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
5472         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
5473         * doc/posix-functions/wcsdup.texi: Mention the new module.
5474
5475 2011-02-06  Bruno Haible  <bruno@clisp.org>
5476
5477         New module 'wcsxfrm'.
5478         * modules/wcsxfrm: New file.
5479         * lib/wchar.in.h (wcsxfrm): New declaration.
5480         * lib/wcsxfrm.c: New file.
5481         * lib/wcsxfrm-impl.h: New file.
5482         * m4/wcsxfrm.m4: New file.
5483         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
5484         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
5485         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
5486         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
5487         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
5488
5489 2011-02-06  Bruno Haible  <bruno@clisp.org>
5490
5491         New module 'wcscoll'.
5492         * modules/wcscoll: New file.
5493         * lib/wchar.in.h (wcscoll): New declaration.
5494         * lib/wcscoll.c: New file.
5495         * lib/wcscoll-impl.h: New file.
5496         * m4/wcscoll.m4: New file.
5497         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
5498         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
5499         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
5500         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
5501         * doc/posix-functions/wcscoll.texi: Mention the new module.
5502
5503 2011-02-06  Bruno Haible  <bruno@clisp.org>
5504
5505         New module 'wcsncasecmp'.
5506         * modules/wcsncasecmp: New file.
5507         * lib/wchar.in.h (wcsncasecmp): New declaration.
5508         * lib/wcsncasecmp.c: New file.
5509         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
5510         * m4/wcsncasecmp.m4: New file.
5511         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
5512         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
5513         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
5514         HAVE_WCSNCASECMP.
5515         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
5516         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
5517
5518 2011-02-06  Bruno Haible  <bruno@clisp.org>
5519
5520         New module 'wcscasecmp'.
5521         * modules/wcscasecmp: New file.
5522         * lib/wchar.in.h (wcscasecmp): New declaration.
5523         * lib/wcscasecmp.c: New file.
5524         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
5525         * m4/wcscasecmp.m4: New file.
5526         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
5527         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
5528         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
5529         HAVE_WCSCASECMP.
5530         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
5531         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
5532
5533 2011-02-05  Bruno Haible  <bruno@clisp.org>
5534
5535         New module 'wcsncmp'.
5536         * modules/wcsncmp: New file.
5537         * lib/wchar.in.h (wcsncmp): New declaration.
5538         * lib/wcsncmp.c: New file.
5539         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
5540         * m4/wcsncmp.m4: New file.
5541         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
5542         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
5543         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
5544         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
5545         * doc/posix-functions/wcsncmp.texi: Mention the new module.
5546
5547 2011-02-05  Bruno Haible  <bruno@clisp.org>
5548
5549         New module 'wcscmp'.
5550         * modules/wcscmp: New file.
5551         * lib/wchar.in.h (wcscmp): New declaration.
5552         * lib/wcscmp.c: New file.
5553         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
5554         * m4/wcscmp.m4: New file.
5555         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
5556         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
5557         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
5558         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
5559         * doc/posix-functions/wcscmp.texi: Mention the new module.
5560
5561 2011-02-05  Bruno Haible  <bruno@clisp.org>
5562
5563         New module 'wcsncat'.
5564         * modules/wcsncat: New file.
5565         * lib/wchar.in.h (wcsncat): New declaration.
5566         * lib/wcsncat.c: New file.
5567         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
5568         * m4/wcsncat.m4: New file.
5569         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
5570         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
5571         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
5572         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
5573         * doc/posix-functions/wcsncat.texi: Mention the new module.
5574
5575 2011-02-05  Bruno Haible  <bruno@clisp.org>
5576
5577         New module 'wcscat'.
5578         * modules/wcscat: New file.
5579         * lib/wchar.in.h (wcscat): New declaration.
5580         * lib/wcscat.c: New file.
5581         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
5582         * m4/wcscat.m4: New file.
5583         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
5584         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
5585         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
5586         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
5587         * doc/posix-functions/wcscat.texi: Mention the new module.
5588
5589 2011-02-05  Bruno Haible  <bruno@clisp.org>
5590
5591         New module 'wcpncpy'.
5592         * modules/wcpncpy: New file.
5593         * lib/wchar.in.h (wcpncpy): New declaration.
5594         * lib/wcpncpy.c: New file.
5595         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
5596         * m4/wcpncpy.m4: New file.
5597         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
5598         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
5599         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
5600         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
5601         * doc/posix-functions/wcpncpy.texi: Mention the new module.
5602
5603 2011-02-05  Bruno Haible  <bruno@clisp.org>
5604
5605         New module 'wcsncpy'.
5606         * modules/wcsncpy: New file.
5607         * lib/wchar.in.h (wcsncpy): New declaration.
5608         * lib/wcsncpy.c: New file.
5609         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
5610         * m4/wcsncpy.m4: New file.
5611         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
5612         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
5613         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
5614         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
5615         * doc/posix-functions/wcsncpy.texi: Mention the new module.
5616
5617 2011-02-05  Bruno Haible  <bruno@clisp.org>
5618
5619         New module 'wcpcpy'.
5620         * modules/wcpcpy: New file.
5621         * lib/wchar.in.h (wcpcpy): New declaration.
5622         * lib/wcpcpy.c: New file.
5623         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
5624         * m4/wcpcpy.m4: New file.
5625         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
5626         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
5627         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
5628         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
5629         * doc/posix-functions/wcpcpy.texi: Mention the new module.
5630
5631 2011-02-05  Bruno Haible  <bruno@clisp.org>
5632
5633         New module 'wcscpy'.
5634         * modules/wcscpy: New file.
5635         * lib/wchar.in.h (wcscpy): New declaration.
5636         * lib/wcscpy.c: New file.
5637         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
5638         * m4/wcscpy.m4: New file.
5639         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
5640         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
5641         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
5642         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
5643         * doc/posix-functions/wcscpy.texi: Mention the new module.
5644
5645 2011-02-05  Bruno Haible  <bruno@clisp.org>
5646
5647         New module 'wcsnlen'.
5648         * modules/wcsnlen: New file.
5649         * lib/wchar.in.h (wcsnlen): New declaration.
5650         * lib/wcsnlen.c: New file.
5651         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
5652         * m4/wcsnlen.m4: New file.
5653         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
5654         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
5655         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
5656         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
5657         * doc/posix-functions/wcsnlen.texi: Mention the new module.
5658
5659 2011-02-05  Bruno Haible  <bruno@clisp.org>
5660
5661         New module 'wcslen'.
5662         * modules/wcslen: New file.
5663         * lib/wchar.in.h (wcslen): New declaration.
5664         * lib/wcslen.c: New file.
5665         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
5666         * m4/wcslen.m4: New file.
5667         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
5668         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
5669         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
5670         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
5671         * doc/posix-functions/wcslen.texi: Mention the new module.
5672
5673 2011-02-05  Bruno Haible  <bruno@clisp.org>
5674
5675         New module 'wmemset'.
5676         * modules/wmemset: New file.
5677         * lib/wchar.in.h (wmemset): New declaration.
5678         * lib/wmemset.c: New file.
5679         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
5680         * m4/wmemset.m4: New file.
5681         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
5682         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
5683         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
5684         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
5685         * doc/posix-functions/wmemset.texi: Mention the new module.
5686
5687 2011-02-05  Bruno Haible  <bruno@clisp.org>
5688
5689         New module 'wmemmove'.
5690         * modules/wmemmove: New file.
5691         * lib/wchar.in.h (wmemmove): New declaration.
5692         * lib/wmemmove.c: New file.
5693         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
5694         * m4/wmemmove.m4: New file.
5695         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
5696         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
5697         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
5698         HAVE_WMEMMOVE.
5699         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
5700         * doc/posix-functions/wmemmove.texi: Mention the new module.
5701
5702 2011-02-05  Bruno Haible  <bruno@clisp.org>
5703
5704         New module 'wmemcpy'.
5705         * modules/wmemcpy: New file.
5706         * lib/wchar.in.h (wmemcpy): New declaration.
5707         * lib/wmemcpy.c: New file.
5708         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
5709         * m4/wmemcpy.m4: New file.
5710         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
5711         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
5712         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
5713         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
5714         * doc/posix-functions/wmemcpy.texi: Mention the new module.
5715
5716 2011-02-05  Bruno Haible  <bruno@clisp.org>
5717
5718         New module 'wmemcmp'.
5719         * modules/wmemcmp: New file.
5720         * lib/wchar.in.h (wmemcmp): New declaration.
5721         * lib/wmemcmp.c: New file.
5722         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
5723         * m4/wmemcmp.m4: New file.
5724         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
5725         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
5726         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
5727         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
5728         * doc/posix-functions/wmemcmp.texi: Mention the new module.
5729
5730 2011-02-07  Jim Meyering  <meyering@redhat.com>
5731
5732         di-set, ino-map: new modules, from coreutils
5733         * lib/di-set.c: New file.
5734         * lib/di-set.h: Likewise.
5735         * lib/ino-map.c: Likewise.
5736         * lib/ino-map.h: Likewise.
5737         * modules/di-set: Likewise.
5738         * modules/di-set-tests: Likewise.
5739         * modules/ino-map: Likewise.
5740         * modules/ino-map-tests: Likewise.
5741         * tests/test-di-set.c: Likewise.
5742         * tests/test-ino-map.c: Likewise.
5743
5744 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
5745
5746         getloadavg: merge minor changes from Emacs
5747
5748         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
5749         (getloadavg): Use memset, not bzero.
5750
5751         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
5752         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
5753         clash (bug#86).
5754
5755 2010-11-14  Bruno Haible  <bruno@clisp.org>
5756
5757         Allow multiple gnulib generated replacements to coexist.
5758         * lib/getopt.in.h (struct option): Avoid identical redefinition.
5759         * lib/inttypes.in.h (imaxdiv_t): Likewise.
5760         * lib/langinfo.in.h (nl_item): Likewise.
5761         * lib/math.in.h (_NaN, NAN): Likewise.
5762         * lib/netdb.in.h (struct addrinfo): Likewise.
5763         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
5764         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
5765         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
5766         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
5767         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
5768         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
5769         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
5770         pthread_mutexattr_init, pthread_mutexattr_settype,
5771         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
5772         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
5773         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
5774         pthread_spin_trylock, pthread_spin_unlock): Likewise.
5775         * lib/sched.in.h (struct sched_param): Likewise.
5776         * lib/se-selinux.in.h (security_class_t, security_context_t,
5777         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
5778         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
5779         lsetfilecon, fsetfilecon, security_check_context,
5780         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
5781         Likewise.
5782         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
5783         Likewise.
5784         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
5785         _gl_function_taking_int_returning_void_t, union sigval,
5786         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
5787         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
5788         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
5789         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
5790         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
5791         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
5792         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
5793         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
5794         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
5795         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
5796         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
5797         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
5798         socklen_t, rpl_fd_isset): Likewise.
5799         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
5800         * lib/sys_time.in.h (struct timeval): Likewise.
5801         * lib/sys_times.in.h (struct tms): Likewise.
5802         * lib/sys_utsname.in.h (struct utsname):
5803         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
5804         * lib/unistd.in.h (getpagesize): Likewise.
5805         * lib/wchar.in.h (mbstate_t): Likewise.
5806         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
5807         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
5808         towlower, towupper): Likewise.
5809         Reported by Sam Steingold <sds@gnu.org>.
5810
5811 2011-02-05  Eric Blake  <eblake@redhat.com>
5812
5813         unsetenv: work around Haiku issues
5814         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
5815         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
5816
5817 2010-12-30  Bruce Korb  <bkorb@gnu.org>
5818
5819         libposix: avoid calling error() within libposix
5820         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
5821         is defined.
5822
5823 2011-02-05  Eric Blake  <eblake@redhat.com>
5824
5825         strerror_r-posix: port to cygwin
5826         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
5827         implementation.
5828         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
5829         * tests/test-strerror_r.c (main): Fix test.
5830         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
5831         issue.
5832
5833 2011-02-05  Bruno Haible  <bruno@clisp.org>
5834
5835         New module 'wmemchr'.
5836         * modules/wmemchr: New file.
5837         * lib/wchar.in.h (wmemchr): New declaration.
5838         * lib/wmemchr.c: New file.
5839         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
5840         * m4/wmemchr.m4: New file.
5841         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
5842         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
5843         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
5844         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
5845         * doc/posix-functions/wmemchr.texi: Mention the new module.
5846
5847 2011-02-04  Eric Blake  <eblake@redhat.com>
5848
5849         fdopendir: detect FreeBSD bug
5850         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
5851         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
5852
5853 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
5854
5855         stdbool: do not define HAVE_STDBOOL_H
5856         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
5857         AC_HEADER_STDBOOL.  All uses changed.  Do not define
5858         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
5859         imported from the latest Autoconf git.  It was motivated by Emacs,
5860         which uses gnulib but does not need HAVE_STDBOOL_H.
5861
5862 2011-02-04  Bruno Haible  <bruno@clisp.org>
5863
5864         wcsnrtombs: Prepare for new module wwcsnrtombs.
5865         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
5866         * lib/wcsnrtombs.c: Include it.
5867         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
5868
5869         wcsrtombs: Prepare for new module wwcsrtombs.
5870         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
5871         * lib/wcsrtombs.c: Include it.
5872         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
5873
5874         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
5875         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
5876         * lib/mbsnrtowcs.c: Include it.
5877         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
5878
5879         mbsrtowcs: Prepare for new module mbsrtowwcs.
5880         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
5881         * lib/mbsrtowcs.c: Include it.
5882         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
5883
5884 2011-02-04  Bruno Haible  <bruno@clisp.org>
5885
5886         vasnprintf: Reduce use of malloc for small format strings.
5887         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
5888         (arguments): Add room for the first 7 arguments.
5889         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
5890         (char_directives, u8_directives, u16_directives, u32_directives): Add
5891         room for the first 7 directives.
5892         * lib/printf-parse.c: Include <string.h>.
5893         (PRINTF_PARSE): Change memory handling code so that it uses the first
5894         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
5895         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
5896         Reported by Pádraig Brady <P@draigbrady.com>.
5897
5898 2011-01-31  Eric Blake  <eblake@redhat.com>
5899
5900         dup2: work around Haiku bug
5901         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
5902         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
5903         * doc/posix-functions/dup2.texi (dup2): Document the bug.
5904         * tests/test-dup2.c (main): Enhance test.
5905
5906 2011-01-31  Simon Josefsson  <simon@josefsson.org>
5907
5908         doc: off_t is not available in eglibc 2.11.2 stdio.h.
5909         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
5910         declared by eglibc 2.11.2.
5911         * lib/stdio.in.h: Likewise.
5912
5913 2011-01-31  Eric Blake  <eblake@redhat.com>
5914
5915         ignore-value: add missing test dependency
5916         * tests/test-ignore-value.c: Revert previous change; stdio.h
5917         provides off_t.
5918         * modules/ignore-value-tests (Depends-on): Add missing dependency.
5919
5920 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
5921
5922         mktime: clarify long_int width checking
5923         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
5924         the top level, to make it clearer that the assumption about
5925         long_int width is being checked.  See
5926         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
5927
5928 2011-01-30  Simon Josefsson  <simon@josefsson.org>
5929
5930         ignore-value: Fix self-test.
5931         * tests/test-ignore-value.c: Include sys/types.h for off_t.
5932
5933 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
5934
5935         TYPE_MAXIMUM: avoid theoretically undefined behavior
5936         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
5937         negative number, which the C Standard says has undefined behavior.
5938         In practice this is not a problem, but might as well do it by the book.
5939         Reported by Rich Felker and Eric Blake; see
5940         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
5941         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
5942         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
5943         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
5944         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
5945         * m4/stdint.m4 (gl_STDINT_H): Likewise.
5946         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
5947
5948         mktime: #undef mktime before #defining it
5949         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
5950
5951         mktime: systematically normalize tm_isdst comparisons
5952         * lib/mktime.c (isdst_differ): New function.
5953         (__mktime_internal): Use it systematically for all isdst comparisons.
5954         This completes the fix for libc BZ #6723, and removes the need for
5955         normalizing tm_isdst.  See
5956         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
5957         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
5958
5959         mktime: fix some integer overflow issues and sidestep the rest
5960
5961         This was prompted by a bug report by Benjamin Lindner for MinGW
5962         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
5963         His bug is due to signed integer overflow (0 - INT_MIN), and I
5964         I scanned through mktime.c looking for other integer overflow
5965         problems, fixing all the bugs I found.
5966
5967         Although the C Standard says the resulting code is still not safe
5968         in the presence of integer overflow, in practice it should be good
5969         enough for all real-world two's-complement implementations, except
5970         for debugging environments that deliberately trap on integer
5971         overflow (e.g., gcc -ftrapv).
5972
5973         * lib/mktime.c (WRAPV): New macro.
5974         (SHR): Also check that long_int and time_t shift right in the
5975         usual way, before using the fast-but-unportable method.
5976         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
5977         used.  The code already assumed two's complement, so there's
5978         no need to test for alternatives.  All uses removed.
5979         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
5980         the C standard.  Problem reported by Rich Felker in
5981         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
5982         (twos_complement_arithmetic): Also check long_int and time_t.
5983         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
5984         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
5985         (__mktime_internal): Avoid integer overflow with unary subtraction
5986         in two instances where -1 - X is an adequate replacement for -X,
5987         since the calculations are approximate.
5988
5989 2011-01-29  Eric Blake  <eblake@redhat.com>
5990
5991         mktime: avoid infinite loop
5992         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
5993         type; behavior is still undefined but portable to all known targets.
5994         Reported by Rich Felker.
5995
5996 2011-01-29  Simon Josefsson  <simon@josefsson.org>
5997
5998         rename, unlink, same-inode: Relicense.
5999         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
6000         * modules/unlink (License): Likewise.
6001         * modules/same-inode (License): Likewise.
6002
6003 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
6004
6005         mktime: avoid problems on NetBSD 5 / i386
6006         * lib/mktime.c (long_int): New type.  This works around a problem
6007         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
6008         but time_t is 64 bits, and where I expect the existing code is
6009         wrong in some cases.
6010         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
6011         (ydhms_diff): Bring back the compile-time check for wide-enough
6012         year and yday.
6013
6014         mktime: fix misspelling in comment
6015         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
6016         This merges all recent glibc changes of importance.
6017
6018 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6019
6020         move-if-change: cope with concurrent mv of identical file.
6021         * build-aux/move-if-change (CMPPROG): Accept environment
6022         variable as an override for `cmp'.
6023         (usage): Document CMPPROG.
6024         Adjust comparison to drop stdout.  Cope with failure of mv if
6025         the target file exists and is identical to the source, for
6026         parallel builds.
6027         Report from H.J. Lu against binutils in PR binutils/12283.
6028
6029 2011-01-28  Bruce Korb  <bkorb@gnu.org>
6030
6031         * users.txt: Mention sharutils.
6032
6033 2011-01-28  Simon Josefsson  <simon@josefsson.org>
6034
6035         * users.txt: Mention OATH Toolkit.
6036
6037 2011-01-27  Bruno Haible  <bruno@clisp.org>
6038
6039         Prepare for supporting FreeBSD 10.
6040         * build-aux/config.libpath: Remove handling of freebsd1*.
6041
6042 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
6043
6044         Prepare for supporting FreeBSD 10.
6045         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
6046         match FreeBSD 10.0.
6047
6048 2011-01-27  Bruno Haible  <bruno@clisp.org>
6049
6050         vma-iter, get-rusage-as: Add OpenBSD support.
6051         * modules/vma-iter (configure.ac): Test for mquery.
6052         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
6053         * lib/vma-iter.c: Include <sys/mman.h>.
6054         (vma_iterate): Add an implementation based on mquery().
6055         * lib/resource-ext.h (get_rusage_as): Update comments.
6056         * lib/get-rusage-as.c: Likewise.
6057         * lib/get-rusage-data.c: Likewise.
6058
6059 2011-01-26  Karl Berry  <karl@gnu.org>
6060
6061         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
6062         variables to make it easier to override the makeinfo program used.
6063
6064 2011-01-26  Eric Blake  <eblake@redhat.com>
6065
6066         fcntl: work around Haiku F_DUPFD bugs
6067         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
6068         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
6069         cloexec bit on duplication.
6070         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
6071
6072 2011-01-26  Bruno Haible  <bruno@clisp.org>
6073
6074         Enable memory leak tests on AIX.
6075         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
6076         * tests/test-fprintf-posix3.c (main): Likewise.
6077
6078 2011-01-26  Bruno Haible  <bruno@clisp.org>
6079
6080         Tests for module 'get-rusage-data'.
6081         * modules/get-rusage-data-tests: New file.
6082         * tests/test-get-rusage-data.c: New file.
6083
6084         New module 'get-rusage-data'.
6085         * lib/resource-ext.h (get_rusage_data): New declaration.
6086         * lib/get-rusage-data.c: New file.
6087         * modules/get-rusage-data: New file.
6088
6089 2011-01-25  Bruno Haible  <bruno@clisp.org>
6090
6091         get-rusage-as: Allow for easier testing.
6092         * lib/resource-ext.h (get_rusage_as): Add comment.
6093         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
6094         (main): New function for interactive testing.
6095
6096 2011-01-25  Bruno Haible  <bruno@clisp.org>
6097
6098         vma-iter: Treat Haiku like BeOS.
6099         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
6100         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
6101
6102 2011-01-25  Eric Blake  <eblake@redhat.com>
6103
6104         c-stack: fix regression on cygwin when libsigsegv is present
6105         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
6106
6107 2011-01-24  Bruno Haible  <bruno@clisp.org>
6108
6109         vma-iter: Avoid empty intervals.
6110         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
6111         on an empty interval.
6112
6113 2011-01-24  Jim Meyering  <meyering@redhat.com>
6114
6115         u64: remove unnecessary #include
6116         * lib/u64.h: Don't include <stddef.h>.  It was not used.
6117
6118 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
6119
6120         Allow the user to avoid the HAVE_RAW_DECL_* macros.
6121         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
6122
6123 2011-01-23  Bruno Haible  <bruno@clisp.org>
6124
6125         New module 'vma-iter'.
6126         * lib/vma-iter.h: New file.
6127         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
6128         * modules/vma-iter: New file.
6129         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
6130         for get_rusage_as_via_iterator.
6131         (vma_iterate_callback): New function.
6132         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
6133         * modules/get-rusage-as (Depends-on): Add vma-iter.
6134
6135 2011-01-23  Bruno Haible  <bruno@clisp.org>
6136
6137         uninorm: Tweak includes.
6138         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
6139         Reported by Jim Meyering.
6140
6141 2011-01-23  Bruno Haible  <bruno@clisp.org>
6142
6143         get-rusage-as: Improve on NetBSD.
6144         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
6145         /proc, like on FreeBSD.
6146
6147 2011-01-23  Jim Meyering  <meyering@redhat.com>
6148
6149         xreadlink.h: remove unnecessary #include
6150         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
6151
6152         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
6153         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
6154
6155 2011-01-23  Bruno Haible  <bruno@clisp.org>
6156
6157         get-rusage-as: Fix bug.
6158         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
6159         original limit when aborting the first loop.
6160
6161 2011-01-23  Bruno Haible  <bruno@clisp.org>
6162
6163         wctype: Ensure valid C syntax.
6164         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
6165         unconditionally, instead of gl_NEXT_HEADERS conditionally.
6166
6167 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
6168
6169         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
6170         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
6171         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
6172         as they are needed only for configure's test case.
6173         This removes two unnecessary symbols from config.h.
6174
6175         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
6176         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
6177         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
6178         AC_CHECK_HEADERS_ONCE on a header that we also invoke
6179         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
6180         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
6181         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
6182         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
6183         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
6184         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
6185         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
6186         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
6187         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
6188         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
6189         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
6190         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
6191         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
6192         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
6193
6194 2011-01-21  Eric Blake  <eblake@redhat.com>
6195
6196         maintainer-makefile: work with older git for submodule check
6197         * top/maint.mk (public-submodule-commit): Rewrite to avoid
6198         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
6199         Reported by Matthias Bolte.
6200
6201         bootstrap: minor portability fixes
6202         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
6203         (usage): Omit leading capital and trailing . on help phrases, per
6204         GNU Coding Standards.
6205         (check_versions, top level): Prefix messages with script name.
6206
6207 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
6208
6209         bootstrap: support --no-git option
6210         * build-aux/bootstrap: Add --no-git option, to be used when
6211         --gnulib-srcdir points to the exact desired checkout.
6212
6213 2011-01-21  Eric Blake  <eblake@redhat.com>
6214
6215         strerror_r-posix: work with glibc 2.13
6216         * lib/strerror_r.c (strerror_r): Fix return type.
6217
6218 2011-01-21  Pádraig Brady  <P@draigBrady.com>
6219             Bruno Haible  <bruno@clisp.org>
6220
6221         uN_strstr: New unit tests.
6222         * modules/unistr/u8-strstr-tests: New file.
6223         * modules/unistr/u16-strstr-tests: New file.
6224         * modules/unistr/u32-strstr-tests: New file.
6225         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
6226         * tests/unistr/test-u8-strstr.c: New file.
6227         * tests/unistr/test-u16-strstr.c: New file.
6228         * tests/unistr/test-u32-strstr.c: New file.
6229
6230 2011-01-21  Pádraig Brady  <P@draigBrady.com>
6231             Bruno Haible  <bruno@clisp.org>
6232
6233         Make uN_strstr functions O(n) worst-case.
6234         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
6235         16-bit and 32-bit unit cases, use the unibyte algorithm from
6236         lib/mbsstr.c.
6237         * lib/unistr/u8-strstr.c: Include <string.h>.
6238         (UNIT_IS_UINT8_T): New macro.
6239         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
6240         (U_STRLEN, U_STRNLEN): New macros.
6241         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
6242         (U_STRLEN, U_STRNLEN): New macros.
6243         * modules/unistr/u8-strstr (Depends-on): Add strstr.
6244         (configure.ac): Update required libunistring version.
6245         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
6246         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
6247         malloca.
6248         (configure.ac): Update required libunistring version.
6249         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
6250         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
6251         malloca.
6252         (configure.ac): Update required libunistring version.
6253
6254 2011-01-21  Pádraig Brady  <P@draigBrady.com>
6255             Bruno Haible  <bruno@clisp.org>
6256
6257         Prepare for faster uN_strstr functions.
6258         * lib/str-kmp.h: Support definable UNITs.
6259         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
6260         needle_len argument.
6261         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
6262         * lib/mbscasestr.c (mbscasestr): Likewise.
6263
6264 2011-01-21  Pádraig Brady <P@draigBrady.com>
6265
6266         malloca-tests: make faster by unsetting MALLOC_PERTURB_
6267         * tests/test-malloca.c (main): Unset the environment variable
6268         to greatly speed up the test.
6269         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
6270         * modules/malloca-tests: Depend on unsetenv.
6271
6272 2011-01-21  Pádraig Brady <P@draigBrady.com>
6273
6274         ignore-value: remove stdint dependency
6275         * lib/ignore-value.h: Remove <stdint.h>
6276         * modules/ignore-value: Remove stdint dependency.
6277
6278 2011-01-21  Jim Meyering  <meyering@redhat.com>
6279
6280         maint.mk: adjust variable name to be consistent with other gl_ vars
6281         * top/maint.mk (gl_public_submodule_commit): Rename the variable
6282         to be lower case.
6283
6284 2011-01-20  Jim Meyering  <meyering@redhat.com>
6285
6286         maint.mk: make "check" depend on public-submodule-commit by default
6287         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
6288
6289 2011-01-20  Bruno Haible  <bruno@clisp.org>
6290
6291         mbfile, mbiter: Complete change from 2008-12-21.
6292         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
6293         * m4/mbiter.m4 (gl_MBITER): Likewise.
6294
6295 2011-01-20  Jim Meyering  <meyering@redhat.com>
6296
6297         init.sh: insert space between each function name and "()"
6298         * tests/init.sh: Make it a little easier to see that a function's
6299         name is "warn_", and not "warn" when looking at the first part of
6300         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
6301
6302 2011-01-20  Jim Meyering  <meyering@redhat.com>
6303
6304         mountlist: clean up code formatting
6305         * lib/mountlist.c (read_file_system_list): Split a long line,
6306         correct bracing style, use NULL in place of "(struct statfs *)0",
6307         don't parenthesize return value, add spaces around "=" and after
6308         ";-in-for-stmt".
6309
6310 2011-01-14  Markus Duft <mduft@gentoo.org>
6311
6312         mountlist: add support for Interix
6313         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
6314         Apply statvfs to all entries of /dev/fs.
6315         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
6316         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
6317
6318 2011-01-20  Jim Meyering  <meyering@redhat.com>
6319
6320         maint.mk: improve the public-submodule-commit rule
6321         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
6322         to suppress printing of its commands... unless V=1.
6323         Add git submodule's --quiet option to suppress printing of e.g.,
6324         "Entering gnulib" output.
6325         "cd" into $(srcdir) before running git submodule.
6326
6327 2011-01-20  Bruno Haible  <bruno@clisp.org>
6328
6329         include_next: Fix bug introduced on 2011-01-18.
6330         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
6331         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
6332         ac_cv_header_... variable if the second argument is not 'check'.
6333         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
6334         gl_NEXT_HEADERS_INTERNAL.
6335
6336 2011-01-20  Bruno Haible  <bruno@clisp.org>
6337
6338         Allow the user to avoid the GNULIB_TEST_* macros.
6339         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
6340         Suggested by Paul Eggert.
6341
6342 2011-01-14  Jim Meyering  <meyering@redhat.com>
6343
6344         bootstrap: avoid failure when there is no .gitmodules file
6345         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
6346         has been assigned to, even when its value is the empty string.
6347         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
6348         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
6349         Reported by John W. Eaton <jwe@gnu.org>.
6350
6351 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
6352
6353         assume <ctype.h>, ..., <time.h> exist
6354         For years gnulib has been assuming the existence of the headers
6355         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
6356         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
6357         them, since they don't appear to be needed.
6358         * README (Portability guidelines): Document this.
6359         * lib/flock.c: Assume <fcntl.h> exists.
6360         * lib/regex_internal.h: Assume <locale.h> exists.
6361         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
6362         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
6363         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
6364         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
6365         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
6366         * m4/regex.m4 (gl_REGEX): Likewise.
6367         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
6368         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
6369         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
6370         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
6371         * tests/test-argp.c: Likewise.
6372         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
6373
6374         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
6375         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
6376         AA_APPLE_UNIVERSAL_BUILD.  See
6377         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
6378         * NEWS: Document this.
6379
6380 2011-01-19  Eric Blake  <eblake@redhat.com>
6381
6382         c-stack: assume stack overflow if SA_SIGINFO unsupported
6383         * lib/c-stack.c (SIGACTION_WORKS): Rename...
6384         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
6385         sigaction will work.
6386         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
6387         behavior match Linux.
6388         * tests/test-c-stack.c (main): Prefer NULL for pointers.
6389
6390         stdbool-tests: accomodate Haiku
6391         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
6392
6393         binary-io: fix O_TEXT on Haiku
6394         * modules/binary-io (Depends-on): Add fcntl-h.
6395         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
6396         than blindly undefining O_TEXT.
6397         Reported by Scott McCreary.
6398
6399 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
6400
6401         include_next: do not check for standard headers like stddef.h
6402
6403         I found this problem when modifying Emacs to use gnulib.
6404         I noticed that it added HAVE_STDDEF_H to config.h, even though
6405         gnulib always assumes <stddef.h> exists as per README and this
6406         symbol is unnecessary.
6407         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
6408         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
6409         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
6410         faster for headers like stddef.h that are known to exist.
6411         (gl_CHECK_NEXT_HEADERS): Use it.
6412         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
6413         rather than gl_CHECK_NEXT_HEADERS.
6414         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
6415         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
6416
6417 2011-01-18  Eric Blake  <eblake@redhat.com>
6418
6419         ansi-c++-opt: skip C++ dependency style if C++ is unused
6420         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
6421         tests when we know C++ compilation is not desired.
6422         Reported by Scott McCreary.
6423
6424 2011-01-18  Bruno Haible  <bruno@clisp.org>
6425
6426         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
6427         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
6428         (main): Perform test also when getrlimit and setrlimit don't exist or
6429         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
6430         limiting the address space size using setrlimit, compare the address
6431         space size before and after the the test.
6432         * tests/test-dprintf-posix2.c: Likewise.
6433         * tests/test-fprintf-posix3.sh: Update skip messages.
6434         * tests/test-dprintf-posix2.sh: Likewise.
6435         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
6436         * modules/dprintf-posix-tests (Depends-on): Likewise.
6437         Reported by Bruce Korb <bkorb@gnu.org> and
6438         Gary V. Vaughan <gary@gnu.org>.
6439
6440 2011-01-18  Bruno Haible  <bruno@clisp.org>
6441
6442         get-rusage-as: Improvement for Cygwin.
6443         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
6444         areas that are merely reserved.
6445
6446 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
6447
6448         strftime: remove dependencies on multibyte modules
6449
6450         strftime depended on mbrlen, mbsinit, and wchar, but these modules
6451         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
6452         only if __osf__ is defined, and I suspect OSF doesn't need these
6453         other modules.  If my guess is wrong, we'll need to come up with a
6454         variant of strftime that doesn't need the multibyte modules.
6455
6456         I discovered this problem when attempting modify Emacs to use the
6457         strftime module.  With the previous gnulib, this caused Emacs to
6458         need 31 new files, ranging from lib/config.charset to
6459         m4/wint_t.m4.  This was overkill and I expect would be offputting
6460         to the Emacs maintainers.  After this change, only 6 new files are
6461         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
6462         stdbool.m4, and tm_gmtoff.m4.
6463
6464         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
6465         Suggested by Bruno Haible in
6466         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
6467         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
6468         and do not check for wchar.h.
6469         * modules/strftime (Files): Remove m4/mbstate_t.m4.
6470         (Depends-on): Remove mbrlen, mbsinit, wchar.
6471
6472 2011-01-18  Bruno Haible  <bruno@clisp.org>
6473
6474         Tests for module 'get-rusage-as'.
6475         * modules/get-rusage-as-tests: New file.
6476         * tests/test-get-rusage-as.c: New file.
6477
6478         New module 'get-rusage-as'.
6479         * modules/get-rusage-as: New file.
6480         * lib/resource-ext.h: New file.
6481         * lib/get-rusage-as.c: New file.
6482
6483 2011-01-17  Eric Blake  <eblake@redhat.com>
6484
6485         sigaction: relax license from LGPLv3+ to LGPLv2+
6486         * modules/sigaction (License): Relax to LGPLv2+.
6487
6488 2011-01-14  Bruno Haible  <bruno@clisp.org>
6489
6490         filemode: Make function declarations usable in C++ mode.
6491         * lib/filemode.h: Enclose function declarations in extern "C" block.
6492         Reported by John W. Eaton <jwe@gnu.org>.
6493
6494 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
6495
6496         save-cwd: no longer include "xgetcwd.h"
6497         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
6498         This avoids a compilation failure in projects that use save-cwd
6499         without also using the xgetcwd module.
6500
6501 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
6502
6503         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
6504         This is so that a program like Emacs, which needs only dtoastr,
6505         does not have to bother with distributing and compiling ftoastr
6506         and ldtoastr.
6507         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
6508         * modules/dtoastr, modules/ldtoastr: New files.
6509         * modules/ftoastr: Now works just for 'float'.
6510         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
6511         (Makefile.am): Remove ftoastr.h (not needed and no effect),
6512         dtoastr.c, ldtoastr.c.
6513
6514 2011-01-11  Jim Meyering  <meyering@redhat.com>
6515
6516         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
6517         There is no need to work around the lack of the fchdir function,
6518         since gnulib can now provide a replacement when required.
6519         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
6520         * modules/save-cwd (Depends-on): Add fchdir.
6521
6522 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
6523
6524         openat, save-cwd: avoid xmalloc
6525
6526         This removes a direct (but undocumented) dependency of openat on
6527         xalloc, along with an indirect dependency via save-cwd.  It also
6528         removes a dependency of save-cwd on xgetcwd, and thereby
6529         indirectly on xalloc.  This change causes the openat substitute
6530         to fall back on save_cwd when memory is tight, and for save_cwd to
6531         fail instead of dying when memory is tight, but that's good enough.
6532         Problem and initial idea for fix reported by Bastien Roucaries in
6533         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
6534
6535         * lib/openat-proc.c: Include stdlib.h (for malloc), not
6536         xalloc.h (for xmalloc).
6537         (openat_proc_name): Use malloc, not xmalloc.
6538         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
6539         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
6540
6541         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
6542         This avoids heap allocation for file names whose lengths are in
6543         the range 512..1023, with the upper bound increasing to at most
6544         4031 depending on the platform's PATH_MAX.  (We do not want
6545         pathmax.h here as it might supply a non-constant PATH_MAX.)
6546         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
6547         Perhaps they should be moved to malloca.h?
6548         (OPENAT_BUFFER_SIZE): Use them.
6549
6550 2011-01-10  Bruno Haible  <bruno@clisp.org>
6551
6552         doc: Update users.txt.
6553         * users.txt: Add recutils.
6554
6555 2011-01-09  Karl Berry  <karl@gnu.org>
6556
6557         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
6558
6559         * doc/configmake.texi: New file.
6560         * doc/gnulib.texi: Include it.
6561         * modules/configmake: Move documentation from here.
6562
6563 2011-01-09  Bruno Haible  <bruno@clisp.org>
6564
6565         Update to Unicode 6.0.0.
6566         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
6567         (get_lbp): Update for Unicode 6.0.0.
6568         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
6569         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
6570         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
6571         U+11001, U+11038..U+11046. Remove U+06DE.
6572         (uc_width): Fix bounds of planes.
6573         * tests/uniwidth/test-uc_width2.sh: Same updates as in
6574         lib/uniwidth/width.c.
6575         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
6576         trailing whitespace removed.
6577         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
6578         without comments, but with the original copyright notice.
6579         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
6580         * lib/unicase/ignorable.h: Likewise.
6581         * lib/unicase/tocasefold.h: Likewise.
6582         * lib/unicase/tolower.h: Likewise.
6583         * lib/unicase/totitle.h: Likewise.
6584         * lib/unicase/toupper.h: Likewise.
6585         * lib/unictype/bidi_of.h: Likewise.
6586         * lib/unictype/blocks.h: Likewise.
6587         * lib/unictype/categ_C.h: Likewise.
6588         * lib/unictype/categ_Cn.h: Likewise.
6589         * lib/unictype/categ_L.h: Likewise.
6590         * lib/unictype/categ_Ll.h: Likewise.
6591         * lib/unictype/categ_Lm.h: Likewise.
6592         * lib/unictype/categ_Lo.h: Likewise.
6593         * lib/unictype/categ_Lu.h: Likewise.
6594         * lib/unictype/categ_M.h: Likewise.
6595         * lib/unictype/categ_Mc.h: Likewise.
6596         * lib/unictype/categ_Me.h: Likewise.
6597         * lib/unictype/categ_Mn.h: Likewise.
6598         * lib/unictype/categ_N.h: Likewise.
6599         * lib/unictype/categ_Nd.h: Likewise.
6600         * lib/unictype/categ_No.h: Likewise.
6601         * lib/unictype/categ_P.h: Likewise.
6602         * lib/unictype/categ_Po.h: Likewise.
6603         * lib/unictype/categ_S.h: Likewise.
6604         * lib/unictype/categ_Sc.h: Likewise.
6605         * lib/unictype/categ_Sk.h: Likewise.
6606         * lib/unictype/categ_Sm.h: Likewise.
6607         * lib/unictype/categ_So.h: Likewise.
6608         * lib/unictype/categ_of.h: Likewise.
6609         * lib/unictype/combining.h: Likewise.
6610         * lib/unictype/ctype_alnum.h: Likewise.
6611         * lib/unictype/ctype_alpha.h: Likewise.
6612         * lib/unictype/ctype_graph.h: Likewise.
6613         * lib/unictype/ctype_lower.h: Likewise.
6614         * lib/unictype/ctype_print.h: Likewise.
6615         * lib/unictype/ctype_punct.h: Likewise.
6616         * lib/unictype/ctype_upper.h: Likewise.
6617         * lib/unictype/decdigit.h: Likewise.
6618         * lib/unictype/digit.h: Likewise.
6619         * lib/unictype/numeric.h: Likewise.
6620         * lib/unictype/pr_alphabetic.h: Likewise.
6621         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
6622         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
6623         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
6624         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
6625         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
6626         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
6627         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
6628         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
6629         * lib/unictype/pr_case_ignorable.h: Likewise.
6630         * lib/unictype/pr_cased.h: Likewise.
6631         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
6632         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
6633         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
6634         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
6635         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
6636         * lib/unictype/pr_combining.h: Likewise.
6637         * lib/unictype/pr_composite.h: Likewise.
6638         * lib/unictype/pr_currency_symbol.h: Likewise.
6639         * lib/unictype/pr_decimal_digit.h: Likewise.
6640         * lib/unictype/pr_deprecated.h: Likewise.
6641         * lib/unictype/pr_format_control.h: Likewise.
6642         * lib/unictype/pr_grapheme_base.h: Likewise.
6643         * lib/unictype/pr_grapheme_extend.h: Likewise.
6644         * lib/unictype/pr_grapheme_link.h: Likewise.
6645         * lib/unictype/pr_id_continue.h: Likewise.
6646         * lib/unictype/pr_id_start.h: Likewise.
6647         * lib/unictype/pr_ideographic.h: Likewise.
6648         * lib/unictype/pr_lowercase.h: Likewise.
6649         * lib/unictype/pr_math.h: Likewise.
6650         * lib/unictype/pr_numeric.h: Likewise.
6651         * lib/unictype/pr_other_alphabetic.h: Likewise.
6652         * lib/unictype/pr_other_id_continue.h: Likewise.
6653         * lib/unictype/pr_other_math.h: Likewise.
6654         * lib/unictype/pr_punctuation.h: Likewise.
6655         * lib/unictype/pr_sentence_terminal.h: Likewise.
6656         * lib/unictype/pr_terminal_punctuation.h: Likewise.
6657         * lib/unictype/pr_unassigned_code_value.h: Likewise.
6658         * lib/unictype/pr_unified_ideograph.h: Likewise.
6659         * lib/unictype/pr_uppercase.h: Likewise.
6660         * lib/unictype/pr_xid_continue.h: Likewise.
6661         * lib/unictype/pr_xid_start.h: Likewise.
6662         * lib/unictype/scripts.h: Likewise.
6663         * lib/unictype/scripts_byname.gperf: Likewise.
6664         * lib/unictype/sy_java_ident.h: Likewise.
6665         * lib/unigbrk/gbrkprop.h: Likewise.
6666         * lib/unilbrk/lbrkprop1.h: Likewise.
6667         * lib/unilbrk/lbrkprop2.h: Likewise.
6668         * lib/uninorm/decomposition-table2.h: Likewise.
6669         * lib/uniwbrk/wbrkprop.h: Likewise.
6670         * tests/unicase/test-cased.c: Likewise.
6671         * tests/unicase/test-ignorable.c: Likewise.
6672         * tests/unicase/test-uc_tolower.c: Likewise.
6673         * tests/unicase/test-uc_totitle.c: Likewise.
6674         * tests/unicase/test-uc_toupper.c: Likewise.
6675         * tests/unictype/test-categ_C.c: Likewise.
6676         * tests/unictype/test-categ_Cn.c: Likewise.
6677         * tests/unictype/test-categ_L.c: Likewise.
6678         * tests/unictype/test-categ_Ll.c: Likewise.
6679         * tests/unictype/test-categ_Lm.c: Likewise.
6680         * tests/unictype/test-categ_Lo.c: Likewise.
6681         * tests/unictype/test-categ_Lu.c: Likewise.
6682         * tests/unictype/test-categ_M.c: Likewise.
6683         * tests/unictype/test-categ_Mc.c: Likewise.
6684         * tests/unictype/test-categ_Me.c: Likewise.
6685         * tests/unictype/test-categ_Mn.c: Likewise.
6686         * tests/unictype/test-categ_N.c: Likewise.
6687         * tests/unictype/test-categ_Nd.c: Likewise.
6688         * tests/unictype/test-categ_No.c: Likewise.
6689         * tests/unictype/test-categ_P.c: Likewise.
6690         * tests/unictype/test-categ_Po.c: Likewise.
6691         * tests/unictype/test-categ_S.c: Likewise.
6692         * tests/unictype/test-categ_Sc.c: Likewise.
6693         * tests/unictype/test-categ_Sk.c: Likewise.
6694         * tests/unictype/test-categ_Sm.c: Likewise.
6695         * tests/unictype/test-categ_So.c: Likewise.
6696         * tests/unictype/test-ctype_alnum.c: Likewise.
6697         * tests/unictype/test-ctype_alpha.c: Likewise.
6698         * tests/unictype/test-ctype_graph.c: Likewise.
6699         * tests/unictype/test-ctype_lower.c: Likewise.
6700         * tests/unictype/test-ctype_print.c: Likewise.
6701         * tests/unictype/test-ctype_punct.c: Likewise.
6702         * tests/unictype/test-ctype_upper.c: Likewise.
6703         * tests/unictype/test-decdigit.h: Likewise.
6704         * tests/unictype/test-digit.h: Likewise.
6705         * tests/unictype/test-numeric.h: Likewise.
6706         * tests/unictype/test-pr_alphabetic.c: Likewise.
6707         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
6708         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
6709         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
6710         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
6711         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
6712         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
6713         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
6714         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
6715         * tests/unictype/test-pr_case_ignorable.c: Likewise.
6716         * tests/unictype/test-pr_cased.c: Likewise.
6717         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
6718         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
6719         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
6720         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
6721         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
6722         * tests/unictype/test-pr_combining.c: Likewise.
6723         * tests/unictype/test-pr_composite.c: Likewise.
6724         * tests/unictype/test-pr_currency_symbol.c: Likewise.
6725         * tests/unictype/test-pr_decimal_digit.c: Likewise.
6726         * tests/unictype/test-pr_deprecated.c: Likewise.
6727         * tests/unictype/test-pr_format_control.c: Likewise.
6728         * tests/unictype/test-pr_grapheme_base.c: Likewise.
6729         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
6730         * tests/unictype/test-pr_grapheme_link.c: Likewise.
6731         * tests/unictype/test-pr_id_continue.c: Likewise.
6732         * tests/unictype/test-pr_id_start.c: Likewise.
6733         * tests/unictype/test-pr_ideographic.c: Likewise.
6734         * tests/unictype/test-pr_lowercase.c: Likewise.
6735         * tests/unictype/test-pr_math.c: Likewise.
6736         * tests/unictype/test-pr_numeric.c: Likewise.
6737         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
6738         * tests/unictype/test-pr_other_id_continue.c: Likewise.
6739         * tests/unictype/test-pr_other_math.c: Likewise.
6740         * tests/unictype/test-pr_punctuation.c: Likewise.
6741         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
6742         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
6743         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
6744         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
6745         * tests/unictype/test-pr_uppercase.c: Likewise.
6746         * tests/unictype/test-pr_xid_continue.c: Likewise.
6747         * tests/unictype/test-pr_xid_start.c: Likewise.
6748         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
6749         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
6750         changes.
6751         * lib/unictype/categ_Cc.h: Likewise.
6752         * lib/unictype/categ_Cf.h: Likewise.
6753         * lib/unictype/categ_Co.h: Likewise.
6754         * lib/unictype/categ_Cs.h: Likewise.
6755         * lib/unictype/categ_Lt.h: Likewise.
6756         * lib/unictype/categ_Nl.h: Likewise.
6757         * lib/unictype/categ_Pc.h: Likewise.
6758         * lib/unictype/categ_Pd.h: Likewise.
6759         * lib/unictype/categ_Pe.h: Likewise.
6760         * lib/unictype/categ_Pf.h: Likewise.
6761         * lib/unictype/categ_Pi.h: Likewise.
6762         * lib/unictype/categ_Ps.h: Likewise.
6763         * lib/unictype/categ_Z.h: Likewise.
6764         * lib/unictype/categ_Zl.h: Likewise.
6765         * lib/unictype/categ_Zp.h: Likewise.
6766         * lib/unictype/categ_Zs.h: Likewise.
6767         * lib/unictype/ctype_blank.h: Likewise.
6768         * lib/unictype/ctype_cntrl.h: Likewise.
6769         * lib/unictype/ctype_digit.h: Likewise.
6770         * lib/unictype/ctype_space.h: Likewise.
6771         * lib/unictype/ctype_xdigit.h: Likewise.
6772         * lib/unictype/mirror.h: Likewise.
6773         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
6774         * lib/unictype/pr_bidi_block_separator.h: Likewise.
6775         * lib/unictype/pr_bidi_common_separator.h: Likewise.
6776         * lib/unictype/pr_bidi_control.h: Likewise.
6777         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
6778         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
6779         * lib/unictype/pr_bidi_european_digit.h: Likewise.
6780         * lib/unictype/pr_bidi_pdf.h: Likewise.
6781         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
6782         * lib/unictype/pr_bidi_whitespace.h: Likewise.
6783         * lib/unictype/pr_dash.h: Likewise.
6784         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
6785         * lib/unictype/pr_diacritic.h: Likewise.
6786         * lib/unictype/pr_extender.h: Likewise.
6787         * lib/unictype/pr_hex_digit.h: Likewise.
6788         * lib/unictype/pr_hyphen.h: Likewise.
6789         * lib/unictype/pr_ids_binary_operator.h: Likewise.
6790         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
6791         * lib/unictype/pr_ignorable_control.h: Likewise.
6792         * lib/unictype/pr_iso_control.h: Likewise.
6793         * lib/unictype/pr_join_control.h: Likewise.
6794         * lib/unictype/pr_left_of_pair.h: Likewise.
6795         * lib/unictype/pr_line_separator.h: Likewise.
6796         * lib/unictype/pr_logical_order_exception.h: Likewise.
6797         * lib/unictype/pr_non_break.h: Likewise.
6798         * lib/unictype/pr_not_a_character.h: Likewise.
6799         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
6800         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
6801         * lib/unictype/pr_other_id_start.h: Likewise.
6802         * lib/unictype/pr_other_lowercase.h: Likewise.
6803         * lib/unictype/pr_other_uppercase.h: Likewise.
6804         * lib/unictype/pr_paired_punctuation.h: Likewise.
6805         * lib/unictype/pr_paragraph_separator.h: Likewise.
6806         * lib/unictype/pr_pattern_syntax.h: Likewise.
6807         * lib/unictype/pr_pattern_white_space.h: Likewise.
6808         * lib/unictype/pr_private_use.h: Likewise.
6809         * lib/unictype/pr_quotation_mark.h: Likewise.
6810         * lib/unictype/pr_radical.h: Likewise.
6811         * lib/unictype/pr_soft_dotted.h: Likewise.
6812         * lib/unictype/pr_space.h: Likewise.
6813         * lib/unictype/pr_titlecase.h: Likewise.
6814         * lib/unictype/pr_variation_selector.h: Likewise.
6815         * lib/unictype/pr_white_space.h: Likewise.
6816         * lib/unictype/pr_zero_width.h: Likewise.
6817         * lib/unictype/sy_c_ident.h: Likewise.
6818         * lib/unictype/sy_c_whitespace.h: Likewise.
6819         * lib/unictype/sy_java_whitespace.h: Likewise.
6820         * lib/uninorm/composition-table.gperf: Likewise.
6821         * lib/uninorm/decomposition-table1.h: Likewise.
6822         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
6823         LB8.
6824         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
6825         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
6826         * modules/unictype/*: Bump version number of expected libunistring
6827         version.
6828
6829 2011-01-09  Bruno Haible  <bruno@clisp.org>
6830
6831         Update to Unicode 5.2.0.
6832         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
6833         trailing whitespace removed.
6834
6835 2011-01-09  Bruno Haible  <bruno@clisp.org>
6836
6837         New Unicode character properties, from Unicode 5.2.0.
6838         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
6839         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
6840         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
6841         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
6842         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
6843         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
6844         uc_is_property_cased, uc_is_property_case_ignorable,
6845         uc_is_property_changes_when_lowercased,
6846         uc_is_property_changes_when_uppercased,
6847         uc_is_property_changes_when_titlecased,
6848         uc_is_property_changes_when_casefolded,
6849         uc_is_property_changes_when_casemapped): New declarations.
6850         * lib/unictype/pr_byname.gperf: Add the new properties.
6851         * modules/unictype/property-byname (Depends-on): Depend on the new
6852         properties modules.
6853         * modules/unictype/property-all (Depends-on): Likewise.
6854         * MODULES.html.sh (Unicode string functions): Add
6855         unictype/property-case-ignorable, unictype/property-cased,
6856         unictype/property-changes-when-casefolded,
6857         unictype/property-changes-when-casemapped,
6858         unictype/property-changes-when-lowercased,
6859         unictype/property-changes-when-titlecased,
6860         unictype/property-changes-when-uppercased.
6861
6862         New module 'unictype/property-changes-when-casemapped'.
6863         * modules/unictype/property-changes-when-casemapped: New file.
6864         * lib/unictype/pr_changes_when_casemapped.c: New file.
6865         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
6866         generated by gen-uni-tables.
6867         * modules/unictype/property-changes-when-casemapped-tests: New file.
6868         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
6869         automatically generated by gen-uni-tables.
6870
6871         New module 'unictype/property-changes-when-casefolded'.
6872         * modules/unictype/property-changes-when-casefolded: New file.
6873         * lib/unictype/pr_changes_when_casefolded.c: New file.
6874         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
6875         generated by gen-uni-tables.
6876         * modules/unictype/property-changes-when-casefolded-tests: New file.
6877         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
6878         automatically generated by gen-uni-tables.
6879
6880         New module 'unictype/property-changes-when-titlecased'.
6881         * modules/unictype/property-changes-when-titlecased: New file.
6882         * lib/unictype/pr_changes_when_titlecased.c: New file.
6883         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
6884         generated by gen-uni-tables.
6885         * modules/unictype/property-changes-when-titlecased-tests: New file.
6886         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
6887         automatically generated by gen-uni-tables.
6888
6889         New module 'unictype/property-changes-when-uppercased'.
6890         * modules/unictype/property-changes-when-uppercased: New file.
6891         * lib/unictype/pr_changes_when_uppercased.c: New file.
6892         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
6893         generated by gen-uni-tables.
6894         * modules/unictype/property-changes-when-uppercased-tests: New file.
6895         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
6896         automatically generated by gen-uni-tables.
6897
6898         New module 'unictype/property-changes-when-lowercased'.
6899         * modules/unictype/property-changes-when-lowercased: New file.
6900         * lib/unictype/pr_changes_when_lowercased.c: New file.
6901         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
6902         generated by gen-uni-tables.
6903         * modules/unictype/property-changes-when-lowercased-tests: New file.
6904         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
6905         automatically generated by gen-uni-tables.
6906
6907         New module 'unictype/property-case-ignorable'.
6908         * modules/unictype/property-case-ignorable: New file.
6909         * lib/unictype/pr_case_ignorable.c: New file.
6910         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
6911         by gen-uni-tables.
6912         * modules/unictype/property-case-ignorable-tests: New file.
6913         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
6914         generated by gen-uni-tables.
6915
6916         New module 'unictype/property-cased'.
6917         * modules/unictype/property-cased: New file.
6918         * lib/unictype/pr_cased.c: New file.
6919         * lib/unictype/pr_cased.h: New file, automatically generated by
6920         gen-uni-tables.
6921         * modules/unictype/property-cased-tests: New file.
6922         * tests/unictype/test-pr_cased.c: New file, automatically generated by
6923         gen-uni-tables.
6924
6925 2011-01-09  Bruno Haible  <bruno@clisp.org>
6926
6927         Update to Unicode 5.2.0.
6928         * lib/gen-uni-tables.c (output_predicate, output_category,
6929         output_combclass, output_bidi_category, output_decimal_digit_test,
6930         output_decimal_digit, output_digit_test, output_digit,
6931         output_numeric_test, output_numeric, output_mirror, output_scripts,
6932         output_scripts_byname, output_blocks, output_ident_category): Fix
6933         comment header.
6934         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
6935         get_wbp.
6936         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
6937         items.
6938         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
6939         Changes_When_Lowercased, Changes_When_Uppercased,
6940         Changes_When_Titlecased, Changes_When_Casefolded,
6941         Changes_When_Casemapped.
6942         (is_property_alphabetic, is_property_default_ignorable_code_point):
6943         Update for Unicode 5.2.0.
6944         (is_property_cased, is_property_case_ignorable,
6945         is_property_changes_when_lowercased,
6946         is_property_changes_when_uppercased,
6947         is_property_changes_when_titlecased,
6948         is_property_changes_when_casefolded,
6949         is_property_changes_when_casemapped): New functions.
6950         (output_properties): Output also the properties cased, case_ignorable,
6951         changes_when_lowercased, changes_when_uppercased,
6952         changes_when_titlecased, changes_when_casefolded,
6953         changes_when_casemapped.
6954         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
6955         Unicode TR#11 revision 17 -> 19.
6956         (LBP_CP): New enumeration value.
6957         (LBP_*): Adjust values accordingly.
6958         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
6959         TR#14 revision 22 -> 24.
6960         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
6961         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
6962         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
6963         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
6964         is_WBP_MIDLETTER.
6965         (output_composition_tables): Allow for 24 bits instead of 16 bits in
6966         the code1 and code2 of each composition rule.
6967         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
6968         * lib/unicase/ignorable.h: Likewise.
6969         * lib/unicase/tocasefold.h: Likewise.
6970         * lib/unicase/tolower.h: Likewise.
6971         * lib/unicase/totitle.h: Likewise.
6972         * lib/unicase/toupper.h: Likewise.
6973         * lib/unictype/bidi_of.h: Likewise.
6974         * lib/unictype/blocks.h: Likewise.
6975         * lib/unictype/categ_C.h: Likewise.
6976         * lib/unictype/categ_Cf.h: Likewise.
6977         * lib/unictype/categ_Cn.h: Likewise.
6978         * lib/unictype/categ_L.h: Likewise.
6979         * lib/unictype/categ_Ll.h: Likewise.
6980         * lib/unictype/categ_Lm.h: Likewise.
6981         * lib/unictype/categ_Lo.h: Likewise.
6982         * lib/unictype/categ_Lu.h: Likewise.
6983         * lib/unictype/categ_M.h: Likewise.
6984         * lib/unictype/categ_Mc.h: Likewise.
6985         * lib/unictype/categ_Mn.h: Likewise.
6986         * lib/unictype/categ_N.h: Likewise.
6987         * lib/unictype/categ_Nd.h: Likewise.
6988         * lib/unictype/categ_Nl.h: Likewise.
6989         * lib/unictype/categ_No.h: Likewise.
6990         * lib/unictype/categ_P.h: Likewise.
6991         * lib/unictype/categ_Pd.h: Likewise.
6992         * lib/unictype/categ_Po.h: Likewise.
6993         * lib/unictype/categ_S.h: Likewise.
6994         * lib/unictype/categ_Sc.h: Likewise.
6995         * lib/unictype/categ_So.h: Likewise.
6996         * lib/unictype/categ_of.h: Likewise.
6997         * lib/unictype/combining.h: Likewise.
6998         * lib/unictype/ctype_alnum.h: Likewise.
6999         * lib/unictype/ctype_alpha.h: Likewise.
7000         * lib/unictype/ctype_graph.h: Likewise.
7001         * lib/unictype/ctype_lower.h: Likewise.
7002         * lib/unictype/ctype_print.h: Likewise.
7003         * lib/unictype/ctype_punct.h: Likewise.
7004         * lib/unictype/ctype_upper.h: Likewise.
7005         * lib/unictype/decdigit.h: Likewise.
7006         * lib/unictype/digit.h: Likewise.
7007         * lib/unictype/numeric.h: Likewise.
7008         * lib/unictype/pr_alphabetic.h: Likewise.
7009         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
7010         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
7011         * lib/unictype/pr_bidi_european_digit.h: Likewise.
7012         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
7013         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
7014         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
7015         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
7016         * lib/unictype/pr_combining.h: Likewise.
7017         * lib/unictype/pr_composite.h: Likewise.
7018         * lib/unictype/pr_currency_symbol.h: Likewise.
7019         * lib/unictype/pr_dash.h: Likewise.
7020         * lib/unictype/pr_decimal_digit.h: Likewise.
7021         * lib/unictype/pr_deprecated.h: Likewise.
7022         * lib/unictype/pr_diacritic.h: Likewise.
7023         * lib/unictype/pr_extender.h: Likewise.
7024         * lib/unictype/pr_grapheme_base.h: Likewise.
7025         * lib/unictype/pr_grapheme_extend.h: Likewise.
7026         * lib/unictype/pr_grapheme_link.h: Likewise.
7027         * lib/unictype/pr_id_continue.h: Likewise.
7028         * lib/unictype/pr_id_start.h: Likewise.
7029         * lib/unictype/pr_ideographic.h: Likewise.
7030         * lib/unictype/pr_ignorable_control.h: Likewise.
7031         * lib/unictype/pr_logical_order_exception.h: Likewise.
7032         * lib/unictype/pr_lowercase.h: Likewise.
7033         * lib/unictype/pr_numeric.h: Likewise.
7034         * lib/unictype/pr_other_alphabetic.h: Likewise.
7035         * lib/unictype/pr_punctuation.h: Likewise.
7036         * lib/unictype/pr_sentence_terminal.h: Likewise.
7037         * lib/unictype/pr_terminal_punctuation.h: Likewise.
7038         * lib/unictype/pr_unassigned_code_value.h: Likewise.
7039         * lib/unictype/pr_unified_ideograph.h: Likewise.
7040         * lib/unictype/pr_uppercase.h: Likewise.
7041         * lib/unictype/pr_xid_continue.h: Likewise.
7042         * lib/unictype/pr_xid_start.h: Likewise.
7043         * lib/unictype/pr_zero_width.h: Likewise.
7044         * lib/unictype/scripts.h: Likewise.
7045         * lib/unictype/scripts_byname.gperf: Likewise.
7046         * lib/unictype/sy_java_ident.h: Likewise.
7047         * lib/unigbrk/gbrkprop.h: Likewise.
7048         * lib/unilbrk/lbrkprop1.h: Likewise.
7049         * lib/unilbrk/lbrkprop2.h: Likewise.
7050         * lib/unilbrk/lbrktables.h: Likewise.
7051         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
7052         LBP_CP. Implement rule LB30.
7053         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
7054         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
7055         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
7056         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
7057         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
7058         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
7059         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
7060         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
7061         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
7062         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
7063         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
7064         bits instead of 16 bits in the code1 and code2 of each composition
7065         rule.
7066         (uc_composition): Update for Unicode 5.2.0.
7067         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
7068         * lib/uninorm/decomposition-table2.h: Likewise.
7069         * lib/uniwbrk/wbrkprop.h: Likewise.
7070         * tests/unicase/test-cased.c: Likewise.
7071         * tests/unicase/test-ignorable.c: Likewise.
7072         * tests/unicase/test-uc_tolower.c: Likewise.
7073         * tests/unicase/test-uc_totitle.c: Likewise.
7074         * tests/unicase/test-uc_toupper.c: Likewise.
7075         * tests/unictype/test-categ_C.c: Likewise.
7076         * tests/unictype/test-categ_Cf.c: Likewise.
7077         * tests/unictype/test-categ_Cn.c: Likewise.
7078         * tests/unictype/test-categ_L.c: Likewise.
7079         * tests/unictype/test-categ_Ll.c: Likewise.
7080         * tests/unictype/test-categ_Lm.c: Likewise.
7081         * tests/unictype/test-categ_Lo.c: Likewise.
7082         * tests/unictype/test-categ_Lu.c: Likewise.
7083         * tests/unictype/test-categ_M.c: Likewise.
7084         * tests/unictype/test-categ_Mc.c: Likewise.
7085         * tests/unictype/test-categ_Mn.c: Likewise.
7086         * tests/unictype/test-categ_N.c: Likewise.
7087         * tests/unictype/test-categ_Nd.c: Likewise.
7088         * tests/unictype/test-categ_Nl.c: Likewise.
7089         * tests/unictype/test-categ_No.c: Likewise.
7090         * tests/unictype/test-categ_P.c: Likewise.
7091         * tests/unictype/test-categ_Pd.c: Likewise.
7092         * tests/unictype/test-categ_Po.c: Likewise.
7093         * tests/unictype/test-categ_S.c: Likewise.
7094         * tests/unictype/test-categ_Sc.c: Likewise.
7095         * tests/unictype/test-categ_So.c: Likewise.
7096         * tests/unictype/test-ctype_alnum.c: Likewise.
7097         * tests/unictype/test-ctype_alpha.c: Likewise.
7098         * tests/unictype/test-ctype_graph.c: Likewise.
7099         * tests/unictype/test-ctype_lower.c: Likewise.
7100         * tests/unictype/test-ctype_print.c: Likewise.
7101         * tests/unictype/test-ctype_punct.c: Likewise.
7102         * tests/unictype/test-ctype_upper.c: Likewise.
7103         * tests/unictype/test-decdigit.h: Likewise.
7104         * tests/unictype/test-digit.h: Likewise.
7105         * tests/unictype/test-numeric.h: Likewise.
7106         * tests/unictype/test-pr_alphabetic.c: Likewise.
7107         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
7108         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
7109         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
7110         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
7111         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
7112         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
7113         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
7114         * tests/unictype/test-pr_combining.c: Likewise.
7115         * tests/unictype/test-pr_composite.c: Likewise.
7116         * tests/unictype/test-pr_currency_symbol.c: Likewise.
7117         * tests/unictype/test-pr_dash.c: Likewise.
7118         * tests/unictype/test-pr_decimal_digit.c: Likewise.
7119         * tests/unictype/test-pr_deprecated.c: Likewise.
7120         * tests/unictype/test-pr_diacritic.c: Likewise.
7121         * tests/unictype/test-pr_extender.c: Likewise.
7122         * tests/unictype/test-pr_grapheme_base.c: Likewise.
7123         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
7124         * tests/unictype/test-pr_grapheme_link.c: Likewise.
7125         * tests/unictype/test-pr_id_continue.c: Likewise.
7126         * tests/unictype/test-pr_id_start.c: Likewise.
7127         * tests/unictype/test-pr_ideographic.c: Likewise.
7128         * tests/unictype/test-pr_ignorable_control.c: Likewise.
7129         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
7130         * tests/unictype/test-pr_lowercase.c: Likewise.
7131         * tests/unictype/test-pr_numeric.c: Likewise.
7132         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
7133         * tests/unictype/test-pr_punctuation.c: Likewise.
7134         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
7135         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
7136         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
7137         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
7138         * tests/unictype/test-pr_uppercase.c: Likewise.
7139         * tests/unictype/test-pr_xid_continue.c: Likewise.
7140         * tests/unictype/test-pr_xid_start.c: Likewise.
7141         * tests/unictype/test-pr_zero_width.c: Likewise.
7142         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
7143         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
7144         changed behaviour: line breaking is now disallowed between a letter
7145         or '=' and '('.
7146         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
7147         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
7148         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
7149         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
7150         * tests/uniwidth/test-uc_width2.sh: Same updates as in
7151         lib/uniwidth/width.c.
7152         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
7153         without comments, but with the original copyright notice.
7154         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
7155         changes.
7156         * lib/unictype/categ_Cc.h: Likewise.
7157         * lib/unictype/categ_Co.h: Likewise.
7158         * lib/unictype/categ_Cs.h: Likewise.
7159         * lib/unictype/categ_Lt.h: Likewise.
7160         * lib/unictype/categ_Me.h: Likewise.
7161         * lib/unictype/categ_Pc.h: Likewise.
7162         * lib/unictype/categ_Pe.h: Likewise.
7163         * lib/unictype/categ_Pf.h: Likewise.
7164         * lib/unictype/categ_Pi.h: Likewise.
7165         * lib/unictype/categ_Ps.h: Likewise.
7166         * lib/unictype/categ_Sk.h: Likewise.
7167         * lib/unictype/categ_Sm.h: Likewise.
7168         * lib/unictype/categ_Z.h: Likewise.
7169         * lib/unictype/categ_Zl.h: Likewise.
7170         * lib/unictype/categ_Zp.h: Likewise.
7171         * lib/unictype/categ_Zs.h: Likewise.
7172         * lib/unictype/ctype_blank.h: Likewise.
7173         * lib/unictype/ctype_cntrl.h: Likewise.
7174         * lib/unictype/ctype_digit.h: Likewise.
7175         * lib/unictype/ctype_space.h: Likewise.
7176         * lib/unictype/ctype_xdigit.h: Likewise.
7177         * lib/unictype/mirror.h: Likewise.
7178         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
7179         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
7180         * lib/unictype/pr_bidi_block_separator.h: Likewise.
7181         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
7182         * lib/unictype/pr_bidi_common_separator.h: Likewise.
7183         * lib/unictype/pr_bidi_control.h: Likewise.
7184         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
7185         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
7186         * lib/unictype/pr_bidi_pdf.h: Likewise.
7187         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
7188         * lib/unictype/pr_bidi_whitespace.h: Likewise.
7189         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
7190         * lib/unictype/pr_format_control.h: Likewise.
7191         * lib/unictype/pr_hex_digit.h: Likewise.
7192         * lib/unictype/pr_hyphen.h: Likewise.
7193         * lib/unictype/pr_ids_binary_operator.h: Likewise.
7194         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
7195         * lib/unictype/pr_iso_control.h: Likewise.
7196         * lib/unictype/pr_join_control.h: Likewise.
7197         * lib/unictype/pr_left_of_pair.h: Likewise.
7198         * lib/unictype/pr_line_separator.h: Likewise.
7199         * lib/unictype/pr_math.h: Likewise.
7200         * lib/unictype/pr_non_break.h: Likewise.
7201         * lib/unictype/pr_not_a_character.h: Likewise.
7202         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
7203         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
7204         * lib/unictype/pr_other_id_continue.h: Likewise.
7205         * lib/unictype/pr_other_id_start.h: Likewise.
7206         * lib/unictype/pr_other_lowercase.h: Likewise.
7207         * lib/unictype/pr_other_math.h: Likewise.
7208         * lib/unictype/pr_other_uppercase.h: Likewise.
7209         * lib/unictype/pr_paired_punctuation.h: Likewise.
7210         * lib/unictype/pr_paragraph_separator.h: Likewise.
7211         * lib/unictype/pr_pattern_syntax.h: Likewise.
7212         * lib/unictype/pr_pattern_white_space.h: Likewise.
7213         * lib/unictype/pr_private_use.h: Likewise.
7214         * lib/unictype/pr_quotation_mark.h: Likewise.
7215         * lib/unictype/pr_radical.h: Likewise.
7216         * lib/unictype/pr_soft_dotted.h: Likewise.
7217         * lib/unictype/pr_space.h: Likewise.
7218         * lib/unictype/pr_titlecase.h: Likewise.
7219         * lib/unictype/pr_variation_selector.h: Likewise.
7220         * lib/unictype/pr_white_space.h: Likewise.
7221         * lib/unictype/sy_c_ident.h: Likewise.
7222         * lib/unictype/sy_c_whitespace.h: Likewise.
7223         * lib/unictype/sy_java_whitespace.h: Likewise.
7224         * modules/uni*/*: Bump version number of expected libunistring version.
7225         Reported by Simon Josefsson.
7226
7227 2011-01-09  Karl Heuer  <kwzh@gnu.org>
7228
7229         useless-if-before-free: fix typo in --help and make the internal,
7230         automatic version date update process work once again.
7231         --help output contained a NUL character instead of the
7232         backslash-zero that was intended.  Also, the "must lie within
7233         the first 8 lines" line is on line 9, and hence not getting
7234         automatically updated.
7235         * build-aux/useless-if-before-free: Fix the former by adding a
7236         backslash, and the latter by condensing the three lines of what-it-does
7237         to a single line, leaving one line of slack for the future.
7238
7239 2011-01-09  Bruno Haible  <bruno@clisp.org>
7240
7241         uniwidth/width: Fix width of U+1D173..U+1D17A.
7242         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
7243         symbolic_width, output_width_property_test): New functions.
7244         (main): Invoke output_nonspacing_property, output_width_property_test.
7245         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
7246         U+1D173..U+1D17A.
7247         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
7248         1.
7249         * modules/uniwidth/*: Bump version number of expected libunistring
7250         version.
7251         * modules/unilbrk/*: Likewise.
7252
7253 2011-01-08  Bruno Haible  <bruno@clisp.org>
7254
7255         uninorm tests: Preserve copyright of Unicode data file.
7256         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
7257         Mention modifications.
7258
7259 2011-01-08  Bruno Haible  <bruno@clisp.org>
7260
7261         gen-uni-tables: Prepare for Unicode 5.2.0.
7262         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
7263         (debug_output_lbp, output_lbp): Update.
7264
7265 2011-01-08  Bruno Haible  <bruno@clisp.org>
7266
7267         unilbrk: Clarify gen-uni-tables.c code.
7268         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
7269         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
7270         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
7271
7272 2011-01-07  Bruno Haible  <bruno@clisp.org>
7273
7274         strtod: Restore errno when successfully parsing Infinity or NaN.
7275         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
7276         restore the original errno.
7277
7278 2011-01-07  Bruno Haible  <bruno@clisp.org>
7279
7280         remove test: Avoid failure on HP-UX 11.
7281         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
7282
7283 2011-01-07  Bruno Haible  <bruno@clisp.org>
7284
7285         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
7286         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
7287         error code.
7288
7289 2011-01-07  Pádraig Brady <P@draigBrady.com>
7290
7291         ignore-value: fixup comments, and add Eric Blake
7292         as an author since he rewrote the macros.
7293         * lib/ignore-value.h (ignore_value):  State that
7294         we now support aggregates.  Also specify exactly
7295         when the GCC warn_unused_result feature was added.
7296
7297 2011-01-06  Eric Blake  <eblake@redhat.com>
7298
7299         ignore-value: support aggregate types
7300         * lib/ignore-value.h (ignore_value): Provide separate gcc
7301         definition.
7302         * modules/ignore-value-tests: New test module.
7303         * tests/test-ignore-value.c: New test.
7304
7305         maint.mk: improve sc_prohibit_strcmp regex
7306         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
7307         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
7308         definition of STRNEQ.
7309
7310         signal: work around Haiku issue with SIGBUS
7311         * lib/siglist.h: Add comment.
7312         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
7313         strsignal's favoring of SIGSEGV.
7314         * tests/test-signal.c (main): Avoid test failure.
7315         * doc/posix-headers/signal.texi (signal.h): Document the issue.
7316         Reported by Scott McCreary.
7317
7318         maint.mk: add pre-release check to ensure submodule commits are public
7319         * top/maint.mk (public-submodule-commit): New rule.
7320         (submodule-checks): New variable.
7321         (alpha beta stable): Depend on the variable.
7322
7323 2011-01-05  Pádraig Brady <P@draigBrady.com>
7324         and Jim Meyering  <meyering@redhat.com>
7325
7326         ignore-value: make ignore_value more generic; deprecate ignore_ptr
7327         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
7328         (ATTRIBUTE_DEPRECATED): Define.
7329         (_ignore_case): New function.
7330         (ignore_value): New macro, to replace the old function.
7331         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
7332         * modules/ignore-value (Depends-on): Add stdint.
7333
7334 2011-01-04  Eric Blake  <eblake@redhat.com>
7335
7336         doc: regenerate INSTALL
7337         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
7338         @firstparagraphindent support, now that autoconf dropped it.
7339         (INSTALL_PRELUDE): Reinstate old macro.
7340         * doc/install.texi: Resync from autoconf.
7341         * doc/INSTALL: Reflect recent autoconf update.
7342         * doc/INSTALL.ISO: Likewise.
7343         * doc/INSTALL.UTF-8: Likewise.
7344         Reported by Karl Berry.
7345
7346 2011-01-04  Bruce Korb  <address@hidden>
7347
7348         git-version-gen: avoid a sub-shell
7349         * build-aux/git-version-gen: Redirect stderr in `...` via
7350         "exec 2>...", rather than via an added sub-shell.
7351
7352 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
7353
7354         git-version-gen: use (...) rather than sh -c '...'
7355         * build-aux/git-version-gen: Rather than hard-coding a shell's name
7356         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
7357
7358 2011-01-03  Jim Meyering  <meyering@redhat.com>
7359
7360         git-version-gen: convert leading TABs to spaces
7361         * build-aux/git-version-gen: Expand leading TABs.
7362
7363         git-version-gen: handle failed "git rev-list"
7364         * build-aux/git-version-gen: Rather than leaking a "fatal" error
7365         from git and proceeding as if it had succeeded but printed no SHA1
7366         checksums, suppress the diagnostic and handle the failure.
7367         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
7368
7369         git-version-gen: include command name in one more diagnostic
7370         * build-aux/git-version-gen: When the required .tarball-version file
7371         was missing or unreadable, you might see the diagnostic from "cat",
7372         but no trace of the name of the invoking script.  Now, you still see
7373         the diagnostic from cat, but also get one from "git-version-gen: ".
7374         Inspired by a patch from Bruce Korb.
7375
7376         update-copyright: adjust test to match changed code
7377         * tests/test-update-copyright.sh: Change test's expected output
7378         to match new actual output.
7379
7380 2011-01-02  Bruno Haible  <bruno@clisp.org>
7381
7382         getlogin_r: Avoid test failure on HP-UX 11.
7383         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
7384         ERANGE when the second argument is zero.
7385         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
7386         portability problem.
7387
7388 2011-01-02  Bruce Korb  <bkorb@gnu.org>
7389
7390         * build-aux/update-copyright: doc Simon's changes
7391
7392 2011-01-02  Simon Josefsson  <simon@josefsson.org>
7393
7394         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
7395         environment variable.
7396
7397 2011-01-02  Bruno Haible  <bruno@clisp.org>
7398
7399         unigbrk: Avoid gcc warnings.
7400         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
7401         unused variable.
7402         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
7403         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
7404         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
7405         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
7406         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
7407         Change type of first argument to 'const char *'.
7408         (main): Remove unused variable.
7409         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
7410         type of first argument to 'const char *'.
7411         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
7412         Likewise.
7413         (main): Change type of variable 's'.
7414         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
7415         to 'int'.
7416
7417 2011-01-02  Bruno Haible  <bruno@clisp.org>
7418
7419         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
7420         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
7421         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
7422         bug.
7423         * lib/pwrite.c: Undo 2010-12-31 patch.
7424         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
7425
7426 2011-01-02  Bruno Haible  <bruno@clisp.org>
7427
7428         pread: Fix test whether it works.
7429         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
7430
7431 2011-01-02  Bruno Haible  <bruno@clisp.org>
7432
7433         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
7434         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
7435         ends in "6". Don't require a specific month name. Try also the locale
7436         names found on HP-UX 11 and Solaris 7.
7437
7438 2011-01-02  Bruno Haible  <bruno@clisp.org>
7439
7440         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
7441         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
7442         C linkage.
7443         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
7444
7445 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
7446
7447         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
7448         for consistency, since the "cluster" term is not used elsewhere.
7449         * lib/unigbrk.in.h: Update name.
7450         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
7451         * lib/unigbrk/u16-grapheme-next.c: Update name.
7452         * lib/unigbrk/u16-grapheme-prev.c: Update name.
7453         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
7454         * lib/unigbrk/u32-grapheme-next.c: Update name.
7455         * lib/unigbrk/u32-grapheme-prev.c: Update name.
7456         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
7457         * lib/unigbrk/u8-grapheme-next.c: Update name.
7458         * lib/unigbrk/u8-grapheme-prev.c: Update name.
7459         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
7460         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
7461         Suggested by Bruno Haible.
7462
7463 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
7464
7465         Remove module 'u8-grapheme-len' as too redundant with
7466         'u8-grapheme-next'.
7467         * modules/unigbrk/u8-grapheme-len: Delete file.
7468         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
7469         * lib/unigbrk.in.h: Remove prototype for deleted function.
7470         * lib/unigbrk/u8-grapheme-len.c: Delete file.
7471         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
7472
7473         Remove module 'u16-grapheme-len' as too redundant with
7474         'u16-grapheme-next'.
7475         * modules/unigbrk/u16-grapheme-len: Delete file.
7476         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
7477         * lib/unigbrk.in.h: Remove prototype for deleted function.
7478         * lib/unigbrk/u16-grapheme-len.c: Delete file.
7479         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
7480
7481         Remove module 'u32-grapheme-len' as too redundant with
7482         'u32-grapheme-next'.
7483         * modules/unigbrk/u32-grapheme-len: Delete file.
7484         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
7485         * lib/unigbrk.in.h: Remove prototype for deleted function.
7486         * lib/unigbrk/u32-grapheme-len.c: Delete file.
7487         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
7488
7489         Suggested by Bruno Haible.
7490
7491 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
7492
7493         * unigbrk.in.h: Fix typo: "ben" => "been".
7494         Reported by Bruno Haible.
7495
7496 2011-01-01  Jim Meyering  <meyering@redhat.com>
7497
7498         maint: update almost all copyright ranges to include 2011
7499         Run the new "make update-copyright" rule.
7500
7501 2011-01-01  Jim Meyering  <meyering@redhat.com>
7502
7503         maint: update-copyright: exempt doc/INSTALL*
7504         * Makefile (update-copyright): Also exclude doc/INSTALL*,
7505         since they are generated.  Suggested by Bruno Haible.
7506
7507 2011-01-01  Jim Meyering  <meyering@redhat.com>
7508
7509         maint: refine the update-copyright rule
7510         * Makefile (update-copyright): Also exclude any file that includes
7511         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
7512         code that merely generates the comment.
7513
7514 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
7515
7516         New module 'u8-grapheme-len'.
7517         * modules/unigbrk/u8-grapheme-len: New file.
7518         * modules/unigbrk/u8-grapheme-len-tests: New file.
7519         * lib/unigbrk.in.h: Add prototype for new function.
7520         * lib/unigbrk/u8-grapheme-len.c: New file.
7521         * tests/unigbrk/test-u8-grapheme-len.c: New file.
7522
7523         New module 'u16-grapheme-len'.
7524         * modules/unigbrk/u16-grapheme-len: New file.
7525         * modules/unigbrk/u16-grapheme-len-tests: New file.
7526         * lib/unigbrk.in.h: Add prototype for new function.
7527         * lib/unigbrk/u16-grapheme-len.c: New file.
7528         * tests/unigbrk/test-u16-grapheme-len.c: New file.
7529
7530         New module 'u32-grapheme-len'.
7531         * modules/unigbrk/u32-grapheme-len: New file.
7532         * modules/unigbrk/u32-grapheme-len-tests: New file.
7533         * lib/unigbrk.in.h: Add prototype for new function.
7534         * lib/unigbrk/u32-grapheme-len.c: New file.
7535         * tests/unigbrk/test-u32-grapheme-len.c: New file.
7536
7537         New module 'u8-grapheme-next'.
7538         * modules/unigbrk/u8-grapheme-next: New file.
7539         * modules/unigbrk/u8-grapheme-next-tests: New file.
7540         * lib/unigbrk.in.h: Add prototype for new function.
7541         * lib/unigbrk/u8-grapheme-next.c: New file.
7542         * tests/unigbrk/test-u8-grapheme-next.c: New file.
7543
7544         New module 'u16-grapheme-next'.
7545         * modules/unigbrk/u16-grapheme-next: New file.
7546         * modules/unigbrk/u16-grapheme-next-tests: New file.
7547         * lib/unigbrk.in.h: Add prototype for new function.
7548         * lib/unigbrk/u16-grapheme-next.c: New file.
7549         * tests/unigbrk/test-u16-grapheme-next.c: New file.
7550
7551         New module 'u32-grapheme-next'.
7552         * modules/unigbrk/u32-grapheme-next: New file.
7553         * modules/unigbrk/u32-grapheme-next-tests: New file.
7554         * lib/unigbrk.in.h: Add prototype for new function.
7555         * lib/unigbrk/u32-grapheme-next.c: New file.
7556         * tests/unigbrk/test-u32-grapheme-next.c: New file.
7557
7558         New module 'u8-grapheme-prev'.
7559         * modules/unigbrk/u8-grapheme-prev: New file.
7560         * modules/unigbrk/u8-grapheme-prev-tests: New file.
7561         * lib/unigbrk.in.h: Add prototype for new function.
7562         * lib/unigbrk/u8-grapheme-prev.c: New file.
7563         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
7564
7565         New module 'u16-grapheme-prev'.
7566         * modules/unigbrk/u16-grapheme-prev: New file.
7567         * modules/unigbrk/u16-grapheme-prev-tests: New file.
7568         * lib/unigbrk.in.h: Add prototype for new function.
7569         * lib/unigbrk/u16-grapheme-prev.c: New file.
7570         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
7571
7572         New module 'u32-grapheme-prev'.
7573         * modules/unigbrk/u32-grapheme-prev: New file.
7574         * modules/unigbrk/u32-grapheme-prev-tests: New file.
7575         * lib/unigbrk.in.h: Add prototype for new function.
7576         * lib/unigbrk/u32-grapheme-prev.c: New file.
7577         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
7578
7579         New module 'u8-grapheme-breaks'.
7580         * modules/unigbrk/u8-grapheme-breaks: New file.
7581         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
7582         * lib/unigbrk.in.h: Add prototype for new function.
7583         * lib/unigbrk/u8-grapheme-breaks.c: New file.
7584         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
7585
7586         New module 'u16-grapheme-breaks'.
7587         * modules/unigbrk/u16-grapheme-breaks: New file.
7588         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
7589         * lib/unigbrk.in.h: Add prototype for new function.
7590         * lib/unigbrk/u16-grapheme-breaks.c: New file.
7591         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
7592
7593         New module 'u32-grapheme-breaks'.
7594         * modules/unigbrk/u32-grapheme-breaks: New file.
7595         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
7596         * lib/unigbrk.in.h: Add prototype for new function.
7597         * lib/unigbrk/u32-grapheme-breaks.c: New file.
7598         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
7599
7600         New module 'ulc-grapheme-breaks'.
7601         * modules/unigbrk/ulc-grapheme-breaks: New file.
7602         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
7603         * m4/locale-ar.m4: New file.
7604         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
7605         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
7606         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
7607
7608 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
7609
7610         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
7611         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
7612         modified how this file was generated before I initially submitted
7613         the module, but failed to regenerate it.  This meant that several
7614         of the level2 entries were wrong.
7615         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
7616         Remove the division-by-2 that is folded into the table now that
7617         gbrkprop.h has been regenerated properly.  Now -1 entries are
7618         handled correctly.
7619
7620         New module 'unigbrk/uc-gbrk-prop-tests'.
7621         * modules/unigbrk/uc-gbrk-prop-tests: New file.
7622         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
7623         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
7624         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
7625
7626 2011-01-01  Bruno Haible  <bruno@clisp.org>
7627
7628         Avoid use of hexadecimal escapes.
7629         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
7630         instead of hexadecimal escapes.
7631
7632 2011-01-01  Jim Meyering  <meyering@redhat.com>
7633
7634         maint: new rule to update copyright year ranges
7635         * Makefile (update-copyright): New rule.
7636
7637         maint: indent with TABs in Makefile
7638         * Makefile: Expand leading sequences of spaces to TABs
7639
7640         version-etc: update the copyright year it reports
7641         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
7642
7643 2010-12-31  Bruno Haible  <bruno@clisp.org>
7644
7645         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
7646         * lib/isfinite.c (zerof, zerod, zerol): New variables.
7647         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
7648         zero.
7649
7650 2010-12-31  Bruno Haible  <bruno@clisp.org>
7651
7652         pwrite: Work around HP-UX 11.11 bug.
7653         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
7654         works and set REPLACE_PWRITE if not.
7655         * lib/pwrite.c (pwrite): Add an implementation that uses the system
7656         function.
7657         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
7658
7659 2010-12-31  Bruno Haible  <bruno@clisp.org>
7660
7661         pread: Work around HP-UX 11 bugs.
7662         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
7663         and set REPLACE_PREAD if not.
7664         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
7665
7666 2010-12-31  Eric Blake  <eblake@redhat.com>
7667
7668         nl_langinfo: fix YESEXPR on Irix 6.5
7669         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
7670         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
7671         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
7672         it.
7673
7674 2010-12-31  Bruno Haible  <bruno@clisp.org>
7675
7676         iconv: Document HP-UX 11 bug.
7677         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
7678
7679 2010-12-31  Bruno Haible  <bruno@clisp.org>
7680
7681         ldexpl: Fix link error on HP-UX 11.
7682         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
7683         LDEXPL_LIBM, using $ISNANL_LIBM.
7684
7685 2010-12-31  Eric Blake  <eblake@redhat.com>
7686
7687         ftello: avoid compilation failure with SunStudio c89
7688         * lib/ftello.c (ftello): Use lseek, not llseek.
7689
7690         tests: avoid failing coreutils tests on cygwin
7691         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
7692         (create_exe_shims_): Return 0 when skipping.
7693
7694 2010-12-31  Bruno Haible  <bruno@clisp.org>
7695
7696         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
7697         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
7698
7699 2010-12-31  Bruno Haible  <bruno@clisp.org>
7700
7701         waitpid: Fix link error in C++ mode.
7702         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
7703
7704 2010-12-31  Bruno Haible  <bruno@clisp.org>
7705
7706         isnan: Use GCC built-ins when possible.
7707         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
7708         __builtin_isnan.
7709         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
7710         (isnan): Define using GCC built-ins for GCC >= 4.0.
7711
7712 2010-12-31  Bruno Haible  <bruno@clisp.org>
7713
7714         isnand: Fix mistake.
7715         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
7716         __builtin_isnand.
7717
7718 2010-12-31  Bruno Haible  <bruno@clisp.org>
7719
7720         open: Avoid C++ error on HP-UX 11.
7721         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
7722
7723 2010-12-31  Bruno Haible  <bruno@clisp.org>
7724
7725         time_r: Add missing declarations on HP-UX 11.
7726         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
7727         instead of HAVE_LOCALTIME_R.
7728         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
7729         HAVE_LOCALTIME_R always.
7730         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
7731         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
7732         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
7733         HAVE_LOCALTIME_R.
7734         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
7735         * doc/posix-functions/localtime_r.texi: Likewise.
7736
7737 2010-12-29  Eric Blake  <eblake@redhat.com>
7738
7739         mountlist: tweak previous commit
7740         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
7741         Reported by Paul Eggert.
7742
7743         mountlist: fix local drive detection on cygwin
7744         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
7745         that works for cygwin.
7746
7747 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
7748
7749         ftoastr, snprintf: ftoastr + snprintf module
7750         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
7751         since the snprintf module now should be good enough here.
7752         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
7753         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
7754         and gl_MODULE_INDICATOR([snprintf]), but the former enables
7755         GNULIB_SNPRINTF only for the test directory, and the latter
7756         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
7757         seems to suffice by itself.
7758
7759 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
7760
7761         alloca: one step towards thread-safety
7762         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
7763         need for a static variable.  All callers changed.  This does not
7764         make the alloca replacement thread-safe, but it's one step.
7765
7766         tests: minor indenting change
7767         * tests/init.sh: Sync from coreutils housekeeping patch
7768         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
7769         to keep lines within 80 columns.
7770
7771 2010-12-28  Jim Meyering  <meyering@redhat.com>
7772
7773         regex: don't infloop on persistent failing calloc
7774         * lib/regexec.c (build_trtable): Return failure indication upon
7775         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
7776         In glibc, this was fixed for version 2.13:
7777         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
7778
7779 2010-12-28  Bruno Haible  <bruno@clisp.org>
7780             Paul Eggert <eggert@cs.ucla.edu>
7781
7782         linkat: Make implementation robust against system behaviour variations.
7783         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
7784         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
7785         way, and to -2 if it needs a generic runtime test.
7786         * lib/linkat.c (solaris_optimized_link_immediate,
7787         solaris_optimized_link_follow): New functions.
7788         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
7789         (check_same_link): Use it.
7790
7791 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
7792
7793         New module 'unigbrk/base'.
7794         * modules/unigbrk/base: New file.
7795         * lib/unigbrk.in.h: New file.
7796
7797         New module 'unigbrk/uc-gbrk-prop'.
7798         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
7799         * modules/unigbrk/uc-gbrk-prop: New file.
7800         * lib/unigbrk/gbrkprop.h: New file.
7801         * lib/unigbrk/uc-gbrk-prop.c: New file.
7802
7803         New module 'unigbrk/uc-is-grapheme-break'.
7804         * modules/unigbrk/uc-is-grapheme-break: New file.
7805         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
7806         * lib/unigbrk/uc-is-grapheme-break.c: New file.
7807         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
7808         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
7809         * tests/unigbrk/GraphemeBreakTest.txt: New file.
7810
7811         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
7812
7813 2010-12-27  Bruno Haible  <bruno@clisp.org>
7814
7815         linkat test: Avoid failure on Solaris 11 2010-11.
7816         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
7817
7818 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
7819
7820         utimens: work around glibc rounding bug on more platforms
7821         * lib/utimens.c (fdutimens): Work around rounding bug even if
7822         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
7823         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
7824
7825 2010-12-27  Bruno Haible  <bruno@clisp.org>
7826
7827         select tests: Improve comments.
7828         * tests/test-select.c (do_select): Add comments.
7829
7830 2010-12-27  Bruno Haible  <bruno@clisp.org>
7831
7832         select tests: Safer way of handling timeout.
7833         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
7834         at every invocation.
7835
7836 2010-12-27  Bruno Haible  <bruno@clisp.org>
7837
7838         select tests: Use 'bool' where appropriate.
7839         * tests/test-select.c (connect_to_socket): Change argument type to
7840         'bool'.
7841
7842 2010-12-27  Bruno Haible  <bruno@clisp.org>
7843
7844         select tests: Use existing modules.
7845         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
7846         (configure.ac): Don't test for unistd.h.
7847         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
7848         declared in <unistd.h>.
7849
7850 2010-12-27  Bruno Haible  <bruno@clisp.org>
7851
7852         mbrtowc: Work around a Solaris 7 bug.
7853         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
7854         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
7855         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
7856         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
7857         MBRTOWC_NULL_ARG1_BUG.
7858         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
7859         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
7860         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
7861         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
7862
7863 2010-12-27  Jim Meyering  <meyering@redhat.com>
7864
7865         read-file.c: tweak syntax
7866         * lib/read-file.c (fread_file): Remove space after "*" in function
7867         definitions.
7868
7869 2010-12-27  Bruno Haible  <bruno@clisp.org>
7870
7871         times test: Avoid gcc warnings on OSF/1.
7872         * tests/test-times.c (main): Cast printf arguments from clock_t to
7873         'long int'.
7874
7875 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
7876
7877         utimens: work around glibc rounding bug on older Linux kernels
7878         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
7879         on Linux with a glibc whose utimes might not work, then work
7880         around a longstanding glibc bug involving rounding rather than
7881         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
7882         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
7883
7884 2010-12-26  Bruno Haible  <bruno@clisp.org>
7885
7886         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
7887         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
7888         _GL_CXXALIAS_SYS.
7889         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
7890
7891 2010-12-26  Bruno Haible  <bruno@clisp.org>
7892
7893         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
7894         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
7895         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
7896         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
7897         looking for the declaration.
7898         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
7899         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
7900         problem.
7901         * doc/posix-functions/inet_pton.texi: Likewise.
7902
7903 2010-12-26  Bruno Haible  <bruno@clisp.org>
7904
7905         arpa_inet: Use the common idioms with C++ support.
7906         * lib/arpa_inet.in.h: Include c++defs.h.
7907         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
7908         support.
7909         * modules/arpa_inet (Depends-on): Add c++defs.
7910         (Makefile.am): Substitute the contents of c++defs.h.
7911         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
7912         * modules/arpa_inet-c++-tests: New file.
7913         * tests/test-arpa_inet-c++.cc: New file.
7914
7915 2010-12-25  Bruno Haible  <bruno@clisp.org>
7916
7917         Fix more C++ link errors on Solaris 8.
7918         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
7919         $(LIB_EACCESS).
7920         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
7921         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
7922         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
7923         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
7924         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
7925
7926 2010-12-25  Bruno Haible  <bruno@clisp.org>
7927
7928         printf-posix: Fix link error when a non-GCC compiler is used.
7929         * lib/stdio.in.h (printf): When not using GCC, override printf
7930         correctly.
7931         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
7932
7933 2010-12-25  Bruno Haible  <bruno@clisp.org>
7934
7935         strerror_r-posix: Update doc.
7936         * doc/posix-functions/strerror_r.texi: Update doc about the return
7937         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
7938
7939 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
7940
7941         utimens: simplify the logic of the previous change
7942         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
7943         This should not affect whether the test succeeds or fails.
7944
7945         utimens: configure better on hosts with NFS clock skew
7946         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
7947         uses the clock of the local host.  It might use the clock of the
7948         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
7949         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
7950
7951 2010-12-25  Bruno Haible  <bruno@clisp.org>
7952
7953         ptsname test: Avoid failure on Solaris.
7954         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
7955         open a pseudo-terminal; don't use BSD-style ptys.
7956         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
7957
7958 2010-12-25  Bruno Haible  <bruno@clisp.org>
7959
7960         ptsname: Avoid ERANGE failure on some systems.
7961         * lib/ptsname.c (buffer): Increase size.
7962
7963 2010-12-25  Bruno Haible  <bruno@clisp.org>
7964
7965         rename, renameat: Avoid test failures at NFS mounted locations.
7966         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
7967         so that subsequent mkdir calls succeed.
7968
7969 2010-12-25  Bruno Haible  <bruno@clisp.org>
7970
7971         iswblank: Fix C++ link error on Solaris 8.
7972         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
7973         _GL_FUNCDECL_SYS.
7974
7975 2010-12-25  Bruno Haible  <bruno@clisp.org>
7976
7977         unistd: Fix C++ link error on Solaris 8.
7978         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
7979
7980 2010-12-25  Bruno Haible  <bruno@clisp.org>
7981
7982         readlink doc: Mention an old glibc bug.
7983         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
7984
7985 2010-12-25  Bruno Haible  <bruno@clisp.org>
7986
7987         fcntl-h: Fix for use of C++ on glibc systems.
7988         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
7989         also on glibc systems in C++ mode.
7990         Reported by Gary V. Vaughan <gary@gnu.org>.
7991
7992 2010-12-25  Bruno Haible  <bruno@clisp.org>
7993
7994         roundl-ieee: Make it work on OSF/1 5.1 with cc.
7995         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
7996
7997 2010-12-25  Bruno Haible  <bruno@clisp.org>
7998
7999         truncl-ieee: Make it work on OSF/1 5.1 with cc.
8000         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
8001         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
8002         test whether truncl works according to ISO C 99 with IEC 60559.
8003         * m4/truncl-ieee.m4: New file.
8004         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
8005         m4/signbit.m4.
8006         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
8007
8008 2010-12-25  Bruno Haible  <bruno@clisp.org>
8009
8010         ceill-ieee: Make it work on OSF/1 5.1 with cc.
8011         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
8012         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
8013         test whether ceill works according to ISO C 99 with IEC 60559.
8014         * m4/ceill-ieee.m4: New file.
8015         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
8016         m4/signbit.m4.
8017         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
8018
8019 2010-12-25  Bruno Haible  <bruno@clisp.org>
8020
8021         Ensure all prerequisites of <wchar.h> are included.
8022         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
8023         before <wchar.h>.
8024         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
8025         gl_MBRLEN_NUL_RETVAL): Likewise.
8026         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
8027         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
8028         AC_FUNC_MBRTOWC): Likewise.
8029         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
8030         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
8031         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
8032         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
8033         Likewise.
8034         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
8035         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
8036         (gl_WCHAR_H): Improve comments.
8037         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
8038
8039 2010-12-25  Bruno Haible  <bruno@clisp.org>
8040
8041         strtok_r: Fix C syntax error in autoconf macro.
8042         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
8043         characters in test program.
8044
8045 2010-12-24  Bruno Haible  <bruno@clisp.org>
8046
8047         ceil, trunc, round: Fix gcc warnings.
8048         * lib/ceil.c (MIN): Undefine before redefining.
8049         * lib/trunc.c (MIN): Likewise.
8050         * lib/round.c (MIN): Likewise.
8051         Include <math.h> first.
8052
8053 2010-12-24  Bruno Haible  <bruno@clisp.org>
8054
8055         select tests: Avoid failures on OSF/1 5.1.
8056         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
8057         failure of closing the last socket; it may fail with ECONNRESET.
8058
8059 2010-12-24  Eric Blake  <eblake@redhat.com>
8060
8061         stdint: avoid HP-UX 10.20 preprocessor bug
8062         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
8063         than #if.
8064         * tests/test-floor2.c (main): Likewise.
8065         Reported by Peter O'Gorman.
8066
8067         pipe: make obsoletion transition easier
8068         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
8069         * modules/pipe (Files): Include revived file.
8070         (Include): Drop reference, to mirror getdate's behavior.
8071
8072 2010-12-24  Bruno Haible  <bruno@clisp.org>
8073
8074         sys_socket: Hide mismatch of declarations on NonStop Kernel.
8075         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
8076         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
8077         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
8078
8079 2010-12-24  Bruno Haible  <bruno@clisp.org>
8080
8081         gethostname: Ensure declaration on NonStop Kernel.
8082         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
8083         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
8084
8085 2010-12-24  Bruno Haible  <bruno@clisp.org>
8086
8087         sys_select: Ensure all necessary types on NonStop Kernel.
8088         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
8089         include <sys/time.h>.
8090         * doc/posix-headers/sys_select.texi: Mention that it's missing on
8091         NonStop Kernel.
8092         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
8093
8094 2010-12-24  Bruno Haible  <bruno@clisp.org>
8095
8096         sys_select: Remove unneeded include.
8097         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
8098         have <sys/select.h>.
8099
8100 2010-12-24  Bruno Haible  <bruno@clisp.org>
8101
8102         gethostname: Provide a fallback for HOST_NAME_MAX.
8103         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
8104         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
8105         instead.
8106         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
8107
8108 2010-12-24  Bruno Haible  <bruno@clisp.org>
8109
8110         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
8111         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
8112         (SA_RESTART): Likewise.
8113         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
8114
8115 2010-12-24  Bruno Haible  <bruno@clisp.org>
8116
8117         signal: Define NSIG.
8118         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
8119         * tests/test-signal.c (nsig): New variable.
8120         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
8121
8122 2010-12-24  Bruno Haible  <bruno@clisp.org>
8123
8124         rename, renameat: Avoid test failures on OSF/1 5.1.
8125         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
8126         alternative error codes.
8127         * tests/test-renameat.c (main): Likewise.
8128
8129 2010-12-24  Bruno Haible  <bruno@clisp.org>
8130
8131         *printf: Detect large precisions bug on Solaris 10/SPARC.
8132         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
8133         by Paul Eggert.
8134         * tests/test-snprintf-posix.h (test_function): Add this test code here
8135         too.
8136         * tests/test-sprintf-posix.h (test_function): Likewise.
8137         * tests/test-vasnprintf-posix.c (test_function): Likewise.
8138         * tests/test-vasprintf-posix.c (test_function): Likewise.
8139         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
8140         around by gnulib.
8141         * doc/posix-functions/printf.texi: Likewise.
8142         * doc/posix-functions/snprintf.texi: Likewise.
8143         * doc/posix-functions/sprintf.texi: Likewise.
8144         * doc/posix-functions/vfprintf.texi: Likewise.
8145         * doc/posix-functions/vprintf.texi: Likewise.
8146         * doc/posix-functions/vsnprintf.texi: Likewise.
8147         * doc/posix-functions/vsprintf.texi: Likewise.
8148         * doc/posix-functions/dprintf.texi: Undo last commit.
8149         * doc/posix-functions/vdprintf.texi: Likewise.
8150
8151 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
8152
8153         tests: port test-fdutimensat.c to Solaris 8
8154         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
8155         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
8156         On Solaris 8, it fails with errno == ENOSYS, because there is no
8157         futimens (so it can't use the fd), and there is no lutimens (so it
8158         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
8159
8160         vsnprintf: make more consistent with snprintf; doc fixes
8161
8162         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
8163         the byte count return problem was promoted from the snprintf-posix
8164         to the snprintf module.
8165         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
8166         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
8167         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
8168         * tests/test-snprintf.c (main): Check the byte count returned.
8169         * tests/test-vsnprintf.c (main): Likewise.
8170
8171 2010-12-23  Eric Blake  <eblake@redhat.com>
8172
8173         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
8174         * modules/sigpipe (License): Relax license.
8175
8176 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
8177
8178         doc: document Solaris printf bug with large float precisions
8179         * doc/posix-functions/dprintf.texi (dprintf):
8180         * doc/posix-functions/fprintf.texi (fprintf):
8181         * doc/posix-functions/printf.texi (printf):
8182         * doc/posix-functions/snprintf.texi (snprintf):
8183         * doc/posix-functions/sprintf.texi (sprintf):
8184         * doc/posix-functions/vdprintf.texi (vdprintf):
8185         * doc/posix-functions/vfprintf.texi (vfprintf):
8186         * doc/posix-functions/vprintf.texi (vprintf):
8187         * doc/posix-functions/vsnprintf.texi (vsnprintf):
8188         * doc/posix-functions/vsprintf.texi (vsprintf):
8189         Mention that these functions mishandle large floating point
8190         precisions on Solaris 10.  The same bug is also present in Solaris
8191         8, and I assume earlier.  This causes "cd gnulib-tests; make
8192         check" to fail on Solaris 8 (and I assume, later) when building
8193         the latest coreutils, in test-vasprintf-posix's call to
8194         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
8195         the wide flavors (e.g., wprintf) so this patch just updates the
8196         documentation for the narrow ones.
8197
8198         test-posixtm.c: add two tests
8199         * tests/test-posixtm.c: Add two tests, to highlight the
8200         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
8201         around this bug; this is merely to document it.
8202
8203 2010-12-22  Bruno Haible  <bruno@clisp.org>
8204
8205         getlogin_r: Work around portability problem on OSF/1.
8206         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
8207         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
8208         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
8209         test for a truncated result.
8210         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
8211         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
8212         * modules/getlogin_r (Depends-on): Add memchr.
8213         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
8214
8215 2010-12-22  Bruno Haible  <bruno@clisp.org>
8216
8217         ptsname: Avoid test failure on OSF/1 5.1.
8218         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
8219         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
8220         (same_slave): New function.
8221         (main): Use it to compare ptsname's result with the expected file name.
8222
8223 2010-12-22  Bruno Haible  <bruno@clisp.org>
8224
8225         Port extended stdio modules to HP NonStop Kernel.
8226         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
8227         macros.
8228         * lib/fbufmode.c: Update comments.
8229         * lib/fflush.c: Likewise.
8230         * lib/fpurge.c: Likewise.
8231         * lib/freadable.c: Likewise.
8232         * lib/freadahead.c: Likewise.
8233         * lib/freading.c: Likewise.
8234         * lib/freadptr.c: Likewise.
8235         * lib/freadseek.c: Likewise.
8236         * lib/fseeko.c: Likewise.
8237         * lib/fseterr.c: Likewise.
8238         * lib/fwritable.c: Likewise.
8239         * lib/fwriting.c: Likewise.
8240         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
8241
8242 2010-12-22  Bruno Haible  <bruno@clisp.org>
8243
8244         ttyname_r: Work around bug on OSF/1 5.1.
8245         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
8246         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
8247         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
8248         present.
8249         * lib/ttyname_r.c (ttyname_r): Update comments.
8250
8251 2010-12-22  Bruno Haible  <bruno@clisp.org>
8252
8253         round: Implement result sign according to IEEE 754.
8254         * lib/round.c (MIN, MINUS_ZERO): New macros.
8255         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
8256         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
8257         * tests/test-round-ieee.c (main): Likewise.
8258         * tests/test-roundl-ieee.c (main): Likewise.
8259
8260         trunc: Implement result sign according to IEEE 754.
8261         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
8262         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
8263         * tests/test-trunc2.c: Include minus-zero.h.
8264         (MINUS_ZERO): New macro.
8265         (trunc_reference): Keep in sync with lib/trunc.c.
8266         * tests/test-truncf2.c: Include minus-zero.h.
8267         (MINUS_ZERO): New macro.
8268         (truncf_reference): Keep in sync with lib/trunc.c.
8269         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
8270         * tests/test-trunc-ieee.c (main): Likewise.
8271         * tests/test-truncl-ieee.c (main): Likewise.
8272
8273         ceil: Implement result sign according to IEEE 754.
8274         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
8275         (FUNC): Return -0.0 for -1 < x < 0.
8276         * tests/test-ceil2.c: Include minus-zero.h.
8277         (MINUS_ZERO): New macro.
8278         (ceil_reference): Keep in sync with lib/ceil.c.
8279         * tests/test-ceilf2.c: Include minus-zero.h.
8280         (MINUS_ZERO): New macro.
8281         (ceilf_reference): Keep in sync with lib/ceil.c.
8282         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
8283         * tests/test-ceil-ieee.c (main): Likewise.
8284         * tests/test-ceill-ieee.c (main): Likewise.
8285
8286         floor: Implement result sign according to IEEE 754.
8287         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
8288         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
8289         * tests/test-floorf2.c (floorf_reference): Likewise.
8290         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
8291         * tests/test-floor-ieee.c (main): Likewise.
8292         * tests/test-floorl-ieee.c (main): Likewise.
8293
8294 2010-12-22  Bruno Haible  <bruno@clisp.org>
8295
8296         getaddrinfo: Update doc.
8297         * doc/posix-functions/gai_strerror.texi: Return type is also different
8298         on AIX and HP-UX.
8299
8300 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
8301
8302         getaddrinfo, inet_ntop: Update doc for Solaris.
8303         * doc/posix-functions/gai_strerror.texi: Return type is also an
8304         issue on Solaris 9 and earlier.
8305         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
8306         on Solaris 10 and earlier.
8307
8308 2010-12-21  Bruno Haible  <bruno@clisp.org>
8309
8310         New module 'roundl-ieee'.
8311         * modules/roundl-ieee: New file.
8312         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
8313         test whether roundl works according to ISO C 99 with IEC 60559.
8314         * m4/roundl-ieee.m4: New file.
8315         * modules/roundl-ieee-tests: New file.
8316         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
8317         * tests/test-roundl.c (main): Remove signbit tests.
8318         * modules/roundl-tests (Depends-on): Remove signbit.
8319         * doc/posix-functions/roundl.texi: Mention the new module.
8320
8321 2010-12-21  Bruno Haible  <bruno@clisp.org>
8322
8323         New module 'truncl-ieee'.
8324         * modules/truncl-ieee: New file.
8325         * modules/truncl-ieee-tests: New file.
8326         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
8327         * tests/test-truncl.c (main): Remove signbit tests.
8328         * modules/truncl-tests (Depends-on): Remove signbit.
8329         * doc/posix-functions/truncl.texi: Mention the new module.
8330
8331 2010-12-21  Bruno Haible  <bruno@clisp.org>
8332
8333         New module 'ceill-ieee'.
8334         * modules/ceill-ieee: New file.
8335         * modules/ceill-ieee-tests: New file.
8336         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
8337         * tests/test-ceill.c (main): Remove signbit tests.
8338         * modules/ceill-tests (Depends-on): Remove signbit.
8339         * doc/posix-functions/ceill.texi: Mention the new module.
8340
8341 2010-12-21  Bruno Haible  <bruno@clisp.org>
8342
8343         New module 'floorl-ieee'.
8344         * modules/floorl-ieee: New file.
8345         * modules/floorl-ieee-tests: New file.
8346         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
8347         * tests/test-floorl.c (main): Remove signbit tests.
8348         * modules/floorl-tests (Depends-on): Remove signbit.
8349         * doc/posix-functions/floorl.texi: Mention the new module.
8350
8351 2010-12-21  Bruno Haible  <bruno@clisp.org>
8352
8353         New module 'round-ieee'.
8354         * modules/round-ieee: New file.
8355         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
8356         whether round works according to ISO C 99 with IEC 60559.
8357         * m4/round-ieee.m4: New file.
8358         * modules/round-ieee-tests: New file.
8359         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
8360         * tests/test-round1.c (main): Remove signbit tests.
8361         * modules/round-tests (Depends-on): Remove 'signbit'.
8362         * doc/posix-functions/round.texi: Mention the new module.
8363
8364 2010-12-21  Bruno Haible  <bruno@clisp.org>
8365
8366         New module 'trunc-ieee'.
8367         * modules/trunc-ieee: New file.
8368         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
8369         whether trunc works according to ISO C 99 with IEC 60559.
8370         * m4/trunc-ieee.m4: New file.
8371         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
8372         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
8373         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
8374         * modules/trunc-ieee-tests: New file.
8375         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
8376         * tests/test-trunc1.c (main): Remove signbit tests.
8377         * modules/trunc-tests (Depends-on): Remove 'signbit'.
8378         * doc/posix-functions/trunc.texi: Mention the new module.
8379
8380 2010-12-21  Bruno Haible  <bruno@clisp.org>
8381
8382         New module 'ceil-ieee'.
8383         * modules/ceil-ieee: New file.
8384         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
8385         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
8386         ISO C 99 with IEC 60559.
8387         * m4/ceil-ieee.m4: New file.
8388         * modules/ceil (Files): Add lib/ceil.c.
8389         (Depends-on): Add 'float'.
8390         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
8391         * lib/math.in.h (ceil): New declaration.
8392         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
8393         REPLACE_CEIL.
8394         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
8395         * modules/ceil-ieee-tests: New file.
8396         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
8397         * tests/test-math-c++.cc: Check the signature of 'ceil'.
8398         * doc/posix-functions/ceil.texi: Mention the new module.
8399
8400 2010-12-21  Bruno Haible  <bruno@clisp.org>
8401
8402         New module 'floor-ieee'.
8403         * modules/floor-ieee: New file.
8404         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
8405         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
8406         ISO C 99 with IEC 60559.
8407         * m4/floor-ieee.m4: New file.
8408         * modules/floor (Files): Add lib/floor.c.
8409         (Depends-on): Add 'float'.
8410         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
8411         * lib/math.in.h (floor): New declaration.
8412         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
8413         REPLACE_FLOOR.
8414         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
8415         * modules/floor-ieee-tests: New file.
8416         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
8417         * tests/test-math-c++.cc: Check the signature of 'floor'.
8418         * doc/posix-functions/floor.texi: Mention the new module.
8419
8420 2010-12-21  Bruno Haible  <bruno@clisp.org>
8421
8422         New module 'roundf-ieee'.
8423         * modules/roundf-ieee: New file.
8424         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
8425         test whether roundf works according to ISO C 99 with IEC 60559.
8426         * m4/roundf-ieee.m4: New file.
8427         * modules/roundf-ieee-tests: New file.
8428         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
8429         * tests/test-roundf1.c (main): Remove signbit tests.
8430         * modules/roundf-tests (Depends-on): Remove 'signbit'.
8431         * doc/posix-functions/roundf.texi: Mention the new module.
8432
8433 2010-12-21  Bruno Haible  <bruno@clisp.org>
8434
8435         New module 'truncf-ieee'.
8436         * modules/truncf-ieee: New file.
8437         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
8438         test whether truncf works according to ISO C 99 with IEC 60559.
8439         * m4/truncf-ieee.m4: New file.
8440         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
8441         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
8442         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
8443         * modules/truncf-ieee-tests: New file.
8444         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
8445         * tests/test-truncf1.c (main): Remove signbit tests.
8446         * modules/truncf-tests (Depends-on): Remove 'signbit'.
8447         * doc/posix-functions/truncf.texi: Mention the new module.
8448
8449 2010-12-21  Bruno Haible  <bruno@clisp.org>
8450
8451         New module 'ceilf-ieee'.
8452         * modules/ceilf-ieee: New file.
8453         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
8454         test whether ceilf works according to ISO C 99 with IEC 60559.
8455         * m4/ceilf-ieee.m4: New file.
8456         * modules/ceilf-ieee-tests: New file.
8457         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
8458         * tests/test-ceilf1.c (main): Remove signbit tests.
8459         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
8460         * doc/posix-functions/ceilf.texi: Mention the new module.
8461
8462 2010-12-21  Bruno Haible  <bruno@clisp.org>
8463
8464         New module 'floorf-ieee'.
8465         * modules/floorf-ieee: New file.
8466         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
8467         test whether floorf works according to ISO C 99 with IEC 60559.
8468         * m4/floorf-ieee.m4: New file.
8469         * modules/floorf-ieee-tests: New file.
8470         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
8471         * tests/test-floorf1.c (main): Remove signbit tests.
8472         * modules/floorf-tests (Depends-on): Remove 'signbit'.
8473         * doc/posix-functions/floorf.texi: Mention the new module.
8474
8475 2010-12-21  Bruno Haible  <bruno@clisp.org>
8476
8477         Support for minus zero in autoconf macros.
8478         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
8479         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
8480         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
8481         * tests/minus-zero.h: Update comments.
8482
8483 2010-12-21  Bruno Haible  <bruno@clisp.org>
8484
8485         Tests for module 'ceil'.
8486         * modules/ceil-tests: New file.
8487         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
8488         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
8489
8490 2010-12-21  Bruno Haible  <bruno@clisp.org>
8491
8492         Tests for module 'floor'.
8493         * modules/floor-tests: New file.
8494         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
8495         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
8496
8497 2010-12-21  Bruno Haible  <bruno@clisp.org>
8498
8499         math: Fix indentation.
8500         * lib/math.in.h (floorf): Fix indentation.
8501
8502 2010-12-21  Bruno Haible  <bruno@clisp.org>
8503
8504         Fix cross-compilation guesses on Solaris.
8505         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
8506         not match "solaris2.10".
8507         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
8508         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
8509         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
8510
8511 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
8512
8513         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
8514         This fixes a problem observed with the latest coreutils snapshot
8515         that caused a test to fail on Solaris 8.  src/csplit.c's call
8516         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
8517         earlier, instead of returning the number of bytes that would have
8518         been generated; this causes csplit to incorrectly report memory
8519         exhaustion.
8520         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
8521         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
8522         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
8523         comments to match.
8524         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
8525         Fix typo in matching older versions of Solaris: "solaris2.10"
8526         is matched by the shell pattern "solaris2.[0-9]*".  This matters
8527         only for guessing while cross-compiling.
8528         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
8529
8530 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
8531
8532         ftoastr: fix comment again
8533         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
8534         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
8535         Also, simplify example a bit by using flags = 0.
8536
8537 2010-12-20  Bruno Haible  <bruno@clisp.org>
8538
8539         round*, trunc*: Update documentation regarding glibc.
8540         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
8541         * doc/posix-functions/round.texi: Likewise.
8542         * doc/posix-functions/roundl.texi: Likewise.
8543         * doc/posix-functions/truncf.texi: Likewise.
8544         * doc/posix-functions/trunc.texi: Likewise.
8545         * doc/posix-functions/truncl.texi: Likewise.
8546
8547 2010-12-20  Bruno Haible  <bruno@clisp.org>
8548
8549         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
8550         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
8551         * doc/posix-functions/round.texi: Likewise.
8552         * doc/posix-functions/roundl.texi: Likewise.
8553
8554 2010-12-20  Bruno Haible  <bruno@clisp.org>
8555
8556         ttyname_r: Add missing declaration on HP-UX 11.
8557         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
8558         HAVE_TTYNAME_R.
8559         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
8560         declared. Set HAVE_TTYNAME_R always.
8561         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
8562         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
8563         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
8564         HAVE_TTYNAME_R.
8565         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
8566
8567 2010-12-20  Bruno Haible  <bruno@clisp.org>
8568
8569         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
8570         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
8571         * doc/posix-functions/getlogin_r.texi: Likewise.
8572         * tests/test-getlogin.c: Include <errno.h>.
8573         (main): Avoid test failure on HP-UX 11.11.
8574         * tests/test-getlogin_r.c (main): Likewise.
8575
8576 2010-12-20  Bruno Haible  <bruno@clisp.org>
8577
8578         getlogin_r: Add missing declaration on HP-UX 11.
8579         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
8580         declared also when it exists as a function.
8581         * doc/posix-functions/getlogin_r.texi: Document this workaround.
8582
8583 2010-12-20  Bruno Haible  <bruno@clisp.org>
8584
8585         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
8586         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
8587         through wcrtomb.
8588
8589 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
8590
8591         ftoastr: fix comment
8592         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
8593         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
8594
8595 2010-12-19  Bruno Haible  <bruno@clisp.org>
8596
8597         isnan: Ensure it is a macro.
8598         * lib/math.in.h (isnan): Define as a macro if not already a macro.
8599         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
8600         Solaris.
8601
8602 2010-12-19  Bruno Haible  <bruno@clisp.org>
8603
8604         ldexpl test: Fix link error on OSF/1 5.1.
8605         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
8606
8607 2010-12-19  Bruno Haible  <bruno@clisp.org>
8608
8609         wctype: Make it work in C++ mode on OSF/1 5.1.
8610         * lib/wctype.in.h (iswblank): Declare but not define here.
8611         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
8612         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
8613         * modules/wctype (Files): Add lib/iswblank.c.
8614
8615 2010-12-19  Bruno Haible  <bruno@clisp.org>
8616
8617         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
8618         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
8619         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
8620
8621 2010-12-19  Bruno Haible  <bruno@clisp.org>
8622
8623         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
8624         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
8625         _POSIX_PII_SOCKET.
8626         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
8627         * doc/posix-functions/recvfrom.texi: Likewise.
8628         * doc/posix-functions/send.texi: Likewise.
8629         * doc/posix-functions/sendto.texi: Likewise.
8630
8631 2010-12-19  Bruno Haible  <bruno@clisp.org>
8632
8633         tcgetsid: Add missing declaration on OSF/1 5.1.
8634         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
8635         HAVE_TCGETSID.
8636         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
8637         Don't set HAVE_TCGETSID.
8638         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
8639         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
8640         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
8641         HAVE_TCGETSID.
8642         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
8643
8644 2010-12-19  Bruno Haible  <bruno@clisp.org>
8645
8646         stdio: Fix problem with popen() declaration on OSF/1 5.1.
8647         * lib/stdio.in.h: During the include_next statement, let recursive
8648         includes of this file include only the system header file.
8649
8650 2010-12-19  Bruno Haible  <bruno@clisp.org>
8651
8652         iconv_open: Fix regression from 2010-12-04.
8653         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
8654         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
8655
8656 2010-12-19  Bruno Haible  <bruno@clisp.org>
8657
8658         stdbool test: Avoid a gcc warning.
8659         * tests/test-stdbool.c (main): Fail if e1 is false.
8660         Reported by Jim Meyering.
8661
8662 2010-12-19  Jim Meyering  <meyering@redhat.com>
8663
8664         setenv: restore to working order
8665         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
8666         mistakenly removed.
8667         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
8668         HAVE_SETENV.
8669         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
8670         HAVE_SETENV.
8671
8672 2010-12-19  Bruno Haible  <bruno@clisp.org>
8673
8674         Document some different function declarations on OSF/1 5.1.
8675         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
8676         * doc/posix-functions/inet_ntop.texi: Likewise.
8677         * doc/posix-functions/gethostname.texi: Likewise.
8678         * lib/unistd.in.h (gethostname): Update comment.
8679
8680 2010-12-19  Bruno Haible  <bruno@clisp.org>
8681
8682         doc: Mention vasprintf-posix module.
8683         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
8684         the 'vasprintf-posix' module.
8685         * doc/glibc-functions/vasprintf.texi: Likewise.
8686
8687 2010-12-19  Bruno Haible  <bruno@clisp.org>
8688
8689         unsetenv: Add missing declaration on OSF/1 5.1.
8690         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
8691         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
8692         Don't set HAVE_UNSETENV. In the test program, set _BSD.
8693         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
8694         not HAVE_UNSETENV.
8695         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
8696         HAVE_UNSETENV.
8697         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
8698
8699 2010-12-19  Bruno Haible  <bruno@clisp.org>
8700
8701         setenv: Add missing declaration on OSF/1 5.1.
8702         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
8703         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
8704         declared. Don't set HAVE_SETENV.
8705         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
8706         not HAVE_SETENV.
8707         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
8708         HAVE_SETENV.
8709         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
8710
8711 2010-12-19  Bruno Haible  <bruno@clisp.org>
8712
8713         nl_langinfo tests: Avoid gcc warning.
8714         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
8715
8716 2010-12-19  Bruno Haible  <bruno@clisp.org>
8717
8718         mknod: Avoid error in C++ mode on OSF/1 with GCC.
8719         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
8720         _GL_CXXALIAS_SYS.
8721
8722 2010-12-19  Bruno Haible  <bruno@clisp.org>
8723
8724         stdbool: Relax test.
8725         * tests/test-stdbool.c (e): Don't require that casts from a variable's
8726         address to 'bool' work in static initializer, for compilers other than
8727         GCC.
8728
8729 2010-12-19  Bruno Haible  <bruno@clisp.org>
8730
8731         ftello: Add missing declaration on OSF/1 5.1.
8732         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
8733         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
8734         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
8735         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
8736         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
8737
8738 2010-12-19  Bruno Haible  <bruno@clisp.org>
8739
8740         fseeko: Add missing declaration on OSF/1 5.1.
8741         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
8742         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
8743         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
8744         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
8745         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
8746
8747 2010-12-19  Bruno Haible  <bruno@clisp.org>
8748
8749         fchdir: Add missing declaration on OSF/1 5.1.
8750         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
8751         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
8752         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
8753         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
8754         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
8755
8756 2010-12-19  Bruno Haible  <bruno@clisp.org>
8757
8758         relocatable-prog-wrapper: Separate from relocatable-prog.
8759         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
8760         uninstall-relocwrapper rule here.
8761         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
8762         Reported by Ian Beckwith <ianb@erislabs.net>.
8763
8764 2010-12-19  Bruno Haible  <bruno@clisp.org>
8765
8766         unistr/u8-mbsnlen: Add missing dependency.
8767         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
8768         Reported by Ian Beckwith <ianb@erislabs.net>.
8769
8770 2010-12-19  Bruno Haible  <bruno@clisp.org>
8771
8772         iconv: Make it possible again to use this module without 'iconv-h'.
8773         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
8774         if it is not defined.
8775         Reported by Ian Beckwith <ianb@erislabs.net>.
8776
8777 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
8778
8779         acl: port to Solaris 8 when copying from tmpfs to ufs
8780         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
8781         error number.  Problem observed on Solaris 8 with latest
8782         coreutils, with "mv A B", where A is on a tmpfs file system and B
8783         is on a ufs file system.  This caused coreutils' mv/part-symlink
8784         test to fail.
8785
8786         tests: set fail=0 at start
8787         * tests/init.sh (setup_): Move fail=0 initialization here ...
8788         (mktempd_): ... from here, so that tests can rely on fail being
8789         set to 0 initially.  This fixes a problem in coreutils; see:
8790         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
8791
8792 2010-12-18  Bruno Haible  <bruno@clisp.org>
8793
8794         memmem-simple: Stylistic changes.
8795         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
8796         Fix preprocessor directive indentation.
8797
8798 2010-12-15  Pádraig Brady <P@draigBrady.com>
8799
8800         memmem, memmem-simple: reorganize and expand empty needle check
8801         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
8802         functional checks to memmem-simple so that one has a fully functional
8803         memmem by using just this module.
8804         Restrict the performance only check to the memmem module.
8805         Also expand the empty needle check to ensure the correct
8806         pointer is returned, not just a non NULL pointer.
8807         * doc/glibc-functions/memmem.texi: Rearrange the portability
8808         documentation to correlate with the rearranged checks.
8809         Clarify exactly how the memmem and memmem-simple modules
8810         relate to each other.
8811
8812 2010-12-15  Pádraig Brady <P@draigBrady.com>
8813             Bruno Haible  <bruno@clisp.org>
8814
8815         Improve cross-compilation guesses for uClibc.
8816         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
8817         that uClibc does not have the glibc bug.
8818         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
8819         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
8820
8821 2010-12-14  Eric Blake  <eblake@redhat.com>
8822
8823         configmake: provide fallbacks for oldest supported autotools
8824         * m4/configmake.m4: New file.
8825         * modules/configmake (Files): Ship it.
8826         (configure.ac): Use it to guarantee fallbacks.
8827
8828 2010-12-13  Pádraig Brady <P@draigBrady.com>
8829
8830         read-file: Improve handling of large files
8831         * lib/read-file.c (fread_file): Minimize realloc()s
8832         for regular files, and better manage sizes around SIZE_MAX.
8833
8834 2010-12-13  Eric Blake  <eblake@redhat.com>
8835
8836         cloexec, fcntl: relax license
8837         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
8838         consent from all contributors.
8839         * modules/fcntl (License): Likewise.
8840
8841 2010-12-10  Bruno Haible  <bruno@clisp.org>
8842
8843         Tests for module 'pipe-posix'.
8844         * modules/pipe-posix-tests: New file.
8845         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
8846
8847 2010-12-10  Bruno Haible  <bruno@clisp.org>
8848
8849         pipe-posix: Make it work in C++ mode.
8850         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
8851         (pipe): Use common idiom, not a macro definition.
8852         * lib/pipe.c: New file.
8853         * m4/pipe.m4: New file.
8854         * modules/pipe-posix (Description): Enhance.
8855         (Files): Add lib/pipe.c, m4/pipe.m4.
8856         (configure.ac): Invoke gl_FUNC_PIPE.
8857         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
8858         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
8859         * tests/test-unistd-c++.cc: Check the signature of pipe.
8860
8861 2010-12-10  Bruno Haible  <bruno@clisp.org>
8862
8863         Rename module 'pipe' to 'spawn-pipe'.
8864         * modules/spawn-pipe: New file, renamed from modules/pipe.
8865         (Files, configure.ac, Makefile.am): Update.
8866         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
8867         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
8868         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
8869         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
8870         "spawn-pipe.h" instead of "pipe.h".
8871         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
8872         to gl_SPAWN_PIPE.
8873         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
8874         (Files, Makefile.am): Update.
8875         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
8876         Update.
8877         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
8878         Include "spawn-pipe.h" instead of "pipe.h".
8879         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
8880         * lib/javacomp.c: Likewise.
8881         * lib/javaversion.c: Likewise.
8882         * lib/pipe-filter-gi.c: Likewise.
8883         * lib/pipe-filter-ii.c: Likewise.
8884         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
8885         * modules/javacomp (Depends-on): Likewise.
8886         * modules/javaversion (Depends-on): Likewise.
8887         * modules/pipe-filter-gi (Depends-on): Likewise.
8888         * modules/pipe-filter-ii (Depends-on): Likewise.
8889         * MODULES.html.sh (Executing programs): Update.
8890         * NEWS: Mention the change.
8891
8892 2010-12-10  Eric Blake  <eblake@redhat.com>
8893
8894         pipe-posix: new module
8895         * modules/pipe-posix: New file.
8896         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
8897         (gl_UNISTD_H): Check for declaration.
8898         * modules/unistd (Makefile.am): Substitute it.
8899         * lib/unistd.in.h (pipe): Provide it for mingw.
8900         * doc/posix-functions/pipe.texi (pipe): Update documentation.
8901         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
8902
8903 2010-12-07  Bruno Haible  <bruno@clisp.org>
8904
8905         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
8906         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
8907         u8_strcmp_gnu.
8908         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
8909
8910 2010-12-06  Bruno Haible  <bruno@clisp.org>
8911
8912         Update internal documentation.
8913         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
8914
8915 2010-12-04  Bruno Haible  <bruno@clisp.org>
8916
8917         Put more information about failed tests into the test return codes.
8918         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
8919         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
8920         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
8921         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
8922         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
8923         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
8924         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
8925         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
8926         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
8927         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
8928         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
8929         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
8930         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
8931         * m4/stdint.m4 (gl_STDINT_H): Likewise.
8932         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
8933         returns a bit mask.
8934         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
8935         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
8936         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
8937         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
8938         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
8939         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
8940         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
8941         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
8942         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
8943         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
8944         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
8945         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
8946         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
8947         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
8948         * m4/link.m4 (gl_FUNC_LINK): Likewise.
8949         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
8950         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
8951         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
8952         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
8953         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
8954         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
8955         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
8956         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
8957         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
8958         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
8959         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
8960         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
8961         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
8962         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
8963         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
8964         gl_PRINTF_PRECISION): Likewise.
8965         * m4/regex.m4 (gl_REGEX): Likewise.
8966         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
8967         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
8968         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
8969         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
8970         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
8971         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
8972         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
8973         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
8974         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
8975         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
8976         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
8977         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
8978         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
8979         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
8980         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
8981         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
8982         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
8983         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
8984         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
8985         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
8986         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
8987         enumerated value.
8988         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
8989
8990 2010-12-04  Bruno Haible  <bruno@clisp.org>
8991
8992         Update for Solaris 11 2010-11.
8993         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
8994         Express, released in November 2010.
8995
8996 2010-12-04  Bruno Haible  <bruno@clisp.org>
8997
8998         nproc: Relax license.
8999         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
9000         and Paul Eggert.
9001         Requested by Ludovic Courtès <ludo@gnu.org>.
9002
9003 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
9004
9005         utimecmp: fine-grained src to nearby coarse-grained dest
9006
9007         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
9008         and the source is on a file system with higher-resolution time
9009         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
9010         not work, and the time stamps are close together, the algorithm to
9011         determine the exact resolution from the read-back mtime was buggy:
9012         it had a "!=" where it should have had an "==".  This bug has been
9013         in the code ever since it was introduced to gnulib.
9014         Problem reported by Dan Jacobson in
9015         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
9016
9017 2010-11-30  Bruno Haible  <bruno@clisp.org>
9018
9019         strerror_r-posix: Fix autoconf test.
9020         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
9021
9022 2010-11-28  Bruno Haible  <bruno@clisp.org>
9023             Paul Eggert  <eggert@cs.ucla.edu>
9024
9025         Tests for module 'getdomainname'.
9026         * modules/getdomainname-tests: New file.
9027         * tests/test-getdomainname.c: New file, based on
9028         tests/test-gethostname.c.
9029
9030 2010-11-28  Bruno Haible  <bruno@clisp.org>
9031             Paul Eggert  <eggert@cs.ucla.edu>
9032
9033         getdomainname: Use the system function when possible.
9034         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
9035         (getdomainname): Replace if needed. Provide the declaration if it is
9036         missing. Don't use _GL_CXXALIAS_SYS_CAST.
9037         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
9038         (getdomainname): When the system has getdomainname, call the system
9039         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
9040         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
9041         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
9042         found in libnsl. Look for the declaration also in <netdb.h>. Replace
9043         the function if its second argument is of type 'int' or if it is found
9044         in libnsl.
9045         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
9046         <sys/systeminfo.h> and sysinfo().
9047         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
9048         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
9049         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
9050         HAVE_GETDOMAINNAME.
9051         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
9052         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
9053         * doc/glibc-functions/getdomainname.texi: Document the problems with
9054         the getdomainname declaration.
9055
9056 2010-11-28  Bruno Haible  <bruno@clisp.org>
9057
9058         sys_socket: Ensure ss_family field on AIX.
9059         * lib/sys_socket.in.h (ss_family): New macro definition.
9060         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
9061         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
9062         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
9063         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
9064         * modules/sys_socket (Makefile.am): Substitute
9065         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
9066         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
9067
9068 2010-11-27  Bruno Haible  <bruno@clisp.org>
9069
9070         readline: Improve configure output.
9071         * m4/readline.m4 (gl_FUNC_READLINE): Make the
9072         "checking for readline..." result understandable.
9073
9074 2010-11-27  Bruno Haible  <bruno@clisp.org>
9075
9076         *printf-posix: Detect a bug on Solaris 10/x86.
9077         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
9078         for floating-point output.
9079         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
9080         directive.
9081         * tests/test-snprintf-posix.h (test_function): Likewise.
9082         * tests/test-sprintf-posix.h (test_function): Likewise.
9083         * tests/test-vasprintf-posix.c (test_function): Likewise.
9084         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
9085         * doc/posix-functions/printf.texi: Likewise.
9086         * doc/posix-functions/snprintf.texi: Likewise.
9087         * doc/posix-functions/sprintf.texi: Likewise.
9088         * doc/posix-functions/vfprintf.texi: Likewise.
9089         * doc/posix-functions/vprintf.texi: Likewise.
9090         * doc/posix-functions/vsnprintf.texi: Likewise.
9091         * doc/posix-functions/vsprintf.texi: Likewise.
9092         * doc/glibc-functions/obstack_printf.texi: Likewise.
9093         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
9094
9095 2010-11-27  Bruno Haible  <bruno@clisp.org>
9096
9097         Fix link error when module libunistring-optional is in use.
9098         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
9099         * modules/striconveha-tests (Makefile.am): Likewise.
9100
9101 2010-11-27  Bruno Haible  <bruno@clisp.org>
9102
9103         regex: Mention link dependencies.
9104         * modules/regex (Link): New section.
9105         * modules/rpmatch (Link): Likewise.
9106         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
9107
9108 2010-11-27  Bruno Haible  <bruno@clisp.org>
9109
9110         ftoastr: Fix compilation error on Solaris.
9111         * lib/ftoastr.c: Include <config.h>.
9112
9113 2010-11-27  Bruno Haible  <bruno@clisp.org>
9114
9115         getloadavg: Update documentation.
9116         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
9117
9118 2010-11-27  Bruno Haible  <bruno@clisp.org>
9119
9120         sys_socket: Fix test whether the functions are declared.
9121         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
9122         not <sys/select.h>.
9123
9124 2010-11-27  Bruno Haible  <bruno@clisp.org>
9125
9126         getpass: Make sure to get system declaration on some platforms.
9127         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
9128         gl_USE_SYSTEM_EXTENSIONS.
9129         * modules/getpass (Depends-on): Add extensions.
9130
9131 2010-11-26  Bruno Haible  <bruno@clisp.org>
9132
9133         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
9134         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
9135         'iconv' module is present.
9136         (ICONV_CONST): New macro.
9137         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
9138         ICONV_CONST.
9139         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
9140         set ICONV_CONST.
9141         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
9142         here.
9143         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
9144         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
9145         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
9146         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
9147         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
9148         present.
9149
9150 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
9151
9152         ftoastr: comment fix
9153         * lib/ftoastr.c: "little" -> "little or no" in comment
9154
9155 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
9156
9157         stdint: port to GCC 4.3 + OSX + Octave
9158         On this platform, stdint.h is buggy and defines int64_t to long
9159         long int.  The replacement defined it to long int, causing
9160         problems with C++ style name mangling.  Instead, trust the system
9161         definition if INT64_MAX is defined, and likewise for the unsigned
9162         variant.   Problem reported by Jarno Rajahalme in
9163         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
9164         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
9165         and don't mess with int64_t and INT64_MAX in this case.
9166         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
9167
9168 2010-11-24  Bruno Haible  <bruno@clisp.org>
9169
9170         doc: Corrections regarding MacOS X 10.4 and 10.5.
9171         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
9172         MacOS X.
9173         Reported by Simon Josefsson.
9174
9175 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
9176
9177         Uninstall ".bin" files installed by relocwrapper.
9178         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
9179         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
9180         unless it is already there.
9181
9182 2010-11-21  Bruno Haible  <bruno@clisp.org>
9183
9184         Update for NetBSD 5.0.
9185         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
9186         NetBSD; the test fails on NetBSD 5.0.
9187         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
9188         about NetBSD.
9189
9190 2010-11-21  Bruno Haible  <bruno@clisp.org>
9191
9192         Update for HP-UX 11.23 and HP-UX 11.31.
9193         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
9194         HP-UX.
9195
9196 2010-11-21  Bruno Haible  <bruno@clisp.org>
9197
9198         Update for MacOS X 10.5.
9199         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
9200         MacOS X; the test fails on MacOS X 10.5.8.
9201         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
9202         about MacOS X.
9203
9204 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
9205
9206         bootstrap: add bootstrap_sync option.
9207         See discussion at
9208         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
9209         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
9210         * build-aux/bootstrap: Accept --bootstrap-sync to update
9211         bootstrap if it is not identical to the local gnulib's
9212         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
9213         enable this by default.  Accept --no-bootstrap-sync to disable
9214         it.
9215
9216 2010-11-20  Bruno Haible  <bruno@clisp.org>
9217
9218         Ensure that <features.h> is included before __GLIBC__ is tested.
9219         * lib/printf-parse.h: Include <features.h>.
9220         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
9221         Reported by Mike Frysinger <vapier@gentoo.org>.
9222
9223         Ensure that <features.h> is included before __GLIBC__ is tested.
9224         * lib/wchar.in.h: Include <features.h>.
9225         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
9226         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
9227         Reported by Mike Frysinger <vapier@gentoo.org>.
9228
9229         Ensure that <features.h> is included before __GLIBC__ is tested.
9230         * lib/arpa_inet.in.h: Include <features.h>.
9231         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
9232         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
9233         Reported by Mike Frysinger <vapier@gentoo.org>.
9234
9235         Ensure that <features.h> is included before __GLIBC__ is tested.
9236         * build-aux/link-warning.h: Include <features.h>.
9237         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
9238         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
9239         Reported by Mike Frysinger <vapier@gentoo.org>.
9240
9241         Ensure that <features.h> is included before __GLIBC__ is tested.
9242         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
9243         Reported by Mike Frysinger <vapier@gentoo.org>.
9244
9245 2010-11-20  Bruno Haible  <bruno@clisp.org>
9246
9247         memmem: Fix autoconf test.
9248         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
9249
9250 2010-11-20  Bruno Haible  <bruno@clisp.org>
9251
9252         Port to uClibc.
9253         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
9254         * lib/fcntl.in.h: Likewise.
9255         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
9256         * lib/mbrtowc.c (mbrtowc): Likewise.
9257         * lib/relocatable.c (find_shared_library_fullname): Likewise.
9258         * lib/strerror_r.c: Likewise.
9259         * lib/unistr/u8-strnlen.c: Likewise.
9260         * lib/vasnprintf.c (decimal_point_char): Likewise.
9261         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
9262         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
9263         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
9264         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
9265         * tests/test-sigaction.c (handler, main): Likewise.
9266         * lib/freading.h: Treat uClibc like a non-glibc platform.
9267         * lib/freading.c: Likewise.
9268         * lib/gettext.h: Likewise.
9269         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
9270         Likewise.
9271         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
9272         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
9273         * lib/propername.c (proper_name_utf8): Likewise.
9274         * lib/spawn.in.h: Likewise.
9275         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
9276         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
9277         mem_cd_iconveh_internal): Likewise.
9278         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
9279         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
9280         strstr, strcasestr): Likewise.
9281         * lib/unicodeio.c (unicode_to_mb): Likewise.
9282         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
9283         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
9284         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
9285         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
9286         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
9287         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
9288         * lib/unistr/u8-stpncpy.c: Likewise.
9289         * lib/vasnprintf.c (VASNPRINTF): Likewise.
9290         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
9291         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
9292         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
9293         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
9294         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
9295         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
9296         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
9297         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
9298         Likewise.
9299         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
9300         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
9301         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
9302         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
9303         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
9304         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
9305         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
9306         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
9307         * tests/test-getopt.h (OPTIND_MIN): Likewise.
9308         * tests/test-striconveha.c (main): Likewise.
9309         * tests/test-vasnprintf-posix.c (test_function): Likewise.
9310         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
9311         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
9312         * doc/posix-functions/getline.texi: Likewise.
9313         Reported by Mike Frysinger <vapier@gentoo.org>.
9314
9315 2010-11-20  Bruno Haible  <bruno@clisp.org>
9316
9317         nproc: Fix condition.
9318         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
9319         HAVE_PTHREAD_AFFINITY_NP.
9320
9321 2010-11-20  Bruno Haible  <bruno@clisp.org>
9322
9323         Fix a comment.
9324         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
9325
9326 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
9327
9328         ftoastr: don't assume snprintf
9329         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
9330         Implement a subset of snprintf here, by using sprintf safely.
9331         * modules/ftoastr (Depends-on): Remove snprintf.
9332
9333 2010-11-19  Jim Meyering  <meyering@redhat.com>
9334
9335         test-rename.h: fix compilation failure
9336         * tests/test-rename.h (test_rename): Add omitted "}".
9337
9338 2010-11-17  Jim Meyering  <meyering@redhat.com>
9339
9340         maint.mk: add a URL discussing the no-@acronym policy
9341         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
9342
9343 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
9344
9345         ftoastr: depend on snprintf, improve comments
9346         * lib/ftoastr.c: Also mention Loitsch's draft.
9347         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
9348         needed in the current implementation, but it might simplify
9349         speeding up the code later.
9350         * modules/ftoastr: Depend on snprintf; this improves portability.
9351         Suggested by Bruno Haible in the same email.
9352
9353         ftoastr: port to hosts lacking strtof and strtold
9354         Problem reported by Bruno Haible in
9355         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
9356         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
9357         environment and strtold (and presumably strtof) are not available.
9358         * modules/ftoastr (Files): Add m4/c-strtod.m4.
9359         (configure.ac): Require gl_C99_STRTOLD.
9360
9361 2010-11-18  Bruno Haible  <bruno@clisp.org>
9362
9363         c-strtold: Avoid link error on AIX 7.
9364         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
9365         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
9366         (gl_C_STRTOLD): Test whether strtold_l exists.
9367         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
9368
9369 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
9370
9371         intprops: new macro INT_BITS_STRLEN_BOUND
9372         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
9373         ftoastr.h.  This exposes an internal of intprops.h that was formerly
9374         not exposed.  Also, it uses a slightly tighter bound than before;
9375         though this makes no practical difference, we might as well be as
9376         tight as we easily can.
9377
9378         ftoastr: new module, for lossless conversion of floats to short strings
9379         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
9380         * modules/ftoastr: New files.
9381
9382 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
9383
9384         bootstrap: port to Solaris sed
9385         * build-aux/bootstrap (get_version): Port to Solaris sed.
9386         See Ralf Wildenhues's note in
9387         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
9388
9389 2010-11-14  Jim Meyering  <meyering@redhat.com>
9390
9391         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
9392         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
9393         and move definition closer to sole use.
9394
9395 2010-11-13  Jim Meyering  <meyering@redhat.com>
9396
9397         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
9398         Now we require at least autoconf-2.59, which means the work-around
9399         is no longer needed.
9400         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
9401         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
9402         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
9403         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
9404         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
9405
9406 2010-11-13  Bruno Haible  <bruno@clisp.org>
9407
9408         rename, renameat: Avoid test failures at NFS mounted locations.
9409         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
9410         functions.
9411         (test_rename): Use assert_nonexistent.
9412         * tests/test-rename.c: Include <dirent.h>.
9413         * tests/test-renameat.c: Likewise.
9414         Reported by Gary V. Vaughan <gary@gnu.org>.
9415
9416         rename, renameat: Document Linux bug with NFS
9417         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
9418         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
9419         * doc/posix-functions/renameat.texi: Likewise.
9420         Suggested by Eric Blake.
9421
9422 2010-11-13  Bruno Haible  <bruno@clisp.org>
9423
9424         rename test: Add comments.
9425         * tests/test-rename.h (test_rename): Add structure and comments.
9426
9427 2010-11-13  Eric Blake  <eblake@redhat.com>
9428
9429         maintainer-makefile: cover a few more files
9430         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
9431         scripts generated within C files, for libvirt.
9432
9433 2010-11-13  Bruno Haible  <bruno@clisp.org>
9434
9435         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
9436         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
9437         character, return the number of bytes that belong together, not always
9438         1.
9439         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
9440         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
9441         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
9442         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
9443         number of bytes of an invalid character.
9444         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
9445         (main): Invoke it.
9446         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
9447         results.
9448         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
9449         malformed byte sequences.
9450         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
9451         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
9452         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
9453         Reported by Ben Pfaff and Paolo Bonzini.
9454
9455 2010-11-13  Bruno Haible  <bruno@clisp.org>
9456
9457         openat: Work around glibc bug with fchownat() and empty file names.
9458         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
9459         (gl_FUNC_FCHOWNAT): Invoke it.
9460         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
9461         * doc/posix-functions/fchownat.texi: Document the glibc bug.
9462         Reported by Gary V. Vaughan <gary@gnu.org>.
9463
9464 2010-11-13  Bruno Haible  <bruno@clisp.org>
9465
9466         openat: Ensure autoconf macro ordering.
9467         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
9468         gl_USE_SYSTEM_EXTENSIONS.
9469         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
9470
9471 2010-11-13  Bruno Haible  <bruno@clisp.org>
9472
9473         Update comments.
9474         * lib/unistr/u8-check.c: Update file name in comments.
9475         * lib/unistr/u8-mblen.c: Likewise.
9476         * lib/unistr/u8-prev.c: Likewise.
9477         * lib/unistr/u8-strmblen.c: Likewise.
9478         * lib/unistr/u8-strmbtouc.c: Likewise.
9479
9480 2010-11-13  Jim Meyering  <meyering@redhat.com>
9481
9482         tests: avoid test failure on Solaris 10 due to lack of PATH export
9483         * tests/test-update-copyright.sh: Don't forget to export PATH.
9484
9485         init.sh: ensure that IFS is defined, just in case...
9486         * tests/init.sh (setup_): Ensure that IFS is defined,
9487         so that saving and restoring it works as expected.  This
9488         appears to be useful at least for an old version of dash
9489         from a long time ago (RH 6).  See here for details:
9490         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
9491
9492         maint.mk: tighten "test a == b" check
9493         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
9494         test to files that contain something like #!/bin/sh.
9495         Without this, coreutils would get two false positives in
9496         the comments of C source files.
9497
9498 2010-11-12  Eric Blake  <eblake@redhat.com>
9499
9500         bootstrap: fix typo in previous attempt
9501         * build-aux/bootstrap (buildreq): Correct the grouping.
9502         Reported by Paul Eggert.
9503
9504         maintainer-makefile: prohibit test x == x
9505         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
9506         Based on a report by Matthias Bolte.
9507
9508         bootstrap: allow FreeBSD gzip
9509         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
9510         which has no '.' and goes to stderr.
9511         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
9512         Reported by Matthias Bolte.
9513
9514         maintainer-makefile: check for i18n setup
9515         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
9516         will likely work.
9517
9518 2010-11-12  Bruno Haible  <bruno@clisp.org>
9519
9520         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
9521         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
9522         * lib/nanosleep.c (nanosleep): Likewise.
9523
9524 2010-11-11  Bruno Haible  <bruno@clisp.org>
9525
9526         fcntl-h: Fix for use of C++ on glibc systems.
9527         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
9528         also on glibc systems in C++ mode.
9529         Reported by Gary V. Vaughan <gary@gnu.org>.
9530
9531 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
9532
9533         mknod: avoid false failure with dash
9534         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
9535
9536 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
9537
9538         unlink: Fix "is it should" typo in diagnostic.
9539         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
9540         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
9541
9542 2010-11-11  Bruno Haible  <bruno@clisp.org>
9543
9544         Tests for module 'strerror_r-posix'.
9545         * modules/strerror_r-posix-tests: New file.
9546         * tests/test-strerror_r.c: New file.
9547         * tests/test-string-c++.cc: Check the signature of strerror_r.
9548
9549         New module 'strerror_r-posix'.
9550         * lib/string.in.h (strerror_r): New declaration.
9551         * lib/strerror_r.c: New file.
9552         * m4/strerror_r.m4: New file.
9553         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
9554         of strerror_r.
9555         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
9556         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
9557         * modules/strerror_r-posix: New file.
9558         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
9559         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
9560         * doc/posix-functions/strerror_r.texi: Mention the new module and the
9561         portability problems.
9562
9563 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
9564
9565         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
9566         line is also considered for output. Quoted function name in shell
9567         command, so temporary files for functions like MyClass::operator()
9568         are removed correctly without errors.
9569
9570 2010-11-09  Bruno Haible  <bruno@clisp.org>
9571
9572         * doc/posix-functions/strerror.texi: List more failing platforms.
9573
9574         * doc/posix-functions/strerror.texi: Add a comment.
9575
9576 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
9577
9578         fdopendir: fix bug on MacOS X when low on file descriptors
9579
9580         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
9581         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
9582         All callers changed.
9583         (fdopendir): Invoke save_cwd at the top level, not after using
9584         multiple dup() calls to use up file descriptors.  Then retry
9585         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
9586         less than the maximum number of open file descriptors, because
9587         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
9588         on Mac OS X 10.6.4 for tar 1.24
9589         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
9590         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
9591         and for tar 1.25
9592         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
9593
9594 2010-11-07  Bruno Haible  <bruno@clisp.org>
9595
9596         vasnprintf: Support I flag on glibc systems.
9597         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
9598         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
9599         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
9600         snprintf function.
9601         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
9602         glibc systems.
9603         * tests/test-vasnprintf-posix3.c: New file.
9604         * modules/vasnprintf-posix-tests (Files): Add it.
9605         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
9606
9607 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
9608
9609         [html] Fix copy/paste bug: Use unique name for compiler warnings.
9610         * MODULES.html.sh: For compiler warnings, use name
9611         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
9612
9613 2010-11-05  Eric Blake  <eblake@redhat.com>
9614
9615         ceil, floor: avoid spurious failure with icc
9616         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
9617         [denormals-as-zero] when optimizing without -mieee-fp option.
9618         * tests/test-floorf2.c (floorf_reference): Likewise.
9619         * tests/test-ceilf1.c (dummy): New function.
9620         (main): Use it to outsmart icc's optimization.
9621         * tests/test-floorf1.c (dummy, main): Likewise.
9622
9623         tests: require working signbit
9624         * modules/ceilf-tests (Depends-on): Add signbit.
9625         * modules/ceill-tests (Depends-on): Likewise.
9626         * modules/floorf-tests (Depends-on): Likewise.
9627         * modules/floorl-tests (Depends-on): Likewise.
9628         * modules/round-tests (Depends-on): Likewise.
9629         * modules/roundf-tests (Depends-on): Likewise.
9630         * modules/roundl-tests (Depends-on): Likewise.
9631         * modules/trunc-tests (Depends-on): Likewise.
9632         * modules/truncf-tests (Depends-on): Likewise.
9633         * modules/truncl-tests (Depends-on): Likewise.
9634
9635         strtod: work around icc bug
9636         * lib/strtod.c (minus_zero): Define to working value.
9637         (strtod): Use it to avoid icc bug.
9638
9639         copysign: enhance tests
9640         * modules/copysign-tests (Files): Add minus-zero.h.
9641         * tests/test-copysign.c (main): Also test zeros.
9642
9643 2010-11-04  Eric Blake  <eblake@redhat.com>
9644
9645         ceil, floor, round, trunc: enhance tests of -0
9646         * tests/test-ceilf1.c (main): Ensure correct sign of result.
9647         * tests/test-ceill.c (main): Likewise.
9648         * tests/test-floorf1.c (main): Likewise.
9649         * tests/test-floorl.c (main): Likewise.
9650         * tests/test-round1.c (main): Likewise.
9651         * tests/test-roundf1.c (main): Likewise.
9652         * tests/test-roundl.c (main): Likewise.
9653         * tests/test-trunc1.c (main): Likewise.
9654         * tests/test-truncf1.c (main): Likewise.
9655         * tests/test-truncl.c (main): Likewise.
9656
9657 2010-11-04  Eric Blake  <eblake@redhat.com>
9658
9659         frexp, tests: work around ICC bug with -zero
9660         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
9661         works with more compilers.
9662         * tests/minus-zero.h: New file.
9663         * modules/ceilf-tests (Files): Include it.
9664         * modules/ceill-tests (Files): Likewise.
9665         * modules/floorf-tests (Files): Likewise.
9666         * modules/floorl-tests (Files): Likewise.
9667         * modules/frexp-nolibm-tests (Files): Likewise.
9668         * modules/frexp-tests (Files): Likewise.
9669         * modules/frexpl-nolibm-tests (Files): Likewise.
9670         * modules/frexpl-tests (Files): Likewise.
9671         * modules/isnan-tests (Files): Likewise.
9672         * modules/isnand-nolibm-tests (Files): Likewise.
9673         * modules/isnand-tests (Files): Likewise.
9674         * modules/isnanf-nolibm-tests (Files): Likewise.
9675         * modules/isnanf-tests (Files): Likewise.
9676         * modules/isnanl-nolibm-tests (Files): Likewise.
9677         * modules/isnanl-tests (Files): Likewise.
9678         * modules/round-tests (Files): Likewise.
9679         * modules/roundf-tests (Files): Likewise.
9680         * modules/roundl-tests (Files): Likewise.
9681         * modules/ldexpl-tests (Files): Likewise.
9682         * modules/signbit-tests (Files): Likewise.
9683         * modules/snprintf-posix-tests (Files): Likewise.
9684         * modules/sprintf-posix-tests (Files): Likewise.
9685         * modules/strtod-tests (Files): Likewise.
9686         * modules/trunc-tests (Files): Likewise.
9687         * modules/truncf-tests (Files): Likewise.
9688         * modules/truncl-tests (Files): Likewise.
9689         * modules/vsnprintf-posix-tests (Files): Likewise.
9690         * modules/vsprintf-posix-tests (Files): Likewise.
9691         * modules/vasnprintf-posix-tests (Files): Likewise.
9692         * modules/vasprintf-posix-tests (Files): Likewise.
9693         * tests/test-ceilf1.c (main): Use it.
9694         * tests/test-ceill.c (main): Likewise.
9695         * tests/test-floorf1.c (main): Likewise.
9696         * tests/test-floorl.c (main): Likewise.
9697         * tests/test-frexp.c (main): Likewise.
9698         * tests/test-frexpl.c (main): Likewise.
9699         * tests/test-isnan.c (main): Likewise.
9700         * tests/test-isnand.h (main): Likewise.
9701         * tests/test-isnanf.h (main): Likewise.
9702         * tests/test-isnanl.h (main): Likewise.
9703         * tests/test-ldexpl.c (main): Likewise.
9704         * tests/test-round.c (main): Likewise.
9705         * tests/test-roundf.c (main): Likewise.
9706         * tests/test-roundl.c (main): Likewise.
9707         * tests/test-signbit.c (test_signbitf, test_signbitd)
9708         (test_signbitl): Likewise.
9709         * tests/test-snprintf-posix.h (test_function): Likewise.
9710         * tests/test-sprintf-posix.h (test_function): Likewise.
9711         * tests/test-strtod.c (main): Likewise.
9712         * tests/test-trunc1.c (main): Likewise.
9713         * tests/test-truncf1.c (main): Likewise.
9714         * tests/test-truncl.c (main): Likewise.
9715
9716         isnanl: work around icc bug
9717         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
9718
9719 2010-11-03  Eric Blake  <eblake@redhat.com>
9720
9721         tests: fix compiler warnings
9722         * tests/test-getopt.h (test_getopt): Fix condition.
9723         * tests/test-getopt_long.h (test_getopt_long): Likewise.
9724         * tests/test-pipe2.c (main): Likewise.
9725         * tests/test-quotearg-simple.c (main): Avoid icc warning.
9726
9727         utimens: fix broken m4 test
9728         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
9729
9730 2010-10-28  Bruno Haible  <bruno@clisp.org>
9731
9732         posix_spawn*, getdtablesize: Relax license.
9733         * modules/posix_spawn (License): Change to LGPLv2+.
9734         * modules/posix_spawnp (License): Likewise.
9735         * modules/posix_spawn-internal (License): Likewise.
9736         * modules/posix_spawnattr_init (License): Likewise.
9737         * modules/posix_spawnattr_getflags (License): Likewise.
9738         * modules/posix_spawnattr_setflags (License): Likewise.
9739         * modules/posix_spawnattr_getpgroup (License): Likewise.
9740         * modules/posix_spawnattr_setpgroup (License): Likewise.
9741         * modules/posix_spawnattr_getschedparam (License): Likewise.
9742         * modules/posix_spawnattr_setschedparam (License): Likewise.
9743         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
9744         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
9745         * modules/posix_spawnattr_getsigdefault (License): Likewise.
9746         * modules/posix_spawnattr_setsigdefault (License): Likewise.
9747         * modules/posix_spawnattr_getsigmask (License): Likewise.
9748         * modules/posix_spawnattr_setsigmask (License): Likewise.
9749         * modules/posix_spawnattr_destroy (License): Likewise.
9750         * modules/posix_spawn_file_actions_init (License): Likewise.
9751         * modules/posix_spawn_file_actions_addclose (License): Likewise.
9752         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
9753         * modules/posix_spawn_file_actions_addopen (License): Likewise.
9754         * modules/posix_spawn_file_actions_destroy (License): Likewise.
9755         * modules/getdtablesize (License): Likewise.
9756         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
9757
9758 2010-10-26  Bruno Haible  <bruno@clisp.org>
9759
9760         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
9761         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
9762         Cygwin and mingw.
9763         Suggested by Eric Blake.
9764
9765 2010-10-26  Bruno Haible  <bruno@clisp.org>
9766
9767         stdio: Work around compilation error due to renameat() on Solaris 10.
9768         * lib/stdio.in.h: Include <unistd.h> on Solaris.
9769         * lib/renameat.c: Don't include <unistd.h> here.
9770         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
9771         Reported by Paul Eggert and Eric Blake.
9772
9773 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
9774
9775         renameat: port to Solaris 10, which declares renameat in unistd.h
9776
9777         * lib/renameat.c: Include unistd.h before stdio.h, because
9778         Solaris 10 declares renameat in unistd.h.  Problem encountered
9779         when building GNU tar 1.24 on Solaris 10.
9780
9781 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
9782
9783         fdopendir: fix C89 compilation
9784         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
9785         compilers.
9786
9787 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
9788
9789         inttostr: simplify by removing unnecessary redundancy
9790         * lib/anytostr.c: Don't include verify.h.
9791         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
9792         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
9793         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
9794         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
9795         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
9796         Likewise.
9797         * modules/inttostr (Depends-on): Remove 'verify'.
9798
9799 2010-10-23  Bruno Haible  <bruno@clisp.org>
9800
9801         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
9802         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
9803         Reported by Eric Blake.
9804
9805 2010-10-23  Bruno Haible  <bruno@clisp.org>
9806
9807         Tests: Fix LOCALE_JA on MirBSD 10.
9808         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
9809         to an UTF-8 locale.
9810         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
9811         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
9812         Reported by Eric Blake.
9813
9814 2010-10-21  Bruno Haible  <bruno@clisp.org>
9815
9816         nl_langinfo test: Avoid test failure on NetBSD 5.
9817         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
9818         Reported by Eric Blake.
9819
9820 2010-10-21  Eric Blake  <eblake@redhat.com>
9821
9822         c-stack: work around libsigsegv 2.8 bug
9823         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
9824         overflow on at least PowerPC64.
9825
9826 2010-10-17  Bruno Haible  <bruno@clisp.org>
9827
9828         userspec: Drop redundant file.
9829         * modules/userspec (Files): Remove lib/inttostr.h.
9830
9831 2010-10-17  Bruno Haible  <bruno@clisp.org>
9832
9833         nl_langinfo tests: Silence some warnings.
9834         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
9835         Reported by Jim Meyering.
9836
9837 2010-10-17  Bruno Haible  <bruno@clisp.org>
9838
9839         Make use of GCC's attribute __alloc_size__.
9840         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
9841         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
9842         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
9843         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
9844         __alloc_size__.
9845         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
9846         Suggested by Jim Meyering.
9847
9848 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
9849
9850         bootstrap: anchor .gitignore entries.
9851         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
9852         with...
9853         (insert_vc_ignore): ... this new function, which prepends `/' to
9854         all .gitignore entries before passing them to
9855         insert_sorted_if_absent.
9856
9857 2010-10-16  Bruno Haible  <bruno@clisp.org>
9858
9859         nextafter: Fix configure check.
9860         * modules/nextafter (configure.ac): Correct expected prototype.
9861
9862 2010-10-16  Bruno Haible  <bruno@clisp.org>
9863
9864         termios: Update documentation.
9865         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
9866
9867 2010-10-16  Bruno Haible  <bruno@clisp.org>
9868
9869         tests: Make them compile with TinyCC.
9870         * tests/test-strstr.c (main): Remove parentheses around array
9871         initializer.
9872
9873 2010-10-15  Eric Blake  <eblake@redhat.com>
9874
9875         ignore-value: make header idempotent
9876         * lib/ignore-value.h: Add double-inclusion guards.
9877         Reported by Stefan Berger.
9878
9879 2010-10-15  Jim Meyering  <meyering@redhat.com>
9880
9881         GNUmakefile: handle "stable" target, not "major"
9882         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
9883         lists in maint.mk and announce-gen.  Without this, "make stable"
9884         would fail to ensure that $(VERSION) is up to date.
9885
9886 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
9887
9888         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
9889         & co.
9890
9891 2010-10-14  Bruno Haible  <bruno@clisp.org>
9892
9893         vasnprintf: Don't set errno to 0.
9894         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
9895         block that sets it to 0.
9896         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
9897
9898 2010-10-14  Bruno Haible  <bruno@clisp.org>
9899
9900         socketlib: Fix.
9901         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
9902         gl_PREREQ_SYS_H_WINSOCK2.
9903         Reported by Ian Beckwith <ianb@erislabs.net>.
9904
9905 2010-10-13  Jim Meyering  <meyering@redhat.com>
9906
9907         test-select-stdin.c: avoid warn_unused_result warnings
9908         * tests/test-select-stdin.c: Include "macros.h".
9909         ASSERT that read and fflush succeed.
9910
9911 2010-10-13  Jim Meyering  <meyering@redhat.com>
9912
9913         git-version-gen: do require git-VC'd files in cwd
9914         * build-aux/git-version-gen: Reject a git version string
9915         if there are no commits associated with the current directory.
9916         This avoids an unlikely false-positive (unrelated dir whose parent
9917         repository also contains a tag matching v*), as pointed out
9918         by Giuseppe Scrivano in
9919         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
9920
9921 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
9922
9923         argv-iter: omit nonconforming declaration
9924         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
9925         enum arg_iter_err declaration, which doesn't conform to C99.
9926         Solaris 10 cc warns about this.
9927
9928 2010-10-13  Eric Blake  <eblake@redhat.com>
9929
9930         termios: fix compilation on mingw
9931         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
9932         (gl_TERMIOS_H): Adjust it on mingw.
9933         * modules/termios (Makefile.am): Substitute new key.
9934         * lib/termios.in.h (includes): Make include_next conditional.
9935         * doc/posix-headers/termios.texi (termios.h): Update
9936         documentation.
9937         Reported by Daniel P. Berrange.
9938
9939 2010-10-13  Jim Meyering  <meyering@redhat.com>
9940
9941         git-version-gen: don't require that .git/ be in the current dir
9942         * build-aux/git-version-gen: Adjust this script so that it works
9943         when run from any working directory beneath the top-level .git/-
9944         containing directory.  Inspired by a patch from Giuseppe Scrivano,
9945         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
9946
9947         test-select: avoid warn_unused_result warnings
9948         * tests/test-select.c: Include "macros.h".
9949         ASSERT that each call to read, write, and pipe succeeds.
9950         While not technically required, also check each "close".
9951         * modules/select-tests (Files): Add tests/macros.h.
9952
9953         test-symlinkat: remove declaration of unused local
9954         * tests/test-symlinkat.c (main): Remove unused local, "buf".
9955
9956         test-inttostr: avoid shadowing warnings
9957         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
9958         and use malloc rather than the stack for the same reason as
9959         mentioned in the comment justifying the other allocation.
9960
9961 2010-10-11  Bruno Haible  <bruno@clisp.org>
9962
9963         stdlib: Allow multiple gnulib generated replacements to coexist.
9964         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
9965         Reported by Sam Steingold <sds@gnu.org>.
9966
9967 2010-10-11  Jim Meyering  <meyering@redhat.com>
9968
9969         fix a documentation typo
9970         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
9971
9972 2010-10-11  Eric Blake  <eblake@redhat.com>
9973
9974         futimens: work around Solaris 11 bug
9975         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
9976         * tests/test-futimens.h (test_futimens): Enhance, rather than
9977         weaken test.
9978         * doc/posix-functions/futimens.texi (futimens): Document the bug.
9979
9980 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
9981
9982         Indentation.
9983         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
9984         higher-level operators more to the left.
9985
9986 2010-10-11  Jim Meyering  <meyering@redhat.com>
9987
9988         test-futimens: avoid unwarranted test failure on Solaris 5.11
9989         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
9990         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
9991         because it tries to dereference the NULL name argument.
9992
9993 2010-10-11  Bruno Haible  <bruno@clisp.org>
9994
9995         Indentation.
9996         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
9997         indentation.
9998
9999 2010-10-11  Jim Meyering  <meyering@redhat.com>
10000
10001         spawn.in.h: make indentation consistent with parentheses
10002         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
10003         Make indentation consistent with parentheses.
10004
10005 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
10006
10007         Fix mismatched parens in previous commit
10008         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
10009         parens.
10010
10011 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
10012
10013         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
10014
10015         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
10016         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
10017         * lib/malloca.c: Include "verify.h".
10018         (verify1): Remove, replacing with a verify call.
10019         * lib/relocwrapper.c (verify1): Likewise.
10020         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
10021         Likewise.
10022         * modules/malloca (Depends-on): Add 'verify'.
10023         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
10024         * modules/vasnprintf (Depends-on): Add 'verify'.
10025         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
10026         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
10027         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
10028         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
10029         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
10030         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
10031         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
10032
10033         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
10034
10035         Formerly the style was sometimes 2*X - 1, because the C standard
10036         was wrongly thought to disallow ?: in integral constant expressions.
10037         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
10038         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
10039         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
10040         * lib/stdint.in.h (_verify_intmax_size): Likewise.
10041         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
10042         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
10043         verify that time_t cannot be floating.
10044
10045 2010-10-08  Eric Blake  <eblake@redhat.com>
10046
10047         time: enforce recent POSIX ruling that time_t is integral
10048         * lib/time.in.h (__time_t_must_be_integral): Detect any
10049         problematic systems, allowing the rest of gnulib to assume POSIX.
10050
10051 2010-10-08  Jim Meyering  <meyering@redhat.com>
10052
10053         fdopendir: fix a bug on systems lacking openat and /proc support
10054         OpenBSD 4.7 is one such system.  The most noticeable effect was
10055         failure of any application making nontrivial use of fts: rm, du,
10056         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
10057           ./rm: traversal failed: `a': Bad file descriptor
10058         Debugging that, you see that even though FD 6 was closed just
10059         prior to the opendir call in fd_clone_opendir, its resulting
10060         dir->dd_fd was 8, rather than the expected value of 6:
10061
10062         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
10063         93                close (fd);
10064         (gdb) n
10065         94                dir = fd_clone_opendir (dupfd);
10066         (gdb) n
10067         95                saved_errno = errno;
10068         (gdb) p dir->dd_fd
10069         $11 = 8
10070
10071         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
10072         The problem is that on OpenBSD, fd_clone_opendir has to resort
10073         to using the old-style save/restore CWD mechanism, due to its
10074         lack of openat/proc support, and *that* would steal the FD (6)
10075         that opendir was supposed to use.
10076
10077         The fix is to squirrel away the desired FD so that save_cwd uses a
10078         different one, and then free the dest FD right before calling opendir.
10079         That guarantees opendir will use the required file descriptor.
10080
10081         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
10082
10083 2010-10-08  Bruno Haible  <bruno@clisp.org>
10084
10085         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
10086         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
10087
10088 2010-10-08  Bruno Haible  <bruno@clisp.org>
10089
10090         nanosleep: Make replacement POSIX compliant.
10091         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
10092         is out of range.
10093         Reported by Jim Meyering.
10094
10095 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
10096
10097         bootstrap: add hook for altering gnulib.mk, for Bison
10098         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
10099         the Bison bootstrapping process can rewrite file names and variables
10100         in this file before later parts of 'bootstrap' use the file.
10101         Bison wants to include lib/gnulib.mk from the top-level makefile,
10102         so it needs the file names in this file to be relative to the top
10103         level, not relative to lib; plus it needs variable names to be
10104         rewritten.
10105         (slurp): Use the new function.
10106
10107         bootstrap: reformat for readability
10108         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
10109
10110 2010-10-08  Eric Blake  <eblake@redhat.com>
10111
10112         docs: update cygwin progress
10113         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
10114         1.7.7.
10115         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
10116         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
10117         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
10118         * doc/posix-functions/carg.texi (carg): Likewise.
10119         * doc/posix-functions/cargf.texi (cargf): Likewise.
10120         * doc/posix-functions/casin.texi (casin): Likewise.
10121         * doc/posix-functions/casinf.texi (casinf): Likewise.
10122         * doc/posix-functions/casinh.texi (casinh): Likewise.
10123         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
10124         * doc/posix-functions/catan.texi (catan): Likewise.
10125         * doc/posix-functions/catanf.texi (catanf): Likewise.
10126         * doc/posix-functions/catanh.texi (catanh): Likewise.
10127         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
10128         * doc/posix-functions/ccos.texi (ccos): Likewise.
10129         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
10130         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
10131         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
10132         * doc/posix-functions/cexp.texi (cexp): Likewise.
10133         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
10134         * doc/posix-functions/cimag.texi (cimag): Likewise.
10135         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
10136         * doc/posix-functions/clog.texi (clog): Likewise.
10137         * doc/posix-functions/clogf.texi (clogf): Likewise.
10138         * doc/posix-functions/conj.texi (conj): Likewise.
10139         * doc/posix-functions/conjf.texi (conjf): Likewise.
10140         * doc/posix-functions/cpow.texi (cpow): Likewise.
10141         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
10142         * doc/posix-functions/cproj.texi (cproj): Likewise.
10143         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
10144         * doc/posix-functions/creal.texi (creal): Likewise.
10145         * doc/posix-functions/crealf.texi (crealf): Likewise.
10146         * doc/posix-functions/csin.texi (csin): Likewise.
10147         * doc/posix-functions/csinf.texi (csinf): Likewise.
10148         * doc/posix-functions/csinh.texi (csinh): Likewise.
10149         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
10150         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
10151         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
10152         * doc/posix-functions/ctan.texi (ctan): Likewise.
10153         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
10154         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
10155         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
10156         * doc/posix-headers/complex.texi (complex.h): Likewise.
10157
10158 2010-10-07  Jim Meyering  <meyering@redhat.com>
10159
10160         parse-datetime: avoid compilation failure on OpenBSD 4.7
10161         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
10162         This works around a compilation failure on OpenBSD 4.7:
10163         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
10164
10165 2010-10-07  Eric Blake  <eblake@redhat.com>
10166
10167         docs: update cygwin progress
10168         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
10169         1.7.6.
10170         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
10171         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
10172         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
10173         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
10174         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
10175         Likewise.
10176         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
10177         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
10178         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
10179         Likewise.
10180         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
10181         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
10182         Likewise.
10183         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
10184         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
10185         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
10186         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
10187         Likewise.
10188         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
10189         Likewise.
10190         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
10191
10192         docs: update parse-datetime history
10193         * doc/parse-datetime.texi (Authors of parse_datetime): Better
10194         documentation of this function's history and alternatives.
10195
10196         cygwin: use more robust version check
10197         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
10198         exclude an eventual cygwin 1.9.1.
10199         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
10200         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
10201         (gl_FUNC_STRCASESTR): Likewise.
10202         Reported by Bruno Haible.
10203
10204 2010-10-06  Bruno Haible  <bruno@clisp.org>
10205
10206         string, sys_select: Avoid #including large headers unless necessary.
10207         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
10208         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
10209         OSF/1, BeOS, Haiku.
10210         Reported by Jim Meyering.
10211
10212 2010-10-05  Eric Blake  <eblake@redhat.com>
10213
10214         memmem, strstr, strcasestr: fix bug with long periodic needle
10215         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
10216         periodic needle having false positive.
10217         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
10218         and cygwin 1.7.7.
10219         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
10220         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
10221         (gl_FUNC_STRCASESTR): Likewise.
10222         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
10223         * tests/test-memmem.c (main): Expose the bug.
10224         * tests/test-strcasestr.c (main): Likewise.
10225         * tests/test-strstr.c (main): Likewise.
10226         * tests/test-c-strcasestr.c (main): Likewise.
10227         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
10228         * doc/posix-functions/strstr.texi (strstr): Likewise.
10229         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
10230         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
10231
10232 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
10233
10234         parse-datetime: do some more renaming
10235         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
10236         parse_datetime, not get_date.  Mention the renaming.
10237         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
10238         in comments.
10239         * m4/bison.m4: Likewise.
10240
10241 2010-10-05  Eric Blake  <eblake@redhat.com>
10242
10243         parse-datetime: better name than get_date
10244         * NEWS: Reword the deprecation notice.
10245         * modules/get_date: Rename to modules/parse-datetime.
10246         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
10247         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
10248         * lib/get_date.y: Rename to lib/parse-datetime.y.
10249         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
10250         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
10251         * doc/getdate.texi: Provide fallback wrapper.
10252         * lib/getdate.h: Move guts, and wrap...
10253         * lib/parse-datetime.h: ...new file.
10254         * lib/parse-datetime.y (get_date): Rename...
10255         (parse_datetime): ...to this.
10256         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
10257         (gl_PARSE_DATETIME): ...to this.
10258         * doc/posix-functions/getdate.texi (get_date): Provide fallback
10259         documentation.
10260         * modules/getdate (Files): Provide fallback docs and header.
10261         (Notice, Depends-on): Update references.
10262         * tests/test-parse-datetime.c: Likewise.
10263         * DEPENDENCIES: Likewise.
10264         * MODULES.html.sh (Date and time <time.h>): Likewise.
10265         * doc/parse-datetime.texi (Date input formats)
10266         (Authors of parse_datetime): Likewise.
10267         * modules/parse-datetime (Files, configure.ac, Makefile.am)
10268         (Include): Likewise.
10269         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
10270         * gnulib-tool: Likewise.
10271         * m4/bison.m4 (gl_BISON): Likewise.
10272         Suggested by Bruno Haible.
10273
10274 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
10275
10276         more ports to Solaris tr, which needs [] around ranges
10277         * gnulib-tool: Solaris tr needs [] around ranges.
10278         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
10279         * tests/test-pipe-filter-gi1.c (main): Likewise.
10280         * tests/test-pipe-filter-ii1.c (main): Likewise.
10281
10282 2010-10-05  Eric Blake  <eblake@redhat.com>
10283
10284         bootstrap: fix Solaris regression
10285         * build-aux/bootstrap (check_versions): Solaris tr still needs []
10286         around ranges.
10287         Reported by Pádraig Brady.
10288
10289         bootstrap: work with pkg-config
10290         * build-aux/bootstrap (check_versions): Also transliterate - in
10291         prerequisite name.
10292         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
10293         prerequisites that were already found, to avoid confusion.
10294         Reported by Justin Clift.
10295
10296         faccessat: remove unused wrappers
10297         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
10298         presence of these wrappers dragged in -lgen on Solaris.
10299         Reported by Clemens Brogi; fix suggested by Paul Eggert.
10300
10301 2010-10-05  Jim Meyering  <meyering@redhat.com>
10302
10303         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
10304         * Makefile (sc_pragma_columns): New syntax-check rule.
10305
10306 2010-10-04  Bruno Haible  <bruno@clisp.org>
10307
10308         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
10309         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
10310         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
10311         Reported by Bruce Korb and Eric Blake.
10312
10313 2010-10-04  Bruno Haible  <bruno@clisp.org>
10314
10315         threadlib: Make option --with-libpth-prefix work.
10316         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
10317         use $LIBPTH, not just -lpth.
10318
10319 2010-10-04  Bruno Haible  <bruno@clisp.org>
10320
10321         Avoid line length limitation from HP NonStop system header files.
10322         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
10323         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
10324         * lib/ctype.in.h: Likewise.
10325         * lib/dirent.in.h: Likewise.
10326         * lib/errno.in.h: Likewise.
10327         * lib/fcntl.in.h: Likewise.
10328         * lib/float.in.h: Likewise.
10329         * lib/getopt.in.h: Likewise.
10330         * lib/iconv.in.h: Likewise.
10331         * lib/inttypes.in.h: Likewise.
10332         * lib/langinfo.in.h: Likewise.
10333         * lib/locale.in.h: Likewise.
10334         * lib/math.in.h: Likewise.
10335         * lib/netdb.in.h: Likewise.
10336         * lib/netinet_in.in.h: Likewise.
10337         * lib/poll.in.h: Likewise.
10338         * lib/pthread.in.h: Likewise.
10339         * lib/pty.in.h: Likewise.
10340         * lib/sched.in.h: Likewise.
10341         * lib/se-selinux.in.h: Likewise.
10342         * lib/search.in.h: Likewise.
10343         * lib/signal.in.h: Likewise.
10344         * lib/spawn.in.h: Likewise.
10345         * lib/stdarg.in.h: Likewise.
10346         * lib/stddef.in.h: Likewise.
10347         * lib/stdint.in.h: Likewise.
10348         * lib/stdio.in.h: Likewise.
10349         * lib/stdlib.in.h: Likewise.
10350         * lib/string.in.h: Likewise.
10351         * lib/strings.in.h: Likewise.
10352         * lib/sys_file.in.h: Likewise.
10353         * lib/sys_ioctl.in.h: Likewise.
10354         * lib/sys_select.in.h: Likewise.
10355         * lib/sys_socket.in.h: Likewise.
10356         * lib/sys_stat.in.h: Likewise.
10357         * lib/sys_time.in.h: Likewise.
10358         * lib/sys_times.in.h: Likewise.
10359         * lib/sys_utsname.in.h: Likewise.
10360         * lib/sys_wait.in.h: Likewise.
10361         * lib/sysexits.in.h: Likewise.
10362         * lib/termios.in.h: Likewise.
10363         * lib/time.in.h: Likewise.
10364         * lib/unistd.in.h: Likewise.
10365         * lib/wchar.in.h: Likewise.
10366         * lib/wctype.in.h: Likewise.
10367         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
10368         * modules/ctype (Makefile.am): Likewise.
10369         * modules/dirent (Makefile.am): Likewise.
10370         * modules/errno (Makefile.am): Likewise.
10371         * modules/fcntl-h (Makefile.am): Likewise.
10372         * modules/float (Makefile.am): Likewise.
10373         * modules/getopt-posix (Makefile.am): Likewise.
10374         * modules/iconv-h (Makefile.am): Likewise.
10375         * modules/inttypes (Makefile.am): Likewise.
10376         * modules/langinfo (Makefile.am): Likewise.
10377         * modules/locale (Makefile.am): Likewise.
10378         * modules/math (Makefile.am): Likewise.
10379         * modules/netdb (Makefile.am): Likewise.
10380         * modules/netinet_in (Makefile.am): Likewise.
10381         * modules/poll-h (Makefile.am): Likewise.
10382         * modules/pthread (Makefile.am): Likewise.
10383         * modules/pty (Makefile.am): Likewise.
10384         * modules/sched (Makefile.am): Likewise.
10385         * modules/search (Makefile.am): Likewise.
10386         * modules/selinux-h (Makefile.am): Likewise.
10387         * modules/signal (Makefile.am): Likewise.
10388         * modules/spawn (Makefile.am): Likewise.
10389         * modules/stdarg (Makefile.am): Likewise.
10390         * modules/stddef (Makefile.am): Likewise.
10391         * modules/stdint (Makefile.am): Likewise.
10392         * modules/stdio (Makefile.am): Likewise.
10393         * modules/stdlib (Makefile.am): Likewise.
10394         * modules/string (Makefile.am): Likewise.
10395         * modules/strings (Makefile.am): Likewise.
10396         * modules/sys_file (Makefile.am): Likewise.
10397         * modules/sys_ioctl (Makefile.am): Likewise.
10398         * modules/sys_select (Makefile.am): Likewise.
10399         * modules/sys_socket (Makefile.am): Likewise.
10400         * modules/sys_stat (Makefile.am): Likewise.
10401         * modules/sys_time (Makefile.am): Likewise.
10402         * modules/sys_times (Makefile.am): Likewise.
10403         * modules/sys_utsname (Makefile.am): Likewise.
10404         * modules/sys_wait (Makefile.am): Likewise.
10405         * modules/sysexits (Makefile.am): Likewise.
10406         * modules/termios (Makefile.am): Likewise.
10407         * modules/time (Makefile.am): Likewise.
10408         * modules/unistd (Makefile.am): Likewise.
10409         * modules/wchar (Makefile.am): Likewise.
10410         * modules/wctype (Makefile.am): Likewise.
10411
10412 2010-10-04  Bruno Haible  <bruno@clisp.org>
10413
10414         read-file tests: Avoid a test failure on NonStop Kernel.
10415         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
10416         a regular file.
10417         Reported by Joachim Schmitz <schmitz@hp.com>.
10418
10419 2010-10-03  Bruno Haible  <bruno@clisp.org>
10420
10421         gnulib-tool: Fixes for --create-testdir with --libtool.
10422         * gnulib-tool (func_get_automake_snippet): Don't augment
10423         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
10424         an executable.
10425         (func_create_testdir): Handle module 'alloca' like func_import.
10426         Reported by Bruce Korb <bruce.korb@gmail.com>.
10427
10428 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
10429
10430         Avoid some lines longer than 80 characters.
10431         * lib/stdint.in.h: Break long comment lines.
10432         * lib/math.in.h: Likewise.
10433         (_GL_NUM_UINT_WORDS): New macro, for readability.
10434         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
10435         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
10436         * lib/stdlib.in.h: Likewise.
10437         * lib/spawn.in.h: Likewise.
10438         * lib/sys_socket.in.h: Update an URL.
10439         * lib/sys_stat.in.h: Break long line.
10440
10441 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
10442
10443         Improve pmccabe2html.
10444         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
10445         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
10446         when the sources change. Remove the line in the HTML about "Used
10447         ranges" (which implied that there might be other unused ranges),
10448         rename "Resume" to "Summary" (easier to understand for more users).
10449         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
10450         styles, and some unnecessary blank lines.
10451
10452 2010-10-03  Bruno Haible  <bruno@clisp.org>
10453             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
10454
10455         acl: Add support for ACLs on NonStop Kernel.
10456         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
10457         Check whether the function aclsort() exists.
10458         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
10459         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
10460         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
10461         (acl_nontrivial [HAVE_ACLSORT]: New function.
10462         (file_has_acl): Implement for NonStop Kernel.
10463         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
10464         (qset_acl): Implement for NonStop Kernel.
10465         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
10466         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
10467         (main): Implement for NonStop Kernel.
10468         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
10469         Kernel. Handle this flavor.
10470         * tests/test-set-mode-acl.sh: Likewise.
10471         * tests/test-copy-acl.sh: Likewise.
10472         * tests/test-copy-file.sh: Likewise.
10473
10474 2010-10-03  Bruno Haible  <bruno@clisp.org>
10475
10476         Info about ACLs on NonStop Kernel.
10477         * doc/acl-resources.txt: Add info about NonStop Kernel.
10478         References by Joachim Schmitz <schmitz@hp.com>.
10479
10480 2010-10-02  Bruno Haible  <bruno@clisp.org>
10481
10482         Define missing EDQUOT on NonStop Kernel.
10483         * lib/errno.in.h (EDQUOT): Assign a value if missing.
10484         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
10485         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
10486         missing.
10487         * doc/posix-headers/errno.texi: Mention the NSK bug.
10488         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
10489         Reported by Joachim Schmitz <schmitz@hp.com>.
10490
10491 2010-10-02  Bruno Haible  <bruno@clisp.org>
10492
10493         Update doc for POSIX:2008.
10494         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
10495         Update URL of POSIX specification.
10496
10497 2010-10-02  Bruno Haible  <bruno@clisp.org>
10498
10499         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
10500         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
10501         from gnulib, not from Automake.
10502
10503 2010-10-02  Bruno Haible  <bruno@clisp.org>
10504
10505         New module 'system-posix'.
10506         * modules/system-posix: New file.
10507         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
10508         module is present.
10509         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
10510         GNULIB_SYSTEM_POSIX.
10511         * modules/stdlib (Depends-on): Remove sys_wait.
10512         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
10513         * doc/posix-functions/system.texi: Mention the new module.
10514         * doc/posix-headers/stdlib.texi: Likewise.
10515         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
10516         define test_sys_wait_macros to a no-op.
10517         Reported by Sam Steingold <sds@gnu.org>.
10518
10519 2010-09-30  Bruno Haible  <bruno@clisp.org>
10520
10521         More renaming from 'getdate' to 'get_date'.
10522         * doc/get_date.texi: Renamed from doc/getdate.texi.
10523         * modules/get_date (Files): Update.
10524         * MODULES.html.sh (Date and time <time.h>): Update.
10525         * DEPENDENCIES: Update.
10526         * gnulib-tool: Update comment.
10527         * m4/bison.m4 (gl_BISON): Likewise.
10528         * m4/get_date.m4 (gl_GET_DATE): Likewise.
10529
10530 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
10531
10532         bootstrap: support ACLOCAL_FLAGS during aclocal
10533         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
10534         can add additional -I dir for third-party .m4 files.
10535
10536 2010-09-30  Eric Blake  <eblake@redhat.com>
10537
10538         bootstrap: use glibtoolize on MacOS
10539         * build-aux/bootstrap (check_versions): Convert libtool into
10540         libtoolize.
10541         (tool search): Move libtool check earlier, and look for
10542         glibtoolize for MacOS.
10543         (gnulib_tool_options): Auto-add --libtool when appropriate.
10544         Reported by Justin Clift.
10545
10546         poll: fix typo that broke test on MacOS
10547         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
10548         Reported by Justin Clift.
10549
10550         getdate: rename to get_date
10551         Note: getdate.h is not renamed, to minimize client impact.
10552         * modules/getdate: Mark obsolete.  Move old contents...
10553         * modules/get_date: ...to new module name.
10554         * modules/getdate-tests: Move...
10555         * modules/get_date-tests: ...here.
10556         * m4/getdate.m4: Move...
10557         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
10558         * lib/getdate.y: Move...
10559         * lib/get_date.y: ...here.
10560         * tests/test-getdate.c: Move...
10561         * tests/test-get_date.c: ...here.
10562         * doc/posix-functions/getdate.texi (getdate): Update name.
10563         * NEWS: Mention the change.
10564
10565 2010-09-29  Bruno Haible  <bruno@clisp.org>
10566
10567         Separate the module 'waitpid' from the module 'sys_wait'.
10568         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
10569         present.
10570         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
10571         gl_MODULE_INDICATOR_FOR_TESTS.
10572         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
10573         * modules/sys_wait (Depends-on): Remove waitpid.
10574         (Makefile.am): Substitute GNULIB_WAITPID.
10575         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
10576         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
10577         signature only if the 'waitpid' module is present.
10578         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
10579         * NEWS: Mention the change.
10580         * modules/grantpt (Depends-on): Add waitpid.
10581         * modules/wait-process (Depends-on): Likewise.
10582
10583 2010-09-29  Bruno Haible  <bruno@clisp.org>
10584
10585         More tests for module 'sys_wait'.
10586         * modules/sys_wait-c++-tests: New file.
10587         * tests/test-sys_wait-c++.cc: New file.
10588         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
10589         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
10590
10591 2010-09-29  Bruno Haible  <bruno@clisp.org>
10592
10593         New module 'waitpid'.
10594         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
10595         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
10596         Don't include <process.h>.
10597         (waitpid): Declare only, using modern idiom.
10598         * m4/waitpid.m4: New file.
10599         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
10600         * modules/waitpid: New file.
10601         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
10602         (Makefile.am): Update.
10603         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
10604
10605 2010-09-28  Bruno Haible  <bruno@clisp.org>
10606
10607         poll: Assume ANSI C.
10608         * lib/poll.c (poll): Use an ANSI C declaration.
10609
10610 2010-09-28  Bruno Haible  <bruno@clisp.org>
10611
10612         poll-h: Create poll.h on all platforms.
10613         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
10614         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
10615         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
10616         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
10617         (gl_REPLACE_POLL_H): Don't set POLL_H.
10618         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
10619         * modules/poll-h (Depends-on): Add include_next.
10620         (Makefile.am): Create poll.h unconditionally. Substitute also
10621         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
10622
10623 2010-09-28  Bruno Haible  <bruno@clisp.org>
10624
10625         Tests for module 'poll-h'.
10626         * modules/poll-h-c++-tests: New file.
10627         * tests/test-poll-h-c++.cc: New file.
10628
10629         Tests for module 'poll-h'.
10630         * modules/poll-h-tests: New file.
10631         * tests/test-poll-h.c: New file.
10632
10633 2010-09-28  Bruno Haible  <bruno@clisp.org>
10634
10635         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
10636         * modules/poll-h (Depends-on): Add 'extensions'.
10637
10638 2010-09-28  Bruno Haible  <bruno@clisp.org>
10639
10640         New module 'poll-h'.
10641         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
10642         (poll): Use modern idiom.
10643         * modules/poll-h: New file.
10644         * modules/poll (Files): Remove lib/poll.in.h.
10645         (Depends-on): Add poll-h.
10646         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
10647         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
10648         * m4/poll_h.m4: New file.
10649         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
10650         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
10651         and invoke gl_REPLACE_POLL_H.
10652         * lib/poll.c: Use common idiom.
10653         * tests/test-poll.c: Likewise.
10654         * doc/posix-headers/poll.texi: Mention the poll-h module.
10655         Suggested by Eric Blake.
10656
10657 2010-09-26  Bruno Haible  <bruno@clisp.org>
10658
10659         sys_wait: Implement WSTOPSIG.
10660         * lib/sys_wait.in.h (WSTOPSIG): New macro.
10661         Reported by Simon Josefsson.
10662
10663 2010-09-26  Simon Josefsson  <simon@josefsson.org>
10664
10665         stdlib, sys_wait: Avoid compilation error on mingw.
10666         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
10667
10668 2010-09-26  Bruno Haible  <bruno@clisp.org>
10669
10670         stdlib tests: Avoid code duplication.
10671         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
10672         * modules/sys_wait-tests (Files): Likewise.
10673         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
10674         * tests/test-stdlib.c: Include test-sys_wait.h.
10675         (main): Invoke test_sys_wait_macros.
10676         * tests/test-sys_wait.c: Include test-sys_wait.h.
10677         (main): Invoke test_sys_wait_macros.
10678
10679 2010-09-25  Simon Josefsson  <simon@josefsson.org>
10680
10681         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
10682         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
10683         sure Windows sockets are working before calling getaddrinfo.
10684         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
10685         * doc/gnulib.texi (Windows sockets): Fix typo.
10686
10687 2010-09-25  Bruno Haible  <bruno@clisp.org>
10688
10689         Tests for module 'regex-quote'.
10690         * modules/regex-quote-tests: New file.
10691         * tests/test-regex-quote.c: New file.
10692
10693         New module 'regex-quote'.
10694         * lib/regex-quote.h: New file.
10695         * lib/regex-quote.c: New file.
10696         * modules/regex-quote: New file.
10697         Suggested by Reuben Thomas <rrt@sc3d.org>.
10698
10699 2010-09-24  Bruno Haible  <bruno@clisp.org>
10700
10701         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
10702         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
10703
10704 2010-09-23  Bruno Haible  <bruno@clisp.org>
10705
10706         setenv: Relax license.
10707         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
10708         Blake.
10709         Requested by Eric Blake.
10710
10711 2010-09-22  Bruno Haible  <bruno@clisp.org>
10712
10713         termios: Relax license.
10714         * modules/termios (License): Change to LGPLv2+.
10715         Requested by Eric Blake.
10716
10717 2010-09-22  Bruno Haible  <bruno@clisp.org>
10718
10719         threadlib: Allow the package to change the default to 'no'.
10720         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
10721         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
10722         Reported by Paul Eggert.
10723
10724 2010-09-22  Pádraig Brady  <P@draigbrady.com>
10725             Bruno Haible  <bruno@clisp.org>
10726
10727         Fix endless loop in mbmemcasecoll.
10728         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
10729         byte.
10730         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
10731
10732 2010-09-22  Bruno Haible  <bruno@clisp.org>
10733
10734         Tests for module 'memcoll'.
10735         * modules/memcoll-tests: New file.
10736         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
10737
10738         memcoll, xmemcoll: Clarify size vs. length.
10739         * modules/memcoll.c (memcoll0): Clarify specification.
10740         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
10741         passed to collate_error.
10742
10743 2010-09-22  Bruno Haible  <bruno@clisp.org>
10744
10745         Tests for module 'memcasecmp'.
10746         * modules/memcasecmp-tests: New file.
10747         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
10748
10749 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
10750
10751         * lib/pthread.in.h: Add split double-inclusion guard, and include
10752         system <pthread.h> if there is one.  Use @@-style as in other
10753         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
10754         pthread.h doesn't.
10755         (pthread_mutexattr_destroy, pthread_mutexattr_init):
10756         (pthread_mutexattr_settype, pthread_mutex_trylock):
10757         New static inline functions, if there's no system <pthread.h>.
10758         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
10759         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
10760         Approximate with mutexes if the system lacks spinlocks, as in
10761         MacOS.
10762         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
10763         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
10764         @@-style.  Check for spinlocks separately.
10765         (gl_PTHREAD_DEFAULTS): New macro.
10766         * modules/pthread: Redo to use a more typical style for in.h files.
10767
10768 2010-09-21  Eric Blake  <eblake@redhat.com>
10769
10770         net_if: enhance tests
10771         * tests/test-net_if.c (main): Move signature checks earlier.
10772         Print failures to stderr.
10773         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
10774         Document the bug that we do not yet fix.
10775
10776 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
10777
10778         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
10779         about gnulib, not GSS.
10780
10781 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
10782
10783         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
10784         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
10785         for Emacs.
10786         * build-aux/pmccabe2html: Make Makefile.am example code more
10787         cut-and-paste friendly.
10788
10789 2010-09-21  Simon Josefsson  <simon@josefsson.org>
10790
10791         * tests/test-net_if.c: New file.
10792         * modules/net_if-tests: New file.
10793
10794 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
10795
10796         pthread: add pthread_spin_destroy
10797         * lib/pthread.in.h (pthread_spin_destroy): New function.
10798
10799 2010-09-19  Bruno Haible  <bruno@clisp.org>
10800
10801         gnulib-tool: Fix --help output.
10802         * gnulib-tool (func_usage): Fix help message.
10803         Reported by Reuben Thomas <rrt@sc3d.org>.
10804
10805 2010-09-18  Jim Meyering  <meyering@redhat.com>
10806
10807         maint.mk: avoid unexpanded \n in two diagnostics
10808         * top/maint.mk (sc_prohibit_always_true_header_tests):
10809         Don't use a literal \n in a halt=... assignment.  It would not be
10810         expanded, and the two \n bytes would appear in the diagnostic output
10811         rather than the desired newline.  Use halt=$$(printf ... instead.
10812         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
10813
10814 2010-09-18  Bruno Haible  <bruno@clisp.org>
10815
10816         netinet_in: Doc tweak.
10817         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
10818         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
10819
10820 2010-09-18  Jim Meyering  <meyering@redhat.com>
10821
10822         init.sh: correct an outdated comment
10823         * tests/init.sh (create_exe_shims_):  s/function/alias/
10824
10825         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
10826         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
10827         a file named "*.exe" is removed between the glob expansion and the
10828         processing of that oddly named file.
10829
10830 2010-09-17  Eric Blake  <eblake@redhat.com>
10831
10832         mirbsd: add some more support
10833         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
10834         in BSD family.
10835         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
10836         devices as OpenBSD.
10837         * m4/host-os.m4 (mirbsd): Add MirBSD.
10838
10839         tests: fix unportable assumption on sys/wait.h
10840         * tests/test-sys_wait.c (main): Relax test.
10841         * tests/test-stdlib.c (main): Likewise.
10842
10843         init.sh: accomodate directory with no .exes
10844         * tests/init.sh: Accomodate directory containing only scripts.
10845
10846         tests: avoid compiler warning
10847         * tests/test-stdlib.c (main): Use the variable.
10848
10849         fdutimens, fdutimensat: update signature, again
10850         * lib/utimens.h (gl_futimens): Delete, and move signature...
10851         (fdutimens): ...here.
10852         (fdutimensat): Rearrange signature.
10853         (lutimensat): Rename variable for clarity.
10854         * lib/fdutimensat.c (fdutimensat): Update signature.
10855         * lib/utimens.c (fdutimens): Likewise.
10856         (gl_futimens): Delete.
10857         (utimens, lutimens): Update callers.
10858         * lib/futimens.c (futimens): Likewise.
10859         * tests/test-fdutimensat.c: Likewise.
10860         * tests/test-utimens.c: Likewise.
10861         * tests/test-futimens.h: Update comment.
10862         * NEWS: Mention this.
10863         Suggested by Paul Eggert.
10864
10865 2010-09-17  Bruno Haible  <bruno@clisp.org>
10866
10867         Take over the maintenance of some older macros from Autoconf.
10868         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
10869         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
10870         GNU Autoconf.
10871         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
10872         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
10873
10874 2010-09-17  Eric Blake  <eblake@redhat.com>
10875
10876         fdutimensat: drop atflag validation
10877         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
10878         with valid fd, to close a race scenario where futimens is
10879         unsupported and FILE was replaced by a symlink.
10880         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
10881         accordingly.
10882         Suggested by Paul Eggert.
10883
10884 2010-09-16  Bruno Haible  <bruno@clisp.org>
10885
10886         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
10887         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
10888
10889 2010-09-16  Bruno Haible  <bruno@clisp.org>
10890
10891         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
10892         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
10893         login_tty exists.
10894         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
10895
10896 2010-09-16  Bruno Haible  <bruno@clisp.org>
10897
10898         login_tty: Make the replacement code work on BSD systems.
10899         * lib/login_tty.c: Include <sys/ioctl.h>.
10900         (login_tty): Use ioctl TIOCSCTTY when available.
10901         * modules/login_tty (Depends-on): Add sys_ioctl.
10902         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
10903
10904 2010-09-16  Bruno Haible  <bruno@clisp.org>
10905
10906         login_tty: Stricter unit test.
10907         * modules/login_tty-tests (Depends-on): Add tcgetsid.
10908         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
10909         and tcgetsid() after login_tty.
10910         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
10911
10912 2010-09-16  Bruno Haible  <bruno@clisp.org>
10913
10914         New module 'tcgetsid'.
10915         * lib/tcgetsid.c: New file.
10916         * m4/tcgetsid.m4: New file.
10917         * modules/tcgetsid: New file.
10918         * modules/termios (Depends-on): Add c++defs, warn-on-use.
10919         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
10920         GNULIB_TCGETSID, HAVE_TCGETSID.
10921         * lib/termios.in.h: Include <sys/types.h>.
10922         (tcgetsid): New declaration.
10923         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
10924         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
10925         * doc/posix-functions/tcgetsid.texi: Mention the new module.
10926         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
10927
10928 2010-09-16  Bruno Haible  <bruno@clisp.org>
10929
10930         Tests for module 'termios'.
10931         * modules/termios-c++-tests: New file.
10932         * modules/termios-tests: New file.
10933         * tests/test-termios-c++.cc: New file.
10934         * tests/test-termios.c: New file.
10935
10936         New module 'termios'.
10937         * modules/termios: New file.
10938         * lib/termios.in.h: New file.
10939         * m4/termios_h.m4: New file.
10940         * doc/posix-headers/termios.texi: Mention the new module.
10941
10942 2010-09-16  Eric Blake  <eblake@redhat.com>
10943
10944         fdutimensat: add an atflag parameter
10945         * lib/fdutimensat.c (fdutimensat): Add new parameter.
10946         * lib/utimens.h (fdutimensat): Update prototype.
10947         * tests/test-fdutimensat.c: Adjust test to match.
10948         * NEWS: Document the change.
10949         Suggested by Paul Eggert.
10950
10951 2010-09-16  Bruno Haible  <bruno@clisp.org>
10952
10953         Fix typos in comments.
10954         * lib/striconveh.h: Fix typo in comment.
10955         * lib/login_tty.c (login_tty): Likewise.
10956
10957 2010-09-15  Bruno Haible  <bruno@clisp.org>
10958
10959         stdlib: clarify MirBSD WEXITSTATUS bug
10960         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
10961         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
10962
10963 2010-09-15  Eric Blake  <eblake@redhat.com>
10964
10965         stdlib: work around MirBSD WEXITSTATUS bug
10966         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
10967         * modules/stdlib (Depends-on): Add sys_wait.
10968         * tests/test-sys_wait.c (main): Enhance test.
10969         * tests/test-stdlib.c (main): Likewise.
10970         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
10971
10972         docs: mention MacOS issue with WEXITSTATUS(constant)
10973         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
10974         issue.
10975         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
10976
10977         strnlen: add tests
10978         * modules/strnlen-tests: New file.
10979         * tests/test-strnlen.c: Likewise.
10980
10981 2010-09-14  Bruno Haible  <bruno@clisp.org>
10982
10983         unistr/base: Avoid link errors when module 'libunistring' is also used.
10984         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
10985         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
10986         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
10987         Declare also when HAVE_LIBUNISTRING is set.
10988         Reported by Pádraig Brady <P@draigbrady.com>.
10989
10990 2010-09-14  Eric Blake  <eblake@redhat.com>
10991
10992         test-rawmemchr: make more robust
10993         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
10994         (Depends-on, configure.ac): Add needed prerequisites to use it.
10995         * modules/memchr-tests (Files, Depends-on, configure.ac):
10996         Likewise, to avoid implicit reliance on memchr module prereqs.
10997         * tests/test-memchr.c (main): Ensure proper masking.
10998         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
10999         reads.
11000
11001         memchr: detect glibc Alpha bug
11002         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
11003         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
11004         Alpha.
11005         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
11006         * tests/test-memchr.c (main): Enhance test.
11007         Reported by Nelson H. F. Beebe.
11008
11009 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
11010
11011         fts, getcwd, glob: audit for dirfd returning -1
11012         * lib/fts.c (opendir): Remove #define; no longer used.
11013         (opendirat): New arg PDIR_FD.  All callers changed.
11014         (fts_build, _opendir2): Use new opendirat to avoid the need for
11015         dirfd, or for checking whether dirfd returns a negative value.
11016         Don't use opendir; always use openat followed by fdopendir.
11017         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
11018         it.
11019         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
11020         returns -1 here.
11021         * modules/fts (Depends-on): Remove dirfd.
11022         * modules/getcwd (Depends-on): Likewise.
11023
11024 2010-09-13  Eric Blake  <eblake@redhat.com>
11025
11026         float: fix broken MirBSD header
11027         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
11028         * doc/posix-headers/float.texi (float.h): Document it.
11029
11030 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
11031
11032         fts: use O_NOFOLLOW to avoid race condition when opening a directory
11033         * lib/fts.c (opendirat): New arg extra_flags.
11034         (__opendir2): Use it to avoid following symlinks when opening
11035         a directory, if symlinks are not supposed to be followed.  See
11036         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
11037
11038         fdopendir: preserve argument fd before returning
11039         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
11040         (fdopendir_with_dup, fd_clone_opendir): New static functions.
11041         (fdopendir): Use them, arranging for FD to be open to the same
11042         directory that it was when it started.  (It might be temporarily
11043         closed while fdopendir is running, so this not thread- or
11044         signal-safe.)  Be careful to do the right thing even when file
11045         descriptors are scarce and dup fails with errno == EMFILE.  See
11046         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
11047
11048 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
11049
11050         regex: Pass the system regex if its only problem is 32-bit regoff_t.
11051         * NEWS: Document change.
11052         * m4/regex.m4: Disable test for regoff_t size.
11053
11054 2010-09-13  Jim Meyering  <meyering@redhat.com>
11055
11056         fts: don't operate on an invalid file descriptor after failed dup
11057         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
11058         negative file descriptor.
11059
11060 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
11061
11062         savedir: add streamsavedir, deprecate fdsavedir
11063         * NEWS: Mention deprecation of fdsavedir.
11064         * lib/savedir.c (streamsavedir): New extern function, whose name
11065         ends in "savedir" to be consistent with the others.  This differs
11066         from savedirstream in that it doesn't close its argument.  The
11067         next version of GNU tar will use this instead of fdsavedir, to
11068         avoid some race conditions and conserve file descriptors.
11069         (savedirstream): Reimplement as a wrapper around streamsavedir.
11070         (fdsavedir): Add a comment deprecating this function.  As far as
11071         I know, only GNU tar used it, and GNU tar doesn't need it any more.
11072         * lib/savedir.h (streamsavedir): New decl.
11073         (fdsavedir): Add a comment deprecating this.
11074
11075 2010-09-10  Bruno Haible  <bruno@clisp.org>
11076
11077         langinfo: Fix last commit.
11078         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
11079         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
11080         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11081
11082 2010-09-10  Bruno Haible  <bruno@clisp.org>
11083
11084         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
11085         * lib/progreloc.c (O_EXEC): Define fallback.
11086
11087 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
11088
11089         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
11090         * NEWS: Document recent changes to fcntl-h.
11091         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
11092         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
11093         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
11094         Similarly for O_SEARCH; this last was already true, but not documented.
11095         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
11096         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
11097         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
11098         Likewise.
11099         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
11100         is zero, not whether it is defined.
11101         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
11102         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
11103         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
11104
11105 2010-09-10  Bruno Haible  <bruno@clisp.org>
11106
11107         langinfo, nl_langinfo: Fix for IRIX 5.3.
11108         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
11109         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
11110         HAVE_LANGINFO_YESEXPR.
11111         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
11112         HAVE_LANGINFO_YESEXPR.
11113         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
11114         HAVE_LANGINFO_T_FMT_AMPM is 0.
11115         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
11116         HAVE_LANGINFO_YESEXPR is 0.
11117         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
11118         NOEXPR.
11119         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
11120         * doc/posix-functions/nl_langinfo.texi: Likewise.
11121         Reported by Eric Blake.
11122
11123 2010-09-10  Bruno Haible  <bruno@clisp.org>
11124
11125         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
11126         * doc/glibc-functions/login_tty.texi: Mention the include file problem
11127         on FreeBSD 8.0 and OpenBSD 4.6.
11128         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
11129         * m4/pty_h.m4 (gl_PTY_H): Likewise.
11130         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
11131         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
11132         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
11133         ac_includes_default.
11134         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
11135
11136 2010-09-09  Eric Blake  <eblake@redhat.com>
11137
11138         strsignal: work around NetBSD bug
11139         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
11140         * lib/string.in.h (includes): Likewise.
11141         * doc/posix-functions/strsignal.texi (strsignal): Document the
11142         bug.
11143         Reported by Nelson H. F. Beebe.
11144
11145         gnulib-tool: work with NetBSD /bin/sh
11146         * gnulib-tool (func_cache_var, func_cache_lookup_module)
11147         (func_get_description, func_get_comment, func_get_status)
11148         (func_get_notice, func_get_applicability, func_get_filelist)
11149         (func_get_dependencies, func_get_autoconf_early_snippet)
11150         (func_get_autoconf_snippet, func_get_automake_snippet)
11151         (func_get_include_directive, func_get_link_directive)
11152         (func_get_license, func_get_maintainer, func_import): Avoid
11153         shell syntax errors from parsing syntax extensions.
11154
11155 2010-09-09  Bruno Haible  <bruno@clisp.org>
11156
11157         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
11158         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
11159         a reliable way to determine whether the 'alias' command works.
11160
11161 2010-09-08  Jim Meyering  <meyering@redhat.com>
11162
11163         init.sh: penalize a set-x-impaired shell; don't disqualify it
11164         * tests/init.sh: Too many shells corrupt application stderr when
11165         you set -x, so we can't afford to disqualify them, since at least
11166         on Irix-6.5, that would disqualify all bourne shells.
11167         Instead, use a two-pass approach.
11168         On the first pass, try to find a shell that meets the stricter
11169         condition that set -x does not corrupt stderr.
11170         If no shell meets the stricter condition, retest each candidate
11171         shell, but without that extra condition.  Finally, when
11172         VERBOSE=yes is requested and set -x might cause trouble, simply
11173         issue a warning and refrain from enabling debug output.
11174
11175 2010-09-08  Eric Blake  <eblake@redhat.com>
11176
11177         unsetenv: fix OpenBSD bug
11178         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
11179         * doc/posix-functions/unsetenv.texi (unsetenv): Update
11180         documentation.
11181         Reported by Jim Meyering.
11182
11183         strtod: work around IRIX 6.5 bug
11184         * lib/strtod.c (strtod): Reparse number on shorter string if
11185         exponent parse was invalid.
11186         * tests/test-strtod.c (main): Add check for "0x1p 2".
11187         Reported by Tom G. Christensen.
11188
11189         getopt: optimize previous patch
11190         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
11191         empty variable.  Speed up awk script.
11192         Reported by Paolo Bonzini.
11193
11194 2010-09-08  Jim Meyering  <meyering@redhat.com>
11195
11196         test.sh: disqualify shells for which set -x corrupts stderr
11197         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
11198         and OpenBSD 4.7.  They make it so with "set -x", environment settings
11199         appear in stderr output.  For example, this command:
11200             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
11201         prints "P=1" on those two systems:
11202
11203 2010-09-08  Bruno Haible  <bruno@clisp.org>
11204
11205         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
11206         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
11207         commands, because some shells ignore redirections when there is an
11208         error in the command lookup.
11209         Reported by Eric Blake.
11210
11211 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
11212
11213         * lib/regex.h: Fix a mention of `regex_compile' (should be
11214         `re_compile_pattern').
11215         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
11216         (re_set_registers): Correct name of parameter in comment.
11217
11218         * doc/regex.texi: Add documentation for missing syntax flags.
11219         Remove commented-out documentation of defunct syntax option
11220         RE_NO_EMPTY_ALTS.
11221         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
11222         Add documentation of re_set_registers.
11223         Document trick to re-use a pattern buffer by setting fastmap manually.
11224         Update documentation of struct re_pattern_buffer per public members.
11225         Uncomment documentation of equivalence class operators and
11226         collating symbol operators, since they are now implemented,
11227         Explain leftmost-longest matching in relation to alternatives.
11228         Tidy documentation of substring matching.
11229         Remove POSIX documentation, which is done better in
11230         glibc, and refer the reader there. Keep BSD API documentation, as
11231         that is not readily available elsewhere.
11232
11233 2010-09-07  Eric Blake  <eblake@redhat.com>
11234
11235         getopt: handle POSIXLY_CORRECT set but not exported
11236         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
11237         export state of POSIXLY_CORRECT, due to bash set -o posix.
11238         Reported by Dustin J. Mitchell.
11239
11240 2010-09-05  Bruno Haible  <bruno@clisp.org>
11241
11242         gnulib-tool: Highlight the changed options.
11243         * gnulib-tool (func_usage): Display the --import, --add-import,
11244         --remove-import explanations in bold font.
11245
11246 2010-09-06  Karl Berry  <karl@gnu.org>
11247
11248         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
11249
11250 2010-09-05  Bruno Haible  <bruno@clisp.org>
11251
11252         uniwidth/width: Update comment.
11253         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
11254         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
11255
11256 2010-09-05  Bruno Haible  <bruno@clisp.org>
11257
11258         isinf, isnan: Relax license.
11259         * modules/isinf (License): Change from GPL to LGPL, with consent from
11260         Ben Pfaff.
11261         * modules/isnan (License): Likewise.
11262         Requested by Ludovic Courtès.
11263
11264 2010-09-04  Bruno Haible  <bruno@clisp.org>
11265
11266         gnulib-tool: Help migration from --import to --add-import or --update.
11267         * gnulib-tool: Emit a verbose error message when --import is used
11268         without any module name.
11269
11270 2010-09-04  Bruno Haible  <bruno@clisp.org>
11271
11272         Update doc about gnulib-tool.
11273         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
11274         'gnulib-tool --update' in more detail.
11275         Reported by Eric Blake.
11276
11277 2010-09-04  Bruno Haible  <bruno@clisp.org>
11278
11279         gnulib-tool: Change --import. New options --add/remove-import.
11280         * gnulib-tool: New options --add-import, --remove-import.
11281         (func_usage): Document them.
11282         (have_associative): Define always.
11283         (func_import): In import mode, don't merge the specified settings with
11284         the cached settings. Implement remove-import mode.
11285         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
11286         Explain when to use them versus --import.
11287         (Simple update): Use --add-import instead of --import.
11288         * NEWS: Mention the change.
11289
11290 2010-09-04  Bruno Haible  <bruno@clisp.org>
11291
11292         * doc/gnulib-tool.texi (Initial import): Update paragraph about
11293         separate gnulib.mk.
11294
11295 2010-09-04  Bruno Haible  <bruno@clisp.org>
11296
11297         gnulib-tool: Don't talk about CVS any more.
11298         * gnulib-tool (func_usage, func_import): Write "version control"
11299         instead of CVS.
11300
11301 2010-09-04  Jim Meyering  <meyering@redhat.com>
11302
11303         maint.mk: avoid obscure sc_copyright_check failure in coreutils
11304         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
11305         false positives (whose names may be ill-chosen) when searching
11306         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
11307         would cause a false-positive.
11308
11309         avoid coreutils "make distcheck" failure
11310         Coreutils tests with an absolute build directory name that contains
11311         a space.  Not quoting this directory name caused a failure.
11312         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
11313         * tests/test-vc-list-files-cvs.sh: Likewise.
11314
11315 2010-09-04  Bruno Haible  <bruno@clisp.org>
11316
11317         gnulib-tool: Avoid error when run in a package without Makefile.am.
11318         * gnulib-tool: When collecting the m4dirs in a package that does not
11319         have a Makefile.am, eliminate those directories that contain no
11320         gnulib-cache.m4. Fix expression that counts these directories.
11321
11322 2010-09-04  Bruno Haible  <bruno@clisp.org>
11323
11324         update-copyright test: Improve output when perl is missing or too old.
11325         * tests/test-update-copyright.sh: Move test of Perl version down after
11326         the test whether Perl exists. Provide an explanation relating Perl's
11327         error message to Automake's SKIP: message.
11328
11329 2010-09-04  Bruno Haible  <bruno@clisp.org>
11330
11331         Don't augment PATH in TESTS_ENVIRONMENT.
11332         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
11333         set abs_aux_dir instead of augmenting PATH.
11334         * modules/vc-list-files-tests (Makefile.am): Likewise.
11335         * tests/test-update-copyright.sh: Augment PATH here.
11336         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
11337         path_prepend_.
11338         * tests/test-vc-list-files-git.sh: Likewise.
11339
11340 2010-09-04  Jim Meyering  <meyering@redhat.com>
11341
11342         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
11343         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
11344
11345 2010-09-04  Bruno Haible  <bruno@clisp.org>
11346
11347         strdup: Fix compilation error in C++ mode.
11348         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
11349         the macro.
11350
11351 2010-09-04  Bruno Haible  <bruno@clisp.org>
11352
11353         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
11354         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
11355         macro into a function.
11356         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
11357
11358 2010-09-04  Bruno Haible  <bruno@clisp.org>
11359
11360         Set PATH_SEPARATOR the same way autoconf does.
11361         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
11362         the value of PATH_SEPARATOR the same way autoconf-generated configure
11363         scripts do.
11364         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
11365         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
11366
11367 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
11368
11369         Set PATH_SEPARATOR the same way autoconf does.
11370         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
11371         the same way autoconf-generated configure scripts do.
11372         * posix-modules: Likewise.
11373
11374 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
11375
11376         hash: fix safe_hasher const typo
11377         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
11378         const; otherwise, there is a type error later.
11379
11380 2010-09-02  Jim Meyering  <meyering@redhat.com>
11381
11382         test-update-copyright.sh: require perl 5.8.0
11383         * tests/test-update-copyright.sh: Require 5.8.0,
11384         which Tom G. Christensen has confirmed is adequate,
11385         while 5.6.1 is not.
11386
11387 2010-09-02  Eric Blake  <eblake@redhat.com>
11388
11389         tests: init.sh improvements for re-exec'ing with zsh
11390         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
11391         -vx through shell re-exec.
11392         Reported by Tom G. Christensen.
11393
11394         wctype: fix typo in previous commit
11395         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
11396         Reported by Ludovic Courtès.
11397
11398 2010-09-02  Jim Meyering  <meyering@redhat.com>
11399
11400         test-update-copyright.sh: skip test if Perl is too old
11401         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
11402         Reported by Tom G. Christensen.
11403
11404 2010-09-02  Bruno Haible  <bruno@clisp.org>
11405
11406         wctype: Avoid compilation error on IRIX 6.5.30.
11407         * lib/wctype.in.h (iswblank): Declare with a replacement if
11408         REPLACE_ISWBLANK is set.
11409         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
11410         declared. Set REPLACE_ISWBLANK.
11411         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
11412         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
11413         * doc/posix-headers/wctype.texi: Likewise.
11414         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11415
11416 2010-09-01  Bruno Haible  <bruno@clisp.org>
11417
11418         New module 'socketlib'.
11419         * modules/socketlib: New file.
11420         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
11421         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
11422         * modules/sockets (Depends-on): Add socketlib.
11423         Suggested by Sam Steingold <sds@gnu.org>.
11424
11425 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
11426
11427         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
11428
11429         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
11430         when one needs search access to a directory but not read access.
11431         On systems where it is available, it works in some cases where
11432         O_RDONLY does not, namely on directories that are searchable but
11433         not readable, and which need only to be searchable.  If O_SEARCH
11434         is not available, fall back to the traditional method of using
11435         O_RDONLY.
11436
11437         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
11438         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
11439         when opening a directory that needs only to be searchable.
11440         * lib/chdir-safer.c (chdir_no_follow): Likewise.
11441         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
11442         * lib/openat-proc.c (openat_proc_name): Likewise.
11443         * lib/openat.c (openat_needs_fchdir): Likewise.
11444         * lib/save-cwd.c (save_cwd): Likewise.
11445         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
11446
11447 2010-08-28  Bruno Haible  <bruno@clisp.org>
11448
11449         New module 'host-cpu-c-abi'.
11450         * modules/host-cpu-c-abi: New file.
11451         * m4/host-cpu-c-abi.m4: New file, based on part of
11452         clisp/src/m4/general.m4.
11453         Requested by Sam Steingold <sds@gnu.org>.
11454
11455 2010-08-31  Eric Blake  <eblake@redhat.com>
11456         and Jim Meyering  <meyering@redhat.com>
11457
11458         hash: factor, and guard against misbehaving hasher function
11459         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
11460         of table->hasher's return value.  Also protect against a hash value
11461         so large that adding it to table->bucket results in a NULL pointer.
11462         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
11463         Use it in place of open-coded check-and-abort.
11464
11465 2010-08-30  Bruno Haible  <bruno@clisp.org>
11466
11467         hash: silence spurious clang warning
11468         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
11469         Reported by Eric Blake.
11470
11471 2010-08-30  Eric Blake  <eblake@redhat.com>
11472
11473         strstr, memmem, strcasestr: avoid leaked shell message
11474         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
11475         FreeBSD.
11476         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
11477         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
11478
11479         tests: silence clang warning
11480         * tests/test-malloca.c (do_allocation): Avoid dead store.
11481
11482 2010-08-29  Bruno Haible  <bruno@clisp.org>
11483
11484         gettext: Fix recent mistake.
11485         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
11486
11487 2010-08-29  Bruno Haible  <bruno@clisp.org>
11488
11489         selinux-h: Offer a --without-selinux option.
11490         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
11491         --without-selinux was specified, skip all tests and define
11492         HAVE_SELINUX_SELINUX_H to 0.
11493         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
11494         set LIB_SELINUX to empty.
11495         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
11496         gl_LIBSELINUX. If --without-selinux was specified, replace
11497         selinux/context.h.
11498         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
11499
11500 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11501             Bruno Haible  <bruno@clisp.org>
11502
11503         Make the module 'realloc-gnu' work again on AIX and OSF/1.
11504         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
11505         of HAVE_REALLOC.
11506         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
11507         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
11508         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
11509         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
11510
11511 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11512             Bruno Haible  <bruno@clisp.org>
11513
11514         Make the module 'calloc-gnu' work again on AIX and OSF/1.
11515         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
11516         HAVE_CALLOC.
11517         * lib/xmalloc.c: Update accordingly.
11518         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
11519         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
11520         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
11521
11522 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11523             Bruno Haible  <bruno@clisp.org>
11524
11525         Make the module 'malloc-gnu' work again on AIX and OSF/1.
11526         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
11527         HAVE_MALLOC.
11528         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
11529         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
11530         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
11531
11532 2010-08-29  Bruno Haible  <bruno@clisp.org>
11533
11534         Update modules list.
11535         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
11536         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
11537         (String handling <string.h>): Add astrxfrm.
11538         (File system functions): Add readlinkat.
11539
11540 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11541
11542         Tests for module 'realloc-gnu'.
11543         * modules/realloc-gnu-tests: New file.
11544         * tests/test-realloc-gnu.c: New file.
11545
11546         Tests for module 'calloc-gnu'.
11547         * modules/calloc-gnu-tests: New file.
11548         * tests/test-calloc-gnu.c: New file.
11549
11550         Tests for module 'malloc-gnu'.
11551         * modules/malloc-gnu-tests: New file.
11552         * tests/test-malloc-gnu.c: New file.
11553
11554 2010-08-28  Bruno Haible  <bruno@clisp.org>
11555
11556         Rename module 'realloc' -> 'realloc-gnu'.
11557         * modules/realloc-gnu: New file, copied from modules/realloc.
11558         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
11559         obsolete.
11560         * modules/mgetgroups (Depends-on): Update.
11561         * doc/posix-functions/realloc.texi: Update.
11562         * NEWS: Mention the change.
11563
11564         Rename module 'calloc' -> 'calloc-gnu'.
11565         * modules/calloc-gnu: New file, copied from modules/calloc.
11566         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
11567         obsolete.
11568         * doc/posix-functions/calloc.texi: Update.
11569         * NEWS: Mention the change.
11570
11571         Rename module 'malloc' -> 'malloc-gnu'.
11572         * modules/malloc-gnu: New file, copied from modules/malloc.
11573         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
11574         obsolete.
11575         * modules/argp (Depends-on): Update.
11576         * modules/regex (Depends-on): Update.
11577         * doc/posix-functions/malloc.texi: Update.
11578         * NEWS: Mention the change.
11579
11580 2010-08-28  Eric Blake  <eblake@redhat.com>
11581
11582         pread, pwrite: add missing dependency
11583         * modules/pread (Depends-on): Add extensions.
11584         * modules/pwrite (Depends-on): Likewise.
11585
11586 2010-08-28  Bruno Haible  <bruno@clisp.org>
11587
11588         unistr/u*-strchr: Fix tests dependencies.
11589         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
11590         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
11591         Reported by Ian Beckwith <ianb@erislabs.net>.
11592
11593 2010-08-28  Bruno Haible  <bruno@clisp.org>
11594
11595         read-file: Don't occupy too much unused memory.
11596         * lib/read-file.c (fread_file): Shrink the buffer at the end.
11597
11598 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
11599             Eric Blake  <eblake@redhat.com>
11600             Bruno Haible  <bruno@clisp.org>
11601
11602         read-file: Avoid memory reallocations with regular files.
11603         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
11604         (fread_file): With regular files, use the remaining length as the
11605         initial buffer size.  Check against overflow.
11606         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
11607         sys_stat.
11608
11609 2010-08-28  Bruno Haible  <bruno@clisp.org>
11610
11611         ftello: Relax license.
11612         * modules/ftello (License): Relax to LGPLv2+.
11613         Reported by Eric Blake.
11614
11615 2010-08-28  Bruno Haible  <bruno@clisp.org>
11616
11617         Avoid relocwrapper link errors due to gnulib replacement functions.
11618         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
11619         function.
11620         Reported by Ben Pfaff <blp@cs.stanford.edu>.
11621
11622 2010-08-28  Bruno Haible  <bruno@clisp.org>
11623
11624         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
11625         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
11626         defined.
11627         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
11628         Suggested by Eric Blake.
11629
11630 2010-08-28  Bruno Haible  <bruno@clisp.org>
11631
11632         sys_socket, netdb: Ensure socklen_t gets defined.
11633         * modules/sys_socket (Depends-on): Add socklen.
11634         * modules/netdb (Depends-on): Likewise.
11635         * modules/getaddrinfo (Depends-on): Remove socklen.
11636         * modules/getsockopt (Depends-on): Likewise.
11637         * modules/setsockopt (Depends-on): Likewise.
11638         * tests/test-sys_socket.c: Check that socklen_t is defined.
11639         * tests/test-netdb.c: Likewise.
11640         * m4/socklen.m4: Update comments.
11641         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
11642
11643 2010-08-27  Eric Blake  <eblake@redhat.com>
11644
11645         login_tty: add missing dependency
11646         * modules/login_tty (Depends-on): Add pty.
11647
11648 2010-08-26  Eric Blake  <eblake@redhat.com>
11649
11650         lib-symbol-versions: fix m4 quoting
11651         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
11652         format for AC_LINK_IFELSE.
11653
11654         glob: fix compile test
11655         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
11656
11657         btowc: fix missing file
11658         * modules/btowc (Files): Also ship locale-fr.m4.
11659
11660         lseek: fix link test
11661         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
11662         AC_LINK_IFELSE.
11663
11664         include_next: silence autoconf 2.68 warning
11665         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
11666         AC_COMPILE_IFELSE as special.
11667         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
11668         autoconf < 2.68.
11669
11670         acl: fix compilation test
11671         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
11672         AC_COMPILE_IFELSE.
11673
11674 2010-08-26  Bruno Haible  <bruno@clisp.org>
11675
11676         Modernize AC_TRY_RUN invocations.
11677         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
11678         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
11679         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
11680         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
11681         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
11682         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
11683         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
11684         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
11685         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
11686         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
11687         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
11688         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
11689         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
11690         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
11691         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
11692         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
11693         gl_MBRLEN_NUL_RETVAL): Likewise.
11694         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
11695         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
11696         Likewise.
11697         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
11698         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
11699         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
11700         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
11701         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
11702         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
11703         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
11704         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
11705         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
11706         Likewise.
11707         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
11708         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
11709         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
11710         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
11711         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
11712         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
11713         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
11714         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
11715         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
11716         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
11717
11718 2010-08-26  Bruno Haible  <bruno@clisp.org>
11719
11720         Modernize AC_TRY_LINK invocations.
11721         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
11722         AC_TRY_LINK.
11723         * m4/argp.m4 (gl_ARGP): Likewise.
11724         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
11725         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
11726         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
11727         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
11728         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
11729         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
11730         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
11731         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
11732         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
11733         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
11734         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
11735         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
11736         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
11737         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
11738         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
11739         * m4/hostent.m4 (gl_HOSTENT): Likewise.
11740         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
11741         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
11742         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
11743         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
11744         Likewise.
11745         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
11746         Likewise.
11747         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
11748         Likewise.
11749         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
11750         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
11751         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
11752         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
11753         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
11754         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
11755         * m4/servent.m4 (gl_SERVENT): Likewise.
11756         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
11757         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
11758         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
11759         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
11760         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
11761         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
11762         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
11763         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
11764         * modules/tsearch-tests (configure.ac): Likewise.
11765
11766 2010-08-26  Bruno Haible  <bruno@clisp.org>
11767
11768         Modernize AC_TRY_COMPILE invocations.
11769         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
11770         AC_TRY_COMPILE.
11771         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
11772         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
11773         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
11774         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
11775         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
11776         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
11777         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
11778         * m4/lock.m4 (gl_LOCK): Likewise.
11779         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
11780         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
11781         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
11782         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
11783         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
11784         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
11785         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
11786         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
11787         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
11788         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
11789         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
11790         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
11791         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
11792         extraneous semicolon.
11793
11794 2010-08-26  Jim Meyering  <meyering@redhat.com>
11795
11796         stat-time: relax license LGPL
11797         * modules/stat-time (License): Change from GPL to LGPL,
11798         with consent from all contributors, for use in libguile.
11799         Requested by Ludovic Courtès.
11800
11801 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
11802
11803         poll: return immediately on POLLHUP.
11804         * lib/poll.c (poll): Always set timeout before wait_timeout is
11805         computed.
11806
11807 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11808
11809         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
11810         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
11811         rmdir ("dir/.//"), unlinkat.
11812
11813 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
11814
11815         stdbool: avoid spurious failure with modern xlc
11816         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
11817
11818 2010-08-24  Bruno Haible  <bruno@clisp.org>
11819
11820         getloadavg: simplify code
11821         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
11822         gl_have_func. Update comments.
11823
11824 2010-08-24  Eric Blake  <eblake@redhat.com>
11825
11826         getloadavg: don't define SVR4 on cygwin
11827         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
11828         only define SVR4 when -lkvm is required.
11829         Reported by Yaakov Selkowitz.
11830
11831 2010-08-24  Bruno Haible  <bruno@clisp.org>
11832
11833         priv-set: fix comment
11834         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
11835
11836 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
11837
11838         priv-set: fix comments
11839         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
11840         to match code, as suggested by David Bartley in:
11841         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
11842
11843 2010-08-23  Eric Blake  <eblake@redhat.com>
11844
11845         stdbool: avoid rejecting clang
11846         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
11847         * tests/test-stdbool.c: Enable more tests if using the system
11848         <stdbool.h> instead of the gnulib replacement.
11849         (main): Move xlc bug test to a runtime test for all compilers.
11850         Reported by Anders Kaseorg.
11851
11852         argz: fix shell quoting issue
11853         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
11854         Reported by Charles Wilson.
11855
11856 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
11857             Erik Faye-Lund <kusmabite@gmail.com>
11858
11859         poll, select: handle ERROR_BROKEN_PIPE.
11860         * lib/poll.c (win32_compute_revents): Return POLLHUP when
11861         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
11862         * lib/select.c (win32_compute_revents): Do not mark a pipe
11863         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
11864
11865 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
11866
11867         fts: allow compilation with C++
11868         * lib/fts_.h: Specify extern "C" linkage with C++.
11869
11870 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11871
11872         Fix gnulib-tool sed script de-commentation for AIX sed.
11873         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
11874         sed.
11875
11876 2010-08-17  Eric Blake  <eblake@redhat.com>
11877
11878         test-stddef: test for (some) offsetof bugs
11879         * tests/test-stddef.c: Enhance test to ensure correct type of
11880         offsetof.
11881         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
11882         that we are not fixing at this time.
11883
11884 2010-08-15  Bruno Haible  <bruno@clisp.org>
11885
11886         stpncpy: Allow stpncpy to be defined as a macro.
11887         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
11888         if it's already correctly declared.
11889         * lib/string.in.h (stpncpy): Undefine before redefining.
11890         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
11891
11892 2010-08-14  Bruno Haible  <bruno@clisp.org>
11893
11894         Rename module 'memxfrm' to 'amemxfrm'.
11895         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
11896         (amemxfrm): Renamed from memxfrm.
11897         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
11898         (amemxfrm): Renamed from memxfrm.
11899         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
11900         * NEWS: Mention the change.
11901         * MODULES.html.sh (String handling <string.h>): Update.
11902         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
11903         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
11904         * lib/unicase/u16-casexfrm.c: Likewise.
11905         * lib/unicase/u32-casexfrm.c: Likewise.
11906         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
11907         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
11908         * lib/uninorm/u16-normxfrm.c: Likewise.
11909         * lib/uninorm/u32-normxfrm.c: Likewise.
11910         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
11911         memxfrm.
11912         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
11913         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
11914         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
11915         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
11916         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
11917         Suggested by Paul Eggert.
11918
11919 2010-08-14  Bruno Haible  <bruno@clisp.org>
11920
11921         Tests for module 'astrxfrm'.
11922         * modules/astrxfrm-tests: New file.
11923         * tests/test-astrxfrm.c: New file.
11924
11925         New module 'astrxfrm'.
11926         * lib/astrxfrm.h: New file.
11927         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
11928         * modules/astrxfrm: New file.
11929
11930 2010-08-14  Reuben Thomas <rrt@sc3d.org>
11931
11932         regex: Tweak doc.
11933         * doc/regex.texi (Overview): Don't mention regex.c.
11934         (GNU Regular Expression Compiling): Likewise.
11935         (Match-end-of-line Operator): Mention 'not_eol'.
11936
11937 2010-08-14  Brian Gough  <bjg@gnu.org>
11938             Bruno Haible  <bruno@clisp.org>
11939
11940         git-merge-changelog: add doc relating to use with bzr and hg.
11941         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
11942
11943 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
11944
11945         pthread: fix pthread.h creation for srcdir != builddir
11946         * modules/pthread (Makefile.am): Fix the rule to work also in a
11947         non-srcdir build.
11948
11949 2010-08-13  Karl Berry  <karl@gnu.org>
11950
11951         * doc/regex.texi (Predefined Syntaxes): @smallexample.
11952         * doc/posix-*/*: force line break before @url of POSIX
11953         specifications.
11954         Suggested by Werner Lemberg.
11955
11956 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
11957
11958         strtod: fix const diagnostic
11959         * lib/strtod.c (strtod): Don't assign const char * to char *,
11960         as this elicits a warning from GCC when warnings are enabled.
11961
11962 2010-08-10  Pádraig Brady <P@draigbrady.com>
11963         and Eric Blake  <eblake@redhat.com>
11964
11965         copy-acl: ignore ENOTSUP on HP-UX
11966         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
11967         so that it is available for HP-UX.
11968         * lib/copy-acl.c (qcopy_acl): Use it.
11969         Reported by Patrick M. Callahan.
11970
11971 2010-08-10  Eric Blake  <eblake@redhat.com>
11972
11973         open, chown: relax license
11974         * modules/open (License): Change to LGPLv2+, with consent by all
11975         authors, for use in augeas.
11976         * modules/chown (License): Likewise.
11977         * modules/lchown (Likewise): Likewise.
11978         Requested by Adam Stokes.
11979
11980 2010-08-09  Karl Berry  <karl@gnu.org>
11981
11982         * build-aux/ar-lib: new file, import from Automake.
11983         * config/srclist.txt: autocheck for updates.
11984
11985 2010-08-09  Eric Blake  <eblake@redhat.com>
11986
11987         readlinkat: adjust client modules
11988         * modules/areadlinkat (Depends-on): Use readlinkat, not
11989         symlinkat.
11990         * modules/areadlinkat-with-size (Depends-on): Likewise.
11991
11992         mknod: be more vocal about danger of running tests as root
11993         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
11994         root, since that is just asking for problems.
11995         Suggested by Bruno Haible, based on a report by Rainer Tammer.
11996
11997         readlinkat: split into its own module
11998         * modules/symlinkat: Split readlinkat...
11999         * modules/readlinkat: ...into separate module.
12000         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
12001         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
12002         * lib/symlinkat.c (readlinkat): Move...
12003         * lib/readlinkat.c: ...into new file.
12004         * modules/symlinkat-tests: Split readlinkat test...
12005         * modules/readlinkat-tests: ...into separate module.
12006         * tests/test-symlinkat.c: Split...
12007         * tests/test-readlinkat.c: ...into new file.
12008         * NEWS: Document the split.
12009         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
12010         * lib/unistd.in.h (readlinkat): Likewise.
12011         Suggested by Bruno Haible.
12012
12013 2010-08-08  Bruno Haible  <bruno@clisp.org>
12014
12015         memxfrm: Speed up.
12016         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
12017         that usually only one call to strxfrm is necessary for each string
12018         part.
12019         Reported by Paul Eggert <eggert@cs.ucla.edu>.
12020
12021 2010-08-07  Karl Berry  <karl@gnu.org>
12022
12023         * doc/posix-headers/limits.texi,
12024         * doc/posix-functions/malloc.texi,
12025         * doc/posix-functions/strsignal.texi: missing @item.
12026         * doc/ld-version-script.texi: spurious leading i.
12027         * doc/regex.texi (Interval Operators): no commas inside @var.
12028
12029 2010-08-01  Bruno Haible  <bruno@clisp.org>
12030
12031         Integrate the regex documentation.
12032         * doc/gnulib.texi: Define 'cn' index.
12033         (Regular expressions): New a chapter that includes regex.texi and
12034         regexprops-generic.texi.
12035         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
12036         syntax.
12037
12038         Whitespace cleanup.
12039         * doc/regex.texi: Remove trailing spaces.
12040
12041         Add regex documentation.
12042         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
12043         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
12044         Written by Kathy A. Hargreaves and Karl Berry.
12045
12046 2010-08-01  Bruno Haible  <bruno@clisp.org>
12047
12048         link: Update documentation.
12049         * doc/posix-functions/link.texi: Update regarding Solaris.
12050
12051 2010-07-31  Bruno Haible  <bruno@clisp.org>
12052
12053         Update modules list.
12054         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
12055         (String handling <string.h>): Add memcmp2, memxfrm.
12056         (Container data structures): Add xlist, xsublist, xoset.
12057         (Core language properties): Add alignof, unused-parameter.
12058         (Process control, Numeric conversion functions <stdlib.h>): Renamed
12059         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
12060         (Unibyte characters <ctype.h>): New section.
12061         (String handling <string.h>): New section.
12062         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
12063         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
12064         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
12065         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
12066         tan, tanh, tanl, y0, y1, yn.
12067         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
12068         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
12069         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
12070         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
12071         unlockpt, vdprintf, vdprintf-posix.
12072         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
12073         (File system functions): Add concat-filename, sys_file, sys_ioctl,
12074         xconcat-filename.
12075         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
12076         getdtablesize, pipe2, pipe2-safer.
12077         (Security): New section.
12078         (Networking functions): Add accept4.
12079         (Signal handling): Add sigpipe.
12080         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
12081         mbmemcasecoll.
12082         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
12083         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
12084         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
12085         pipe-filter-ii.
12086         (Misc): Add argp-version-etc, login_tty, parse-duration.
12087
12088 2010-07-31  Bruno Haible  <bruno@clisp.org>
12089
12090         Improve doc in MODULES.html.
12091         * modules/linkat (Description): Add the word "function".
12092         * modules/mkfifo (Description): Likewise.
12093         * modules/mknod (Description): Likewise.
12094         * modules/remove (Description): Likewise.
12095         * modules/renameat (Description): Likewise.
12096         * modules/stat (Description): Likewise.
12097         * modules/symlink (Description): Likewise.
12098         * modules/unlink (Description): Likewise.
12099
12100 2010-07-31  Bruno Haible  <bruno@clisp.org>
12101
12102         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
12103         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
12104         option --enable/disable-c++ instead of --enable/disable-cxx.
12105         * NEWS: Mention the change.
12106
12107 2010-07-31  Bruno Haible  <bruno@clisp.org>
12108
12109         readlink, areadlink: Relax test a bit.
12110         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
12111         alternative to ENOTDIR.
12112         * tests/test-areadlink.h (test_areadlink): Likewise.
12113         Reported by Rainer Tammer.
12114
12115 2010-07-31  Bruno Haible  <bruno@clisp.org>
12116
12117         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
12118         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
12119         character, perform the search using U_STRCHR.
12120         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
12121         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
12122         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
12123         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
12124         Suggested by Paolo Bonzini.
12125
12126 2010-07-31  Bruno Haible  <bruno@clisp.org>
12127
12128         unistr/u*-strstr: Fix dependencies.
12129         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
12130         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
12131         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
12132
12133 2010-07-31  Bruno Haible  <bruno@clisp.org>
12134
12135         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
12136         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
12137         the beginning of the loop.
12138         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
12139         cases in 'switch' statement.
12140
12141         unistr/u8-strchr: Fix several bugs.
12142         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
12143         the string. When not found, return NULL, not a pointer near the end.
12144
12145         More tests for unistr/u8-strchr.
12146         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
12147         that the function does not read past the first occurrence of the byte
12148         being searched.
12149         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
12150         * tests/unistr/test-u16-strchr.c (main): New function.
12151         * tests/unistr/test-u32-strchr.c (main): New function.
12152
12153 2010-07-31  Bruno Haible  <bruno@clisp.org>
12154
12155         posix-modules: Ignore backup files of documentation files.
12156         * posix-modules: grep only through files named *.texi.
12157
12158 2010-07-31  Bruno Haible  <bruno@clisp.org>
12159
12160         symlinkat: Fix documentation.
12161         * doc/posix-functions/readlinkat.texi: Fix module name.
12162
12163 2010-07-31  Bruno Haible  <bruno@clisp.org>
12164
12165         fchownat: Replace also when chown has the trailing slash bug.
12166         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
12167         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
12168         introduced on 2010-04-10.
12169         Reported by Rainer Tammer.
12170
12171 2010-07-31  Bruno Haible  <bruno@clisp.org>
12172
12173         linkat: Work around AIX 7.1 bug.
12174         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
12175         whether linkat handles trailing slash correctly. If not, replace linkat
12176         and define LINKAT_TRAILING_SLASH_BUG.
12177         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
12178         check whether (fd1,file1) points to a directory if file1 or file2 ends
12179         in a slash. Code taken from lib/link.c.
12180         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
12181         Reported by Rainer Tammer.
12182
12183 2010-07-31  Bruno Haible  <bruno@clisp.org>
12184
12185         Correctly determine whether pow is available in libc on AIX 7 with xlc.
12186         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
12187         This disables an xlc optimization that was causing wrong test results.
12188         Reported by Rainer Tammer.
12189
12190 2010-07-31  Bruno Haible  <bruno@clisp.org>
12191
12192         iconv: Work around AIX 6.1..7.1 bug.
12193         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
12194         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
12195         cross-compiling, guess no on all versions of AIX.
12196         Reported by Rainer Tammer.
12197
12198 2010-07-31  Bruno Haible  <bruno@clisp.org>
12199
12200         readlink: Relax test a bit.
12201         * tests/test-readlink.h (test_readlink): Allow different errno value
12202         when readlink is called with a file name that ends in / and refers to
12203         a file.
12204         Suggested by Eric Blake.
12205         Reported by Rainer Tammer.
12206
12207 2010-07-31  Bruno Haible  <bruno@clisp.org>
12208
12209         copysign: Does not require -lm on glibc systems.
12210         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
12211         gl_COMMON_DOUBLE_MATHFUNC.
12212         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
12213
12214 2010-07-31  Bruno Haible  <bruno@clisp.org>
12215
12216         duplocale: Work around AIX 7.1 bug.
12217         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
12218         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
12219         * lib/duplocale.c (rpl_duplocale): Update comment.
12220         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
12221         Reported by Rainer Tammer.
12222
12223 2010-07-30  Bruno Haible  <bruno@clisp.org>
12224
12225         dirfd: Avoid link error on AIX 7.1.
12226         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
12227         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
12228         exist, set REPLACE_DIRFD.
12229         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
12230         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
12231         * doc/posix-functions/dirfd.texi: Update.
12232         Reported by Rainer Tammer.
12233
12234 2010-07-30  Eric Blake  <eblake@redhat.com>
12235
12236         strtod: next round of AIX fixes
12237         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
12238         exponent.
12239         * tests/test-strtod.c (main): Enhance tests.
12240         * doc/posix-functions/strtod.texi (strtod): Document next bug.
12241         Reported by Rainer Tammer.
12242
12243         futimens: fix configure check
12244         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
12245         Reported by Bruno Haible.
12246
12247 2010-07-30  Bruno Haible  <bruno@clisp.org>
12248
12249         getline: Update regarding AIX.
12250         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
12251         Reported by Rainer Tammer.
12252
12253 2010-07-30  Bruno Haible  <bruno@clisp.org>
12254
12255         wcwidth: Drop replacement on AIX 7.
12256         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
12257         AIX 7.
12258         Reported by Rainer Tammer.
12259
12260 2010-07-30  Bruno Haible  <bruno@clisp.org>
12261
12262         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
12263         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
12264         a 'char *'.
12265         Reported by Rainer Tammer.
12266
12267 2010-07-30  Bruno Haible  <bruno@clisp.org>
12268
12269         unlink: Update regarding AIX.
12270         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
12271         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
12272         Reported by Rainer Tammer.
12273
12274 2010-07-30  Bruno Haible  <bruno@clisp.org>
12275
12276         symlink: Update regarding AIX.
12277         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
12278         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
12279         Reported by Rainer Tammer.
12280
12281 2010-07-30  Bruno Haible  <bruno@clisp.org>
12282
12283         strndup: Update regarding AIX.
12284         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
12285         AIX 7.
12286         Reported by Rainer Tammer.
12287
12288 2010-07-30  Bruno Haible  <bruno@clisp.org>
12289
12290         stat: Update regarding AIX.
12291         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
12292         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
12293         Reported by Rainer Tammer.
12294
12295 2010-07-30  Bruno Haible  <bruno@clisp.org>
12296
12297         truncl: Fix autoconf test.
12298         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
12299         whether truncl works.
12300         Reported by Rainer Tammer.
12301
12302 2010-07-30  Bruno Haible  <bruno@clisp.org>
12303
12304         round: Update regarding AIX.
12305         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
12306         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
12307         Reported by Rainer Tammer.
12308
12309 2010-07-30  Bruno Haible  <bruno@clisp.org>
12310
12311         rename: Update regarding AIX.
12312         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
12313         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
12314         Reported by Rainer Tammer.
12315
12316 2010-07-30  Bruno Haible  <bruno@clisp.org>
12317
12318         printf.m4: Update regarding AIX.
12319         * m4/printf.m4: Update comments regarding AIX.
12320         Reported by Rainer Tammer.
12321
12322 2010-07-30  Bruno Haible  <bruno@clisp.org>
12323
12324         iconv: Update regarding AIX.
12325         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
12326         AIX 7.
12327         Reported by Rainer Tammer.
12328
12329 2010-07-30  Bruno Haible  <bruno@clisp.org>
12330
12331         getopt: Update regarding AIX.
12332         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
12333         no on AIX.
12334         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
12335         Reported by Rainer Tammer.
12336
12337 2010-07-30  Bruno Haible  <bruno@clisp.org>
12338
12339         ldexpl; Update regarding AIX.
12340         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
12341         on AIX 7.
12342         Reported by Rainer Tammer.
12343
12344 2010-07-30  Bruno Haible  <bruno@clisp.org>
12345
12346         frexpl: Update regarding AIX.
12347         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
12348         on AIX 7.
12349         Reported by Rainer Tammer.
12350
12351 2010-07-30  Bruno Haible  <bruno@clisp.org>
12352
12353         open, fopen: Update regarding AIX.
12354         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
12355         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
12356         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
12357         * doc/posix-functions/fopen.texi: Likewise.
12358         Reported by Rainer Tammer.
12359
12360 2010-07-30  Bruno Haible  <bruno@clisp.org>
12361
12362         chown: Update doc regarding AIX.
12363         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
12364         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
12365         Reported by Rainer Tammer.
12366
12367 2010-07-30  Eric Blake  <eblake@redhat.com>
12368
12369         strtod: fix bug in replacement function on AIX
12370         * lib/strtod.c (strtod): Special case broken "0x" parse in
12371         underlying strtod.
12372         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
12373         * doc/posix-functions/strtod.texi (strtod): Likewise.
12374         Reported by Rainer Tammer.
12375
12376 2010-07-30  Bruno Haible  <bruno@clisp.org>
12377
12378         mbrlen: Fix cross-compilation guess for AIX.
12379         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
12380         guess. Leftover from 2008-12-22.
12381
12382 2010-07-30  Bruno Haible  <bruno@clisp.org>
12383
12384         mbrtowc: Fix cross-compilation guess for AIX.
12385         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
12386         guess. Leftover from 2008-12-21.
12387
12388 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
12389
12390         init.sh: work around trap limitation of some shells
12391         * tests/init.sh (setup_): Move exit trap outside of shell function.
12392
12393 2010-07-29  Eric Blake  <eblake@redhat.com>
12394
12395         strtod: aid debugging
12396         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
12397         understanding why strtod is rejected.
12398
12399 2010-07-28  Bruno Haible  <bruno@clisp.org>
12400
12401         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
12402         * lib/unistr/u8-chr.c: Include <string.h>.
12403         * tests/unistr/test-u8-chr.c: Likewise.
12404         * tests/unistr/test-u16-chr.c: Likewise.
12405         * tests/unistr/test-u32-chr.c: Likewise.
12406         * tests/unistr/test-u8-strchr.c: Likewise.
12407         * tests/unistr/test-u16-strchr.c: Likewise.
12408         * tests/unistr/test-u32-strchr.c: Likewise.
12409         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
12410         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
12411         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
12412         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
12413
12414 2010-07-28  Bruno Haible  <bruno@clisp.org>
12415
12416         Use spaces for indentation, not tabs.
12417         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
12418
12419 2010-07-27  Bruno Haible  <bruno@clisp.org>
12420
12421         mbspcasecmp: Fix function specification.
12422         * lib/string.in.h (mbspcasecmp): Fix specification comment.
12423         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
12424         Reported by Eric Blake <eblake@redhat.com>.
12425
12426 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
12427
12428         timespec: use cast and not conditional, as truncation isn't possible
12429         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
12430         instead of a conditional.  Comment about the situation in more detail.
12431         This undoes most of the 2009-10-29 patch.
12432
12433 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
12434
12435         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
12436         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
12437         * lib/unistr/u8-strchr.c: Likewise.
12438         * modules/unistr/u8-chr: Depend on memchr.
12439
12440         unistr/u*-strchr: add tests
12441         * modules/unistr/u8-strchr-tests: New file.
12442         * modules/unistr/u16-strchr-tests: New file.
12443         * modules/unistr/u32-strchr-tests: New file.
12444         * tests/unistr/test-strchr.h: New file.
12445         * tests/unistr/test-u8-strchr.c: New file.
12446         * tests/unistr/test-u16-strchr.c: New file.
12447         * tests/unistr/test-u32-strchr.c: New file.
12448
12449         unistr/u*-chr: test multibyte sequences more
12450         * tests/unistr/test-chr.h: Do complete testing of the characters in the
12451         test vector.
12452         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
12453         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
12454         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
12455
12456         unistr/u*-chr: test multibyte sequences
12457         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
12458
12459         unistr/u*-chr: prepare for multibyte tests
12460         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
12461         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
12462         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
12463         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
12464         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
12465         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
12466
12467 2010-07-18  Bruno Haible  <bruno@clisp.org>
12468
12469         unistr/u8-strchr: Optimize non-ASCII argument case.
12470         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
12471         because the first byte often matches anyway.
12472         Reported by Pádraig Brady <P@draigbrady.com>.
12473
12474 2010-07-15  Karl Berry  <karl@gnu.org>
12475
12476         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
12477
12478 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
12479
12480         getcwd: on Solaris, work better if ancestors are inaccessible
12481         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
12482         buffer and size, try again with a large buffer.  This works better
12483         on Solaris, since its getcwd succeeds even if the path to the root
12484         is inaccessible, and this is helpful in common cases such as .zfs
12485         hidden directories.  Problem reported by J Chapman Flack in
12486         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
12487         Use system getcwd if it's declared, not merely if it's partly
12488         working; use the partly-working test only to avoid needless effort
12489         if the system getcwd fails.
12490         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
12491         comment that was already obsolete and is now even more obsolete.
12492         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
12493         now might call strdup.
12494
12495 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
12496
12497         pthread: Add enough so that coreutils/src/sort.c compiles.
12498         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
12499         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
12500         gnulib. Include <sched.h> and <time.h>, as per POSIX.
12501         Include <sys/types.h>, in case it defines pthread_t.
12502         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
12503         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
12504         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
12505         (pthread_rwlockattr_t, pthread_spinlock_t):
12506         New typedefs, if HAVE_PTHREAD_T is not defined.
12507         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
12508         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
12509         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
12510         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
12511         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
12512         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
12513         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
12514         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
12515         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
12516         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
12517         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
12518         New macros.
12519         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
12520         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
12521         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
12522         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
12523         (pthread_spin_unlock): New dummy functions.
12524         (pthread_create): Return EAGAIN; don't set errno.
12525         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
12526         require AC_C_INLINE.
12527         * modules/pthread (Depends-on): Add sched, time.
12528         (pthread.h): Use AM_V_GEN.
12529
12530 2010-07-13  Bruno Haible  <bruno@clisp.org>
12531
12532         striconveh: Don't malloc memory if the result buffer is sufficient.
12533         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
12534         buffer if its size is sufficient.
12535         Reported by Ludovic Courtès <ludo@gnu.org>.
12536
12537 2010-07-13  Bruno Haible  <bruno@clisp.org>
12538
12539         strtod: Add safety check.
12540         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
12541
12542 2010-07-12  Bruno Haible  <bruno@clisp.org>
12543
12544         Unify tests that set gl_cv_func_ldexpl_no_libm.
12545         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
12546         gl_FUNC_LDEXPL.
12547         (gl_FUNC_LDEXPL): Invoke it.
12548         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
12549
12550 2010-07-12  Bruno Haible  <bruno@clisp.org>
12551
12552         Unify tests that set gl_cv_func_ldexp_no_libm.
12553         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
12554         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
12555         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
12556         (configure.ac): Simply invoke gl_FUNC_LDEXP.
12557         * modules/strtod (Files): Add m4/ldexp.m4.
12558
12559 2010-07-12  Bruno Haible  <bruno@clisp.org>
12560
12561         Unify tests that set gl_cv_func_frexpl_no_libm.
12562         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
12563         gl_FUNC_FREXPL_NO_LIBM.
12564         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
12565         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
12566
12567 2010-07-12  Bruno Haible  <bruno@clisp.org>
12568
12569         Unify tests that set gl_cv_func_frexp_no_libm.
12570         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
12571         gl_FUNC_FREXP_NO_LIBM.
12572         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
12573         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
12574
12575 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
12576
12577         memcoll: clarify sizes versus lengths, document better, and tweak perf
12578         * lib/memcoll.c (strcoll_loop, memcoll0):
12579         Improve quality of descriptive comments.  Name variables
12580         consistently as to whether they are lengths (which do not include
12581         terminating null) versus sizes (which do).
12582         * lib/xmemcoll.c (xmemcoll0): Likewise.
12583         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
12584         returned when s1size == 0; this is easier to compile and saves
12585         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
12586
12587 2010-07-12  Bruno Haible  <bruno@clisp.org>
12588
12589         Tests for module '_Exit'.
12590         * modules/_Exit-tests: New file.
12591         * tests/test-_Exit.sh: New file.
12592         * tests/test-_Exit.c: New file.
12593
12594         New module '_Exit'.
12595         * lib/stdlib.in.h (__attribute__): New macro.
12596         (_Exit): New declaration.
12597         * lib/_Exit.c: New file.
12598         * m4/_Exit.m4: New file.
12599         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
12600         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
12601         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
12602         * modules/_Exit: New file.
12603         * tests/test-stdlib-c++.cc (_Exit): Check signature.
12604         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
12605
12606 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
12607
12608         strtod: make it more-accurate typically, and don't require libm
12609         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
12610         Include limits.h.  Don't include string.h.
12611         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
12612         (locale_isspace): New function, so that no casts are needed to
12613         check whether *s is a space.
12614         (ldexp): Provide an unused dummy if not available.
12615         (scale_radix_exp, parse_number, underlying_strtod): New functions.
12616         (strtod): Use them.  This implementation prefers to use the
12617         underlying strtod if available, falling back on our own code
12618         only to fix known bugs.  This is more likely to produce an
12619         accurate result.  Also, it avoids the use of libm functions.
12620         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
12621         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
12622         was absent, but it caused a test failure with coreutils.
12623         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
12624         with libm.
12625         * modules/strtod (Makefile.am, Link): libm is no longer needed.
12626         * modules/strtod-tests (Makefile.am): Likewise.
12627
12628 2010-07-11  Pádraig Brady  <P@draigBrady.com>
12629             Bruno Haible  <bruno@clisp.org>
12630
12631         unistr/u8-strchr: Optimize ASCII argument case.
12632         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
12633
12634 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
12635
12636         (x)memcoll: minor tweaks
12637         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
12638         is after the type that it qualifies.
12639         (memcoll0): Likewise.
12640         * lib/memcoll.h (memcoll0): Likewise.
12641         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
12642         * lib/xmemcoll.h (xmemcoll0): Likewise.
12643         * lib/memcoll.c (memcoll0): Correct the comment.  This function
12644         differs from memcoll in that the NUL byte is part of the argument.
12645         Omit the abort-checks, as performance is a real issue here.  Plus,
12646         the checks were wrong anyway (an off-by-one error).  Omit local
12647         variable 'diff', as it's a bit clearer that way.
12648         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
12649         no longer needed.
12650
12651 2010-07-08  Chen Guo <chenguo4@yahoo.com>
12652
12653         (x)memcoll: speedup when input is known to be NUL delimited
12654         * lib/memcoll.c: Include stdlib.
12655         (memcoll0): New function.
12656         (strcoll_loop): New function, refactored for use in both memcoll
12657         and memcoll0.
12658         * lib/memcoll.h (memcoll0): Add prototype.
12659         * lib/xmemcoll.c (xmemcoll0): New function.
12660         (collate_error): New function, refactored for use in both xmemcoll
12661         and xmemcoll0.
12662         * lib/xmemcoll.h (xmemcoll0): Add prototype.
12663         * m4/memcoll.m4: add inline invocation.
12664
12665 2010-07-06  Pádraig Brady  <P@draigBrady.com>
12666
12667         * build-aux/bootstrap: Remove any local translations
12668         from the translation project synchronization directory,
12669         so that local only translations are not distributed.
12670
12671 2010-07-04  Bruno Haible  <bruno@clisp.org>
12672
12673         fsusage: Clarify which code applies to which platforms.
12674         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
12675         platform.
12676         * lib/fsusage.c (get_fs_usage): Likewise.
12677
12678 2010-07-04  Bruno Haible  <bruno@clisp.org>
12679
12680         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
12681         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
12682         Reported by Martin Lambers <marlam@marlam.de>.
12683
12684 2010-07-04  Jim Meyering  <meyering@redhat.com>
12685
12686         hash: once again explicitly disallow insertion of NULL
12687         * lib/hash.c (hash_insert0): Reinstate just-removed test:
12688         inserting a NULL pointer cannot work with these functions.
12689         Add a comment with details.
12690         This reverts part of the 2010-07-01 commit, 5bef1a35
12691         "hash: extend module to deal with non-pointer keys".
12692
12693 2010-07-01  Bruno Haible  <bruno@clisp.org>
12694
12695         stdbool: Update doc.
12696         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
12697         Info from Christian Weisgerber <naddy@mips.inka.de>.
12698
12699 2010-07-01  Jim Meyering  <meyering@redhat.com>
12700
12701         hash: extend module to deal with non-pointer keys
12702         * lib/hash.c (hash_insert0): New interface, much like hash_insert
12703         but that allows insertion of non-pointer entries.
12704         Do not disallow an ENTRY value of NULL.
12705         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
12706         * lib/hash.h (hash_insert0): Declare.
12707
12708 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
12709
12710         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
12711         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
12712         not present (i.e. with autoconf 2.59 and when using gettextize, not
12713         gnulib), require AC_GNU_SOURCE instead.
12714
12715 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
12716
12717         idpriv-drop: Fix tests.
12718         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
12719         not to the test-idpriv-droptemp program.
12720
12721 2010-06-29  Bruno Haible  <bruno@clisp.org>
12722
12723         string: Fix syntax error with g++ 2.96.
12724         * lib/string.in.h (__pure__): Remove definition.
12725         (_GL_ATTRIBUTE_PURE): New macro.
12726         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
12727         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
12728         Reported by Christian Weisgerber <naddy@mips.inka.de>.
12729
12730 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
12731
12732         unitypes: Fix bug introduced on 2010-05-18.
12733         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
12734
12735 2010-06-22  Eric Blake  <eblake@redhat.com>
12736
12737         memmem: slight optimization
12738         * lib/str-two-way.h (critical_factorization): Update comments.
12739         Reduce work during factorization phase.
12740         Reported by Carlos Bueno <carlos@bueno.org>.
12741
12742 2010-06-21  Bruno Haible  <bruno@clisp.org>
12743
12744         Fix HAVE_CALLOC_POSIX misnomer.
12745         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
12746         !HAVE_CALLOC_POSIX.
12747         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
12748         HAVE_CALLOC_POSIX.
12749         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
12750         instead of HAVE_CALLOC_POSIX.
12751         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
12752         HAVE_CALLOC_POSIX.
12753
12754         Use modern idiom for calloc() replacement.
12755         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
12756         AC_FUNC_CALLOC.
12757         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
12758         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
12759         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
12760         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
12761         (gl_REPLACE_CALLOC): New macro.
12762
12763 2010-06-21  Bruno Haible  <bruno@clisp.org>
12764
12765         Fix HAVE_REALLOC_POSIX misnomer.
12766         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
12767         !HAVE_REALLOC_POSIX.
12768         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
12769         HAVE_REALLOC_POSIX.
12770         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
12771         instead of HAVE_REALLOC_POSIX.
12772         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
12773         HAVE_REALLOC_POSIX.
12774
12775         Use modern idiom for realloc() replacement.
12776         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
12777         AC_FUNC_REALLOC.
12778         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
12779         Autoconf's AC_FUNC_REALLOC.
12780         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
12781         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
12782         (gl_REPLACE_REALLOC): New macro.
12783         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
12784
12785 2010-06-21  Bruno Haible  <bruno@clisp.org>
12786
12787         Fix HAVE_MALLOC_POSIX misnomer.
12788         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
12789         !HAVE_MALLOC_POSIX.
12790         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
12791         HAVE_MALLOC_POSIX.
12792         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
12793         instead of HAVE_MALLOC_POSIX.
12794         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
12795         HAVE_MALLOC_POSIX.
12796
12797         Use modern idiom for malloc() replacement.
12798         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
12799         AC_FUNC_MALLOC.
12800         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
12801         Autoconf's AC_FUNC_MALLOC.
12802         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
12803         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
12804         (gl_REPLACE_MALLOC): New macro.
12805         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
12806
12807 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
12808
12809         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
12810         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
12811         This macro takes 3 arguments, not 4.
12812
12813 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
12814
12815         ipv6: fix detection under mingw
12816         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
12817         in6_addr.
12818
12819 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
12820
12821         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
12822         that strtod() works when cross-compiling to a glibc version known
12823         to work.
12824
12825 2010-06-15  Bruno Haible  <bruno@clisp.org>
12826
12827         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
12828
12829 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
12830
12831         select: Correct timeout.
12832         * lib/select.c (rpl_select): Compute wait_timeout correctly.
12833
12834 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
12835
12836         git-version-gen: init shell var to avoid env var influence
12837         * build-aux/git-version-gen (v): Init shell var to empty.
12838
12839 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
12840
12841         priv-set: Don't assume that priv.h exists merely because getppriv does.
12842         See Jan Andersen's bug report about AIX 5L in
12843         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
12844         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
12845         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
12846         * lib/priv-set.h: Likewise.
12847         * tests/test-priv-set.c: Likewise.
12848
12849 2010-06-13  Bruno Haible  <bruno@clisp.org>
12850
12851         relocatable: Make it easier to test whether to install wrappers.
12852         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
12853         RELOCATABLE_VIA_WRAPPER.
12854
12855 2010-06-13  Bruno Haible  <bruno@clisp.org>
12856
12857         gnulib-tool: Display specified modules and dependencies differently.
12858         * gnulib-tool (func_show_module_list): New function.
12859         (func_import, func_create_testdir): Invoke it.
12860         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
12861
12862 2010-06-13  Bruno Haible  <bruno@clisp.org>
12863
12864         gnulib-tool: Align code of func_import and func_create_testdir.
12865         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
12866         specified_modules.
12867
12868 2010-06-12  Jim Meyering  <meyering@redhat.com>
12869
12870         test-inttostr: avoid spurious failure on Solaris 9
12871         * tests/test-inttostr.c (main): Skip the test when snprintf fails
12872         to accept "%ju".  Reported by Bruno Haible.
12873
12874 2010-06-11  Jim Meyering  <meyering@redhat.com>
12875
12876         test-sys_socket: mark variables as used more readably
12877         * tests/test-sys_socket.c (main): Mark otherwise unused variables
12878         as "used" explicitly via (void) statement casts.  This is more
12879         readable than using them in an artificial return expression.
12880         Suggestion from Bruno Haible.
12881
12882 2010-06-11  Bruno Haible  <bruno@clisp.org>
12883
12884         Avoid some more warnings from "gcc -Wwrite-strings".
12885         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
12886         to 'const char *'.
12887         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
12888         * tests/test-c-strcasestr.c (main): Likewise.
12889         * tests/test-mbscasestr1.c (main): Likewise.
12890         * tests/test-mbscasestr2.c (main): Likewise.
12891         * tests/test-memmem.c (main): Likewise.
12892         * tests/test-strstr.c (main): Likewise.
12893         * tests/test-strcasestr.c (main): Likewise.
12894
12895 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12896
12897         init.sh: change framework_failure_ to fail with status 99, not 1
12898         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
12899         automake's parallel-tests rule that this is an unexpected failure,
12900         even if the test is listed in XFAIL_TESTS.
12901
12902 2010-06-11  Jim Meyering  <meyering@redhat.com>
12903
12904         test-inttostr: avoid warnings about 4-6KB literal strings
12905         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
12906         Include "macros.h", for its definition of ASSERT.
12907         (CK): s/assert/ASSERT/
12908         * modules/inttostr-tests (Files): Add macros.h.
12909
12910         init.sh: don't use $ME_ or skip_ before they are defined
12911         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
12912         their first uses.  Also hoist their companions: warn_, fail_,
12913         framework_failure_, $stderr_fileno.  Prompted by a patch from
12914         Stefano Lattarini.
12915
12916         test-sys_socket: avoid set-but-not-used warnings from gcc
12917         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
12918         avoid warning about set-but-not-used variables.
12919
12920         test-xvasprintf: avoid 'const' discard warnings
12921         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
12922         "const" when assigning from literal strings.
12923         (test_xasprintf): Add "void" in function argument list to placate
12924         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
12925
12926         tests: avoid compilation warnings in argmatch and exclude tests...
12927         in packages that define ARGMATCH_DIE_DECL, like coreutils.
12928         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
12929         Since it always exits, declare with the "noreturn" attribute.
12930         * tests/test-argmatch.c: Likewise.
12931
12932         tests: avoid 'const' discard warnings in mbsstr tests
12933         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
12934         * tests/test-mbsstr2.c (main): Likewise.
12935
12936         test-verify: avoid warning from gcc's -Wmissing-declarations
12937         * tests/test-verify.c (function): Declare to be static.
12938
12939         test-inttostr.c: include <string.h> for use of strcmp
12940         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
12941
12942         test-linkat: avoid failed assertion on "other" architectures
12943         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
12944         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
12945         sparc: https://bugs.launchpad.net/bugs/591968
12946
12947 2010-06-11  Jim Meyering  <meyering@redhat.com>
12948
12949         printf.m4: avoid autoconf's "Expanded Before Required" warning
12950         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
12951         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
12952         autoconf warning.
12953
12954 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
12955
12956         Replacement header templates are now named with ".in", not "_".
12957         * doc/gnulib-intro.texi: Correct.
12958
12959 2010-06-10  Jim Meyering  <meyering@redhat.com>
12960
12961         inttostr-tests: depend on snprintf, not snprintf-posix
12962         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
12963         snprintf-posix, to avoid this aclocal failure:
12964           missing file gnulib-tests/vasnprintf.c
12965           configure.ac:45: error: expected source file, required through \
12966           AC_LIBSOURCES, not found
12967
12968 2010-06-10  Jim Meyering  <meyering@redhat.com>
12969
12970         inttostr: add a new function, inttostr, and tests
12971         The namesake function was not available.  The existence of the
12972         template file, inttostr.c makes its addition nontrivial.
12973         * lib/anytostr.c: Rename from inttostr.c.
12974         (anytostr): Rename from inttostr.
12975         * lib/inttostr.c: New file.
12976         * modules/inttostr (Files): Add anytostr.c.
12977         (Makefile.am): Set lib_SOURCES instead of ...
12978         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
12979         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
12980         * lib/offtostr.c: Likewise.
12981         * lib/uinttostr.c: Likewise.
12982         * lib/umaxtostr.c: Likewise.
12983         * modules/inttostr-tests: New file.
12984         * tests/test-inttostr.c: New file.  Test these functions.
12985
12986 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
12987             Bruno Haible  <bruno@clisp.org>
12988
12989         Add "Extending Gnulib" chapter to manual.
12990         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
12991         chapter.
12992         (Extending Gnulib): New chapter.
12993         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
12994         chapter.
12995
12996 2010-06-09  Bruno Haible  <bruno@clisp.org>
12997
12998         Avoid relocwrapper link errors due to gnulib replacement functions.
12999         * lib/areadlink.c: Use the system's malloc, realloc functions.
13000         (areadlink): Set errno to ENOMEM explicitly.
13001         * modules/areadlink (Depends-on): Remove malloc-posix.
13002         Reported by Ben Pfaff <blp@cs.stanford.edu>.
13003
13004 2010-06-09  Bruno Haible  <bruno@clisp.org>
13005
13006         Avoid relocwrapper link errors due to gnulib replacement functions.
13007         * lib/canonicalize-lgpl.c: Use the system's malloc function.
13008         * lib/malloca.c: Likewise.
13009         * lib/relocatable.c: Likewise.
13010         * lib/progreloc.c: Use the system's malloc, sprintf functions.
13011         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
13012         * lib/setenv.c: Use the system's malloc, realloc functions.
13013         * lib/strerror.c: Use the system's sprintf function.
13014         Reported by Ben Pfaff <blp@cs.stanford.edu>.
13015
13016 2010-06-04  Bruno Haible  <bruno@clisp.org>
13017
13018         Prefer documented low-level autoconf macro names.
13019         * m4/lib-link.m4: Use m4_translit instead of translit.
13020         * m4/environ.m4: Likewise.
13021         * m4/mathfunc.m4: Likewise.
13022         * m4/onceonly.m4: Likewise.
13023         * m4/stdint.m4: Likewise.
13024         Suggested by Eric Blake.
13025
13026 2010-06-04  Martin Lambers  <marlam@marlam.de>
13027             Bruno Haible  <bruno@clisp.org>
13028
13029         havelib: Allow library names with '+' characters.
13030         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
13031         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
13032
13033 2010-06-09  Bruno Haible  <bruno@clisp.org>
13034
13035         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
13036         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
13037         realloc failed.
13038
13039 2010-06-08  Peter Simons  <simons@cryp.to>
13040
13041         maint.mk: make the news-check rule more configurable
13042         * top/maint.mk (news-check-lines-spec): New variable.
13043         (news-check): Use "sed -n 1,10p" in place of "head".
13044
13045 2010-06-07  Jim Meyering  <meyering@redhat.com>
13046
13047         do-release-commit-and-tag: fix typo in --help
13048         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
13049
13050         regex: avoid new dead-code warning with gcc-4.6.0
13051         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
13052         if-block containing a while-loop.  It's been unused for at least
13053         5 years.
13054
13055 2010-06-05  Bruno Haible  <bruno@clisp.org>
13056
13057         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
13058         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
13059
13060 2010-06-04  Bruno Haible  <bruno@clisp.org>
13061
13062         Update to GNU gettext 0.18.1.
13063         * modules/gettext (configure.ac): Require gettext infrastructure from
13064         version 0.18.1.
13065
13066 2010-06-03  Bruno Haible  <bruno@clisp.org>
13067
13068         Don't use AC_LIBOBJ with file names in subdirectories.
13069         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
13070         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
13071         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
13072         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
13073         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
13074         gl_LIBUNISTRING_LIBSOURCE.
13075         (Makefile.am): Augment lib_SOURCES here, conditionally.
13076         * NEWS: Drop requirement for Automake option 'subdir-objects'.
13077
13078 2010-06-03  Bruno Haible  <bruno@clisp.org>
13079
13080         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
13081         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
13082         expansion does not end with a newline.
13083         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
13084         unnecessary newline.
13085
13086 2010-06-03  Bruno Haible  <bruno@clisp.org>
13087
13088         Reduce dependencies.
13089         * tests/test-quotearg.h: New file, extracted from
13090         tests/test-quotearg.c.
13091         * tests/test-quotearg-simple.c: New file, extracted from
13092         tests/test-quotearg.c.
13093         * tests/test-quotearg.c: Don't include <ctype.h>.
13094         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
13095         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
13096         use_quote_double_quotes, use_quotearg_colon): Moved to
13097         tests/test-quotearg.h.
13098         (results_g, flag_results, custom_quotes, custom_results): Moved
13099         to tests/test-quotearg-simple.c.
13100         (main): Moved the part that does not depend on gettext to
13101         tests/test-quotearg-simple.c. Return 77 if the test cannot be
13102         performed.
13103         * modules/quotearg-simple: New file.
13104         * modules/quotearg-simple-tests: New file.
13105         * modules/quotearg (Depends-on): Add quotearg-simple.
13106         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
13107         (Files): Add tests/test-quotearg.h.
13108         Reported by Paolo Bonzini.
13109
13110 2010-06-03  Bruno Haible  <bruno@clisp.org>
13111
13112         Reduce dependencies.
13113         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
13114
13115 2010-06-03  Bruno Haible  <bruno@clisp.org>
13116
13117         time: Undefine more broken macros.
13118         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
13119         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
13120         Reported by Eric Blake.
13121
13122 2010-06-03  Bruno Haible  <bruno@clisp.org>
13123
13124         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
13125         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
13126         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
13127         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
13128         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
13129         Reported by Ludovic Courtès <ludo@gnu.org>.
13130
13131 2010-06-02  Eric Blake  <eblake@redhat.com>
13132
13133         time: work with mingw + pthreads-win32 library
13134         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
13135         if timespec is defined only in pthread.h.
13136         * modules/time (Makefile.am): Substitute it.
13137         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
13138         <pthread.h>, when needed.
13139         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
13140         from the library.
13141
13142 2010-05-31  Bruno Haible  <bruno@clisp.org>
13143
13144         Avoid expanding two macros in the wrong order.
13145         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
13146         gl_LIBUNISTRING if it is defined.
13147         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
13148         autoconf >= 2.64.
13149         Reported by Ludovic Courtès <ludo@gnu.org>.
13150
13151 2010-05-27  Jim Meyering  <meyering@redhat.com>
13152
13153         maint.mk: also prohibit "#undef" of always-defined symbols
13154         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
13155         Allow more than one space before the symbol name.
13156         (sc_prohibit_always-defined_macros): Use grep's -E, now that
13157         the regexp uses alternation.
13158
13159 2010-05-26  Eric Blake  <eblake@redhat.com>
13160
13161         maint.mk: avoid echo -e
13162         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
13163         Convert all uses of echo -* to printf.
13164         Reported by Matthias Bolte.
13165
13166 2010-05-25  Bruno Haible  <bruno@clisp.org>
13167
13168         Update to GNU gettext 0.18, part 2.
13169         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
13170         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
13171
13172 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13173
13174         Add missing include in test-pwrite.c.
13175         * tests/test-pwrite.c: Include string.h, for strcmp.
13176
13177 2010-05-24  Bruno Haible  <bruno@clisp.org>
13178
13179         * NEWS: Mention requirement for Automake option 'subdir-objects'.
13180
13181 2010-05-24  Bruno Haible  <bruno@clisp.org>
13182
13183         Don't use conversion with transliteration in u{8,16,32}_strcoll.
13184         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
13185         iconveh_error argument.
13186         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
13187         U_STRCONV_TO_LOCALE.
13188         * lib/unistr/u16-strcoll.c: Likewise.
13189         * lib/unistr/u32-strcoll.c: Likewise.
13190         * modules/unistr/u8-strcoll (Depends-on): Add
13191         uniconv/u8-strconv-to-enc, localcharset. Remove
13192         uniconv/u8-strconv-to-locale.
13193         (configure.ac): Bump version number.
13194         * modules/unistr/u16-strcoll (Depends-on): Add
13195         uniconv/u16-strconv-to-enc, localcharset. Remove
13196         uniconv/u16-strconv-to-locale.
13197         (configure.ac): Bump version number.
13198         * modules/unistr/u32-strcoll (Depends-on): Add
13199         uniconv/u32-strconv-to-enc, localcharset. Remove
13200         uniconv/u32-strconv-to-locale.
13201         (configure.ac): Bump version number.
13202
13203 2010-05-24  Bruno Haible  <bruno@clisp.org>
13204
13205         Avoid a test failure on NetBSD 5.0.
13206         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
13207         an iconv() bug.
13208
13209 2010-05-24  Bruno Haible  <bruno@clisp.org>
13210
13211         Adjust #include directive style.
13212         * modules/regex (Includes): Recommend to write <regex.h>.
13213
13214 2010-05-24  Bruno Haible  <bruno@clisp.org>
13215
13216         regex: Don't require alloca.
13217         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
13218         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
13219         only inside if (0).
13220
13221 2010-05-23  Jim Meyering  <meyering@redhat.com>
13222
13223         test-renameat.c: include <sys/stat.h>
13224         * tests/test-renameat.c: Include <sys/stat.h>; required for
13225         definition of S_IS* macros.
13226
13227 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
13228
13229         Update maintainer documentation for 'relocatable-prog' module.
13230         * doc/relocatable-maint.texi: Update.
13231         Comments by Bruno Haible.
13232
13233 2010-05-23  Bruno Haible  <bruno@clisp.org>
13234
13235         git-merge-changelog: Enable --split-merged-entry by default.
13236         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
13237         (usage): Don't mention this option any more.
13238         Reported by Ralf Wildenhues.
13239
13240 2010-05-23  Jim Meyering  <meyering@redhat.com>
13241
13242         test-pwrite: do not leave behind a test file named "out"
13243         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
13244         The trivial-looking use of init.sh is really necessary.
13245         It ensures that the temporary file, "out", is created in
13246         a temporary directory, and removed upon termination.
13247         * tests/test-pwrite.sh: Re-add file.
13248         * modules/pwrite-tests: Reference it.
13249
13250 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13251
13252         Fix output redirection buglet in init.sh.
13253         * tests/init.sh: Fix redirection of stderr.
13254
13255 2010-05-20  Simon Josefsson  <simon@josefsson.org>
13256
13257         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
13258
13259 2010-05-17  Simon Josefsson  <simon@josefsson.org>
13260
13261         * modules/valgrind-tests: New file.
13262         * m4/valgrind-tests.m4: New file.
13263         * doc/valgrind-tests.texi: New file.
13264         * doc/gnulib.texi (Running self-tests under valgrind): New
13265         section.
13266
13267 2010-05-19  Bruno Haible  <bruno@clisp.org>
13268
13269         Clean up dead code in recent commit.
13270         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
13271         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
13272         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
13273         Suggested by Paolo Bonzini.
13274
13275 2010-05-19  Bruno Haible  <bruno@clisp.org>
13276
13277         Avoid valgrind error reports from libunistring.
13278         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
13279         * modules/libunistring (Files): Add it.
13280         * modules/libunistring-optional (Files): Likewise.
13281
13282 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
13283             Bruno Haible  <bruno@clisp.org>
13284
13285         New module 'libunistring-optional'.
13286         * modules/libunistring-optional: New file.
13287         * m4/libunistring-base.m4: New file.
13288         * m4/libunistring-optional.m4: New file.
13289         * lib/unicase.in.h: Renamed from lib/unicase.h.
13290         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
13291         * lib/unictype.in.h: Renamed from lib/unictype.h.
13292         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
13293         * lib/uniname.in.h: Renamed from lib/uniname.h.
13294         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
13295         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
13296         * lib/unistr.in.h: Renamed from lib/unistr.h.
13297         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
13298         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
13299         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
13300         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
13301         gl_LIBUNISTRING. If the library was found, determine the installed
13302         version and set LIBUNISTRING_VERSION.
13303         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
13304         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
13305         handle a configuration option --with-included-libunistring.
13306         * modules/libunistring (Files): Add m4/absolute-header.m4.
13307         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
13308         Add m4/libunistring-base.m4.
13309         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
13310         (Makefile.am): Build unicase.h from unicase.in.h.
13311         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
13312         Add m4/libunistring-base.m4.
13313         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
13314         (Makefile.am): Build uniconv.h from uniconv.in.h.
13315         * modules/unictype/base (Files): Use unictype.in.h instead of
13316         unictype.h. Add m4/libunistring-base.m4.
13317         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
13318         (Makefile.am): Build unictype.h from unictype.in.h.
13319         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
13320         Add m4/libunistring-base.m4.
13321         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
13322         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
13323         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
13324         Add m4/libunistring-base.m4.
13325         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
13326         (Makefile.am): Build uniname.h from uniname.in.h.
13327         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
13328         Add m4/libunistring-base.m4.
13329         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
13330         (Makefile.am): Build uninorm.h from uninorm.in.h.
13331         * modules/unistdio/base (Files): Use unistdio.in.h instead of
13332         unistdio.h. Add m4/libunistring-base.m4.
13333         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
13334         (Makefile.am): Build unistdio.h from unistdio.in.h.
13335         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
13336         Add m4/libunistring-base.m4.
13337         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
13338         (Makefile.am): Build unistr.h from unistr.in.h.
13339         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
13340         Add m4/libunistring-base.m4.
13341         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
13342         (Makefile.am): Build unitypes.h from unitypes.in.h.
13343         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
13344         Add m4/libunistring-base.m4.
13345         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
13346         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
13347         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
13348         uniwidth.h. Add m4/libunistring-base.m4.
13349         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
13350         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
13351         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
13352         instead of augmenting lib_SOURCES.
13353         * modules/unicase/empty-suffix-context: Likewise.
13354         * modules/unicase/locale-language: Likewise.
13355         * modules/unicase/tolower: Likewise.
13356         * modules/unicase/totitle: Likewise.
13357         * modules/unicase/toupper: Likewise.
13358         * modules/unicase/u8-casecmp: Likewise.
13359         * modules/unicase/u8-casecoll: Likewise.
13360         * modules/unicase/u8-casefold: Likewise.
13361         * modules/unicase/u8-casexfrm: Likewise.
13362         * modules/unicase/u8-ct-casefold: Likewise.
13363         * modules/unicase/u8-ct-tolower: Likewise.
13364         * modules/unicase/u8-ct-totitle: Likewise.
13365         * modules/unicase/u8-ct-toupper: Likewise.
13366         * modules/unicase/u8-is-cased: Likewise.
13367         * modules/unicase/u8-is-casefolded: Likewise.
13368         * modules/unicase/u8-is-lowercase: Likewise.
13369         * modules/unicase/u8-is-titlecase: Likewise.
13370         * modules/unicase/u8-is-uppercase: Likewise.
13371         * modules/unicase/u8-prefix-context: Likewise.
13372         * modules/unicase/u8-suffix-context: Likewise.
13373         * modules/unicase/u8-tolower: Likewise.
13374         * modules/unicase/u8-totitle: Likewise.
13375         * modules/unicase/u8-toupper: Likewise.
13376         * modules/unicase/u16-casecmp: Likewise.
13377         * modules/unicase/u16-casecoll: Likewise.
13378         * modules/unicase/u16-casefold: Likewise.
13379         * modules/unicase/u16-casexfrm: Likewise.
13380         * modules/unicase/u16-ct-casefold: Likewise.
13381         * modules/unicase/u16-ct-tolower: Likewise.
13382         * modules/unicase/u16-ct-totitle: Likewise.
13383         * modules/unicase/u16-ct-toupper: Likewise.
13384         * modules/unicase/u16-is-cased: Likewise.
13385         * modules/unicase/u16-is-casefolded: Likewise.
13386         * modules/unicase/u16-is-lowercase: Likewise.
13387         * modules/unicase/u16-is-titlecase: Likewise.
13388         * modules/unicase/u16-is-uppercase: Likewise.
13389         * modules/unicase/u16-prefix-context: Likewise.
13390         * modules/unicase/u16-suffix-context: Likewise.
13391         * modules/unicase/u16-tolower: Likewise.
13392         * modules/unicase/u16-totitle: Likewise.
13393         * modules/unicase/u16-toupper: Likewise.
13394         * modules/unicase/u32-casecmp: Likewise.
13395         * modules/unicase/u32-casecoll: Likewise.
13396         * modules/unicase/u32-casefold: Likewise.
13397         * modules/unicase/u32-casexfrm: Likewise.
13398         * modules/unicase/u32-ct-casefold: Likewise.
13399         * modules/unicase/u32-ct-tolower: Likewise.
13400         * modules/unicase/u32-ct-totitle: Likewise.
13401         * modules/unicase/u32-ct-toupper: Likewise.
13402         * modules/unicase/u32-is-cased: Likewise.
13403         * modules/unicase/u32-is-casefolded: Likewise.
13404         * modules/unicase/u32-is-lowercase: Likewise.
13405         * modules/unicase/u32-is-titlecase: Likewise.
13406         * modules/unicase/u32-is-uppercase: Likewise.
13407         * modules/unicase/u32-prefix-context: Likewise.
13408         * modules/unicase/u32-suffix-context: Likewise.
13409         * modules/unicase/u32-tolower: Likewise.
13410         * modules/unicase/u32-totitle: Likewise.
13411         * modules/unicase/u32-toupper: Likewise.
13412         * modules/unicase/ulc-casecmp: Likewise.
13413         * modules/unicase/ulc-casecoll: Likewise.
13414         * modules/unicase/ulc-casexfrm: Likewise.
13415         * modules/uniconv/u8-conv-from-enc: Likewise.
13416         * modules/uniconv/u8-conv-to-enc: Likewise.
13417         * modules/uniconv/u8-strconv-from-enc: Likewise.
13418         * modules/uniconv/u8-strconv-from-locale: Likewise.
13419         * modules/uniconv/u8-strconv-to-enc: Likewise.
13420         * modules/uniconv/u8-strconv-to-locale: Likewise.
13421         * modules/uniconv/u16-conv-from-enc: Likewise.
13422         * modules/uniconv/u16-conv-to-enc: Likewise.
13423         * modules/uniconv/u16-strconv-from-enc: Likewise.
13424         * modules/uniconv/u16-strconv-from-locale: Likewise.
13425         * modules/uniconv/u16-strconv-to-enc: Likewise.
13426         * modules/uniconv/u16-strconv-to-locale: Likewise.
13427         * modules/uniconv/u32-conv-from-enc: Likewise.
13428         * modules/uniconv/u32-conv-to-enc: Likewise.
13429         * modules/uniconv/u32-strconv-from-enc: Likewise.
13430         * modules/uniconv/u32-strconv-from-locale: Likewise.
13431         * modules/uniconv/u32-strconv-to-enc: Likewise.
13432         * modules/uniconv/u32-strconv-to-locale: Likewise.
13433         * modules/unictype/bidicategory-byname: Likewise.
13434         * modules/unictype/bidicategory-name: Likewise.
13435         * modules/unictype/bidicategory-of: Likewise.
13436         * modules/unictype/bidicategory-test: Likewise.
13437         * modules/unictype/block-list: Likewise.
13438         * modules/unictype/block-test: Likewise.
13439         * modules/unictype/category-C: Likewise.
13440         * modules/unictype/category-Cc: Likewise.
13441         * modules/unictype/category-Cf: Likewise.
13442         * modules/unictype/category-Cn: Likewise.
13443         * modules/unictype/category-Co: Likewise.
13444         * modules/unictype/category-Cs: Likewise.
13445         * modules/unictype/category-L: Likewise.
13446         * modules/unictype/category-Ll: Likewise.
13447         * modules/unictype/category-Lm: Likewise.
13448         * modules/unictype/category-Lo: Likewise.
13449         * modules/unictype/category-Lt: Likewise.
13450         * modules/unictype/category-Lu: Likewise.
13451         * modules/unictype/category-M: Likewise.
13452         * modules/unictype/category-Mc: Likewise.
13453         * modules/unictype/category-Me: Likewise.
13454         * modules/unictype/category-Mn: Likewise.
13455         * modules/unictype/category-N: Likewise.
13456         * modules/unictype/category-Nd: Likewise.
13457         * modules/unictype/category-Nl: Likewise.
13458         * modules/unictype/category-No: Likewise.
13459         * modules/unictype/category-P: Likewise.
13460         * modules/unictype/category-Pc: Likewise.
13461         * modules/unictype/category-Pd: Likewise.
13462         * modules/unictype/category-Pe: Likewise.
13463         * modules/unictype/category-Pf: Likewise.
13464         * modules/unictype/category-Pi: Likewise.
13465         * modules/unictype/category-Po: Likewise.
13466         * modules/unictype/category-Ps: Likewise.
13467         * modules/unictype/category-S: Likewise.
13468         * modules/unictype/category-Sc: Likewise.
13469         * modules/unictype/category-Sk: Likewise.
13470         * modules/unictype/category-Sm: Likewise.
13471         * modules/unictype/category-So: Likewise.
13472         * modules/unictype/category-Z: Likewise.
13473         * modules/unictype/category-Zl: Likewise.
13474         * modules/unictype/category-Zp: Likewise.
13475         * modules/unictype/category-Zs: Likewise.
13476         * modules/unictype/category-and: Likewise.
13477         * modules/unictype/category-and-not: Likewise.
13478         * modules/unictype/category-byname: Likewise.
13479         * modules/unictype/category-name: Likewise.
13480         * modules/unictype/category-none: Likewise.
13481         * modules/unictype/category-of: Likewise.
13482         * modules/unictype/category-or: Likewise.
13483         * modules/unictype/category-test: Likewise.
13484         * modules/unictype/combining-class: Likewise.
13485         * modules/unictype/ctype-alnum: Likewise.
13486         * modules/unictype/ctype-alpha: Likewise.
13487         * modules/unictype/ctype-blank: Likewise.
13488         * modules/unictype/ctype-cntrl: Likewise.
13489         * modules/unictype/ctype-digit: Likewise.
13490         * modules/unictype/ctype-graph: Likewise.
13491         * modules/unictype/ctype-lower: Likewise.
13492         * modules/unictype/ctype-print: Likewise.
13493         * modules/unictype/ctype-punct: Likewise.
13494         * modules/unictype/ctype-space: Likewise.
13495         * modules/unictype/ctype-upper: Likewise.
13496         * modules/unictype/ctype-xdigit: Likewise.
13497         * modules/unictype/decimal-digit: Likewise.
13498         * modules/unictype/digit: Likewise.
13499         * modules/unictype/mirror: Likewise.
13500         * modules/unictype/numeric: Likewise.
13501         * modules/unictype/property-alphabetic: Likewise.
13502         * modules/unictype/property-ascii-hex-digit: Likewise.
13503         * modules/unictype/property-bidi-arabic-digit: Likewise.
13504         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
13505         * modules/unictype/property-bidi-block-separator: Likewise.
13506         * modules/unictype/property-bidi-boundary-neutral: Likewise.
13507         * modules/unictype/property-bidi-common-separator: Likewise.
13508         * modules/unictype/property-bidi-control: Likewise.
13509         * modules/unictype/property-bidi-embedding-or-override: Likewise.
13510         * modules/unictype/property-bidi-eur-num-separator: Likewise.
13511         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
13512         * modules/unictype/property-bidi-european-digit: Likewise.
13513         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
13514         * modules/unictype/property-bidi-left-to-right: Likewise.
13515         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
13516         * modules/unictype/property-bidi-other-neutral: Likewise.
13517         * modules/unictype/property-bidi-pdf: Likewise.
13518         * modules/unictype/property-bidi-segment-separator: Likewise.
13519         * modules/unictype/property-bidi-whitespace: Likewise.
13520         * modules/unictype/property-byname: Likewise.
13521         * modules/unictype/property-combining: Likewise.
13522         * modules/unictype/property-composite: Likewise.
13523         * modules/unictype/property-currency-symbol: Likewise.
13524         * modules/unictype/property-dash: Likewise.
13525         * modules/unictype/property-decimal-digit: Likewise.
13526         * modules/unictype/property-default-ignorable-code-point: Likewise.
13527         * modules/unictype/property-deprecated: Likewise.
13528         * modules/unictype/property-diacritic: Likewise.
13529         * modules/unictype/property-extender: Likewise.
13530         * modules/unictype/property-format-control: Likewise.
13531         * modules/unictype/property-grapheme-base: Likewise.
13532         * modules/unictype/property-grapheme-extend: Likewise.
13533         * modules/unictype/property-grapheme-link: Likewise.
13534         * modules/unictype/property-hex-digit: Likewise.
13535         * modules/unictype/property-hyphen: Likewise.
13536         * modules/unictype/property-id-continue: Likewise.
13537         * modules/unictype/property-id-start: Likewise.
13538         * modules/unictype/property-ideographic: Likewise.
13539         * modules/unictype/property-ids-binary-operator: Likewise.
13540         * modules/unictype/property-ids-trinary-operator: Likewise.
13541         * modules/unictype/property-ignorable-control: Likewise.
13542         * modules/unictype/property-iso-control: Likewise.
13543         * modules/unictype/property-join-control: Likewise.
13544         * modules/unictype/property-left-of-pair: Likewise.
13545         * modules/unictype/property-line-separator: Likewise.
13546         * modules/unictype/property-logical-order-exception: Likewise.
13547         * modules/unictype/property-lowercase: Likewise.
13548         * modules/unictype/property-math: Likewise.
13549         * modules/unictype/property-non-break: Likewise.
13550         * modules/unictype/property-not-a-character: Likewise.
13551         * modules/unictype/property-numeric: Likewise.
13552         * modules/unictype/property-other-alphabetic: Likewise.
13553         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
13554         * modules/unictype/property-other-grapheme-extend: Likewise.
13555         * modules/unictype/property-other-id-continue: Likewise.
13556         * modules/unictype/property-other-id-start: Likewise.
13557         * modules/unictype/property-other-lowercase: Likewise.
13558         * modules/unictype/property-other-math: Likewise.
13559         * modules/unictype/property-other-uppercase: Likewise.
13560         * modules/unictype/property-paired-punctuation: Likewise.
13561         * modules/unictype/property-paragraph-separator: Likewise.
13562         * modules/unictype/property-pattern-syntax: Likewise.
13563         * modules/unictype/property-pattern-white-space: Likewise.
13564         * modules/unictype/property-private-use: Likewise.
13565         * modules/unictype/property-punctuation: Likewise.
13566         * modules/unictype/property-quotation-mark: Likewise.
13567         * modules/unictype/property-radical: Likewise.
13568         * modules/unictype/property-sentence-terminal: Likewise.
13569         * modules/unictype/property-soft-dotted: Likewise.
13570         * modules/unictype/property-space: Likewise.
13571         * modules/unictype/property-terminal-punctuation: Likewise.
13572         * modules/unictype/property-test: Likewise.
13573         * modules/unictype/property-titlecase: Likewise.
13574         * modules/unictype/property-unassigned-code-value: Likewise.
13575         * modules/unictype/property-unified-ideograph: Likewise.
13576         * modules/unictype/property-uppercase: Likewise.
13577         * modules/unictype/property-variation-selector: Likewise.
13578         * modules/unictype/property-white-space: Likewise.
13579         * modules/unictype/property-xid-continue: Likewise.
13580         * modules/unictype/property-xid-start: Likewise.
13581         * modules/unictype/property-zero-width: Likewise.
13582         * modules/unictype/scripts: Likewise.
13583         * modules/unictype/syntax-c-ident: Likewise.
13584         * modules/unictype/syntax-c-whitespace: Likewise.
13585         * modules/unictype/syntax-java-ident: Likewise.
13586         * modules/unictype/syntax-java-whitespace: Likewise.
13587         * modules/unilbrk/u8-possible-linebreaks: Likewise.
13588         * modules/unilbrk/u8-width-linebreaks: Likewise.
13589         * modules/unilbrk/u16-possible-linebreaks: Likewise.
13590         * modules/unilbrk/u16-width-linebreaks: Likewise.
13591         * modules/unilbrk/u32-possible-linebreaks: Likewise.
13592         * modules/unilbrk/u32-width-linebreaks: Likewise.
13593         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
13594         * modules/unilbrk/ulc-width-linebreaks: Likewise.
13595         * modules/uniname/uniname: Likewise.
13596         * modules/uninorm/canonical-decomposition: Likewise.
13597         * modules/uninorm/composition: Likewise.
13598         * modules/uninorm/decomposing-form: Likewise.
13599         * modules/uninorm/decomposition: Likewise.
13600         * modules/uninorm/filter: Likewise.
13601         * modules/uninorm/nfc: Likewise.
13602         * modules/uninorm/nfd: Likewise.
13603         * modules/uninorm/nfkc: Likewise.
13604         * modules/uninorm/nfkd: Likewise.
13605         * modules/uninorm/u8-normalize: Likewise.
13606         * modules/uninorm/u8-normcmp: Likewise.
13607         * modules/uninorm/u8-normcoll: Likewise.
13608         * modules/uninorm/u8-normxfrm: Likewise.
13609         * modules/uninorm/u16-normalize: Likewise.
13610         * modules/uninorm/u16-normcmp: Likewise.
13611         * modules/uninorm/u16-normcoll: Likewise.
13612         * modules/uninorm/u16-normxfrm: Likewise.
13613         * modules/uninorm/u32-normalize: Likewise.
13614         * modules/uninorm/u32-normcmp: Likewise.
13615         * modules/uninorm/u32-normcoll: Likewise.
13616         * modules/uninorm/u32-normxfrm: Likewise.
13617         * modules/unistdio/u8-asnprintf: Likewise.
13618         * modules/unistdio/u8-asprintf: Likewise.
13619         * modules/unistdio/u8-snprintf: Likewise.
13620         * modules/unistdio/u8-sprintf: Likewise.
13621         * modules/unistdio/u8-u8-asnprintf: Likewise.
13622         * modules/unistdio/u8-u8-asprintf: Likewise.
13623         * modules/unistdio/u8-u8-snprintf: Likewise.
13624         * modules/unistdio/u8-u8-sprintf: Likewise.
13625         * modules/unistdio/u8-u8-vasnprintf: Likewise.
13626         * modules/unistdio/u8-u8-vasprintf: Likewise.
13627         * modules/unistdio/u8-u8-vsnprintf: Likewise.
13628         * modules/unistdio/u8-u8-vsprintf: Likewise.
13629         * modules/unistdio/u8-vasnprintf: Likewise.
13630         * modules/unistdio/u8-vasprintf: Likewise.
13631         * modules/unistdio/u8-vsnprintf: Likewise.
13632         * modules/unistdio/u8-vsprintf: Likewise.
13633         * modules/unistdio/u16-asnprintf: Likewise.
13634         * modules/unistdio/u16-asprintf: Likewise.
13635         * modules/unistdio/u16-snprintf: Likewise.
13636         * modules/unistdio/u16-sprintf: Likewise.
13637         * modules/unistdio/u16-u16-asnprintf: Likewise.
13638         * modules/unistdio/u16-u16-asprintf: Likewise.
13639         * modules/unistdio/u16-u16-snprintf: Likewise.
13640         * modules/unistdio/u16-u16-sprintf: Likewise.
13641         * modules/unistdio/u16-u16-vasnprintf: Likewise.
13642         * modules/unistdio/u16-u16-vasprintf: Likewise.
13643         * modules/unistdio/u16-u16-vsnprintf: Likewise.
13644         * modules/unistdio/u16-u16-vsprintf: Likewise.
13645         * modules/unistdio/u16-vasnprintf: Likewise.
13646         * modules/unistdio/u16-vasprintf: Likewise.
13647         * modules/unistdio/u16-vsnprintf: Likewise.
13648         * modules/unistdio/u16-vsprintf: Likewise.
13649         * modules/unistdio/u32-asnprintf: Likewise.
13650         * modules/unistdio/u32-asprintf: Likewise.
13651         * modules/unistdio/u32-snprintf: Likewise.
13652         * modules/unistdio/u32-sprintf: Likewise.
13653         * modules/unistdio/u32-u32-asnprintf: Likewise.
13654         * modules/unistdio/u32-u32-asprintf: Likewise.
13655         * modules/unistdio/u32-u32-snprintf: Likewise.
13656         * modules/unistdio/u32-u32-sprintf: Likewise.
13657         * modules/unistdio/u32-u32-vasnprintf: Likewise.
13658         * modules/unistdio/u32-u32-vasprintf: Likewise.
13659         * modules/unistdio/u32-u32-vsnprintf: Likewise.
13660         * modules/unistdio/u32-u32-vsprintf: Likewise.
13661         * modules/unistdio/u32-vasnprintf: Likewise.
13662         * modules/unistdio/u32-vasprintf: Likewise.
13663         * modules/unistdio/u32-vsnprintf: Likewise.
13664         * modules/unistdio/u32-vsprintf: Likewise.
13665         * modules/unistdio/ulc-asnprintf: Likewise.
13666         * modules/unistdio/ulc-asprintf: Likewise.
13667         * modules/unistdio/ulc-fprintf: Likewise.
13668         * modules/unistdio/ulc-snprintf: Likewise.
13669         * modules/unistdio/ulc-sprintf: Likewise.
13670         * modules/unistdio/ulc-vasnprintf: Likewise.
13671         * modules/unistdio/ulc-vasprintf: Likewise.
13672         * modules/unistdio/ulc-vfprintf: Likewise.
13673         * modules/unistdio/ulc-vsnprintf: Likewise.
13674         * modules/unistdio/ulc-vsprintf: Likewise.
13675         * modules/unistr/u8-check: Likewise.
13676         * modules/unistr/u8-chr: Likewise.
13677         * modules/unistr/u8-cmp: Likewise.
13678         * modules/unistr/u8-cmp2: Likewise.
13679         * modules/unistr/u8-cpy: Likewise.
13680         * modules/unistr/u8-cpy-alloc: Likewise.
13681         * modules/unistr/u8-endswith: Likewise.
13682         * modules/unistr/u8-mblen: Likewise.
13683         * modules/unistr/u8-mbsnlen: Likewise.
13684         * modules/unistr/u8-mbtouc: Likewise.
13685         * modules/unistr/u8-mbtouc-unsafe: Likewise.
13686         * modules/unistr/u8-mbtoucr: Likewise.
13687         * modules/unistr/u8-move: Likewise.
13688         * modules/unistr/u8-next: Likewise.
13689         * modules/unistr/u8-prev: Likewise.
13690         * modules/unistr/u8-set: Likewise.
13691         * modules/unistr/u8-startswith: Likewise.
13692         * modules/unistr/u8-stpcpy: Likewise.
13693         * modules/unistr/u8-stpncpy: Likewise.
13694         * modules/unistr/u8-strcat: Likewise.
13695         * modules/unistr/u8-strchr: Likewise.
13696         * modules/unistr/u8-strcmp: Likewise.
13697         * modules/unistr/u8-strcoll: Likewise.
13698         * modules/unistr/u8-strcpy: Likewise.
13699         * modules/unistr/u8-strcspn: Likewise.
13700         * modules/unistr/u8-strdup: Likewise.
13701         * modules/unistr/u8-strlen: Likewise.
13702         * modules/unistr/u8-strmblen: Likewise.
13703         * modules/unistr/u8-strmbtouc: Likewise.
13704         * modules/unistr/u8-strncat: Likewise.
13705         * modules/unistr/u8-strncmp: Likewise.
13706         * modules/unistr/u8-strncpy: Likewise.
13707         * modules/unistr/u8-strnlen: Likewise.
13708         * modules/unistr/u8-strpbrk: Likewise.
13709         * modules/unistr/u8-strrchr: Likewise.
13710         * modules/unistr/u8-strspn: Likewise.
13711         * modules/unistr/u8-strstr: Likewise.
13712         * modules/unistr/u8-strtok: Likewise.
13713         * modules/unistr/u8-to-u16: Likewise.
13714         * modules/unistr/u8-to-u32: Likewise.
13715         * modules/unistr/u8-uctomb: Likewise.
13716         * modules/unistr/u16-check: Likewise.
13717         * modules/unistr/u16-chr: Likewise.
13718         * modules/unistr/u16-cmp: Likewise.
13719         * modules/unistr/u16-cmp2: Likewise.
13720         * modules/unistr/u16-cpy: Likewise.
13721         * modules/unistr/u16-cpy-alloc: Likewise.
13722         * modules/unistr/u16-endswith: Likewise.
13723         * modules/unistr/u16-mblen: Likewise.
13724         * modules/unistr/u16-mbsnlen: Likewise.
13725         * modules/unistr/u16-mbtouc: Likewise.
13726         * modules/unistr/u16-mbtouc-unsafe: Likewise.
13727         * modules/unistr/u16-mbtoucr: Likewise.
13728         * modules/unistr/u16-move: Likewise.
13729         * modules/unistr/u16-next: Likewise.
13730         * modules/unistr/u16-prev: Likewise.
13731         * modules/unistr/u16-set: Likewise.
13732         * modules/unistr/u16-startswith: Likewise.
13733         * modules/unistr/u16-stpcpy: Likewise.
13734         * modules/unistr/u16-stpncpy: Likewise.
13735         * modules/unistr/u16-strcat: Likewise.
13736         * modules/unistr/u16-strchr: Likewise.
13737         * modules/unistr/u16-strcmp: Likewise.
13738         * modules/unistr/u16-strcoll: Likewise.
13739         * modules/unistr/u16-strcpy: Likewise.
13740         * modules/unistr/u16-strcspn: Likewise.
13741         * modules/unistr/u16-strdup: Likewise.
13742         * modules/unistr/u16-strlen: Likewise.
13743         * modules/unistr/u16-strmblen: Likewise.
13744         * modules/unistr/u16-strmbtouc: Likewise.
13745         * modules/unistr/u16-strncat: Likewise.
13746         * modules/unistr/u16-strncmp: Likewise.
13747         * modules/unistr/u16-strncpy: Likewise.
13748         * modules/unistr/u16-strnlen: Likewise.
13749         * modules/unistr/u16-strpbrk: Likewise.
13750         * modules/unistr/u16-strrchr: Likewise.
13751         * modules/unistr/u16-strspn: Likewise.
13752         * modules/unistr/u16-strstr: Likewise.
13753         * modules/unistr/u16-strtok: Likewise.
13754         * modules/unistr/u16-to-u32: Likewise.
13755         * modules/unistr/u16-to-u8: Likewise.
13756         * modules/unistr/u16-uctomb: Likewise.
13757         * modules/unistr/u32-check: Likewise.
13758         * modules/unistr/u32-chr: Likewise.
13759         * modules/unistr/u32-cmp: Likewise.
13760         * modules/unistr/u32-cmp2: Likewise.
13761         * modules/unistr/u32-cpy: Likewise.
13762         * modules/unistr/u32-cpy-alloc: Likewise.
13763         * modules/unistr/u32-endswith: Likewise.
13764         * modules/unistr/u32-mblen: Likewise.
13765         * modules/unistr/u32-mbsnlen: Likewise.
13766         * modules/unistr/u32-mbtouc: Likewise.
13767         * modules/unistr/u32-mbtouc-unsafe: Likewise.
13768         * modules/unistr/u32-mbtoucr: Likewise.
13769         * modules/unistr/u32-move: Likewise.
13770         * modules/unistr/u32-next: Likewise.
13771         * modules/unistr/u32-prev: Likewise.
13772         * modules/unistr/u32-set: Likewise.
13773         * modules/unistr/u32-startswith: Likewise.
13774         * modules/unistr/u32-stpcpy: Likewise.
13775         * modules/unistr/u32-stpncpy: Likewise.
13776         * modules/unistr/u32-strcat: Likewise.
13777         * modules/unistr/u32-strchr: Likewise.
13778         * modules/unistr/u32-strcmp: Likewise.
13779         * modules/unistr/u32-strcoll: Likewise.
13780         * modules/unistr/u32-strcpy: Likewise.
13781         * modules/unistr/u32-strcspn: Likewise.
13782         * modules/unistr/u32-strdup: Likewise.
13783         * modules/unistr/u32-strlen: Likewise.
13784         * modules/unistr/u32-strmblen: Likewise.
13785         * modules/unistr/u32-strmbtouc: Likewise.
13786         * modules/unistr/u32-strncat: Likewise.
13787         * modules/unistr/u32-strncmp: Likewise.
13788         * modules/unistr/u32-strncpy: Likewise.
13789         * modules/unistr/u32-strnlen: Likewise.
13790         * modules/unistr/u32-strpbrk: Likewise.
13791         * modules/unistr/u32-strrchr: Likewise.
13792         * modules/unistr/u32-strspn: Likewise.
13793         * modules/unistr/u32-strstr: Likewise.
13794         * modules/unistr/u32-strtok: Likewise.
13795         * modules/unistr/u32-to-u16: Likewise.
13796         * modules/unistr/u32-to-u8: Likewise.
13797         * modules/unistr/u32-uctomb: Likewise.
13798         * modules/uniwbrk/u8-wordbreaks: Likewise.
13799         * modules/uniwbrk/u16-wordbreaks: Likewise.
13800         * modules/uniwbrk/u32-wordbreaks: Likewise.
13801         * modules/uniwbrk/ulc-wordbreaks: Likewise.
13802         * modules/uniwbrk/wordbreak-property: Likewise.
13803         * modules/uniwidth/u8-strwidth: Likewise.
13804         * modules/uniwidth/u8-width: Likewise.
13805         * modules/uniwidth/u16-strwidth: Likewise.
13806         * modules/uniwidth/u16-width: Likewise.
13807         * modules/uniwidth/u32-strwidth: Likewise.
13808         * modules/uniwidth/u32-width: Likewise.
13809         * modules/uniwidth/width: Likewise.
13810         * modules/unicase/cased-tests (Makefile.am): Link all test programs
13811         with $(LIBUNISTRING).
13812         * modules/unicase/ignorable-tests: Likewise.
13813         * modules/unicase/locale-language-tests: Likewise.
13814         * modules/unicase/tolower-tests: Likewise.
13815         * modules/unicase/totitle-tests: Likewise.
13816         * modules/unicase/toupper-tests: Likewise.
13817         * modules/unicase/u8-casecmp-tests: Likewise.
13818         * modules/unicase/u8-casecoll-tests: Likewise.
13819         * modules/unicase/u8-casefold-tests: Likewise.
13820         * modules/unicase/u8-is-cased-tests: Likewise.
13821         * modules/unicase/u8-is-casefolded-tests: Likewise.
13822         * modules/unicase/u8-is-lowercase-tests: Likewise.
13823         * modules/unicase/u8-is-titlecase-tests: Likewise.
13824         * modules/unicase/u8-is-uppercase-tests: Likewise.
13825         * modules/unicase/u8-tolower-tests: Likewise.
13826         * modules/unicase/u8-totitle-tests: Likewise.
13827         * modules/unicase/u8-toupper-tests: Likewise.
13828         * modules/unicase/u16-casecmp-tests: Likewise.
13829         * modules/unicase/u16-casecoll-tests: Likewise.
13830         * modules/unicase/u16-casefold-tests: Likewise.
13831         * modules/unicase/u16-is-cased-tests: Likewise.
13832         * modules/unicase/u16-is-casefolded-tests: Likewise.
13833         * modules/unicase/u16-is-lowercase-tests: Likewise.
13834         * modules/unicase/u16-is-titlecase-tests: Likewise.
13835         * modules/unicase/u16-is-uppercase-tests: Likewise.
13836         * modules/unicase/u16-tolower-tests: Likewise.
13837         * modules/unicase/u16-totitle-tests: Likewise.
13838         * modules/unicase/u16-toupper-tests: Likewise.
13839         * modules/unicase/u32-casecmp-tests: Likewise.
13840         * modules/unicase/u32-casecoll-tests: Likewise.
13841         * modules/unicase/u32-casefold-tests: Likewise.
13842         * modules/unicase/u32-is-cased-tests: Likewise.
13843         * modules/unicase/u32-is-casefolded-tests: Likewise.
13844         * modules/unicase/u32-is-lowercase-tests: Likewise.
13845         * modules/unicase/u32-is-titlecase-tests: Likewise.
13846         * modules/unicase/u32-is-uppercase-tests: Likewise.
13847         * modules/unicase/u32-tolower-tests: Likewise.
13848         * modules/unicase/u32-totitle-tests: Likewise.
13849         * modules/unicase/u32-toupper-tests: Likewise.
13850         * modules/unicase/ulc-casecmp-tests: Likewise.
13851         * modules/unicase/ulc-casecoll-tests: Likewise.
13852         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
13853         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
13854         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
13855         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
13856         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
13857         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
13858         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
13859         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
13860         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
13861         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
13862         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
13863         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
13864         * modules/unictype/bidicategory-byname-tests: Likewise.
13865         * modules/unictype/bidicategory-name-tests: Likewise.
13866         * modules/unictype/bidicategory-of-tests: Likewise.
13867         * modules/unictype/bidicategory-test-tests: Likewise.
13868         * modules/unictype/block-list-tests: Likewise.
13869         * modules/unictype/block-of-tests: Likewise.
13870         * modules/unictype/block-test-tests: Likewise.
13871         * modules/unictype/category-C-tests: Likewise.
13872         * modules/unictype/category-Cc-tests: Likewise.
13873         * modules/unictype/category-Cf-tests: Likewise.
13874         * modules/unictype/category-Cn-tests: Likewise.
13875         * modules/unictype/category-Co-tests: Likewise.
13876         * modules/unictype/category-Cs-tests: Likewise.
13877         * modules/unictype/category-L-tests: Likewise.
13878         * modules/unictype/category-Ll-tests: Likewise.
13879         * modules/unictype/category-Lm-tests: Likewise.
13880         * modules/unictype/category-Lo-tests: Likewise.
13881         * modules/unictype/category-Lt-tests: Likewise.
13882         * modules/unictype/category-Lu-tests: Likewise.
13883         * modules/unictype/category-M-tests: Likewise.
13884         * modules/unictype/category-Mc-tests: Likewise.
13885         * modules/unictype/category-Me-tests: Likewise.
13886         * modules/unictype/category-Mn-tests: Likewise.
13887         * modules/unictype/category-N-tests: Likewise.
13888         * modules/unictype/category-Nd-tests: Likewise.
13889         * modules/unictype/category-Nl-tests: Likewise.
13890         * modules/unictype/category-No-tests: Likewise.
13891         * modules/unictype/category-P-tests: Likewise.
13892         * modules/unictype/category-Pc-tests: Likewise.
13893         * modules/unictype/category-Pd-tests: Likewise.
13894         * modules/unictype/category-Pe-tests: Likewise.
13895         * modules/unictype/category-Pf-tests: Likewise.
13896         * modules/unictype/category-Pi-tests: Likewise.
13897         * modules/unictype/category-Po-tests: Likewise.
13898         * modules/unictype/category-Ps-tests: Likewise.
13899         * modules/unictype/category-S-tests: Likewise.
13900         * modules/unictype/category-Sc-tests: Likewise.
13901         * modules/unictype/category-Sk-tests: Likewise.
13902         * modules/unictype/category-Sm-tests: Likewise.
13903         * modules/unictype/category-So-tests: Likewise.
13904         * modules/unictype/category-Z-tests: Likewise.
13905         * modules/unictype/category-Zl-tests: Likewise.
13906         * modules/unictype/category-Zp-tests: Likewise.
13907         * modules/unictype/category-Zs-tests: Likewise.
13908         * modules/unictype/category-and-not-tests: Likewise.
13909         * modules/unictype/category-and-tests: Likewise.
13910         * modules/unictype/category-byname-tests: Likewise.
13911         * modules/unictype/category-name-tests: Likewise.
13912         * modules/unictype/category-none-tests: Likewise.
13913         * modules/unictype/category-of-tests: Likewise.
13914         * modules/unictype/category-or-tests: Likewise.
13915         * modules/unictype/category-test-withtable-tests: Likewise.
13916         * modules/unictype/combining-class-tests: Likewise.
13917         * modules/unictype/ctype-alnum-tests: Likewise.
13918         * modules/unictype/ctype-alpha-tests: Likewise.
13919         * modules/unictype/ctype-blank-tests: Likewise.
13920         * modules/unictype/ctype-cntrl-tests: Likewise.
13921         * modules/unictype/ctype-digit-tests: Likewise.
13922         * modules/unictype/ctype-graph-tests: Likewise.
13923         * modules/unictype/ctype-lower-tests: Likewise.
13924         * modules/unictype/ctype-print-tests: Likewise.
13925         * modules/unictype/ctype-punct-tests: Likewise.
13926         * modules/unictype/ctype-space-tests: Likewise.
13927         * modules/unictype/ctype-upper-tests: Likewise.
13928         * modules/unictype/ctype-xdigit-tests: Likewise.
13929         * modules/unictype/decimal-digit-tests: Likewise.
13930         * modules/unictype/digit-tests: Likewise.
13931         * modules/unictype/mirror-tests: Likewise.
13932         * modules/unictype/numeric-tests: Likewise.
13933         * modules/unictype/property-alphabetic-tests: Likewise.
13934         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
13935         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
13936         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
13937         * modules/unictype/property-bidi-block-separator-tests: Likewise.
13938         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
13939         * modules/unictype/property-bidi-common-separator-tests: Likewise.
13940         * modules/unictype/property-bidi-control-tests: Likewise.
13941         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
13942         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
13943         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
13944         * modules/unictype/property-bidi-european-digit-tests: Likewise.
13945         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
13946         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
13947         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
13948         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
13949         * modules/unictype/property-bidi-pdf-tests: Likewise.
13950         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
13951         * modules/unictype/property-bidi-whitespace-tests: Likewise.
13952         * modules/unictype/property-byname-tests: Likewise.
13953         * modules/unictype/property-combining-tests: Likewise.
13954         * modules/unictype/property-composite-tests: Likewise.
13955         * modules/unictype/property-currency-symbol-tests: Likewise.
13956         * modules/unictype/property-dash-tests: Likewise.
13957         * modules/unictype/property-decimal-digit-tests: Likewise.
13958         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
13959         * modules/unictype/property-deprecated-tests: Likewise.
13960         * modules/unictype/property-diacritic-tests: Likewise.
13961         * modules/unictype/property-extender-tests: Likewise.
13962         * modules/unictype/property-format-control-tests: Likewise.
13963         * modules/unictype/property-grapheme-base-tests: Likewise.
13964         * modules/unictype/property-grapheme-extend-tests: Likewise.
13965         * modules/unictype/property-grapheme-link-tests: Likewise.
13966         * modules/unictype/property-hex-digit-tests: Likewise.
13967         * modules/unictype/property-hyphen-tests: Likewise.
13968         * modules/unictype/property-id-continue-tests: Likewise.
13969         * modules/unictype/property-id-start-tests: Likewise.
13970         * modules/unictype/property-ideographic-tests: Likewise.
13971         * modules/unictype/property-ids-binary-operator-tests: Likewise.
13972         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
13973         * modules/unictype/property-ignorable-control-tests: Likewise.
13974         * modules/unictype/property-iso-control-tests: Likewise.
13975         * modules/unictype/property-join-control-tests: Likewise.
13976         * modules/unictype/property-left-of-pair-tests: Likewise.
13977         * modules/unictype/property-line-separator-tests: Likewise.
13978         * modules/unictype/property-logical-order-exception-tests: Likewise.
13979         * modules/unictype/property-lowercase-tests: Likewise.
13980         * modules/unictype/property-math-tests: Likewise.
13981         * modules/unictype/property-non-break-tests: Likewise.
13982         * modules/unictype/property-not-a-character-tests: Likewise.
13983         * modules/unictype/property-numeric-tests: Likewise.
13984         * modules/unictype/property-other-alphabetic-tests: Likewise.
13985         * modules/unictype/property-other-default-ignorable-code-point-tests:
13986         Likewise.
13987         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
13988         * modules/unictype/property-other-id-continue-tests: Likewise.
13989         * modules/unictype/property-other-id-start-tests: Likewise.
13990         * modules/unictype/property-other-lowercase-tests: Likewise.
13991         * modules/unictype/property-other-math-tests: Likewise.
13992         * modules/unictype/property-other-uppercase-tests: Likewise.
13993         * modules/unictype/property-paired-punctuation-tests: Likewise.
13994         * modules/unictype/property-paragraph-separator-tests: Likewise.
13995         * modules/unictype/property-pattern-syntax-tests: Likewise.
13996         * modules/unictype/property-pattern-white-space-tests: Likewise.
13997         * modules/unictype/property-private-use-tests: Likewise.
13998         * modules/unictype/property-punctuation-tests: Likewise.
13999         * modules/unictype/property-quotation-mark-tests: Likewise.
14000         * modules/unictype/property-radical-tests: Likewise.
14001         * modules/unictype/property-sentence-terminal-tests: Likewise.
14002         * modules/unictype/property-soft-dotted-tests: Likewise.
14003         * modules/unictype/property-space-tests: Likewise.
14004         * modules/unictype/property-terminal-punctuation-tests: Likewise.
14005         * modules/unictype/property-test-tests: Likewise.
14006         * modules/unictype/property-titlecase-tests: Likewise.
14007         * modules/unictype/property-unassigned-code-value-tests: Likewise.
14008         * modules/unictype/property-unified-ideograph-tests: Likewise.
14009         * modules/unictype/property-uppercase-tests: Likewise.
14010         * modules/unictype/property-variation-selector-tests: Likewise.
14011         * modules/unictype/property-white-space-tests: Likewise.
14012         * modules/unictype/property-xid-continue-tests: Likewise.
14013         * modules/unictype/property-xid-start-tests: Likewise.
14014         * modules/unictype/property-zero-width-tests: Likewise.
14015         * modules/unictype/scripts-tests: Likewise.
14016         * modules/unictype/syntax-c-ident-tests: Likewise.
14017         * modules/unictype/syntax-c-whitespace-tests: Likewise.
14018         * modules/unictype/syntax-java-ident-tests: Likewise.
14019         * modules/unictype/syntax-java-whitespace-tests: Likewise.
14020         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
14021         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
14022         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
14023         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
14024         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
14025         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
14026         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
14027         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
14028         * modules/uniname/uniname-tests: Likewise.
14029         * modules/uninorm/canonical-decomposition-tests: Likewise.
14030         * modules/uninorm/compat-decomposition-tests: Likewise.
14031         * modules/uninorm/composition-tests: Likewise.
14032         * modules/uninorm/decomposing-form-tests: Likewise.
14033         * modules/uninorm/decomposition-tests: Likewise.
14034         * modules/uninorm/filter-tests: Likewise.
14035         * modules/uninorm/nfc-tests: Likewise.
14036         * modules/uninorm/nfd-tests: Likewise.
14037         * modules/uninorm/nfkc-tests: Likewise.
14038         * modules/uninorm/nfkd-tests: Likewise.
14039         * modules/uninorm/u8-normcmp-tests: Likewise.
14040         * modules/uninorm/u8-normcoll-tests: Likewise.
14041         * modules/uninorm/u16-normcmp-tests: Likewise.
14042         * modules/uninorm/u16-normcoll-tests: Likewise.
14043         * modules/uninorm/u32-normcmp-tests: Likewise.
14044         * modules/uninorm/u32-normcoll-tests: Likewise.
14045         * modules/unistdio/u8-asnprintf-tests: Likewise.
14046         * modules/unistdio/u8-vasnprintf-tests: Likewise.
14047         * modules/unistdio/u8-vasprintf-tests: Likewise.
14048         * modules/unistdio/u8-vsnprintf-tests: Likewise.
14049         * modules/unistdio/u8-vsprintf-tests: Likewise.
14050         * modules/unistdio/u16-asnprintf-tests: Likewise.
14051         * modules/unistdio/u16-vasnprintf-tests: Likewise.
14052         * modules/unistdio/u16-vasprintf-tests: Likewise.
14053         * modules/unistdio/u16-vsnprintf-tests: Likewise.
14054         * modules/unistdio/u16-vsprintf-tests: Likewise.
14055         * modules/unistdio/u32-asnprintf-tests: Likewise.
14056         * modules/unistdio/u32-vasnprintf-tests: Likewise.
14057         * modules/unistdio/u32-vasprintf-tests: Likewise.
14058         * modules/unistdio/u32-vsnprintf-tests: Likewise.
14059         * modules/unistdio/u32-vsprintf-tests: Likewise.
14060         * modules/unistdio/ulc-asnprintf-tests: Likewise.
14061         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
14062         * modules/unistdio/ulc-vasprintf-tests: Likewise.
14063         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
14064         * modules/unistdio/ulc-vsprintf-tests: Likewise.
14065         * modules/unistr/u8-check-tests: Likewise.
14066         * modules/unistr/u8-chr-tests: Likewise.
14067         * modules/unistr/u8-cmp-tests: Likewise.
14068         * modules/unistr/u8-cmp2-tests: Likewise.
14069         * modules/unistr/u8-cpy-alloc-tests: Likewise.
14070         * modules/unistr/u8-cpy-tests: Likewise.
14071         * modules/unistr/u8-mblen-tests: Likewise.
14072         * modules/unistr/u8-mbsnlen-tests: Likewise.
14073         * modules/unistr/u8-mbtouc-tests: Likewise.
14074         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
14075         * modules/unistr/u8-mbtoucr-tests: Likewise.
14076         * modules/unistr/u8-move-tests: Likewise.
14077         * modules/unistr/u8-next-tests: Likewise.
14078         * modules/unistr/u8-prev-tests: Likewise.
14079         * modules/unistr/u8-set-tests: Likewise.
14080         * modules/unistr/u8-stpcpy-tests: Likewise.
14081         * modules/unistr/u8-stpncpy-tests: Likewise.
14082         * modules/unistr/u8-strcat-tests: Likewise.
14083         * modules/unistr/u8-strcmp-tests: Likewise.
14084         * modules/unistr/u8-strcoll-tests: Likewise.
14085         * modules/unistr/u8-strcpy-tests: Likewise.
14086         * modules/unistr/u8-strdup-tests: Likewise.
14087         * modules/unistr/u8-strlen-tests: Likewise.
14088         * modules/unistr/u8-strmblen-tests: Likewise.
14089         * modules/unistr/u8-strmbtouc-tests: Likewise.
14090         * modules/unistr/u8-strncat-tests: Likewise.
14091         * modules/unistr/u8-strncmp-tests: Likewise.
14092         * modules/unistr/u8-strncpy-tests: Likewise.
14093         * modules/unistr/u8-strnlen-tests: Likewise.
14094         * modules/unistr/u8-to-u16-tests: Likewise.
14095         * modules/unistr/u8-to-u32-tests: Likewise.
14096         * modules/unistr/u8-uctomb-tests: Likewise.
14097         * modules/unistr/u16-check-tests: Likewise.
14098         * modules/unistr/u16-chr-tests: Likewise.
14099         * modules/unistr/u16-cmp-tests: Likewise.
14100         * modules/unistr/u16-cmp2-tests: Likewise.
14101         * modules/unistr/u16-cpy-alloc-tests: Likewise.
14102         * modules/unistr/u16-cpy-tests: Likewise.
14103         * modules/unistr/u16-mblen-tests: Likewise.
14104         * modules/unistr/u16-mbsnlen-tests: Likewise.
14105         * modules/unistr/u16-mbtouc-tests: Likewise.
14106         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
14107         * modules/unistr/u16-mbtoucr-tests: Likewise.
14108         * modules/unistr/u16-move-tests: Likewise.
14109         * modules/unistr/u16-next-tests: Likewise.
14110         * modules/unistr/u16-prev-tests: Likewise.
14111         * modules/unistr/u16-set-tests: Likewise.
14112         * modules/unistr/u16-stpcpy-tests: Likewise.
14113         * modules/unistr/u16-stpncpy-tests: Likewise.
14114         * modules/unistr/u16-strcat-tests: Likewise.
14115         * modules/unistr/u16-strcmp-tests: Likewise.
14116         * modules/unistr/u16-strcoll-tests: Likewise.
14117         * modules/unistr/u16-strcpy-tests: Likewise.
14118         * modules/unistr/u16-strdup-tests: Likewise.
14119         * modules/unistr/u16-strlen-tests: Likewise.
14120         * modules/unistr/u16-strmblen-tests: Likewise.
14121         * modules/unistr/u16-strmbtouc-tests: Likewise.
14122         * modules/unistr/u16-strncat-tests: Likewise.
14123         * modules/unistr/u16-strncmp-tests: Likewise.
14124         * modules/unistr/u16-strncpy-tests: Likewise.
14125         * modules/unistr/u16-strnlen-tests: Likewise.
14126         * modules/unistr/u16-to-u32-tests: Likewise.
14127         * modules/unistr/u16-to-u8-tests: Likewise.
14128         * modules/unistr/u16-uctomb-tests: Likewise.
14129         * modules/unistr/u32-check-tests: Likewise.
14130         * modules/unistr/u32-chr-tests: Likewise.
14131         * modules/unistr/u32-cmp-tests: Likewise.
14132         * modules/unistr/u32-cmp2-tests: Likewise.
14133         * modules/unistr/u32-cpy-alloc-tests: Likewise.
14134         * modules/unistr/u32-cpy-tests: Likewise.
14135         * modules/unistr/u32-mblen-tests: Likewise.
14136         * modules/unistr/u32-mbsnlen-tests: Likewise.
14137         * modules/unistr/u32-mbtouc-tests: Likewise.
14138         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
14139         * modules/unistr/u32-mbtoucr-tests: Likewise.
14140         * modules/unistr/u32-move-tests: Likewise.
14141         * modules/unistr/u32-next-tests: Likewise.
14142         * modules/unistr/u32-prev-tests: Likewise.
14143         * modules/unistr/u32-set-tests: Likewise.
14144         * modules/unistr/u32-stpcpy-tests: Likewise.
14145         * modules/unistr/u32-stpncpy-tests: Likewise.
14146         * modules/unistr/u32-strcat-tests: Likewise.
14147         * modules/unistr/u32-strcmp-tests: Likewise.
14148         * modules/unistr/u32-strcoll-tests: Likewise.
14149         * modules/unistr/u32-strcpy-tests: Likewise.
14150         * modules/unistr/u32-strdup-tests: Likewise.
14151         * modules/unistr/u32-strlen-tests: Likewise.
14152         * modules/unistr/u32-strmblen-tests: Likewise.
14153         * modules/unistr/u32-strmbtouc-tests: Likewise.
14154         * modules/unistr/u32-strncat-tests: Likewise.
14155         * modules/unistr/u32-strncmp-tests: Likewise.
14156         * modules/unistr/u32-strncpy-tests: Likewise.
14157         * modules/unistr/u32-strnlen-tests: Likewise.
14158         * modules/unistr/u32-to-u16-tests: Likewise.
14159         * modules/unistr/u32-to-u8-tests: Likewise.
14160         * modules/unistr/u32-uctomb-tests: Likewise.
14161         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
14162         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
14163         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
14164         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
14165         * modules/uniwidth/u8-strwidth-tests: Likewise.
14166         * modules/uniwidth/u8-width-tests: Likewise.
14167         * modules/uniwidth/u16-strwidth-tests: Likewise.
14168         * modules/uniwidth/u16-width-tests: Likewise.
14169         * modules/uniwidth/u32-strwidth-tests: Likewise.
14170         * modules/uniwidth/u32-width-tests: Likewise.
14171         * modules/uniwidth/width-tests: Likewise.
14172
14173 2010-05-18  Richard Jones  <rjones@redhat.com>
14174
14175         doc: users.txt: list hivex
14176         * users.txt: Add hivex.
14177
14178 2010-05-18  Richard Jones  <rjones@redhat.com>
14179
14180         doc: users.txt: list febootstrap
14181         * users.txt: Add febootstrap.
14182
14183 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
14184
14185         bootstrap: fix an error when gnulib is not used as a git submodule
14186         * build-aux/bootstrap (gnulib_path): If its length is zero then
14187         assign "gnulib" to it.
14188         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
14189
14190 2010-05-16  Bruno Haible  <bruno@clisp.org>
14191
14192         Avoid autoconf warnings about AM_ICONV.
14193         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
14194         2.64.
14195
14196 2010-05-16  Bruno Haible  <bruno@clisp.org>
14197
14198         absolute-header: Make the macro usable in more situations.
14199         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
14200         from gl_ABSOLUTE_HEADER.
14201         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
14202
14203 2010-05-16  James Youngman  <jay@gnu.org>
14204
14205         doc: update users.txt
14206         * users.txt: Add CSSC.
14207
14208 2010-05-16  Jim Meyering  <meyering@redhat.com>
14209
14210         init.sh: fix an error in the previous change; add more comments
14211         * tests/init.sh: Compare exit code in loop against 9, not 2.
14212         Patch by Bruno Haible.
14213         Make the two tests more similar by adding an empty "then" clause.
14214         Add comments.
14215
14216         init.sh: avoid unnecessary shell re-exec
14217         * tests/init.sh: Improve the re-exec-required check to first test the
14218         current shell.  If it passes the test, do not search for a shell that
14219         does pass, and do not re-exec.  This test is particularly contorted to
14220         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
14221         of $(...) evokes a syntax error and causes immediate shell exit with
14222         status 2.  Bruno Haible reported that the re-exec made it impossible
14223         to single-step through any init.sh-using script.
14224
14225 2010-05-16  Bruno Haible  <bruno@clisp.org>
14226
14227         Fix collision between gnulib's and libintl's printf replacements.
14228         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
14229         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
14230         (printf): When using GNU C, map the __printf__ function to rpl_printf
14231         via __asm__. When not using GNU C, define rpl_printf instead of
14232         __printf__.
14233         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
14234         commit.
14235         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
14236         commit.
14237         * m4/asm-underscore.m4: New file.
14238         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
14239         * modules/stdio (Files): Add m4/asm-underscore.m4.
14240         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
14241         Reported by Ben Pfaff.
14242
14243 2010-05-16  Bruno Haible  <bruno@clisp.org>
14244
14245         verify: Avoid skipping the test on openSUSE 11.0.
14246         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
14247
14248 2010-05-13  Bruno Haible  <bruno@clisp.org>
14249
14250         Avoid useless warnings from G++.
14251         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
14252         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
14253         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
14254
14255 2010-05-11  Jim Meyering  <meyering@redhat.com>
14256
14257         maint.mk: tweak preceding change
14258         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
14259         regexps tighter by anchoring at EOL, and make the new group "shy"
14260         for slightly decreased overhead.
14261
14262 2010-05-11  Eric Blake  <eblake@redhat.com>
14263
14264         maint.mk: gnulib doesn't guarantee NSIG
14265         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
14266
14267 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
14268
14269         test-pwrite.c: Remove unused variable declaration.
14270         * tests/test-pwrite.c (main): Remove read_buf declaration.
14271
14272         Remove useless test-pwrite.sh file.
14273         * tests/test-pwrite.sh: Delete file.
14274         * modules/pwrite-tests: Remove references.
14275         Reported by Bruno Haible.
14276
14277 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
14278
14279         init.sh: fix a typo
14280         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
14281
14282 2010-05-10  Jim Meyering  <meyering@redhat.com>
14283
14284         maint.mk: avoid using a temporary file in the always-defined-macros check
14285         * top/maint.mk (.re-defmac): Remove rule.
14286         (gl_trap_): Remove definition.
14287         (sc_prohibit_always-defined_macros): Rewrite not to create and
14288         depend on a temporary file.  Instead, depend on GNU grep's ability
14289         to read a list of regular expressions from stdin when given "-f -".
14290
14291 2010-05-09  Bruno Haible  <bruno@clisp.org>
14292
14293         Update to GNU gettext 0.18, part 1.
14294         * m4/gettext.m4: Update to GNU gettext 0.18.
14295         * m4/intl.m4: Likewise.
14296         * m4/po.m4: Likewise.
14297         * modules/gettext (Files): Add m4/fcntl-o.m4.
14298         (configure.ac): Require gettext infrastructure from version 0.18.
14299
14300 2010-05-09  Jim Meyering  <meyering@redhat.com>
14301
14302         init.sh: enable MALLOC_PERTURB_
14303         * tests/init.sh: Enable glibc's malloc-perturbing option.
14304
14305         maint.mk: improve sc_cross_check_PATH_usage_in_tests
14306         With my recent change in init.sh from the two-line form:
14307             -#   : ${srcdir=.}
14308             -#   . "$srcdir/init.sh"; path_prepend_ .
14309             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
14310         I noticed that using the one-line form would cause this test
14311         to fail with a false-positive, or to stop working altogether,
14312         depending on whether help-version changed or all the tests did.
14313         * top/maint.mk (_hv_regex): Remove this definition.
14314         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
14315         (_hv_regex_strong): Use a stronger regex to check for conformance.
14316         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
14317         Give a separate diagnostic for lack of conforming use.
14318
14319         maint.mk: prohibit definition of symbols defined by gnulib
14320         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
14321         definition of symbols defined by gnulib.
14322
14323 2010-05-09  Bruno Haible  <bruno@clisp.org>
14324
14325         acl: Avoid test failure on Cygwin-hosted mingw.
14326         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
14327
14328 2010-05-09  Bruno Haible  <bruno@clisp.org>
14329
14330         error: Use system's fcntl function.
14331         * lib/error.c (fcntl): Undefine.
14332
14333 2010-05-09  Jim Meyering  <meyering@redhat.com>
14334
14335         verify: adjust formatting to be more consistent
14336         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
14337         argument-list '('s, and after one comma.
14338
14339 2010-05-09  Bruno Haible  <bruno@clisp.org>
14340
14341         error: More reliable output on mingw.
14342         * lib/error.c: Include <windows.h>.
14343         (is_open): New function.
14344         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
14345         defined.
14346
14347 2010-05-09  Bruno Haible  <bruno@clisp.org>
14348
14349         vasnprintf: Fix syntax errors in libintl build on mingw.
14350         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
14351         pad_ourselves and prec_ourselves after use.
14352
14353 2010-05-08  Bruno Haible  <bruno@clisp.org>
14354
14355         * lib/config.charset: Update comments for Cygwin 1.7.
14356         * lib/localcharset.c: Likewise.
14357
14358 2010-05-07  Jim Meyering  <meyering@redhat.com>
14359
14360         init.sh: improve comments
14361         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
14362         . "${srcdir=.}/init.sh"; path_prepend_ .
14363         Add a note about path_prepend_ and the alternative of using
14364         TESTS_ENVIRONMENT.
14365
14366 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
14367
14368         exclude: Unescape hashed patterns in wildcard mode.
14369         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
14370         to the hash list.
14371         * tests/test-exclude8.sh: New test case.
14372         * modules/exclude-tests: Add new test.
14373
14374 2010-05-05  Eric Blake  <eblake@redhat.com>
14375
14376         verify: automate tests
14377         * modules/verify-tests: New module.
14378         * tests/test-verify.sh: New file.
14379         * tests/test-verify.c: Guard each negative test with a unique id.
14380         Also avoid warning about unused left hand of comma expressions.
14381
14382 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
14383
14384         Further improvements to verify.h, suggested by Eric Blake.
14385         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
14386         the GL_* versions, to avoid collision with OpenGL.
14387         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
14388         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
14389         than testing merely whether it's defined.
14390
14391         Modify verify.h to pacify gcc -Wredundant_decls.
14392         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
14393         These use the prefix "GL_" since they're likely to be useful elsewhere.
14394         We may need to break them out into a different .h file.
14395         (__COUNTER__): Define to 0 if the compiler doesn't support it.
14396         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
14397         of verify_function__.
14398
14399 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
14400
14401         Tests for module pwrite.
14402         * modules/pwrite-tests: New file.
14403         * tests/test-pwrite.sh: New file.
14404         * tests/test-pwrite.c: New file.
14405
14406         New module pwrite.
14407         * lib/unistd.in.h (pwrite): New declaration.
14408         * lib/pwrite.c: New file, from glibc with modifications.
14409         * m4/pwrite.m4: New file.
14410         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
14411         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
14412         REPLACE_PWRITE.
14413         * modules/pwrite: New file.
14414         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
14415         REPLACE_PWRITE.
14416         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
14417         * doc/posix-functions/pwrite.texi: Mention the new module.
14418
14419 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
14420
14421         pread: Update documentation.
14422         * doc/posix-functions/pread.texi: Mention the 'pread' module.
14423
14424 2010-05-04  Eric Blake  <eblake@redhat.com>
14425
14426         docs: update cygwin progress
14427         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
14428         this bug.
14429         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
14430         Added in cygwin 1.7.2.
14431         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
14432         Likewise.
14433         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
14434         Likewise.
14435         * doc/glibc-functions/dup3.texi (dup3): Likewise.
14436         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
14437         * doc/glibc-functions/accept4.texi (accept4): Likewise.
14438         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
14439         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
14440         Mention nproc module.
14441         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
14442         bug in cygwin 1.7.5 addition.
14443         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
14444         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
14445         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
14446         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
14447         1.7.5.
14448         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
14449         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
14450         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
14451         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
14452         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
14453         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
14454         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
14455         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
14456         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
14457         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
14458         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
14459         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
14460         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
14461         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
14462         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
14463         Likewise.
14464         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
14465         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
14466         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
14467         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
14468         Likewise.
14469         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
14470         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
14471         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
14472         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
14473         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
14474         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
14475         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
14476         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
14477         Likewise.
14478         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
14479         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
14480         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
14481         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
14482         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
14483         Likewise.
14484         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
14485         Likewise.
14486         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
14487         Likewise.
14488         * doc/glibc-functions/xdrrec_endofrecord.texi
14489         (xdrrec_endofrecord): Likewise.
14490         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
14491         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
14492         Likewise.
14493         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
14494         Likewise.
14495
14496 2010-05-04  Jim Meyering  <meyering@redhat.com>
14497
14498         gendocs.sh: make its "-s FILE" option more useful
14499         * build-aux/gendocs.sh: When honoring the -s FILE option, update
14500         $PACKAGE to reflect the probably-different basename of "FILE".
14501
14502 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
14503
14504         bootstrap: don't ignore download_po_files failure
14505         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
14506         failure.
14507
14508 2010-05-03  Jim Meyering  <meyering@redhat.com>
14509
14510         maint.mk: allow to pass options to gendocs.sh
14511         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
14512         (gendocs_options_): New overridable variable.
14513
14514         gnu-web-doc-update: don't ignore configure or build failure
14515         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
14516
14517         announce-gen: backslash-escape '@'s in --help output
14518         * build-aux/announce-gen: Fix syntax errors.
14519
14520         maint.mk, announce-gen: allow project-specific announcement mail headers
14521         * top/maint.mk (translation_project_): Define default.
14522         (announcement_Cc_, announcement_mail_headers_): Likewise.
14523         (announcement): Invoke announce-gen with new --mail-headers option.
14524         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
14525
14526         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
14527         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
14528         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
14529         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
14530         line in the "err2" output file when running "make check" in verbose
14531         mode (i.e., with set -x enabled).
14532
14533 2010-05-03  Bruno Haible  <bruno@clisp.org>
14534
14535         wctob: Fix for weird platforms.
14536         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
14537         argument value.
14538
14539 2010-05-03  Jim Meyering  <meyering@redhat.com>
14540
14541         maint.mk: prohibit unwarranted use of <strings.h>
14542         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
14543         strings.h in a file that does not also use strcasecmp, strncasecmp,
14544         ffs or ffsll.
14545
14546         maint.mk: remove obsolete comments
14547         * top/maint.mk: Remove stale, commented-out rules.
14548
14549 2010-05-02  Bruno Haible  <bruno@clisp.org>
14550
14551         wcwidth: Declare also when it's aliased.
14552         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
14553         macro.
14554
14555 2010-05-02  Bruno Haible  <bruno@clisp.org>
14556
14557         Fix regression from 2010-04-25.
14558         * gnulib-tool (func_modules_transitive_closure): Check the status of
14559         all modules, not only of the tests that are of the form foo-tests where
14560         foo is a module.
14561
14562 2010-05-02  Bruno Haible  <bruno@clisp.org>
14563
14564         wctob: Work around nasty Cygwin 1.7.2 bug.
14565         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
14566         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
14567
14568 2010-05-01  Bruno Haible  <bruno@clisp.org>
14569
14570         fpurge: Sharper test.
14571         * tests/test-fpurge.c (main): Add one more ftell check.
14572         * modules/fpurge-tests (Depends-on): Add ftell.
14573         Suggested by Eric Blake.
14574
14575 2010-05-01  Bruno Haible  <bruno@clisp.org>
14576
14577         ftello: Another test.
14578         * tests/test-ftello3.c: New file.
14579         * modules/ftello-tests (Files): Add it.
14580         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
14581         MOSTLYCLEANFILES.
14582
14583         ftell: Another test.
14584         * tests/test-ftell3.c: New file.
14585         * modules/ftell-tests (Files): Add it.
14586         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
14587         MOSTLYCLEANFILES.
14588
14589 2010-05-01  Bruno Haible  <bruno@clisp.org>
14590
14591         ftell, ftello: Work around Solaris bug.
14592         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
14593         * lib/ftello.c: Include stdio-impl.h.
14594         (ftello): On Solaris, when _IOWRT is set, compute the result without
14595         looking at _IOREAD.
14596         * modules/ftello (Files): Add lib/stdio-impl.h.
14597         * doc/posix-functions/ftell.texi: Mention Solaris bug.
14598         * doc/posix-functions/ftello.texi: Likewise.
14599         Reported by Eric Blake.
14600
14601 2010-05-01  Bruno Haible  <bruno@clisp.org>
14602
14603         freading: Adapt to special meaning of _IOREAD flag on Solaris.
14604         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
14605         the _IOWRT flag is also set.
14606
14607 2010-05-01  Bruno Haible  <bruno@clisp.org>
14608
14609         Fix doc about a HP-UX stdio bug.
14610         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
14611         * doc/posix-functions/ftello.texi: Likewise.
14612
14613 2010-05-01  Bruno Haible  <bruno@clisp.org>
14614
14615         lseek test: Fix failure on Solaris.
14616         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
14617         output.
14618
14619 2010-04-30  Jim Meyering  <meyering@redhat.com>
14620
14621         bootstrap: don't ignore failure to generate po*/Makevars
14622         * build-aux/bootstrap (with_gettext): Don't ignore failure
14623         to create po/Makevars or runtime-po/Makevars.
14624
14625 2010-04-29  Eric Blake  <eblake@redhat.com>
14626
14627         headers: relax license to LGPLv2+
14628         * modules/fcntl-h (License): Relax license.
14629         * modules/getopt-posix (License): Likewise.
14630         * modules/locale (License): Likewise.
14631         * modules/math (License): Likewise.
14632         * modules/pty (License): Likewise.
14633         * modules/sched (License): Likewise.
14634         * modules/search (License): Likewise.
14635         * modules/spawn (License): Likewise.
14636         * modules/stdarg (License): Likewise.
14637         * modules/sysexits (License): Likewise.
14638
14639 2010-04-29  Jim Meyering  <meyering@redhat.com>
14640
14641         inttypes: relax license to LGPLv2+
14642         * modules/inttypes (License): Relax license.
14643
14644 2010-04-29  Simon Josefsson  <simon@josefsson.org>
14645
14646         * top/maint.mk (indent): Run twice to produce idempotent results.
14647
14648 2010-04-28  Bruno Haible  <bruno@clisp.org>
14649
14650         getdate: Generate getdate.c in the source directory.
14651         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
14652         MOSTLYCLEANFILES.
14653         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
14654
14655 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
14656
14657         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
14658         is not declared as a const *; avoid warnings in that case.
14659
14660 2010-04-28  Eric Blake  <eblake@redhat.com>
14661
14662         canonicalize-lgpl: avoid compiler warning
14663         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
14664         declaration' / 'extraneous semicolon' warning with some compilers.
14665         Reported by Andreas Gruenbacher.
14666
14667 2010-04-28  Jim Meyering  <meyering@redhat.com>
14668
14669         init.sh: ensure a more reliable exit status when exiting via trap
14670         * tests/init.sh (setup_): Don't rely on $? in signal handler.
14671         Inspired by patches from Dmitry V. Levin.
14672         Also trap on signal 3 (SIGQUIT).
14673
14674 2010-04-27  Bruno Haible  <bruno@clisp.org>
14675
14676         Update doc about utimes().
14677         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
14678         'utimens' module.
14679         Reported by Andreas Gruenbacher <agruen@suse.de>.
14680
14681 2010-04-27  Eric Blake  <eblake@redhat.com>
14682
14683         full-read, full-write: relax license
14684         * modules/full-read (License): Drop to LGPLv2+.
14685         * modules/full-write (License): Likewise.
14686         * modules/safe-read (License): Likewise.
14687         * modules/safe-write (License): Likewise.
14688
14689         pthread: mention library for linking
14690         * modules/pthread (Link): Mention $(LIB_PTHREAD).
14691
14692 2010-04-27  Jim Meyering  <meyering@redhat.com>
14693
14694         maint.mk: fix a bug introduced in last change
14695         * top/maint.mk (gl_assured_headers_): Now that all names are on
14696         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
14697         is not anchored to end of word, it should be adequate.
14698
14699         maint.mk: avoid side-effect in latest syntax-check
14700         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
14701         to run commands via $(shell...), and hence to incur cost only when
14702         the new rule is actually run.
14703
14704         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
14705         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
14706         and use that to create a regexp used to detect all #if HAVE_..._H uses.
14707         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
14708         (gl_assured_headers_, az_, AZ_): Define.
14709         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
14710
14711 2010-04-26  Jim Meyering  <jim@meyering.net>
14712             Bruno Haible  <bruno@clisp.org>
14713
14714         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
14715         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
14716         Prompted by an exchange with Gilles Espinasse.
14717
14718 2010-04-26  Jim Meyering  <meyering@redhat.com>
14719
14720         git-version-gen: aesthetic tweak
14721         * build-aux/git-version-gen: Use "$nl" rather than a literal,
14722         so that the command remains on a single line.
14723
14724 2010-04-26  Eric Blake  <eblake@redhat.com>
14725
14726         git-version-gen: allow use on EBCDIC hosts
14727         * build-aux/git-version-gen (dirty): Use literal rather than tying
14728         ourselves to ascii.
14729         Reported by Steve Goetze.
14730
14731 2010-04-25  Bruno Haible  <bruno@clisp.org>
14732
14733         netdb: Add support for GNULIB_POSIXCHECK.
14734         * lib/netdb.in.h: Include warn-on-use.h.
14735         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
14736         functions are used when GNULIB_POSIXCHECK is defined and the
14737         getaddrinfo module is not in use.
14738         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
14739         freeaddrinfo, gai_strerror, getnameinfo are declared.
14740         * modules/netdb (Depends-on): Add warn-on-use.
14741         (Makefile.am): Include warn-on-use.h in netdb.h.
14742
14743 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
14744
14745         build: avoid "make check" failure without .git/ directory
14746         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
14747         there is no .git/ directory.
14748
14749 2010-04-25  Bruno Haible  <bruno@clisp.org>
14750
14751         ptsname: Fix misuse of ttyname_r.
14752         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
14753         of errno.
14754
14755 2010-04-25  Bruno Haible  <bruno@clisp.org>
14756
14757         ttyname_r: Make it work on Solaris 10.
14758         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
14759         if the system function has the POSIX declaration. Test whether the
14760         function fails if the buffer is less than 128 bytes large.
14761         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
14762         system's ttyname_r function. Provide a reasonably large buffer.
14763         * modules/ttyname_r (Depends-on): Add extensions.
14764         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
14765
14766 2010-04-25  Bruno Haible  <bruno@clisp.org>
14767
14768         Use the 'extensions' module for some more functions on Solaris.
14769         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
14770         module.
14771         * doc/posix-functions/ctime_r.texi: Likewise.
14772         * doc/posix-functions/getgrgid_r.texi: Likewise.
14773         * doc/posix-functions/getgrnam_r.texi: Likewise.
14774         * doc/posix-functions/getpwnam_r.texi: Likewise.
14775         * doc/posix-functions/getpwuid_r.texi: Likewise.
14776         * doc/posix-functions/readdir_r.texi: Likewise.
14777         * doc/posix-functions/sigwait.texi: Likewise.
14778         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
14779         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
14780
14781 2010-04-25  Bruno Haible  <bruno@clisp.org>
14782
14783         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
14784         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
14785         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
14786         * lib/ttyname_r.c: Include <limits.h>.
14787         (ttyname_r): Define using the system's ttyname_r function, if it exists
14788         and not on Solaris.
14789         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
14790         set.
14791         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
14792         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
14793         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
14794         Reported by Simon Josefsson.
14795
14796 2010-04-25  Bruno Haible  <bruno@clisp.org>
14797
14798         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
14799         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
14800         * doc/posix-functions/ctime_r.texi: Likewise.
14801         * doc/posix-functions/getgrgid_r.texi: Likewise.
14802         * doc/posix-functions/getgrnam_r.texi: Likewise.
14803         * doc/posix-functions/getlogin_r.texi: Likewise.
14804         * doc/posix-functions/getpwnam_r.texi: Likewise.
14805         * doc/posix-functions/getpwuid_r.texi: Likewise.
14806         * doc/posix-functions/readdir_r.texi: Likewise.
14807         * doc/posix-functions/sigwait.texi: Likewise.
14808         * doc/posix-functions/ttyname_r.texi: Likewise.
14809         Reported by Simon Josefsson.
14810
14811 2010-04-25  Bruno Haible  <bruno@clisp.org>
14812
14813         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
14814         * gnulib-tool (func_usage): Document that --with-*-tests options apply
14815         also to --create-testdir.
14816         (func_acceptable): Don't consider the status of *-tests modules here.
14817         (func_modules_transitive_closure): Consider it here, before including a
14818         test module.
14819         (func_import, func_create_testdir): Set inc_all_direct_tests,
14820         inc_all_indirect_tests.
14821         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
14822         --create-testdir and --create-megatestdir.
14823
14824 2010-04-25  Bruno Haible  <bruno@clisp.org>
14825
14826         gnulib-tool: Add --without-*-tests options.
14827         * gnulib-tool (func_usage): Document the --without-*-tests options.
14828         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
14829         excl_unportable_tests): New variables.
14830         Fail if they are specified with --import or --update.
14831         (func_acceptable): Respect the excl_*_tests variables.
14832         (func_import): Set the excl_*_tests variables to empty.
14833
14834 2010-04-25  Simon Josefsson  <simon@josefsson.org>
14835             Bruno Haible  <bruno@clisp.org>
14836
14837         Work around a MacOS X 10.4 bug with openpty.
14838         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
14839         * tests/test-openpty.c (main): Close the master side explicitly.
14840
14841 2010-04-25  Bruno Haible  <bruno@clisp.org>
14842
14843         strnlen: Fix a C++ test error on MacOS X and Solaris.
14844         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
14845         the function is not declared.
14846         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
14847         Simon Josefsson.
14848
14849 2010-04-24  Bruno Haible  <bruno@clisp.org>
14850
14851         Avoid a gcc warning.
14852         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
14853         of correct type for %08lx directive.
14854         Reported by Eric Blake.
14855
14856 2010-04-24  Bruno Haible  <bruno@clisp.org>
14857
14858         vasnprintf: Correct errno value in case of out-of-memory.
14859         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
14860         or sprintf. Use the errno value from SNPRINTF or sprintf.
14861         Reported by Ian Beckwith <ianb@erislabs.net>.
14862
14863 2010-04-24  Bruno Haible  <bruno@clisp.org>
14864
14865         ansi-c++-opt: Find correct compiler when cross-compiling.
14866         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
14867         AC_CHECK_PROGS.
14868         Reported by Simon Josefsson.
14869
14870 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
14871
14872         vc-list-files: Add support for subversion
14873         * build-aux/vc-list-files: Use "svn list" to generate the list of
14874         files controlled by subversion.
14875
14876 2010-04-23  Jim Meyering  <meyering@redhat.com>
14877
14878         vc-list-files tests: convert to use init.sh
14879         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
14880         path_prepend_.
14881         Use Exit, not exit.
14882         Use skip_ rather than open coding it.
14883         Remove trap set-up and compare definitions.
14884         * tests/test-vc-list-files-git.sh: Likewise.
14885         * modules/vc-list-files-tests (Files): Add tests/init.sh.
14886
14887 2010-04-22  Simon Josefsson  <simon@josefsson.org>
14888
14889         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
14890         backup files.
14891
14892 2010-04-21  Simon Josefsson  <simon@josefsson.org>
14893
14894         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
14895
14896 2010-04-20  Eric Blake  <eblake@redhat.com>
14897
14898         tests: be robust to ignored SIGPIPE
14899         * tests/test-select-in.sh: Consume all output.
14900         * tests/test-lseek.sh: Check correct exit status, while avoiding
14901         EPIPE.
14902
14903 2010-04-20  Simon Josefsson  <simon@josefsson.org>
14904             Bruno Haible  <bruno@clisp.org>
14905
14906         visibility: Don't use -fvisibility if it leads to a warning.
14907         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
14908         yes, don't pretend that visibility works if it leads to a warning.
14909         Reported by Mike Gran <spk121@yahoo.com>.
14910
14911 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
14912
14913         * build-aux/bootstrap: Use "git -h" for testing for supported options
14914         instead of "git --help".  The short-form option only shows a summary,
14915         and doesn't layout the full man page.  Grep for the full option name
14916         in the summary, too.
14917
14918 2010-04-19  Bruno Haible  <bruno@clisp.org>
14919
14920         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
14921         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
14922         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
14923         mention of RELOCATABLE_STRIP.
14924         Reported by Sylvain Beucler <beuc@beuc.net>.
14925
14926 2010-04-19  Bruno Haible  <bruno@clisp.org>
14927
14928         * lib/diffseq.h: Fix typo in comment.
14929         Reported by Eric Blake.
14930
14931 2010-04-19  Bruno Haible  <bruno@clisp.org>
14932
14933         ioctl: Move autoconf macro to a .m4 file.
14934         * m4/ioctl.m4: New file, extracted from modules/ioctl.
14935         * modules/ioctl (Files): Add it.
14936         (configure.ac): Simply invoke gl_FUNC_IOCTL.
14937         Reported by Ian Beckwith <ianb@erislabs.net>.
14938
14939 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
14940             Bruno Haible  <bruno@clisp.org>
14941
14942         diffseq: Accommodate use-case with abstract arrays.
14943         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
14944         is not defined.
14945         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
14946         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
14947
14948 2010-04-18  Bruno Haible  <bruno@clisp.org>
14949
14950         * doc/posix-headers/stdbool.texi: More precise wording.
14951
14952 2010-04-17  Jim Meyering  <meyering@redhat.com>
14953
14954         maint.mk: use gnu-style indentation in an embedded perl script
14955         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
14956         Rename variable: s/two/last_two_bytes/
14957
14958 2010-04-16  Eric Blake  <eblake@redhat.com>
14959
14960         test-stdbool: skip test that fails with Solaris CC
14961         * tests/test-stdbool.c (f): Skip test that causes compilation
14962         error under buggy C++ compiler.
14963         * lib/stdbool.in.h: Document the limitation.
14964         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
14965
14966         setenv: allow compilation with C++
14967         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
14968         register keyword.
14969
14970         stdint: allow test to pass with C++
14971         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
14972
14973         getopt: allow compilation with C++
14974         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
14975         struct.
14976         * lib/getopt.c (_getopt_internal_r): Use correct type.
14977         Reported by Dagobert Michelson, via Joel E. Denny.
14978
14979 2010-04-16  Bruno Haible  <bruno@clisp.org>
14980
14981         Override netdb.h always.
14982         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
14983         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
14984         Reported by Ludovic Courtès <ludo@gnu.org>.
14985
14986 2010-04-15  Bruno Haible  <bruno@clisp.org>
14987
14988         openpty: Fix mistake from 2010-03-21.
14989         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
14990         Reported by Simon Josefsson.
14991
14992 2010-04-15  Eric Blake  <eblake@redhat.com>
14993
14994         test-forkpty: fix expected signature
14995         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
14996         Reported by Simon Josefsson.
14997
14998 2010-04-15  Jim Meyering  <meyering@redhat.com>
14999
15000         maint.mk: texinfo_suffix_re_: correct the default regexp
15001         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
15002
15003         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
15004         make it configurable via texinfo_suffix_re_.
15005
15006 2010-04-14  Eric Blake  <eblake@redhat.com>
15007
15008         strtok_r: relax license to LGPLv2+
15009         * modules/strtok_r (License): Relax license.
15010         Reported by Matthias Bolte.
15011
15012 2010-04-14  Simon Josefsson  <simon@josefsson.org>
15013
15014         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
15015         version 1.4.4 by default instead of requiring the libgcrypt
15016         version used during build.  This makes it possible to use the
15017         application with older but still binary compatible libgcrypt
15018         versions.
15019
15020 2010-04-13  Eric Blake  <eblake@redhat.com>
15021
15022         getopt-gnu: match recent glibc fixes and posix ruling
15023         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
15024         '+' handling, when requesting extensions.
15025         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
15026         'W;' handling.
15027         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
15028         * doc/posix-functions/getopt.texi (getopt): Document this.
15029         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
15030         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
15031         Likewise.
15032
15033         getopt: merge bug fixes from glibc
15034         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
15035         diagnostics.  Honor '+:' correctly.  Reject ';'.
15036
15037         getopt-posix: detect MacOS bug
15038         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
15039         optind when missing a required argument.
15040         * doc/posix-functions/getopt.texi (getopt): Document the bug.
15041         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
15042         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
15043         Likewise.
15044
15045         getopt-posix: avoid spurious failure on Solaris
15046         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
15047         an indicator that setting optind=1 is sufficient for reset.
15048
15049         getopt-posix: avoid spurious failure on FreeBSD
15050         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
15051         in POSIX mode, since the m4 test uses it.
15052
15053         gnulib-tool: silence warning on BSD sh
15054         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
15055
15056 2010-04-13  Jim Meyering  <meyering@redhat.com>
15057
15058         doc: users.txt: GNU patch now uses gnulib
15059         * users.txt: Add patch.
15060
15061 2010-04-12  Jim Meyering  <meyering@redhat.com>
15062
15063         maint.mk: generate more concise timing data for syntax-check rules
15064         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
15065         " done" from each line that reports a syntax-check test duration.
15066
15067 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
15068
15069         git-version-gen: use "git update-index..." rather than "git status"
15070         * build-aux/git-version-gen: Use git update-index --refresh, not
15071         "git status".  With some versions of git, "git status" would fail
15072         to update the index and result in an unwarranted "-dirty" suffix.
15073
15074 2010-04-11  Jim Meyering  <meyering@redhat.com>
15075
15076         openat: correct formatting (no semantic change)
15077         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
15078         Suggested by Bruno Haible.
15079
15080 2010-04-11  Bruno Haible  <bruno@clisp.org>
15081
15082         Stricter declaration checking in testdirs.
15083         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
15084         If for_tests is true, augment AM_CPPFLAGS to define
15085         GNULIB_STRICT_CHECKING.
15086         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
15087         GNULIB_STRICT_CHECKING is defined, verify that the function is
15088         declared.
15089
15090 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
15091             Bruno Haible  <bruno@clisp.org>
15092
15093         libunistring: Improve configure output.
15094         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
15095         Don't say "consider installing GNU libunistring" when checking again
15096         with libiconv.
15097
15098 2010-04-11  Bruno Haible  <bruno@clisp.org>
15099
15100         libunistring: Correct value of $LTLIBUNISTRING.
15101         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
15102         correct the value of $LTLIBUNISTRING.
15103
15104 2010-04-11  Bruno Haible  <bruno@clisp.org>
15105
15106         havelib: Add static libraries to LIBS in the right order.
15107         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
15108         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
15109
15110 2010-04-11  Bruno Haible  <bruno@clisp.org>
15111
15112         libunistring: Detect libunistring also when it depends on libiconv.
15113         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
15114         the second AC_LIB_HAVE_LINKFLAGS invocation.
15115
15116 2010-04-11  James Youngman  <jay@gnu.org>
15117
15118         close-stream: declare local scalars to be "const"
15119         * lib/close-stream.c (close_stream): Make boolean variables const
15120         to document the fact that we set but do not change them.
15121
15122 2010-04-11  Bruno Haible  <bruno@clisp.org>
15123
15124         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
15125
15126 2010-04-11  Jim Meyering  <meyering@redhat.com>
15127
15128         maint.mk: don't include dist-check.mk
15129         * top/maint.mk: Remove bogus include directive.
15130
15131         maint.mk: improve empty-line-at-EOF check
15132         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
15133         solution, rather than tail+Perl-based one.  The latter would read
15134         a few kilobytes from the end of each file, and did not handle empty
15135         files properly.
15136
15137         maint.mk: print the elapsed time for each syntax-check rule
15138         * top/maint.mk (sc_m_rules_): Save start time in a file.
15139         (sc_z_rules_): New rules: remove temp file and print elapsed time.
15140         (local-check): Interpose the .z rules
15141
15142 2010-04-11  Jim Meyering  <meyering@redhat.com>
15143
15144         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
15145         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
15146         empty file with one that ends in an empty line.
15147
15148 2010-04-10  Bruno Haible  <bruno@clisp.org>
15149
15150         mkdir: Make it work on mingw64.
15151         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
15152         * lib/mkdir.c: Update comment.
15153         Reported by Roman Donchenko (Роман Ð”онченко) <dxdragon@yandex.ru>.
15154
15155 2010-04-10  Bruno Haible  <bruno@clisp.org>
15156
15157         Don't override improved macro from newer autoconf.
15158         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
15159         autoconf >= 2.62.
15160         Reported by Joel E. Denny <jdenny@clemson.edu>.
15161
15162 2010-04-10  Jim Meyering  <meyering@redhat.com>
15163
15164         maint.mk: new syntax-check rule: prohibit empty lines at end of file
15165         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
15166
15167         maint.mk: correct a diagnostic
15168         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
15169         in diagnostic; now use $prohibit.
15170
15171 2010-04-10  Bruno Haible  <address@hidden>
15172
15173         fchownat: Fix a C++ test error on Solaris 8.
15174         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
15175         the function does not exist.
15176
15177 2010-04-10  Bruno Haible  <bruno@clisp.org>
15178
15179         vasnprintf: Add more tests.
15180         * tests/test-vasnprintf-posix.c: Include <errno.h>.
15181         (test_function): Test converting an invalid wide string.
15182
15183         vasnprintf: Correct handling of unconvertible wide string arguments.
15184         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
15185         VASNPRINTF.
15186         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
15187         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
15188         smaller than the expected maximum need for the directive. Set errno to
15189         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
15190         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
15191         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
15192         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
15193         * modules/vasnprintf (Files): Add m4/printf.m4.
15194         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
15195
15196 2010-04-10  Bruno Haible  <bruno@clisp.org>
15197
15198         vasnprintf: Fix crash in %ls directive.
15199         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
15200         string is passed as argument to %ls, with no precision and no width.
15201         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
15202
15203 2010-04-10  Bruno Haible  <bruno@clisp.org>
15204
15205         vasnprintf: Fix multiple test failures on mingw.
15206         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
15207         _snprintf, or snwprintf, not _snwprintf.
15208
15209 2010-04-10  Bruno Haible  <bruno@clisp.org>
15210
15211         write: Fix a C++ test error on mingw.
15212         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
15213
15214 2010-04-10  Bruno Haible  <bruno@clisp.org>
15215
15216         vasnprintf test: Reduce code duplication.
15217         * tests/test-vasnprintf.c (test_function): New function, extracted from
15218         test_vasnprintf.
15219         (test_vasnprintf, test_asnprintf): Invoke it.
15220
15221 2010-04-10  Bruno Haible  <bruno@clisp.org>
15222
15223         strnlen: Fix warning in C++ mode on MacOS X.
15224         * lib/string.in.h (strnlen): Use the modern idiom.
15225         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
15226         defining strnlen as a macro already in <config.h>.
15227         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
15228         REPLACE_STRNLEN.
15229         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
15230         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
15231
15232 2010-04-08  James Youngman  <jay@gnu.org>
15233
15234         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
15235         the example.
15236
15237 2010-04-09  Jim Meyering  <meyering@redhat.com>
15238
15239         maint.mk: print better diagnostic when there is no $(_hv_file)
15240         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
15241         announce that when $(_hv_file) (aka help-version) does not exist.
15242
15243         init.sh: run tr in the "C" locale to avoid multibyte interpretation
15244         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
15245         not try to interpret its random input bytes.  Jarno Rajahalme reported
15246         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
15247         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
15248         (mktempd_): Likewise, just in case.
15249
15250         ftruncate: add two years to projected module removal date: 2012
15251         * m4/ftruncate.m4: Adjust comments.
15252
15253         ftruncate: mark module as obsolete; even MinGW provides it, now
15254         * modules/ftruncate (Status): Obsolete.
15255         (Notice): Say that.
15256         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
15257         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
15258
15259 2010-04-08  Bruno Haible  <bruno@clisp.org>
15260
15261         Fix side effects from tests-related modules.
15262         * modules/dprintf-posix (Comment): New section.
15263         * modules/fprintf-posix (Comment): Likewise.
15264         * modules/obstack-printf-posix (Comment): Likewise.
15265         * modules/printf-posix (Comment): Likewise.
15266         * modules/snprintf-posix (Comment): Likewise.
15267         * modules/sprintf-posix (Comment): Likewise.
15268         * modules/vasnprintf-posix (Comment): Likewise.
15269         * modules/vasprintf-posix (Comment): Likewise.
15270         * modules/vdprintf-posix (Comment): Likewise.
15271         * modules/vfprintf-posix (Comment): Likewise.
15272         * modules/vprintf-posix (Comment): Likewise.
15273         * modules/vsnprintf-posix (Comment): Likewise.
15274         * modules/vsprintf-posix (Comment): Likewise.
15275         * modules/xprintf-posix (Comment): Likewise.
15276         * modules/xvasprintf-posix (Comment): Likewise.
15277         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
15278         * modules/floorf-tests (Depends-on): Likewise.
15279         * modules/round-tests (Depends-on): Likewise.
15280         * modules/roundf-tests (Depends-on): Likewise.
15281         * modules/trunc-tests (Depends-on): Likewise.
15282         * modules/truncf-tests (Depends-on): Likewise.
15283         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
15284         'fprintf-posix' module is not present.
15285         * tests/test-floorf2.c (check): Likewise.
15286         * tests/test-trunc2.c (check): Likewise.
15287         * tests/test-truncf2.c (check): Likewise.
15288         * tests/test-round2.c (equal): Likewise.
15289         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
15290
15291 2010-04-07  Karl Berry  <karl@gnu.org>
15292
15293         * config/srclist.txt,
15294         * config/srclistvars.sh,
15295         * config/srclist-update: doc fixes.
15296
15297 2010-04-07  Jim Meyering  <meyering@redhat.com>
15298
15299         maint.mk: add a PATH crosschecking syntax-check rule
15300         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
15301         Useful if you use a test like the one in help-version (coreutils,
15302         diffutils, grep, gzip) that ensures $(VERSION) matches what is
15303         printed by prog --version.
15304
15305 2010-04-06  Bruno Haible  <bruno@clisp.org>
15306
15307         Fix link error on mingw.
15308         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
15309         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
15310
15311 2010-04-06  Bruno Haible  <bruno@clisp.org>
15312
15313         Assume rmdir exists.
15314         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
15315
15316 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
15317
15318         doc: update users.txt
15319         * users.txt: Add gcal.
15320
15321 2010-04-06  Jim Meyering  <meyering@redhat.com>
15322
15323         init.sh: simply unset TMPDIR rather than risking env -i
15324         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
15325         although it probably works fine on all Unix-based systems, some
15326         systems (Cygwin?) cannot tolerate a totally cleared environment.
15327         Suggestion from Eric Blake.
15328
15329 2010-04-06  Jim Meyering  <meyering@redhat.com>
15330
15331         init.sh: portability fix: use env's POSIX-specified -i option not -u
15332         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
15333         than unportable env -u.  Solaris 5.11's env lacks support for -u.
15334
15335 2010-04-05  Bruno Haible  <bruno@clisp.org>
15336
15337         btowc: Work around Cygwin 1.7.2 bug.
15338         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
15339         does not map NUL to 0.
15340         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
15341
15342 2010-04-05  Bruno Haible  <bruno@clisp.org>
15343
15344         Make the multithread modules work on Cygwin 1.7.2.
15345         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
15346         imported symbols can be declared weak, so that it returns "no" on
15347         Cygwin 1.7.2.
15348
15349 2010-04-05  Bruno Haible  <bruno@clisp.org>
15350
15351         Use the module 'strncat'.
15352         * modules/unistr/u8-strncat (Depends-on): Add strncat.
15353
15354         Tests for module 'strncat'.
15355         * modules/strncat-tests: New file.
15356         * tests/test-strncat.c: New file.
15357
15358         New module 'strncat'.
15359         * lib/string.in.h (strncat): New declaration.
15360         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
15361         * m4/strncat.m4: New file, based on m4/memchr.m4.
15362         * modules/strncat: New file.
15363         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
15364         is declared.
15365         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
15366         REPLACE_STRNCAT.
15367         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
15368         REPLACE_STRNCAT.
15369         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
15370         module.
15371         * tests/test-string-c++.cc: Check signature of strncat.
15372
15373 2010-04-05  Jim Meyering  <meyering@redhat.com>
15374
15375         xstrtoumax-tests: convert to use init.sh
15376         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
15377         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
15378         Use Exit, not exit.
15379         Remove uses of $EXEEXT and "./" to run a program in the current dir.
15380
15381         xstrtoimax-tests: convert to use init.sh
15382         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
15383         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
15384         Use Exit, not exit.
15385         Remove uses of $EXEEXT and "./" to run a program in the current dir.
15386
15387 2010-04-05  Bruno Haible  <bruno@clisp.org>
15388
15389         sys_socket: Avoid #define replacements in C++ mode.
15390         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
15391         warning to the function if possible, rather than #defining the symbol
15392         to a dysfunctional alias.
15393
15394 2010-04-05  Bruno Haible  <bruno@clisp.org>
15395
15396         fseeko: Fix C++ test error on mingw.
15397         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
15398         gl_FUNC_FSEEKO.
15399         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
15400         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
15401         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
15402         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
15403
15404 2010-04-05  Bruno Haible  <bruno@clisp.org>
15405
15406         duplocale: Improve test output.
15407         * tests/test-duplocale.c (main): Print reason for skipped test.
15408
15409 2010-04-05  Bruno Haible  <bruno@clisp.org>
15410
15411         Assume rmdir exists.
15412         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
15413         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
15414
15415 2010-04-05  Bruno Haible  <bruno@clisp.org>
15416
15417         Fix link error on Solaris 8 with cc.
15418         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
15419
15420 2010-04-05  Bruno Haible  <bruno@clisp.org>
15421
15422         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
15423         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
15424
15425 2010-04-05  Bruno Haible  <bruno@clisp.org>
15426
15427         vasprintf: Update documentation.
15428         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
15429
15430 2010-04-05  Bruno Haible  <bruno@clisp.org>
15431
15432         ptsname: Improve test.
15433         * tests/test-ptsname.c (main): Also try the various master names of BSD
15434         systems.
15435
15436 2010-04-05  Bruno Haible  <bruno@clisp.org>
15437
15438         memchr: Avoid a possible C++ test error.
15439         * lib/string.in.h (memchr): Provide declaration if function is missing.
15440         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
15441         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
15442         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
15443         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
15444
15445 2010-04-05  Bruno Haible  <bruno@clisp.org>
15446
15447         strtok_r: Improve idiom.
15448         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
15449         AC_LIBOBJ is used.
15450
15451 2010-04-05  Bruno Haible  <bruno@clisp.org>
15452
15453         strdup: Improve idiom.
15454         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
15455         AC_LIBOBJ is used.
15456         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
15457         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
15458         when AC_LIBOBJ is used.
15459
15460 2010-04-05  Bruno Haible  <bruno@clisp.org>
15461
15462         mbsinit, mbrtowc, wcrtomb: Improve idioms.
15463         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
15464         don't set REPLACE_MBSINIT to 1.
15465         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
15466         don't set REPLACE_MBRTOWC to 1.
15467         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
15468         exist, don't set REPLACE_MBSRTOWCS to 1.
15469         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
15470         exist, don't set REPLACE_MBSNRTOWCS to 1.
15471         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
15472         don't set REPLACE_WCRTOMB to 1.
15473         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
15474         exist, don't set REPLACE_WCSRTOMBS to 1.
15475         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
15476         exist, don't set REPLACE_WCSNRTOMBS to 1.
15477
15478 2010-04-05  Bruno Haible  <bruno@clisp.org>
15479
15480         ldexpl: Improve idiom.
15481         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
15482         make sure to set HAVE_DECL_LDEXPL to 0.
15483
15484 2010-04-05  Jim Meyering  <meyering@redhat.com>
15485
15486         xstrtol-tests: convert to use init.sh
15487         * modules/xstrtol-tests (Files): Add tests/init.sh.
15488         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
15489         Use Exit, not exit.
15490         Remove uses of $EXEEXT and "./" to run a program in the current dir.
15491
15492         atexit-tests: convert to use init.sh
15493         * modules/atexit-tests (Files): Add tests/init.sh.
15494         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
15495         Use Exit, not exit.
15496         Remove uses of $EXEEXT and "./" to run a program in the current dir.
15497
15498         init.sh: fix typo
15499         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
15500
15501         init.sh: make it easier for a test script to write to the tty, ...
15502         when using automake's parallel-tests mode.
15503         * tests/init.sh (stderr_fileno_): Define overridable variable.
15504         (warn_): New function, to use it.
15505         (fail_, skip_, framework_failure_): Use warn_.
15506
15507 2010-04-04  Bruno Haible  <bruno@clisp.org>
15508
15509         btowc: Avoid warning.
15510         * lib/btowc.c: Include <stdlib.h>.
15511         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
15512
15513 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
15514             Bruno Haible  <bruno@clisp.org>
15515
15516         wchar: Port to NetBSD 1.5.
15517         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
15518         * lib/wctype.in.h (WEOF): Likewise.
15519
15520 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
15521             Bruno Haible  <bruno@clisp.org>
15522
15523         Port extended stdio to NetBSD 1.5.
15524         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
15525         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
15526         older.
15527
15528 2010-04-04  Bruno Haible  <bruno@clisp.org>
15529
15530         string: Remove unused substitution.
15531         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
15532         HAVE_DECL_STRERROR.
15533         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
15534
15535 2010-04-04  Bruno Haible  <bruno@clisp.org>
15536
15537         strtod: Avoid a possible C++ test error.
15538         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
15539         set REPLACE_STRTOD.
15540
15541 2010-04-04  Bruno Haible  <bruno@clisp.org>
15542
15543         strerror: Update documentation.
15544         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
15545
15546 2010-04-04  Bruno Haible  <bruno@clisp.org>
15547
15548         stdio: Fix some C++ test errors on Solaris 8 with GCC.
15549         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
15550         _GL_CXXALIAS_SYS_CAST.
15551
15552 2010-04-04  Bruno Haible  <bruno@clisp.org>
15553
15554         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
15555         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
15556         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
15557         REPLACE_FREXPL to 1.
15558         * doc/posix-functions/frexpl.texi: Update documentation.
15559
15560 2010-04-04  Bruno Haible  <bruno@clisp.org>
15561
15562         math: Fix some C++ test errors on Solaris 8 and Cygwin.
15563         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
15564
15565 2010-04-04  Bruno Haible  <bruno@clisp.org>
15566
15567         Implement nanosleep for native Windows.
15568         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
15569
15570 2010-04-04  Bruno Haible  <bruno@clisp.org>
15571
15572         math: Fix some C++ test errors on Solaris 8.
15573         * lib/math.in.h (truncf, trunc): Use simpler idiom.
15574
15575 2010-04-04  Bruno Haible  <bruno@clisp.org>
15576
15577         math: Fix some C++ test errors on Cygwin.
15578         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
15579         truncl): Provide declaration if the system does not have it.
15580         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
15581         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
15582         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
15583         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
15584         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
15585         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
15586         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
15587         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
15588         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
15589         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
15590         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
15591         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
15592         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
15593         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
15594         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
15595         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
15596         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
15597         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
15598         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
15599         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
15600         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
15601         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
15602
15603 2010-04-04  Bruno Haible  <bruno@clisp.org>
15604
15605         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
15606         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
15607         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
15608         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
15609         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
15610         * m4/isinf.m4 (gl_ISINF): Likewise.
15611         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
15612
15613 2010-04-04  Bruno Haible  <bruno@clisp.org>
15614
15615         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
15616         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
15617
15618 2010-04-04  Bruno Haible  <bruno@clisp.org>
15619
15620         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
15621         * modules/tmpfile (configure.ac): Update.
15622
15623         tmpfile: Fix C++ test error on mingw.
15624         * lib/stdio.in.h (tmpfile): New declaration.
15625         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
15626         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
15627         * modules/tmpfile (Depends-on): Add stdio.
15628         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
15629         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
15630         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
15631         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
15632         REPLACE_TMPFILE.
15633         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
15634
15635 2010-04-04  Bruno Haible  <bruno@clisp.org>
15636
15637         ioctl: Fix C++ test error on mingw.
15638         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
15639         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
15640         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
15641
15642 2010-04-03  Bruno Haible  <bruno@clisp.org>
15643
15644         wcwidth: Fix C++ test error on mingw.
15645         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
15646         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
15647         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
15648
15649 2010-04-03  Bruno Haible  <bruno@clisp.org>
15650
15651         nanosleep: Fix C++ test error on mingw.
15652         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
15653         * lib/time.in.h (nanosleep): Use modern idiom.
15654         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
15655         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
15656         REPLACE_NANOSLEEP to 1.
15657         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
15658         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
15659
15660 2010-04-03  Bruno Haible  <bruno@clisp.org>
15661
15662         strptime: Fix C++ test error on mingw.
15663         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
15664         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
15665         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
15666         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
15667         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
15668         not REPLACE_STRPTIME.
15669         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
15670         REPLACE_STRPTIME.
15671
15672 2010-04-03  Bruno Haible  <bruno@clisp.org>
15673
15674         timegm: Fix C++ test error on mingw.
15675         * lib/time.in.h (timegm): Use modern idiom.
15676         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
15677         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
15678         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
15679         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
15680
15681 2010-04-03  Bruno Haible  <bruno@clisp.org>
15682
15683         timegm: Assume declaration if function exists.
15684         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
15685         if it exists. Don't clobber ac_cv_func_timegm.
15686
15687 2010-04-03  Bruno Haible  <bruno@clisp.org>
15688
15689         time_r: Fix C++ test error on mingw.
15690         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
15691         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
15692         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
15693         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
15694         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
15695
15696 2010-04-03  Bruno Haible  <bruno@clisp.org>
15697
15698         time_r: Minor updates.
15699         * modules/time_r (Description): Mention the provided functions.
15700         * lib/time_r.c: Don't include <string.h>.
15701         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
15702         * doc/posix-functions/localtime_r.texi: Likewise.
15703
15704 2010-04-03  Bruno Haible  <bruno@clisp.org>
15705
15706         time: Fix regression introduced on 2010-03-08.
15707         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
15708         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
15709
15710 2010-04-03  Jim Meyering  <meyering@redhat.com>
15711
15712         maint.mk: don't silently disable project-specific syntax-check rules
15713         * top/maint.mk (_prohibit_regexp): Define, to help people realize
15714         that they need to convert their project-specific syntax-check rules
15715         to use the new _sc_search_regexp.
15716
15717 2010-04-03  Bruno Haible  <bruno@clisp.org>
15718
15719         fchdir: Fix regression introduced on 2010-03-08.
15720         * lib/unistd.in.h (fchdir): Fix declaration.
15721         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
15722         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
15723         REPLACE_FCHDIR.
15724         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
15725         REPLACE_FCHDIR.
15726
15727 2010-04-03  Bruno Haible  <bruno@clisp.org>
15728
15729         getpagesize: Fix C++ test error on mingw.
15730         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
15731         system does not declare the function.
15732         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
15733         declared.
15734         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
15735         HAVE_DECL_GETPAGESIZE.
15736         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
15737
15738 2010-04-03  Bruno Haible  <bruno@clisp.org>
15739
15740         stdio: Make C++ tests work on mingw.
15741         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
15742         does not declare the function.
15743
15744 2010-04-03  Bruno Haible  <bruno@clisp.org>
15745
15746         ftello: Fix C++ test error on mingw.
15747         * lib/stdio.in.h (ftello): Use modern idiom.
15748         * lib/ftello.c (ftello): Renamed from rpl_ftello.
15749         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
15750         is missing and that it needs to be replaced.
15751         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
15752         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
15753         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
15754
15755 2010-04-03  Bruno Haible  <bruno@clisp.org>
15756
15757         fseeko: Fix C++ test error on mingw.
15758         * lib/stdio.in.h (fseeko): Use modern idiom.
15759         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
15760         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
15761         is missing and that it needs to be replaced.
15762         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
15763         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
15764         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
15765
15766 2010-04-03  Bruno Haible  <bruno@clisp.org>
15767
15768         mkstemp: Fix C++ test error on mingw.
15769         * lib/stdlib.in.h (mkstemp): Use modern idiom.
15770         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
15771         function is missing and that it needs to be replaced.
15772         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
15773         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
15774
15775 2010-04-03  Bruno Haible  <bruno@clisp.org>
15776
15777         stpncpy: Fix C++ test error on mingw.
15778         * lib/string.in.h (stpncpy): Use modern idiom.
15779         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
15780         function is missing and that it needs to be replaced.
15781         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
15782         REPLACE_STPNCPY.
15783         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
15784
15785 2010-04-03  Bruno Haible  <bruno@clisp.org>
15786
15787         sys_stat: Fix C++ test error on mingw.
15788         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
15789         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
15790
15791 2010-04-03  Bruno Haible  <bruno@clisp.org>
15792
15793         pty: Update doc.
15794         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
15795
15796 2010-04-03  Bruno Haible  <bruno@clisp.org>
15797
15798         unistd: Fix C++ test error on mingw.
15799         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
15800
15801 2010-04-03  Bruno Haible  <bruno@clisp.org>
15802
15803         Update doc regarding mingw.
15804         * doc/glibc-functions/openpty.texi: Update regarding mingw.
15805         * doc/glibc-functions/login_tty.texi: Likewise.
15806         * doc/glibc-functions/forkpty.texi: Likewise.
15807
15808 2010-04-03  Bruno Haible  <bruno@clisp.org>
15809
15810         stdlib: Avoid compilation failure of c-strtold on mingw.
15811         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
15812
15813 2010-04-03  Bruno Haible  <bruno@clisp.org>
15814
15815         locale: Make C++ tests work on Cygwin and mingw.
15816         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
15817         cannot provide the function.
15818         Reported by Simon Josefsson.
15819
15820 2010-04-03  Bruno Haible  <bruno@clisp.org>
15821
15822         localename: Port to MacOS X 10.6.
15823         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
15824         memory layout of the locales in MacOS X 10.6 as well.
15825         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
15826
15827 2010-04-02  Bruno Haible  <bruno@clisp.org>
15828
15829         gnulib-tool: Ensure that long-running tests are executed last.
15830         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
15831         running tests after the one for the other tests.
15832
15833 2010-04-02  Bruno Haible  <bruno@clisp.org>
15834
15835         gnulib-tool: Ensure the tests in the main directory are executed first.
15836         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
15837         start with the current directory.
15838
15839 2010-04-02  Bruno Haible  <bruno@clisp.org>
15840
15841         Tests for module 'havelib', moved here from GNU gettext.
15842         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
15843         modifications.
15844         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
15845         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
15846         with modifications.
15847         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
15848         modifications.
15849         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
15850         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
15851         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
15852         with modifications.
15853         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
15854         with modifications.
15855         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
15856         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
15857         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
15858         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
15859         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
15860         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
15861         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
15862         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
15863         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
15864         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
15865         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
15866         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
15867         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
15868         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
15869         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
15870         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
15871         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
15872         with modifications.
15873         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
15874         with modifications.
15875         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
15876         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
15877         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
15878         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
15879         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
15880         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
15881         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
15882         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
15883         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
15884         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
15885         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
15886         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
15887         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
15888         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
15889         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
15890         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
15891         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
15892         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
15893         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
15894         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
15895         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
15896         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
15897         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
15898         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
15899         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
15900         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
15901         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
15902         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
15903         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
15904         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
15905         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
15906         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
15907         * tests/havelib/rpathx/rpathx.c: New file, from
15908         gettext/autoconf-lib-link.
15909         * tests/havelib/rpathx/Makefile.am: New file, from
15910         gettext/autoconf-lib-link.
15911         * tests/havelib/rpathx/configure.ac: New file, from
15912         gettext/autoconf-lib-link with modifications.
15913         * tests/havelib/rpathy/rpathy.c: New file, from
15914         gettext/autoconf-lib-link.
15915         * tests/havelib/rpathy/Makefile.am: New file, from
15916         gettext/autoconf-lib-link.
15917         * tests/havelib/rpathy/configure.ac: New file, from
15918         gettext/autoconf-lib-link with modifications.
15919         * tests/havelib/rpathz/rpathz.c: New file, from
15920         gettext/autoconf-lib-link.
15921         * tests/havelib/rpathz/Makefile.am: New file, from
15922         gettext/autoconf-lib-link.
15923         * tests/havelib/rpathz/configure.ac: New file, from
15924         gettext/autoconf-lib-link with modifications.
15925         * tests/havelib/rpathlx/usex.c: New file, from
15926         gettext/autoconf-lib-link.
15927         * tests/havelib/rpathlx/Makefile.am: New file, from
15928         gettext/autoconf-lib-link.
15929         * tests/havelib/rpathlx/configure.ac: New file, from
15930         gettext/autoconf-lib-link with modifications.
15931         * tests/havelib/rpathly/usey.c: New file, from
15932         gettext/autoconf-lib-link.
15933         * tests/havelib/rpathly/Makefile.am: New file, from
15934         gettext/autoconf-lib-link.
15935         * tests/havelib/rpathly/configure.ac: New file, from
15936         gettext/autoconf-lib-link with modifications.
15937         * tests/havelib/rpathlz/usez.c: New file, from
15938         gettext/autoconf-lib-link.
15939         * tests/havelib/rpathlz/Makefile.am: New file, from
15940         gettext/autoconf-lib-link.
15941         * tests/havelib/rpathlz/configure.ac: New file, from
15942         gettext/autoconf-lib-link with modifications.
15943         * tests/havelib/rpathlyx/usey.c: New file, from
15944         gettext/autoconf-lib-link.
15945         * tests/havelib/rpathlyx/Makefile.am: New file, from
15946         gettext/autoconf-lib-link.
15947         * tests/havelib/rpathlyx/configure.ac: New file, from
15948         gettext/autoconf-lib-link with modifications.
15949         * tests/havelib/rpathlzyx/usez.c: New file, from
15950         gettext/autoconf-lib-link.
15951         * tests/havelib/rpathlzyx/Makefile.am: New file, from
15952         gettext/autoconf-lib-link.
15953         * tests/havelib/rpathlzyx/configure.ac: New file, from
15954         gettext/autoconf-lib-link with modifications.
15955         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
15956         with modifications.
15957
15958 2010-04-02  Bruno Haible  <bruno@clisp.org>
15959
15960         gnulib-tool: Create distributed built sources also for the tests.
15961         * gnulib-tool (func_create_testdir): Also generate distributed built
15962         sources in the tests directory.
15963
15964 2010-04-02  Bruno Haible  <bruno@clisp.org>
15965
15966         gnulib-tool: Obey user's environment variables.
15967         * gnulib-tool (func_create_testdir): When creating built sources,
15968         respect the environment variables for autoconf, automake, etc. given by
15969         the user.
15970
15971 2010-04-02  Bruno Haible  <bruno@clisp.org>
15972
15973         gnulib-tool: Provide the value of --m4-base to modules.
15974         * gnulib-tool (func_import, func_create_testdir): Emit a definition
15975         of gl_m4_base.
15976
15977 2010-04-02  Eric Blake  <eblake@redhat.com>
15978
15979         maint.mk: fix some fallout
15980         * NEWS: Document the incompatible change, and its effect on cfg.mk.
15981         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
15982
15983 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
15984
15985         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
15986         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
15987         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
15988         (sc_cast_of_x_alloc_return_value): Likewise.
15989         (sc_cast_of_alloca_return_value): Likewise.
15990         (sc_space_tab): Likewise.
15991         (sc_prohibit_atoi_atof): Likewise.
15992         (sc_prohibit_magic_number_exit): Likewise.
15993         (sc_error_exit_success): Likewise.
15994         (sc_file_system): Likewise.
15995         (sc_prohibit_have_config_h): Likewise.
15996         (sc_require_config_h): Likewise.
15997         (sc_prohibit_HAVE_MBRTOWC): Likewise.
15998         (sc_obsolete_symbols): Likewise.
15999         (sc_changelog): Likewise.
16000         (sc_program_name): Likewise.
16001         (sc_the_the): Likewise.
16002         (sc_trailing_blank): Likewise.
16003         (sc_two_space_separator_in_usage): Likewise.
16004         (sc_useless_cpp_parens): Likewise.
16005         (sc_GPL_version): Likewise.
16006         (sc_GFDL_version): Likewise.
16007         (sc_texinfo_acronym): Likewise.
16008         (sc_prohibit_cvs_keyword): Likewise.
16009         (sc_prohibit_stat_st_blocks): Likewise.
16010         (sc_prohibit_S_IS_definition): Likewise.
16011         (sc_redundant_const): Likewise.
16012         (sc_makefile_TAB_only_indentation): Likewise.
16013         (sc_m4_quote_check): Likewise.
16014         (sc_makefile_path_separator_check): Likewise.
16015         (sc_copyright_check): Likewise.
16016         (sc_Wundef_boolean): Likewise.
16017         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
16018
16019         maint.mk: match 0 or more whitespace-before-function-call '('
16020         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
16021         that have zero or two-and-more spaces between the function name
16022         and the open parenthesis.
16023         (sc_error_message_warn_fatal): Likewise.
16024         (sc_error_message_uppercase): Likewise.
16025         (sc_error_message_period): Likewise.
16026
16027 2010-03-31  Eric Blake  <eblake@redhat.com>
16028
16029         maint.mk: check for [ as well as test
16030         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
16031         Based on a libvirt report by Matthias Bolte.
16032
16033         gnumakefile: don't squelch _version output
16034         * top/GNUmakefile (_version): Create one-shot dependency rather
16035         than using $(shell) when version must be regenerated.
16036         (_autoreconf): Run verbosely, by default.
16037
16038         sys_time: avoid compiler warnings
16039         * lib/sys_time.in.h (includes): Ensure gcc pragma is
16040         unconditional, fixing regression from 2010-03-29.
16041         Reported by Simon Josefsson.
16042
16043 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
16044
16045         maint.mk: s/_header_without_use/_sc_header_without_use/
16046         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
16047         (sc_prohibit_assert_without_use): Use the new name.
16048         (sc_prohibit_close_stream_without_use): Likewise.
16049         (sc_prohibit_getopt_without_use): Likewise.
16050         (sc_prohibit_quotearg_without_use): Likewise.
16051         (sc_prohibit_quote_without_use): Likewise.
16052         (sc_prohibit_long_options_without_use): Likewise.
16053         (sc_prohibit_inttostr_without_use): Likewise.
16054         (sc_prohibit_ignore_value_without_use): Likewise.
16055         (sc_prohibit_error_without_use): Likewise.
16056         (sc_prohibit_xalloc_without_use): Likewise.
16057         (sc_prohibit_hash_without_use): Likewise.
16058         (sc_prohibit_hash_pjw_without_use): Likewise.
16059         (sc_prohibit_safe_read_without_use): Likewise.
16060         (sc_prohibit_argmatch_without_use): Likewise.
16061         (sc_prohibit_canonicalize_without_use): Likewise.
16062         (sc_prohibit_root_dev_ino_without_use): Likewise.
16063         (sc_prohibit_openat_without_use): Likewise.
16064         (sc_prohibit_c_ctype_without_use): Likewise.
16065         (sc_prohibit_signal_without_use): Likewise.
16066         (sc_prohibit_intprops_without_use): Likewise.
16067
16068 2010-03-30  Eric Blake  <eblake@redhat.com>
16069
16070         maint: improve module indicators
16071         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
16072         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
16073         columns, and avoid extra macro expansion.
16074
16075         fdopendir: work around FreeBSD bug
16076         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
16077         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
16078         * modules/dirent (Makefile.am): Substitute it.
16079         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
16080         declaration.
16081         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
16082         fix.
16083         Reported by Christian Weisgerber <naddy@mips.inka.de>.
16084
16085 2010-03-29  Bruno Haible  <bruno@clisp.org>
16086
16087         Emit #pragma system_header after the inclusion guard, not before.
16088         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
16089         guard that spans the entire file, not before. This enables an
16090         optimization in GCC's preprocessor.
16091         * lib/ctype.in.h: Likewise.
16092         * lib/dirent.in.h: Likewise.
16093         * lib/errno.in.h: Likewise.
16094         * lib/float.in.h: Likewise.
16095         * lib/getopt.in.h: Likewise.
16096         * lib/iconv.in.h: Likewise.
16097         * lib/langinfo.in.h: Likewise.
16098         * lib/locale.in.h: Likewise.
16099         * lib/math.in.h: Likewise.
16100         * lib/netdb.in.h: Likewise.
16101         * lib/netinet_in.in.h: Likewise.
16102         * lib/pty.in.h: Likewise.
16103         * lib/sched.in.h: Likewise.
16104         * lib/se-selinux.in.h: Likewise.
16105         * lib/search.in.h: Likewise.
16106         * lib/spawn.in.h: Likewise.
16107         * lib/stdarg.in.h: Likewise.
16108         * lib/stdint.in.h: Likewise.
16109         * lib/string.in.h: Likewise.
16110         * lib/strings.in.h: Likewise.
16111         * lib/sys_file.in.h: Likewise.
16112         * lib/sys_ioctl.in.h: Likewise.
16113         * lib/sys_time.in.h: Likewise.
16114         * lib/sys_times.in.h: Likewise.
16115         * lib/sys_utsname.in.h: Likewise.
16116         * lib/sys_wait.in.h: Likewise.
16117         * lib/sysexits.in.h: Likewise.
16118         * lib/wctype.in.h: Likewise.
16119
16120 2010-03-28  James Youngman  <jay@gnu.org>
16121
16122         save-cwd: don't leak a file descriptor when the caller execs.
16123         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
16124         saved file descriptor.
16125         * modules/save-cwd (Depends-on): Depend on cloexec.
16126
16127 2010-03-29  Bruno Haible  <bruno@clisp.org>
16128
16129         Remove vestiges of fts-lgpl module.
16130         * lib/fts_.h: Assume GNULIB_FTS is 1.
16131         * lib/fts.c: Likewise.
16132         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
16133
16134 2010-03-28  Bruno Haible  <bruno@clisp.org>
16135
16136         Fix definition of tests witness macro.
16137         * gnulib-tool (func_import): Fix definition of witness macro.
16138
16139 2010-03-28  Bruno Haible  <bruno@clisp.org>
16140
16141         Fix ioctl's protoype on glibc systems.
16142         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
16143         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
16144         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
16145         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
16146         signature. If not, arrange to replace the ioctl function.
16147         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
16148         REPLACE_IOCTL.
16149         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
16150         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
16151         Reported by Ludovic Courtès <ludo@gnu.org>.
16152
16153 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
16154
16155         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
16156         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
16157         made it so grep -r --include=GLOB* ... did not work.
16158
16159 2010-03-26  Jim Meyering  <meyering@redhat.com>
16160             Eric Blake  <eblake@redhat.com>
16161
16162         maint.mk: prohibit use of test's -o and -a operators
16163         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
16164
16165 2010-03-28  Bruno Haible  <bruno@clisp.org>
16166
16167         Remove unused GNULIB_XYZ macro definitions.
16168         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
16169         invocation.
16170
16171 2010-03-28  Bruno Haible  <bruno@clisp.org>
16172
16173         Mark privileged tests modules.
16174         * modules/idpriv-drop-tests (Status): New section.
16175         * modules/idpriv-droptemp-tests (Status): New section.
16176
16177 2010-03-28  Bruno Haible  <bruno@clisp.org>
16178
16179         Split C++ tests into separate tests modules.
16180         * modules/dirent-c++-tests: New file, extracted from
16181         modules/dirent-tests.
16182         * modules/dirent-tests: Depend on it.
16183         * modules/fcntl-h-c++-tests: New file, extracted from
16184         modules/fcntl-h-tests.
16185         * modules/fcntl-h-tests: Depend on it.
16186         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
16187         * modules/glob-tests: Depend on it.
16188         * modules/iconv-h-c++-tests: New file, extracted from
16189         modules/iconv-h-tests.
16190         * modules/iconv-h-tests: Depend on it.
16191         * modules/langinfo-c++-tests: New file, extracted from
16192         modules/langinfo-tests.
16193         * modules/langinfo-tests: Depend on it.
16194         * modules/locale-c++-tests: New file, extracted from
16195         modules/locale-tests.
16196         * modules/locale-tests: Depend on it.
16197         * modules/math-c++-tests: New file, extracted from modules/math-tests.
16198         * modules/math-tests: Depend on it.
16199         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
16200         * modules/pty-tests: Depend on it.
16201         * modules/search-c++-tests: New file, extracted from
16202         modules/search-tests.
16203         * modules/search-tests: Depend on it.
16204         * modules/signal-c++-tests: New file, extracted from
16205         modules/signal-tests.
16206         * modules/signal-tests: Depend on it.
16207         * modules/spawn-c++-tests: New file, extracted from
16208         modules/spawn-tests.
16209         * modules/spawn-tests: Depend on it.
16210         * modules/stdio-c++-tests: New file, extracted from
16211         modules/stdio-tests.
16212         * modules/stdio-tests: Depend on it.
16213         * modules/stdlib-c++-tests: New file, extracted from
16214         modules/stdlib-tests.
16215         * modules/stdlib-tests: Depend on it.
16216         * modules/string-c++-tests: New file, extracted from
16217         modules/string-tests.
16218         * modules/string-tests: Depend on it.
16219         * modules/sys_ioctl-c++-tests: New file, extracted from
16220         modules/sys_ioctl-tests.
16221         * modules/sys_ioctl-tests: Depend on it.
16222         * modules/sys_select-c++-tests: New file, extracted from
16223         modules/sys_select-tests.
16224         * modules/sys_select-tests: Depend on it.
16225         * modules/sys_socket-c++-tests: New file, extracted from
16226         modules/sys_socket-tests.
16227         * modules/sys_socket-tests: Depend on it.
16228         * modules/sys_stat-c++-tests: New file, extracted from
16229         modules/sys_stat-tests.
16230         * modules/sys_stat-tests: Depend on it.
16231         * modules/sys_time-c++-tests: New file, extracted from
16232         modules/sys_time-tests.
16233         * modules/sys_time-tests: Depend on it.
16234         * modules/time-c++-tests: New file, extracted from modules/time-tests.
16235         * modules/time-tests: Depend on it.
16236         * modules/unistd-c++-tests: New file, extracted from
16237         modules/unistd-tests.
16238         * modules/unistd-tests: Depend on it.
16239         * modules/wchar-c++-tests: New file, extracted from
16240         modules/wchar-tests.
16241         * modules/wchar-tests: Depend on it.
16242         * modules/wctype-c++-tests: New file, extracted from
16243         modules/wctype-tests.
16244         * modules/wctype-tests: Depend on it.
16245         Reported by Simon Josefsson.
16246
16247 2010-03-28  Bruno Haible  <bruno@clisp.org>
16248
16249         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
16250         * gnulib-tool (func_exists_module): New function, extracted from
16251         func_verify_module.
16252         (func_verify_module): Use it.
16253         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
16254         'foo' only if 'foo' exists.
16255         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
16256         module.
16257
16258 2010-03-28  Bruno Haible  <bruno@clisp.org>
16259
16260         gnulib-tool: Add support for special categories of tests.
16261         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
16262         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
16263         (func_usage): Document them.
16264         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
16265         inc_unportable_tests, inc_all_tests): New variables.
16266         (func_acceptable): Consider these variables.
16267         (func_modules_transitive_closure): Make it work when the 'Status' field
16268         consists of multiple words.
16269         (func_import): Store and restore the values of inc_cxx_tests,
16270         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
16271         inc_all_tests in gnulib-comp.m4.
16272         (func_create_testdir): Set inc_all_tests to true.
16273         * doc/gnulib.texi (Extra tests modules): New section.
16274         Suggested by Jim Meyering.
16275
16276 2010-03-28  Bruno Haible  <bruno@clisp.org>
16277
16278         ansi-c++-opt: Allow turning off the C++ build by default.
16279         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
16280         gl_CXX_CHOICE_DEFAULT_NO is defined.
16281         Requested by Eric Blake.
16282
16283 2010-03-28  Bruno Haible  <bruno@clisp.org>
16284
16285         unistd: Avoid #define replacements in C++ mode.
16286         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
16287         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
16288         setsockopt, shutdown, select): In C++, attach a warning to the function
16289         if possible, rather than #defining the symbol to a dysfunctional alias.
16290         Reported by John W. Eaton <jwe@gnu.org>.
16291
16292 2010-03-28  Bruno Haible  <bruno@clisp.org>
16293
16294         Fix link errors on mingw.
16295         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
16296         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
16297         $(LIBSOCKET).
16298         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
16299         $(LIBSOCKET).
16300
16301 2010-03-28  Bruno Haible  <bruno@clisp.org>
16302             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16303
16304         lib-ignore: Determine different options for different compilers.
16305         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
16306         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
16307         Add comments.
16308         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
16309         * NEWS: Mention the change.
16310
16311 2010-03-27  Bruno Haible  <bruno@clisp.org>
16312
16313         Remove unused GNULIB_XYZ macro definitions.
16314         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
16315         * modules/fseek (configure.ac): Likewise.
16316         * modules/ioctl (configure.ac): Likewise.
16317         * modules/open (configure.ac): Likewise.
16318         * modules/stdlib-safer (configure.ac): Likewise.
16319
16320 2010-03-27  Bruno Haible  <bruno@clisp.org>
16321
16322         Add a remark about certain modules.
16323         * modules/malloc (Comment): New section.
16324         * modules/realloc (Comment): Likewise.
16325         * modules/sigpipe (Comment): Likewise.
16326
16327 2010-03-27  Bruno Haible  <bruno@clisp.org>
16328
16329         Resolve conflict between the two kinds of module indicators.
16330         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
16331         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
16332         * modules/canonicalize (configure.ac): Invoke
16333         gl_MODULE_INDICATOR_FOR_TESTS.
16334         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
16335         GNULIB_XYZ.
16336         * tests/test-dirent-c++.cc: Likewise.
16337         * tests/test-dirent-safer.c: Likewise.
16338         * tests/test-dup2.c: Likewise.
16339         * tests/test-fchdir.c: Likewise.
16340         * tests/test-fcntl-h-c++.cc: Likewise.
16341         * tests/test-getopt.c: Likewise.
16342         * tests/test-getopt.h: Likewise.
16343         * tests/test-langinfo-c++.cc: Likewise.
16344         * tests/test-locale-c++.cc: Likewise.
16345         * tests/test-math-c++.cc: Likewise.
16346         * tests/test-pty-c++.cc: Likewise.
16347         * tests/test-search-c++.cc: Likewise.
16348         * tests/test-signal-c++.cc: Likewise.
16349         * tests/test-spawn-c++.cc: Likewise.
16350         * tests/test-stdio-c++.cc: Likewise.
16351         * tests/test-stdlib-c++.cc: Likewise.
16352         * tests/test-string-c++.cc: Likewise.
16353         * tests/test-sys_ioctl-c++.cc: Likewise.
16354         * tests/test-sys_select-c++.cc: Likewise.
16355         * tests/test-sys_socket-c++.cc: Likewise.
16356         * tests/test-sys_stat-c++.cc: Likewise.
16357         * tests/test-sys_time-c++.cc: Likewise.
16358         * tests/test-time-c++.cc: Likewise.
16359         * tests/test-unistd-c++.cc: Likewise.
16360         * tests/test-wchar-c++.cc: Likewise.
16361         * tests/uninorm/test-u8-nfc.c: Likewise.
16362         * tests/uninorm/test-u8-nfd.c: Likewise.
16363         * tests/uninorm/test-u8-nfkc.c: Likewise.
16364         * tests/uninorm/test-u8-nfkd.c: Likewise.
16365         * tests/uninorm/test-u16-nfc.c: Likewise.
16366         * tests/uninorm/test-u16-nfd.c: Likewise.
16367         * tests/uninorm/test-u16-nfkc.c: Likewise.
16368         * tests/uninorm/test-u16-nfkd.c: Likewise.
16369         * tests/uninorm/test-u32-nfc.c: Likewise.
16370         * tests/uninorm/test-u32-nfc-big.c: Likewise.
16371         * tests/uninorm/test-u32-nfd.c: Likewise.
16372         * tests/uninorm/test-u32-nfd-big.c: Likewise.
16373         * tests/uninorm/test-u32-nfkc.c: Likewise.
16374         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
16375         * tests/uninorm/test-u32-nfkd.c: Likewise.
16376         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
16377         * tests/uninorm/test-u32-normalize-big.c: Likewise.
16378
16379 2010-03-27  Bruno Haible  <bruno@clisp.org>
16380
16381         Distinguish two kinds of module indicators.
16382         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
16383         gl_MODULE_INDICATOR.
16384         (gl_MODULE_INDICATOR): New macro.
16385         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
16386         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
16387         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
16388         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
16389         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
16390         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
16391         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
16392         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
16393         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
16394         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
16395         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
16396         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
16397         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
16398         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
16399         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
16400         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
16401         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
16402         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
16403         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
16404         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
16405         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
16406         * modules/cloexec (configure.ac): Likewise.
16407         * modules/getopt-gnu (configure.ac): Likewise.
16408         * modules/uninorm/u8-normalize (configure.ac): Likewise.
16409         * modules/uninorm/u16-normalize (configure.ac): Likewise.
16410         * modules/uninorm/u32-normalize (configure.ac): Likewise.
16411         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
16412
16413 2010-03-27  Bruno Haible  <bruno@clisp.org>
16414
16415         New module description field 'Comment'.
16416         * gnulib-tool: New option --extract-comment.
16417         (func_usage): Document it.
16418         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
16419         (func_get_comment): New function.
16420         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
16421
16422 2010-03-27  Bruno Haible  <bruno@clisp.org>
16423
16424         Addendum to 2010-02-07 commit.
16425         * gnulib-tool (func_usage): Document --extract-applicability option.
16426
16427 2010-03-27  Bruno Haible  <bruno@clisp.org>
16428
16429         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
16430         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
16431         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
16432         rather than link errors.
16433
16434 2010-03-27  Bruno Haible  <bruno@clisp.org>
16435
16436         Avoid side effects from tests-related modules on the compilation of lib.
16437         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
16438         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
16439         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
16440         parameter. Emit into AM_CPPFLAGS a definition of the designated C
16441         macro.
16442         (func_import): Define a witness macro. Assign it a value that depends
16443         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
16444         tests-related modules.
16445         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
16446         Reported by Jim Meyering.
16447
16448 2010-03-27  Bruno Haible  <bruno@clisp.org>
16449
16450         Factorize common .m4 code.
16451         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
16452         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
16453         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
16454         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
16455         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
16456         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
16457         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
16458         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
16459         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
16460         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
16461         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
16462         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
16463         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
16464         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
16465         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
16466         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
16467         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
16468         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
16469         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
16470         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
16471         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
16472         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
16473         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
16474         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
16475         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
16476         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
16477         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
16478         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
16479         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
16480         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
16481         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
16482         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
16483
16484 2010-03-27  Bruno Haible  <bruno@clisp.org>
16485
16486         Fix a compilation error on Cygwin with g++ >= 4.3.
16487         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
16488         if it is undefined or if we alias it to chmod.
16489         (lstat): Don't warn about the use of this function if it is undefined
16490         or if we alias it to stat.
16491         Reported by Simon Josefsson.
16492
16493 2010-03-27  Bruno Haible  <bruno@clisp.org>
16494
16495         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
16496         * modules/getlogin (configure.ac): Update.
16497
16498         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
16499         * modules/getlogin_r (configure.ac): Update.
16500
16501         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
16502         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
16503         * modules/inet_ntop (configure.ac): Update.
16504
16505         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
16506         * modules/inet_pton (configure.ac): Update.
16507
16508         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
16509         * modules/mbslen (configure.ac): Update.
16510
16511         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
16512         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
16513         * modules/forkpty (configure.ac): Update.
16514         * modules/openpty (configure.ac): Update.
16515
16516 2010-03-26  Simon Josefsson  <simon@josefsson.org>
16517
16518         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
16519         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
16520
16521 2010-03-25  Eric Blake  <eblake@redhat.com>
16522
16523         maint: use pragma consistently across replacement headers
16524         * lib/ctype.in.h (system_header): Hoist for consistent placement.
16525         * lib/dirent.in.h (system_header): Likewise.
16526         * lib/errno.in.h (system_header): Likewise.
16527         * lib/float.in.h (system_header): Likewise.
16528         * lib/getopt.in.h (system_header): Likewise.
16529         * lib/iconv.in.h (system_header): Likewise.
16530         * lib/inttypes.in.h (system_header): Likewise.
16531         * lib/langinfo.in.h (system_header): Likewise.
16532         * lib/locale.in.h (system_header): Likewise.
16533         * lib/math.in.h (system_header): Likewise.
16534         * lib/netdb.in.h (system_header): Likewise.
16535         * lib/netinet_in.in.h (system_header): Likewise.
16536         * lib/pty.in.h (system_header): Likewise.
16537         * lib/sched.in.h (system_header): Likewise.
16538         * lib/se-selinux.in.h (system_header): Likewise.
16539         * lib/search.in.h (system_header): Likewise.
16540         * lib/spawn.in.h (system_header): Likewise.
16541         * lib/stdarg.in.h (system_header): Likewise.
16542         * lib/stdint.in.h (system_header): Likewise.
16543         * lib/string.in.h (system_header): Likewise.
16544         * lib/strings.in.h (system_header): Likewise.
16545         * lib/sys_file.in.h (system_header): Likewise.
16546         * lib/sys_ioctl.in.h (system_header): Likewise.
16547         * lib/sys_socket.in.h (system_header): Likewise.
16548         * lib/sys_times.in.h (system_header): Likewise.
16549         * lib/sys_utsname.in.h (system_header): Likewise.
16550         * lib/sys_wait.in.h (system_header): Likewise.
16551         * lib/sysexits.in.h (system_header): Likewise.
16552         * lib/unistd.in.h (system_header): Likewise.
16553         * lib/wctype.in.h (system_header): Likewise.
16554
16555         arpa/inet: fix mingw compilation warning
16556         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
16557         Reported by Matthew Bolte.
16558
16559 2010-03-25  Bruno Haible  <bruno@clisp.org>
16560
16561         Avoid collision between gnulib wrapper and libintl wrapper.
16562         * lib/printf.c (printf): Don't define if a printf wrapper is already
16563         defined in intl/printf.c.
16564         Reported by Michel Boaventura <michel@michelboaventura.com>.
16565
16566 2010-03-25  Bruno Haible  <bruno@clisp.org>
16567
16568         Use ANSI C.
16569         * lib/readutmp.h (getutent): Provide ANSI C prototype.
16570
16571 2010-03-25  Bruno Haible  <bruno@clisp.org>
16572
16573         Minor formatting changes.
16574         * lib/acosl.c: Insert space before function argument list.
16575         * lib/argz.c: Likewise.
16576         * lib/asinl.c: Likewise.
16577         * lib/expl.c: Likewise.
16578         * lib/gen-uni-tables.c: Likewise.
16579         * lib/gettext.h: Likewise.
16580         * lib/glthread/lock.h: Likewise.
16581         * lib/tanl.c: Likewise.
16582         * lib/uniname/uniname.c: Likewise.
16583         * tests/test-idpriv-drop.c: Likewise.
16584         * tests/test-idpriv-droptemp.c: Likewise.
16585         * tests/test-lock.c: Likewise.
16586         * tests/test-tls.c: Likewise.
16587         * lib/argp-help.c: Insert space before function-like macro argument
16588         list.
16589         * lib/memcmp.c: Likewise.
16590         * tests/test-base64.c: Likewise.
16591         * lib/localename.c: Insert space before sizeof's argument list.
16592         * lib/safe-alloc.h: Likewise.
16593         * lib/file-set.h: Insert space before macro argument list.
16594         * tests/test-argp.c: Likewise.
16595         * lib/argp-namefrob.h: Insert space before function parameter list.
16596         * lib/getaddrinfo.c: Likewise.
16597         * lib/netdb.in.h: Likewise.
16598         * lib/parse-duration.h: Likewise.
16599         * lib/parse-duration.c: Likewise.
16600         * lib/poll.c: Likewise.
16601         * lib/select.c: Likewise.
16602         * lib/trim.h: Likewise.
16603         * tests/test-usleep.c: Likewise.
16604         * lib/ldexpl.c: Insert space before function parameter list and before
16605         function argument list.
16606         * lib/logl.c: Likewise.
16607         * lib/sqrtl.c: Likewise.
16608         * lib/trim.c: Likewise.
16609         * lib/cosl.c: Use GNU style indentation. Insert space before function
16610         argument list.
16611         * lib/sinl.c: Likewise.
16612         * lib/tsearch.c: Insert space after 'for'.
16613         Reported by Jim Meyering.
16614
16615 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
16616
16617         * maint.mk (sc_Wundef_boolean): Check for the presence of the
16618         config header before grepping, as it's not present before
16619         autoreconf/configure are run.  Reported by Simon Josefsson.
16620
16621 2010-03-23  Bruno Haible  <bruno@clisp.org>
16622
16623         pt_chown: Make it work with automake < 1.11.
16624         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
16625         Reported by Simon Josefsson.
16626
16627 2010-03-23  Bruno Haible  <bruno@clisp.org>
16628
16629         pt_chown: Don't depend on GPLed modules.
16630         * lib/pt_chown.c: Don't include idpriv.h.
16631         (main): Don't drop privileges.
16632         * modules/pt_chown (Depends-on): Remove idpriv-drop.
16633         Reported by Simon Josefsson.
16634
16635 2010-03-24  Simon Josefsson  <simon@josefsson.org>
16636
16637         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
16638         suggestions from karl@freefriends.org (Karl Berry).
16639
16640 2010-03-22  Eric Blake  <eblake@redhat.com>
16641
16642         gethostname: further tweaks
16643         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
16644         are overriding gethostname.
16645         Suggested by Bruno Haible.
16646
16647 2010-03-21  Bruno Haible  <bruno@clisp.org>
16648
16649         Fix comments.
16650         * lib/forkpty.c (rpl_forkpty): Fix comment.
16651         * lib/openpty.c (rpl_openpty): Likewise.
16652         Reported by Eric Blake.
16653
16654 2010-03-22  Eric Blake  <eblake@redhat.com>
16655
16656         gethostname: fix build on mingw
16657         * lib/unistd.in.h (includes): Work around fact that mingw
16658         <winsock2.h> re-includes <unistd.h>, by avoiding any
16659         redeclarations if we are being included by <winsock2.h>.
16660         Reported by Matthias Bolte.
16661
16662 2010-03-21  Bruno Haible  <bruno@clisp.org>
16663
16664         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
16665         * lib/forkpty.c (forkpty): New replacement function, from glibc with
16666         modifications.
16667         * lib/pty.in.h (forkpty): Update declaration. Add comments.
16668         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
16669         provide the replacement.
16670         * modules/forkpty (Depends-on): Add openpty, login_tty.
16671         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
16672         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
16673         * doc/glibc-functions/forkpty.texi: More supported platforms.
16674         * config/srclist.txt: Add forkpty.c (commented).
16675
16676 2010-03-21  Bruno Haible  <bruno@clisp.org>
16677
16678         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
16679         (Makefile.am): Verify that PTY_LIB is defined.
16680
16681         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
16682
16683 2010-03-21  Bruno Haible  <bruno@clisp.org>
16684
16685         Tests for module 'login_tty'.
16686         * modules/login_tty-tests: New file.
16687         * tests/test-login_tty.c: New file.
16688
16689         New module 'login_tty'.
16690         * lib/login_tty.c: New file.
16691         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
16692         * modules/login_tty: New file.
16693         * doc/glibc-functions/login_tty.texi: Mention the new module.
16694
16695 2010-03-21  Bruno Haible  <bruno@clisp.org>
16696
16697         login_tty: Documentation.
16698         * doc/glibc-functions/login_tty.texi: New file.
16699         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
16700
16701 2010-03-21  Bruno Haible  <bruno@clisp.org>
16702
16703         pty: Consistent macro naming.
16704         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
16705         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
16706         * modules/pty (configure.ac): Update.
16707
16708 2010-03-21  Bruno Haible  <bruno@clisp.org>
16709
16710         Tests for openpty: Make stricter.
16711         * tests/test-openpty.c (main): Add test of canonical processing and
16712         erase.
16713         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
16714
16715         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
16716         * lib/openpty.c (openpty): New replacement function.
16717         * lib/pty.in.h: Include <termios.h>.
16718         (openpty): Update declaration. Add comments.
16719         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
16720         is not declared, arrange to provide the replacement. Check for _getpty
16721         and posix_openpt.
16722         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
16723         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
16724         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
16725         * modules/pty-tests (test_pty_c___LDADD): New variable.
16726         * doc/glibc-functions/openpty.texi: More supported platforms.
16727
16728 2010-03-21  Bruno Haible  <bruno@clisp.org>
16729
16730         setenv: Tweaks.
16731         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
16732         the test program.
16733         * doc/posix-functions/setenv.texi: Update platforms list.
16734
16735 2010-03-21  Bruno Haible  <bruno@clisp.org>
16736
16737         New module 'unlockpt'.
16738         * lib/unlockpt.c: New file, from glibc with modifications.
16739         * m4/unlockpt.m4: New file.
16740         * modules/unlockpt: New file.
16741         * lib/stdlib.in.h (unlockpt): New declaration.
16742         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
16743         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
16744         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
16745         HAVE_UNLOCKPT.
16746         * doc/posix-functions/unlockpt.texi: Mention the new module.
16747         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
16748         * config/srclist.txt: Add unlockpt.c (commented).
16749
16750 2010-03-21  Jim Meyering  <meyering@redhat.com>
16751
16752         maint.mk: prohibit inclusion of "intprops.h" without use
16753         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
16754
16755 2010-03-21  Bruno Haible  <bruno@clisp.org>
16756
16757         New module 'grantpt'.
16758         * lib/grantpt.c: New file, from glibc with modifications.
16759         * m4/grantpt.m4: New file.
16760         * modules/grantpt: New file.
16761         * lib/stdlib.in.h (grantpt): New declaration.
16762         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
16763         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
16764         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
16765         HAVE_GRANTPT.
16766         * doc/posix-functions/grantpt.texi: Mention the new module.
16767         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
16768         * config/srclist.txt: Add grantpt.c (commented).
16769
16770 2010-03-21  Bruno Haible  <bruno@clisp.org>
16771
16772         New module 'pt_chown'.
16773         * lib/pt_chown.c: New file, from glibc with modifications.
16774         * lib/pty-private.h: New file, from glibc with modifications.
16775         * modules/pt_chown: New file.
16776         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
16777
16778 2010-03-21  Bruno Haible  <bruno@clisp.org>
16779
16780         Tests for module 'ptsname'.
16781         * modules/ptsname-tests: New file.
16782         * tests/test-ptsname.c: New file.
16783
16784         New module 'ptsname'.
16785         * lib/ptsname.c: New file, from glibc with modifications.
16786         * m4/ptsname.m4: New file.
16787         * modules/ptsname: New file.
16788         * lib/stdlib.in.h (ptsname): New declaration.
16789         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
16790         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
16791         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
16792         HAVE_PTSNAME.
16793         * doc/posix-functions/ptsname.texi: Mention the new module.
16794         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
16795         * config/srclist.txt: Add ptsname.c (commented).
16796
16797 2010-03-21  Bruno Haible  <bruno@clisp.org>
16798
16799         Tests for module 'ttyname_r'.
16800         * modules/ttyname_r-tests: New file.
16801         * tests/test-ttyname_r.c: New file.
16802
16803         New module 'ttyname_r'.
16804         * lib/ttyname_r.c: New file.
16805         * m4/ttyname_r.m4: New file.
16806         * modules/ttyname_r: New file.
16807         * lib/unistd.in.h (ttyname_r): New declaration.
16808         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
16809         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
16810         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
16811         HAVE_TTYNAME_R.
16812         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
16813         * doc/posix-functions/ttyname_r.texi: Mention the new module.
16814
16815 2010-03-20  Bruno Haible  <bruno@clisp.org>
16816
16817         signal: Undefine macro definitions in C++ mode.
16818         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
16819         sigfillset): Undefine macro definitions from the system header in C++
16820         mode.
16821         Reported by John W. Eaton <jwe@gnu.org>.
16822
16823 2010-03-20  Bruno Haible  <bruno@clisp.org>
16824
16825         Ensure no #include statements inside extern "C" { ... }.
16826         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
16827         contain #include statements.
16828         * lib/time.in.h: Likewise.
16829
16830 2010-03-20  Bruno Haible  <bruno@clisp.org>
16831
16832         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
16833         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
16834         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
16835         Reported by John W. Eaton <jwe@gnu.org>.
16836
16837 2010-03-20  Bruno Haible  <bruno@clisp.org>
16838
16839         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
16840         Reported by Jim Meyering.
16841
16842 2010-03-20  Bruno Haible  <bruno@clisp.org>
16843
16844         pipe: Set errno upon failure.
16845         * lib/pipe.h: Specify that when -1 is returned, errno is set.
16846         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
16847         errno value in error message.
16848
16849 2010-03-20  Bruno Haible  <bruno@clisp.org>
16850             Jim Meyering  <meyering@redhat.com>
16851
16852         lchown: Avoid "unused variable" warning.
16853         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
16854
16855 2010-03-20  Bruno Haible  <bruno@clisp.org>
16856
16857         Work around unlink() bug on MacOS X 10.5.6.
16858         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
16859         attempting to unlink a parent directory.
16860         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
16861         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
16862         activate for the replacement function.
16863         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
16864
16865 2010-03-20  Bruno Haible  <bruno@clisp.org>
16866
16867         Fix link errors on Solaris 8.
16868         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
16869         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
16870
16871 2010-03-19  Jim Meyering  <meyering@redhat.com>
16872
16873         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
16874         The _LIBC implementation of build_range_exp correctly honors the
16875         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
16876         However, the non-_LIBC implementation would ignore that syntax-bit
16877         flag and return REG_ERANGE unconditionally.
16878         This change makes it honor that flag.
16879         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
16880         Make two pointer parameters "const".
16881         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
16882         (parse_bracket_exp): Update caller.
16883
16884         regex.m4: correct the reversed range endpoint ([b-a]) test
16885         * m4/regex.m4: When requiring that [b-a] evoke failure,
16886         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
16887         test pass once again for x86-based systems.
16888
16889 2010-03-19  Bruno Haible  <bruno@clisp.org>
16890
16891         scandir: Fix link error on Solaris 8.
16892         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
16893         macros.
16894
16895 2010-03-19  Bruno Haible  <bruno@clisp.org>
16896
16897         getusershell: Fix documentation.
16898         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
16899         module.
16900         * doc/glibc-functions/setusershell.texi: Likewise.
16901
16902         getusershell: Provide declaration, missing on Solaris 9.
16903         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
16904         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
16905         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
16906         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
16907         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
16908         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
16909         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
16910         HAVE_GETUSERSHELL.
16911         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
16912
16913 2010-03-19  Bruno Haible  <bruno@clisp.org>
16914
16915         wctype: Provide iswblank function.
16916         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
16917         exists and is fine.
16918         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
16919         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
16920         * tests/test-wctype.c (main): Re-enable the iswblank tests.
16921         * doc/posix-functions/iswblank.texi: Update.
16922
16923 2010-03-19  Bruno Haible  <bruno@clisp.org>
16924
16925         Tests of module 'pty' in C++ mode.
16926         * modules/pty-tests: New file.
16927         * tests/test-pty-c++.cc: New file.
16928         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
16929
16930 2010-03-19  Eric Blake  <eblake@redhat.com>
16931
16932         logb: fix documentation
16933         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
16934         1.5 declaration bug.
16935
16936         forkpty, openpty: prefer glibc's const-safe prototype
16937         * lib/forkpty.c (rpl_forkpty): New file.
16938         * lib/openpty.c (rpl_openpty): Likewise.
16939         * modules/forkpty (Files): Distribute it.
16940         * modules/openpty (Files): Likewise.
16941         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
16942         check...
16943         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
16944         replacement for for non-const BSD signature.
16945         * modules/pty (Makefile.am): Substitute witnesses.
16946         * lib/pty.in.h (forkpty, openpty): Declare replacements.
16947         * tests/test-forkpty.c: Update signature check.
16948         * tests/test-openpty.c: Likewise.
16949         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
16950         * doc/glibc-functions/openpty.texi (openpty): Likewise.
16951
16952         forkpty, openpty: split functions into new modules
16953         * modules/pty (Makefile.am): Substitute new witnesses.
16954         (Libraries): Move library detection...
16955         * modules/forkpty: ...into new module.
16956         * modules/openpty: Another new module.
16957         * modules/pty-tests: Rename and split...
16958         * modules/forkpty-tests: ...to this...
16959         * modules/openpty-tests: ...and this.
16960         * tests/test-pty.c: Rename and split...
16961         * tests/test-forkpty.c: ...to this...
16962         * tests/test-openpty.c: ...and this.
16963         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
16964         (gl_PTY): Split library searching...
16965         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
16966         (gl_FORKPTY, gl_OPENPTY): New macros.
16967         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
16968         * NEWS: Mention the split.
16969         * MODULES.html.sh (Misc): Document the modules.
16970         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
16971         * doc/glibc-functions/openpty.texi (openpty): Likewise.
16972
16973         pty: improve replacement header
16974         * lib/pty.in.h: New file.
16975         * modules/pty (Files): Ship it.
16976         (Makefile.am): Always build replacement.
16977         * m4/pty.m4: Rename...
16978         * m4/pty_h.m4: ...to this.
16979         (gl_PTY): Modernize setting of witness macros; update check of
16980         forkpty to take proper advantage of cache.
16981         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
16982
16983         getopt: avoid compiler warning
16984         * lib/getopt.c (attribute_hidden): Remove unused macro.
16985
16986 2010-03-18  Bruno Haible  <bruno@clisp.org>
16987
16988         Fix link errors on Solaris 8.
16989         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
16990         * modules/search-tests (test_search_c___LDADD): Likewise.
16991         * modules/signal-tests (test_signal_c___LDADD): Likewise.
16992         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
16993         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
16994         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
16995         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
16996         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
16997         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
16998
16999 2010-03-18  Bruno Haible  <bruno@clisp.org>
17000
17001         Fix bug introduced on 2010-03-14.
17002         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
17003         (gl_SPAWN_H): Require it.
17004         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
17005         Reported by Simon Josefsson.
17006
17007 2010-03-18  Bruno Haible  <bruno@clisp.org>
17008
17009         Fix typo introduced on 2009-12-31.
17010         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
17011         posix_spawn_file_actions_adddup2.
17012
17013 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
17014         and Eric Blake  <eblake@redhat.com>
17015
17016         test-vc-list-files-git: make more robust
17017         * tests/test-vc-list-files-git.sh: Unset problematic environment
17018         variables.  Chain commands together.
17019
17020 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
17021
17022         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
17023         `AC_CHECK_DECL' invocation.
17024
17025 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
17026
17027         * lib/inttostr.c (inttostr): Make sure the invocation of verify
17028         appears before executable statements. Suggested by Petr Sumbera
17029         <Petr.Sumbera@Sun.COM>.
17030
17031 2010-03-14  Bruno Haible  <bruno@clisp.org>
17032
17033         * tests/test-flock.c (test_exclusive): Comment out a test that causes
17034         portability problems. Instead use a simpler test.
17035         (main): Check that invalid arguments are rejected only on Linux.
17036
17037 2010-03-14  Bruno Haible  <bruno@clisp.org>
17038
17039         Fix bug introduced on 2009-12-31.
17040         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
17041         gl_PREREQ_SYS_H_WINSOCK2 always.
17042         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
17043         SYS_SOCKET_H variable.
17044         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
17045         Update comments.
17046         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
17047         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
17048         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
17049         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
17050         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
17051
17052 2010-03-14  Bruno Haible  <bruno@clisp.org>
17053
17054         Fix values returned by sinl, cosl.
17055         * lib/trigl.h: Add specification comments.
17056         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
17057         that combines the values from the precomputed table with the values of
17058         the Chebyshev polynomials.
17059
17060 2010-03-14  Bruno Haible  <bruno@clisp.org>
17061
17062         Fix compilation error when modules 'posix_spawn[p]' are not used.
17063         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
17064         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
17065
17066 2010-03-14  Bruno Haible  <bruno@clisp.org>
17067
17068         Fix compilation error on mingw when module 'time_r' is not used.
17069         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
17070         is 1.
17071         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
17072         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
17073         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
17074         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
17075
17076 2010-03-14  Bruno Haible  <bruno@clisp.org>
17077
17078         Fix compilation error with Sun C.
17079         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
17080         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
17081         instead of GCC specific ULONG_LONG_MAX.
17082         * lib/xstrtoll.c: Likewise.
17083         * lib/xstrtoull.c: Likewise.
17084
17085 2010-03-13  Bruno Haible  <bruno@clisp.org>
17086
17087         Allow the user to disable C++ code and tests.
17088         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
17089         (gl_PROG_ANSI_CXX): Require it.
17090
17091 2010-03-13  Bruno Haible  <bruno@clisp.org>
17092
17093         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
17094         cases.
17095
17096 2010-03-13  Bruno Haible  <bruno@clisp.org>
17097
17098         Test that gnulib does not break the standard C++ headers.
17099         * tests/test-locale-c++2.cc: New file.
17100         * modules/locale-tests (Files): Add it.
17101         (Makefile.am): Compile it for test-locale-c++.
17102         * tests/test-math-c++2.cc: New file.
17103         * modules/math-tests (Files): Add it.
17104         (Makefile.am): Compile it for test-math-c++.
17105         * tests/test-signal-c++2.cc: New file.
17106         * modules/signal-tests (Files): Add it.
17107         (Makefile.am): Compile it for test-signal-c++.
17108         * tests/test-stdio-c++2.cc: New file.
17109         * modules/stdio-tests (Files): Add it.
17110         (Makefile.am): Compile it for test-stdio-c++.
17111         * tests/test-stdlib-c++2.cc: New file.
17112         * modules/stdlib-tests (Files): Add it.
17113         (Makefile.am): Compile it for test-stdlib-c++.
17114         * tests/test-string-c++2.cc: New file.
17115         * modules/string-tests (Files): Add it.
17116         (Makefile.am): Compile it for test-string-c++.
17117         * tests/test-time-c++2.cc: New file.
17118         * modules/time-tests (Files): Add it.
17119         (Makefile.am): Compile it for test-time-c++.
17120         Reported by John W. Eaton <jwe@gnu.org>.
17121
17122 2010-03-13  Bruno Haible  <bruno@clisp.org>
17123
17124         * gnulib-tool (func_usage): Clarify which options are available for
17125         --create-testdir and --create-megatestdir.
17126
17127 2010-03-13  Bruno Haible  <bruno@clisp.org>
17128
17129         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
17130         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
17131         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
17132         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
17133         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
17134         when appropriate.
17135         Reported by Jim Meyering.
17136
17137 2010-03-12  Simon Josefsson  <simon@josefsson.org>
17138
17139         * gnulib-tool (func_import): Explain origin of code.
17140
17141 2010-03-12  Bruno Haible  <bruno@clisp.org>
17142
17143         Fix problem with automake's definition of CXXLINK.
17144         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
17145         Reported by Simon Josefsson and Ludovic Courtès.
17146
17147 2010-03-12  Bruno Haible  <bruno@clisp.org>
17148
17149         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
17150         stable releases.
17151
17152 2010-03-11  Bruno Haible  <bruno@clisp.org>
17153
17154         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
17155         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
17156         whether the system provides one variant or multiple variants of the
17157         function.
17158         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
17159         C++ compilers.
17160         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
17161         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
17162         Reported by Jim Meyering.
17163
17164 2010-03-09  Simon Josefsson  <simon@josefsson.org>
17165
17166         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
17167
17168 2010-03-08  Bruno Haible  <bruno@clisp.org>
17169
17170         gnulib-tool: Add support for --libtool in --create-testdir.
17171         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
17172         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
17173
17174 2010-03-08  Eric Blake  <eblake@redhat.com>
17175
17176         gnulib-tool.texi: mention possibility of git submodule
17177         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
17178         submodules.
17179         * doc/.gitignore: Ignore another generated file.
17180
17181 2010-03-08  Karl Berry  <karl@gnu.org>
17182
17183         * doc/gnulib-tool.texi (VCS Issues): Mention third option
17184         of committing gnulib files while skipping others.
17185
17186 2010-03-07  Bruno Haible  <bruno@clisp.org>
17187
17188         Tests of module 'wctype' in C++ mode.
17189         * tests/test-wctype-c++.cc: New file.
17190         * modules/wctype-tests (Files): Add it and tests/signature.h.
17191         (Depends-on): Add ansi-c++-opt.
17192         (Makefile.am): Arrange to compile and run test-wctype-c++.
17193
17194         Tests of module 'wchar' in C++ mode.
17195         * tests/test-wchar-c++.cc: New file.
17196         * modules/wchar-tests (Files): Add it and tests/signature.h.
17197         (Depends-on): Add ansi-c++-opt.
17198         (Makefile.am): Arrange to compile and run test-wchar-c++.
17199         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
17200         gl_MODULE_INDICATOR.
17201
17202         Tests of module 'unistd' in C++ mode.
17203         * tests/test-unistd-c++.cc: New file.
17204         * modules/unistd-tests (Files): Add it and tests/signature.h.
17205         (Depends-on): Add ansi-c++-opt.
17206         (Makefile.am): Arrange to compile and run test-unistd-c++.
17207         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
17208         gl_MODULE_INDICATOR.
17209
17210         Tests of module 'time' in C++ mode.
17211         * tests/test-time-c++.cc: New file.
17212         * modules/time-tests (Files): Add it and tests/signature.h.
17213         (Depends-on): Add ansi-c++-opt.
17214         (Makefile.am): Arrange to compile and run test-time-c++.
17215         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
17216
17217         Tests of module 'sys_time' in C++ mode.
17218         * tests/test-sys_time-c++.cc: New file.
17219         * modules/sys_time-tests (Files): Add it and tests/signature.h.
17220         (Depends-on): Add ansi-c++-opt.
17221         (Makefile.am): Arrange to compile and run test-sys_time-c++.
17222         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
17223         gl_MODULE_INDICATOR.
17224
17225         Tests of module 'sys_stat' in C++ mode.
17226         * tests/test-sys_stat-c++.cc: New file.
17227         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
17228         (Depends-on): Add ansi-c++-opt.
17229         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
17230         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
17231         gl_MODULE_INDICATOR.
17232
17233         Tests of module 'sys_socket' in C++ mode.
17234         * tests/test-sys_socket-c++.cc: New file.
17235         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
17236         (Depends-on): Add ansi-c++-opt.
17237         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
17238         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
17239         gl_MODULE_INDICATOR.
17240
17241         Tests of module 'sys_select' in C++ mode.
17242         * tests/test-sys_select-c++.cc: New file.
17243         * modules/sys_select-tests (Files): Add it and tests/signature.h.
17244         (Depends-on): Add ansi-c++-opt.
17245         (Makefile.am): Arrange to compile and run test-sys_select-c++.
17246         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
17247         gl_MODULE_INDICATOR.
17248
17249         Tests of module 'sys_ioctl' in C++ mode.
17250         * tests/test-sys_ioctl-c++.cc: New file.
17251         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
17252         (Depends-on): Add ansi-c++-opt.
17253         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
17254         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
17255         gl_MODULE_INDICATOR.
17256
17257         Tests of module 'string' in C++ mode.
17258         * tests/test-string-c++.cc: New file.
17259         * modules/string-tests (Files): Add it and tests/signature.h.
17260         (Depends-on): Add ansi-c++-opt.
17261         (Makefile.am): Arrange to compile and run test-string-c++.
17262         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
17263         gl_MODULE_INDICATOR.
17264
17265         Tests of module 'stdlib' in C++ mode.
17266         * tests/test-stdlib-c++.cc: New file.
17267         * modules/stdlib-tests (Files): Add it and tests/signature.h.
17268         (Depends-on): Add ansi-c++-opt.
17269         (Makefile.am): Arrange to compile and run test-stdlib-c++.
17270         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
17271         gl_MODULE_INDICATOR.
17272
17273         Tests of module 'stdio' in C++ mode.
17274         * tests/test-stdio-c++.cc: New file.
17275         * modules/stdio-tests (Files): Add it and tests/signature.h.
17276         (Depends-on): Add ansi-c++-opt.
17277         (Makefile.am): Arrange to compile and run test-stdio-c++.
17278         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
17279         gl_MODULE_INDICATOR.
17280
17281         Tests of module 'spawn' in C++ mode.
17282         * tests/test-spawn-c++.cc: New file.
17283         * modules/spawn-tests (Files): Add it and tests/signature.h.
17284         (Depends-on): Add ansi-c++-opt.
17285         (Makefile.am): Arrange to compile and run test-spawn-c++.
17286         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
17287         gl_MODULE_INDICATOR.
17288
17289         Tests of module 'signal' in C++ mode.
17290         * tests/test-signal-c++.cc: New file.
17291         * modules/signal-tests (Files): Add it and tests/signature.h.
17292         (Depends-on): Add ansi-c++-opt.
17293         (Makefile.am): Arrange to compile and run test-signal-c++.
17294         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
17295         gl_MODULE_INDICATOR.
17296
17297         Tests of module 'search' in C++ mode.
17298         * tests/test-search-c++.cc: New file.
17299         * modules/search-tests (Files): Add it and tests/signature.h.
17300         (Depends-on): Add ansi-c++-opt.
17301         (Makefile.am): Arrange to compile and run test-search-c++.
17302         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
17303         gl_MODULE_INDICATOR.
17304
17305         Tests of module 'math' in C++ mode.
17306         * tests/test-math-c++.cc: New file.
17307         * modules/math-tests (Files): Add it and tests/signature.h.
17308         (Depends-on): Add ansi-c++-opt.
17309         (Makefile.am): Arrange to compile and run test-math-c++.
17310         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
17311
17312         Tests of module 'locale' in C++ mode.
17313         * tests/test-locale-c++.cc: New file.
17314         * modules/locale-tests (Files): Add it and tests/signature.h.
17315         (Depends-on): Add ansi-c++-opt.
17316         (Makefile.am): Arrange to compile and run test-locale-c++.
17317         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
17318         gl_MODULE_INDICATOR.
17319
17320         Tests of module 'langinfo' in C++ mode.
17321         * tests/test-langinfo-c++.cc: New file.
17322         * modules/langinfo-tests (Files): Add it and tests/signature.h.
17323         (Depends-on): Add ansi-c++-opt.
17324         (Makefile.am): Arrange to compile and run test-langinfo-c++.
17325         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
17326         gl_MODULE_INDICATOR.
17327
17328         Tests of module 'iconv-h' in C++ mode.
17329         * tests/test-iconv-h-c++.cc: New file.
17330         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
17331         (Depends-on): Add ansi-c++-opt.
17332         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
17333
17334         Tests of module 'glob' in C++ mode.
17335         * tests/test-glob-c++.cc: New file.
17336         * modules/glob-tests (Files): Add it.
17337         (Depends-on): Add ansi-c++-opt.
17338         (Makefile.am): Arrange to compile and run test-glob-c++.
17339
17340         Tests of module 'fcntl-h' in C++ mode.
17341         * tests/test-fcntl-h-c++.cc: New file.
17342         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
17343         (Depends-on): Add ansi-c++-opt.
17344         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
17345         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
17346         gl_MODULE_INDICATOR.
17347
17348         Tests of module 'dirent' in C++ mode.
17349         * tests/test-dirent-c++.cc: New file.
17350         * modules/dirent-tests (Files): Add it and tests/signature.h.
17351         (Depends-on): Add ansi-c++-opt.
17352         (Makefile.am): Arrange to compile and run test-dirent-c++.
17353         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
17354         gl_MODULE_INDICATOR.
17355
17356         New module 'ansi-c++-opt'.
17357         * modules/ansi-c++-opt: New file.
17358         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
17359
17360         Document C++ namespace mode.
17361         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
17362
17363         wctype: Avoid #define replacements in C++ mode.
17364         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
17365         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
17366         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
17367         In C++, define a namespaced alias symbol.
17368         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
17369         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
17370         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
17371         rule.
17372
17373         wchar: Avoid #define replacements in C++ mode.
17374         * lib/wchar.in.h: Include c++defs.h.
17375         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
17376         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
17377         symbol.
17378         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
17379         * modules/wchar (Depends-on): Add c++defs.
17380         (Makefile.am): Update wchar.h rule.
17381
17382         unistd: Avoid #define replacements in C++ mode.
17383         * lib/unistd.in.h: Include c++defs.h.
17384         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
17385         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
17386         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
17387         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
17388         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
17389         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
17390         symbol.
17391         (environ): Update.
17392         * modules/unistd (Depends-on): Add c++defs.
17393         (Makefile.am): Update unistd.h rule.
17394
17395         time: Avoid #define replacements in C++ mode.
17396         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
17397         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
17398         define a namespaced alias symbol.
17399         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
17400         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
17401         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
17402         * modules/time (Depends-on): Add c++defs, warn-on-use.
17403         (Makefile.am): Update time.h rule.
17404         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
17405         * modules/nanosleep (configure.ac): Likewise.
17406         * modules/strptime (configure.ac): Likewise.
17407         * modules/timegm (configure.ac): Likewise.
17408
17409         sys_time: Avoid #define replacements in C++ mode.
17410         * lib/sys_time.in.h: Include c++defs.h.
17411         (gettimeofday): In C++, define a namespaced alias symbol.
17412         * modules/sys_time (Depends-on): Add c++defs.
17413         (Makefile.am): Update sys/time.h rule.
17414
17415         sys_stat: Avoid #define replacements in C++ mode.
17416         * lib/sys_stat.in.h: Include c++defs.h.
17417         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
17418         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
17419         namespaced alias symbol.
17420         In C++, define a namespaced alias symbol.
17421         * modules/sys_stat (Depends-on): Add c++defs.
17422         (Makefile.am): Update sys/stat.h rule.
17423
17424         sys_socket: Avoid #define replacements in C++ mode.
17425         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
17426         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
17427         definitions also when the system has a <sys/socket.h>.
17428         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
17429         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
17430         In C++, define a namespaced alias symbol.
17431         * modules/sys_socket (Depends-on): Add c++defs.
17432         (Makefile.am): Update sys/socket.h rule.
17433
17434         sys_select: Avoid #define replacements in C++ mode.
17435         * lib/sys_select.in.h: Include c++defs.h. Enable the function
17436         definitions also when the system has a <sys/select.h>.
17437         (select): In C++, define a namespaced alias symbol.
17438         * modules/sys_select (Depends-on): Add c++defs.
17439         (Makefile.am): Update sys/select.h rule.
17440
17441         sys_ioctl: Avoid #define replacements in C++ mode.
17442         * lib/sys_ioctl.in.h: Include c++defs.h.
17443         (ioctl): In C++, define a namespaced alias symbol.
17444         * modules/sys_ioctl (Depends-on): Add c++defs.
17445         (Makefile.am): Update sys/ioctl.h rule.
17446
17447         string: Avoid #define replacements in C++ mode.
17448         * lib/string.in.h: Include c++defs.h.
17449         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
17450         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
17451         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
17452         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
17453         strsignal, strverscmp): In C++, define a namespaced alias symbol.
17454         * modules/string (Depends-on): Add c++defs.
17455         (Makefile.am): Update string.h rule.
17456
17457         stdlib: Avoid #define replacements in C++ mode.
17458         * lib/stdlib.in.h: Include c++defs.h.
17459         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
17460         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
17461         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
17462         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
17463         symbol.
17464         * modules/stdlib (Depends-on): Add c++defs.
17465         (Makefile.am): Update stdlib.h rule.
17466
17467         stdio: Avoid #define replacements in C++ mode.
17468         * lib/stdio.in.h: Include c++defs.h.
17469         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
17470         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
17471         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
17472         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
17473         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
17474         namespaced alias symbol.
17475         * modules/stdio (Depends-on): Add c++defs.
17476         (Makefile.am): Update stdio.h rule.
17477
17478         spawn: Avoid #define replacements in C++ mode.
17479         * lib/spawn.in.h: Include c++defs.h.
17480         (posix_spawn, posix_spawnp, posix_spawnattr_init,
17481         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
17482         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
17483         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
17484         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
17485         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
17486         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
17487         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
17488         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
17489         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
17490         In C++, define a namespaced alias symbol.
17491         * modules/spawn (Depends-on): Add c++defs.
17492         (Makefile.am): Update spawn.h rule.
17493
17494         signal: Avoid #define replacements in C++ mode.
17495         * lib/signal.in.h: Include c++defs.h.
17496         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
17497         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
17498         namespaced alias symbol.
17499         * modules/signal (Depends-on): Add c++defs.
17500         (Makefile.am): Update signal.h rule.
17501
17502         search: Avoid #define replacements in C++ mode.
17503         * lib/search.in.h: Include c++defs.h.
17504         (_gl_search_compar_fn, _gl_search_action_fn): New types.
17505         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
17506         symbol.
17507         * modules/search (Depends-on): Add c++defs.
17508         (Makefile.am): Update search.h rule.
17509
17510         math: Avoid #define replacements in C++ mode.
17511         * lib/math.in.h: Include c++defs.h.
17512         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
17513         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
17514         trunc, truncl): In C++, define a namespaced alias symbol.
17515         * modules/math (Depends-on): Add c++defs.
17516         (Makefile.am): Update math.h rule.
17517
17518         locale: Avoid #define replacements in C++ mode.
17519         * lib/locale.in.h: Include c++defs.h.
17520         (duplocale): In C++, define a namespaced alias symbol.
17521         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
17522         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
17523         * modules/locale (Depends-on): Add c++defs.
17524         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
17525
17526         langinfo: Avoid #define replacements in C++ mode.
17527         * lib/langinfo.in.h: Include c++defs.h.
17528         (nl_langinfo): In C++, define a namespaced alias symbol.
17529         * modules/langinfo (Depends-on): Add c++defs.
17530         (Makefile.am): Update langinfo.h rule.
17531
17532         iconv-h: Avoid #define replacements in C++ mode.
17533         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
17534         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
17535         symbol.
17536         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
17537         whenever iconv is present.
17538         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
17539         (Makefile.am): Update iconv.h rule.
17540
17541         glob: Avoid #define replacements in C++ mode.
17542         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
17543         (_gl_glob_errfunc_fn): New type.
17544         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
17545         symbol.
17546         * modules/glob (Depends-on): Add c++defs, warn-on-use.
17547         (Makefile.am): Update glob.h rule.
17548
17549         fcntl-h: Avoid #define replacements in C++ mode.
17550         * lib/fcntl.in.h: Include c++defs.h.
17551         (fcntl, open, openat): In C++, define a namespaced alias symbol.
17552         * modules/fcntl-h (Depends-on): Add c++defs.
17553         (Makefile.am): Update fcntl.h rule.
17554
17555         dirent: Avoid #define replacements in C++ mode.
17556         * lib/dirent.in.h: Include c++defs.h.
17557         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
17558         namespaced alias symbol.
17559         (dirfd): Update declaration.
17560         * modules/dirent (Depends-on): Add c++defs.
17561         (Makefile.am): Update dirent.h rule.
17562
17563         ctype: Make it usable in C++ code.
17564         * lib/ctype.in.h: Include c++defs.h.
17565         (isblank): Declare as extern "C".
17566         * modules/ctype (Depends-on): Add c++defs.
17567         (Makefile.am): Update ctype.h rule.
17568
17569         New module 'c++defs'.
17570         * modules/c++defs: New file.
17571         * build-aux/c++defs.h: New file.
17572         Reported by John W. Eaton <jwe@gnu.org>.
17573
17574 2010-03-07  Bruno Haible  <bruno@clisp.org>
17575
17576         logb: Provide missing declaration for Cygwin.
17577         * lib/math.in.h (logb): New declaration.
17578         * m4/logb.m4: New file.
17579         * modules/logb (Files): Add m4/logb.m4.
17580         (Depends-on): Add math.
17581         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
17582         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
17583         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
17584         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
17585         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
17586
17587 2010-03-07  Bruno Haible  <bruno@clisp.org>
17588
17589         Fix test-cond link error.
17590         * tests/test-cond.c: Include <stdio.h>.
17591
17592 2010-03-07  Bruno Haible  <bruno@clisp.org>
17593
17594         Fix test-dirent-safer link error.
17595         * modules/dirent-safer-tests (Makefile.am): Define
17596         test_dirent_safer_LDADD.
17597
17598 2010-03-07  Bruno Haible  <bruno@clisp.org>
17599
17600         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
17601         among default module list.
17602
17603 2010-03-07  Bruno Haible  <bruno@clisp.org>
17604
17605         Fix link error on platforms with GNU libiconv.
17606         * modules/unistr/u8-strcoll-tests (Makefile): Define
17607         test_u8_strcoll_LDADD.
17608         * modules/unistr/u16-strcoll-tests (Makefile): Define
17609         test_u16_strcoll_LDADD.
17610         * modules/unistr/u32-strcoll-tests (Makefile): Define
17611         test_u32_strcoll_LDADD.
17612
17613 2010-03-07  Bruno Haible  <bruno@clisp.org>
17614
17615         Use POSIX declarations for socket functions.
17616         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
17617         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
17618         rpl_sendto): Change declaration to match POSIX.
17619         * lib/connect.c (rpl_connect): Likewise.
17620         * lib/accept.c (rpl_accept): Likewise.
17621         * lib/bind.c (rpl_bind): Likewise.
17622         * lib/getpeername.c (rpl_getpeername): Likewise.
17623         * lib/getsockname.c (rpl_getsockname): Likewise.
17624         * lib/recv.c (rpl_recv): Likewise.
17625         * lib/send.c (rpl_send): Likewise.
17626         * lib/recvfrom.c (rpl_recvfrom): Likewise.
17627         * lib/sendto.c (rpl_sendto): Likewise.
17628
17629 2010-03-06  Bruno Haible  <bruno@clisp.org>
17630
17631         Clarify access, euidaccess, faccessat.
17632         * doc/posix-functions/faccessat.texi: Mention security problem under
17633         "Other problems", not "Portability problems".
17634         * doc/posix-functions/access.texi: Likewise. Mention a related security
17635         problem.
17636         * doc/glibc-functions/euidaccess.texi: Mention security problems.
17637         * lib/euidaccess.c: Add comments about platforms.
17638         * lib/unistd.in.h (access, euidaccess): Add warnings.
17639
17640 2010-03-07  Bruno Haible  <bruno@clisp.org>
17641
17642         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
17643         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
17644         (POSIX_SPAWN_SETSCHEDULER): Likewise.
17645         (POSIX_SPAWN_USEVFORK): Define in a way that works when
17646         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
17647         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
17648         declare when POSIX_SPAWN_SETSCHEDULER is zero.
17649         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
17650         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
17651         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
17652         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
17653         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
17654         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
17655         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
17656         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
17657         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
17658         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
17659         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
17660         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
17661         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
17662         Likewise.
17663         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
17664         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
17665         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
17666         Likewise.
17667         * tests/test-spawn.c (main): Make it work when
17668         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
17669
17670 2010-03-07  Bruno Haible  <bruno@clisp.org>
17671
17672         Fix incorrect Makefile.am generation in German locale.
17673         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
17674         Execute sed command with character range in C locale.
17675
17676 2010-03-06  Bruno Haible  <bruno@clisp.org>
17677
17678         Tests for module 'iconv-h'.
17679         * modules/iconv-h-tests: New file.
17680         * tests/test-iconv-h.c: New file.
17681
17682         New module 'iconv-h'.
17683         * modules/iconv-h: New file.
17684         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
17685         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
17686         (configure.ac): Remove gl_ICONV_H.
17687         (Makefile.am): Remove rule for iconv.h.
17688
17689 2010-03-06  Bruno Haible  <bruno@clisp.org>
17690
17691         More consistent naming of *.m4 files.
17692         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
17693         * modules/wctype (Files): Update.
17694
17695         More consistent naming of *.m4 files.
17696         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
17697         * modules/wchar (Files): Update.
17698
17699 2010-03-06  Jim Meyering  <meyering@redhat.com>
17700
17701         euidaccess: relax license to LGPLv2+
17702         * modules/euidaccess (License): Relax to LGPLv2+.
17703
17704 2010-03-06  Bruno Haible  <bruno@clisp.org>
17705
17706         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
17707         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
17708         (Makefile.am): Augment lib_SOURCES instead.
17709
17710 2010-03-04  Jim Meyering  <meyering@redhat.com>
17711
17712         utime: remove obsolete module
17713         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
17714         unnecessary for years, and has been marked as obsolete for 10 months.
17715         * modules/utime: Remove file.
17716         * lib/utime.c: Remove file.
17717         * m4/utime.m4: Remove file.
17718         * m4/utimes-null.m4: Remove file.
17719         * doc/posix-functions/utime.texi (utime): Remove reference to
17720         the module.  Move the sole "fixed by gnulib" item into the
17721         "problems not fixed by Gnulib" list.
17722         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
17723
17724 2010-03-05  Simon Josefsson  <simon@josefsson.org>
17725
17726         * modules/exit (License): Relax license to LGPLv2+.
17727         (Status): Mark as obsolete.
17728         * NEWS: Mention deprecated 'exit' module.
17729         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
17730         of now obsolete 'exit'.
17731
17732 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17733
17734         fts-lgpl: remove unused module
17735         * modules/fts-lgpl: Remove.
17736         * MODULES.html.sh (func_all_modules): Adjust.
17737         * check-module (find_included_lib_files): Adjust.
17738         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
17739
17740 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
17741
17742         copy-acl: enhance Solaris ACL error handling
17743         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
17744         * lib/set-mode-acl.c (qset_acl): Likewise.
17745
17746 2010-03-02  Bruno Haible  <bruno@clisp.org>
17747
17748         spawn: Don't override the system defined values on FreeBSD 8.
17749         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
17750         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
17751         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
17752         if HAVE_POSIX_SPAWN is 1.
17753         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
17754
17755 2010-03-01  Bruno Haible  <bruno@clisp.org>
17756
17757         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
17758         regarding Automake.
17759
17760 2010-02-25  Bruno Haible  <bruno@clisp.org>
17761
17762         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
17763         * gnulib-tool: Define 'echo' as a function only before the ksh alias
17764         setting, not afterwards.
17765         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
17766
17767 2010-02-24  Eric Blake  <eblake@redhat.com>
17768
17769         bootstrap, git-version-gen: use timestamp
17770         * build-aux/git-version-gen (scriptversion): Force UTC.
17771         * build-aux/bootstrap (scriptversion): New variable.
17772
17773         bootstrap: allow older git
17774         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
17775         older than 1.6.4.  Requested by the libvirt project.
17776
17777 2010-02-23  Eric Blake  <eblake@redhat.com>
17778
17779         warn-on-use: work with old autoconf
17780         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
17781         AS_VAR semantics of autoconf 2.60.
17782         Reported by Bruno Haible.
17783
17784         bootstrap: improve some comments
17785         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
17786         clarification comments.
17787
17788         gettimeofday: provide correct function
17789         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
17790         when replacement is declared, otherwise provide gettimeofday.
17791         Reported by Michael Goffioul.
17792
17793 2010-02-23  Jim Meyering  <meyering@redhat.com>
17794
17795         lib-ignore: relax license to "unlimited", not LGPLv2+
17796         * modules/lib-ignore (License): Relax to "unlimited".
17797
17798 2010-02-23  Jim Meyering  <meyering@redhat.com>
17799
17800         lib-ignore: relax license to LGPLv2+
17801         * modules/lib-ignore (License): Relax to LGPLv2+.
17802
17803 2010-02-22  Eric Blake  <eblake@redhat.com>
17804
17805         lseek: avoid bash 3.2 broken pipe bug
17806         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
17807         warning from bash 3.2.
17808         Reported by Ben Pfaff, with analysis from Bruno Haible.
17809
17810         bootstrap: support non-FSF copyright holder
17811         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
17812         bootstrap.conf override of COPYRIGHT_HOLDER.
17813         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
17814
17815         bootstrap: interoperate with gettext 0.14.1
17816         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
17817
17818         bootstrap: allow for alternate submodule location
17819         * build-aux/bootstrap (gnulib_path): New variable; use instead of
17820         hardcoding submodule location.
17821         (gnulib_mk): Allow direct use of Makefile.am.
17822
17823         bootstrap: use GNULIB_SRCDIR to reduce disk usage
17824         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
17825         rather than reconfiguring where the submodule points.
17826
17827         gettimeofday: restore support for platforms that lack function
17828         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
17829         replacement if function is missing.
17830         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
17831         * modules/sys_time (Makefile.am): Substitute it.
17832         * lib/sys_time.in.h (gettimeofday): Check it.
17833         Reported by Michael Goffioul.
17834
17835 2010-02-21  Bruno Haible  <bruno@clisp.org>
17836
17837         * lib/stdio.in.h (obstack_printf): Fix typo.
17838
17839 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
17840
17841         vc-list-files: use bzr ls's -R option
17842         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
17843         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
17844
17845 2010-02-21  Jim Meyering  <meyering@redhat.com>
17846
17847         init.sh: fix EXEEXT shims to work also for names like test-prog
17848         * tests/init.sh: Re-exec a better shell, when needed.
17849         If the current shell lacks support for posix $(...), an init.sh-using
17850         test will now try to find a shell that supports that.  If EXEEXT is
17851         nonempty, we also require support for hyphen-in-alias-name and shell
17852         substitutions like ${var#glob}.  Failure to find such a shell results
17853         in a skipped test.
17854
17855 2010-02-21  Bruno Haible  <bruno@clisp.org>
17856
17857         Really work around around "broken pipe" error message from bash 3.2.
17858         * gnulib-tool (func_reset_sigpipe): Remove function.
17859         (echo): In bash 3.2, define to a function that uses printf.
17860         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
17861
17862 2010-02-20  Bruno Haible  <bruno@clisp.org>
17863
17864         Restore support for automake 1.9.6 with autoconf 2.61.
17865         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
17866         Reported by James Youngman <jay@gnu.org>.
17867
17868 2010-02-20  Bruno Haible  <bruno@clisp.org>
17869
17870         Improve *printf warning condition.
17871         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
17872         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
17873         and the function is overridden due to SIGPIPE emulation.
17874
17875 2010-02-20  Bruno Haible  <bruno@clisp.org>
17876
17877         * lib/stdio.in.h: Tweak comments.
17878
17879 2010-02-19  Bruno Haible  <bruno@clisp.org>
17880
17881         Make it easier to find modules. New gnulib-tool option '--find'.
17882         * gnulib-tool: New option --find.
17883         (func_usage): Document it.
17884         (func_sanitize_modulelist): New function, extracted from
17885         func_all_modules.
17886         (func_all_modules): Invoke it.
17887         * doc/gnulib-tool.texi (Which modules?): New node.
17888
17889 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
17890
17891         * lib/sys_select.in.h: Provide select replacement even if
17892         sys/select.h exists on a system, for Interix.
17893
17894 2010-02-18  Jim Meyering  <meyering@redhat.com>
17895
17896         init.sh: don't use $(...) just yet
17897         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
17898         to accommodate e.g., Solaris' /bin/sh.
17899
17900 2010-02-17  Bruno Haible  <bruno@clisp.org>
17901
17902         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
17903         Reported by Ludovic Courtès <ludo@gnu.org>.
17904
17905 2010-02-16  Simon Josefsson  <simon@josefsson.org>
17906
17907         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
17908         linking with -lintl.
17909
17910 2010-02-17  Simon Josefsson  <simon@josefsson.org>
17911
17912         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
17913         if not provided by the system's netdb.h.  Reported by
17914         ludo@gnu.org (Ludovic Courtès).
17915
17916 2010-02-15  Jim Meyering  <meyering@redhat.com>
17917
17918         init.sh: improve portability and efficiency
17919         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
17920         "dummy" in a for loop.
17921         Use '!', not '^' to select the complement of a character set used
17922         in a "case" statement.
17923         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
17924         Suggestions from Eric Blake.
17925
17926         init.sh: automatically accommodate programs with the .exe suffix
17927         Automatically arrange for an invocation of "prog" to execute the
17928         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
17929         may use the simpler "prog", yet still work when built on a system
17930         that requires specifying the added suffix.
17931         Do this by constructing a function named "prog" that invokes
17932         "prog.exe" for each .exe file in selected directories.
17933         * tests/init.sh (find_exe_basenames_): New function.
17934         (create_exe_shim_functions_): New function.
17935         (path_prepend_): Use it.
17936
17937         maint.mk: mark syntax-check sc_*.m rules as .PHONY
17938         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
17939         "make -t syntax-check" doesn't create a ton of sc_*.m files.
17940
17941 2010-02-14  Jim Meyering  <meyering@redhat.com>
17942
17943         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
17944         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
17945         (sc_prohibit_hash_pjw_without_use): New rule.
17946
17947         maint.mk: allow the default upload destination dir to be overridden
17948         * top/maint.mk (upload_dest_dir_): Define with a default that
17949         preserves the status quo.
17950         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
17951         Reported by Peter Simons.
17952
17953         maint.mk: prohibit inclusion of "hash.h" without_use
17954         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
17955
17956 2010-02-10  Jim Meyering  <meyering@redhat.com>
17957
17958         maint.mk: prohibit inclusion of "ignore-value.h" without_use
17959         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
17960
17961 2010-02-09  Eric Blake  <ebb9@byu.net>
17962         and Bruno Haible  <bruno@clisp.org>
17963
17964         obstack-printf-posix: ensure declaration
17965         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
17966         extracted from gl_FUNC_OBSTACK_PRINTF.
17967         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
17968         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
17969         Likewise.
17970         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
17971         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
17972         0.
17973
17974 2010-02-08  Bruno Haible  <bruno@clisp.org>
17975
17976         gnulib-tool: Fix typo in 2010-02-07 commit.
17977         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
17978         Reported by Eric Blake.
17979
17980 2010-02-07  Bruno Haible  <bruno@clisp.org>
17981
17982         gnulib-tool: Fix up caching patches.
17983         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
17984         option --no-cache. Use associative arrays when supported by the shell.
17985         (sed_comments): New variable.
17986         (modcache): Renamed from do_cache.
17987         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
17988         abbreviate unnecessarily.
17989         (have_associative): New variable.
17990         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
17991         way also for ksh and zsh.
17992         (func_init_sed_convert_to_cache_statements): New function, extracted
17993         from func_cache_lookup_module. Add support for associative arrays.
17994         Don't set the c_MODULE_cached variable here. Ignore all lines before
17995         the first field header. Remove only the final newline, not all trailing
17996         newlines. Support empty fields correctly. Limit the use of 'eval' to
17997         assignments.
17998         (func_get_description, func_get_status, func_get_notice,
17999         func_get_applicability, func_get_filelist, func_get_dependencies,
18000         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
18001         func_get_automake_snippet, func_get_include_directive,
18002         func_get_link_directive, func_get_license, func_get_maintainer):
18003         Update documentation. List the unoptimized code first. Add support for
18004         associative arrays. Limit the use of 'eval' to assignments.
18005         (func_get_applicability): Undo stylistic pessimisations.
18006         (func_get_automake_snippet, func_get_include_directive): Reduce code
18007         duplication.
18008         (func_modules_transitive_closure, func_modules_add_dummy,
18009         func_modules_notice, func_modules_to_filelist, func_add_file,
18010         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
18011         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
18012         func_create_testdir, func_create_megatestdir): Update documentation.
18013
18014 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18015
18016         * gnulib-tool (func_cache_lookup_module): Store the module name
18017         belonging to the cache variable; error out if two different
18018         module names map to the same cache variable name.
18019
18020 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18021
18022         gnulib-tool: Make caching optional.
18023         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
18024         Update matching short versions of --no-changelog.
18025         (func_usage): Update.
18026         (sed_extract_cache_prog): Renamed from ...
18027         (sed_extract_prog): ... this; revert to old extraction script.
18028         (func_get_description, func_get_status)
18029         (func_get_notice, func_get_applicability, func_get_filelist)
18030         (func_get_dependencies, func_get_autoconf_early_snippet)
18031         (func_get_autoconf_snippet, func_get_automake_snippet)
18032         (func_get_include_directive, func_get_link_directive)
18033         (func_get_license, func_get_maintainer): If $do_cache is false,
18034         use old, non-caching extraction scripts.
18035         Suggestion by Bruno Haible.
18036
18037 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18038
18039         gnulib-tool: cache module metainformation.
18040         * gnulib-tool (sed_extract_prog): Match newline before each
18041         header, and rewrite header to a shell variable suffix.
18042         (func_cache_var, func_cache_lookup_module): New functions,
18043         to turn a module name into a cache variable prefix, and to
18044         look up and cache module metainformation.
18045         (func_get_description, func_get_status)
18046         (func_get_notice, func_get_applicability, func_get_filelist)
18047         (func_get_dependencies, func_get_autoconf_early_snippet)
18048         (func_get_autoconf_snippet, func_get_automake_snippet)
18049         (func_get_include_directive, func_get_link_directive)
18050         (func_get_license, func_get_maintainer): Use
18051         func_cache_lookup_module.
18052
18053 2010-02-07  Bruno Haible  <bruno@clisp.org>
18054
18055         fnctl: Fix missing dependency.
18056         * modules/fcntl (Depends-on): Add getdtablesize.
18057         Reported by John W. Eaton <jwe@gnu.org>.
18058
18059 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
18060
18061         Argp: fix recognition of short alias options.
18062
18063         * lib/argp-parse.c (convert_options): Fix improper use of
18064         `|' between character values.
18065         * tests/test-argp.c (group1_option): New alias option
18066         --read (-r).
18067         (group1_parser): Special handling for 'r'.
18068         (test15): New test case.
18069         (test_fun): Add test15.
18070         * tests/test-argp-2.sh: Update expected --help and --usage
18071         outputs.
18072
18073 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
18074
18075         * tests/test-argp.c: Fix indentation.
18076
18077 2010-02-04  Eric Blake  <ebb9@byu.net>
18078
18079         gettimeofday: expose type of second argument
18080         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
18081         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
18082         * tests/test-gettimeofday.c: Use it to silence warning.
18083         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
18084         the issue.
18085
18086 2010-02-03  Jim Meyering  <meyering@redhat.com>
18087
18088         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
18089         * lib/regcomp.c (TYPE_SIGNED): Define.
18090         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
18091
18092         regcomp.c: avoid a new -Wshadow warning
18093         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
18094
18095 2010-02-01  Jim Meyering  <meyering@redhat.com>
18096
18097         removing useless parentheses in cpp #define directives
18098         For motivation, see commit c0221df4, "define STREQ(a,b)
18099         consistently, removing useless parentheses"
18100         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
18101         * lib/mountlist.c (MNT_IGNORE): Likewise.
18102         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
18103
18104 2010-02-01  Eric Blake  <ebb9@byu.net>
18105
18106         sys_time: use link-warning
18107         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
18108         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
18109         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
18110         * modules/sys_time (Depends-on): Add warn-on-use.
18111         (Makefile.am): Always build replacement.
18112         (configure.ac): Update substitutions.
18113         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
18114         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
18115         bother with SYS_TIME_H.
18116         * modules/gettimeofday (configure.ac): Declare indicator.
18117         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
18118         in use.
18119
18120         closein-tests: silence compiler warning
18121         * tests/test-closein.c (main): Ignore fread result.
18122         * modules/closein-tests (Depends-on): Add ignore-value.
18123
18124         tests: silence warning about system return
18125         * tests/test-areadlink-with-size.c (main): Ignore system result.
18126         * tests/test-areadlink.c (main): Likewise.
18127         * tests/test-areadlinkat-with-size.c (main): Likewise.
18128         * tests/test-areadlinkat.c (main): Likewise.
18129         * tests/test-canonicalize-lgpl.c (main): Likewise.
18130         * tests/test-canonicalize.c (main): Likewise.
18131         * tests/test-chown.c (main): Likewise.
18132         * tests/test-fchownat.c (main): Likewise.
18133         * tests/test-fdutimensat.c (main): Likewise.
18134         * tests/test-fstatat.c (main): Likewise.
18135         * tests/test-futimens.c (main): Likewise.
18136         * tests/test-lchown.c (main): Likewise.
18137         * tests/test-link.c (main): Likewise.
18138         * tests/test-linkat.c (main): Likewise.
18139         * tests/test-lstat.c (main): Likewise.
18140         * tests/test-mkdir.c (main): Likewise.
18141         * tests/test-mkdirat.c (main): Likewise.
18142         * tests/test-mkfifo.c (main): Likewise.
18143         * tests/test-mkfifoat.c (main): Likewise.
18144         * tests/test-mknod.c (main): Likewise.
18145         * tests/test-readlink.c (main): Likewise.
18146         * tests/test-remove.c (main): Likewise.
18147         * tests/test-rename.c (main): Likewise.
18148         * tests/test-renameat.c (main): Likewise.
18149         * tests/test-rmdir.c (main): Likewise.
18150         * tests/test-symlink.c (main): Likewise.
18151         * tests/test-symlinkat.c (main): Likewise.
18152         * tests/test-unlink.c (main): Likewise.
18153         * tests/test-unlinkat.c (main): Likewise.
18154         * tests/test-utimens.c (main): Likewise.
18155         * tests/test-utimensat.c (main): Likewise.
18156         * modules/areadlink-tests (Depends-on): Add ignore-value.
18157         * modules/areadlink-with-size-tests (Depends-on): Likewise.
18158         * modules/areadlinkat-tests (Depends-on): Likewise.
18159         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
18160         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
18161         * modules/canonicalize-tests (Depends-on): Likewise.
18162         * modules/chown-tests (Depends-on): Likewise.
18163         * modules/fdutimensat-tests (Depends-on): Likewise.
18164         * modules/futimens-tests (Depends-on): Likewise.
18165         * modules/lchown-tests (Depends-on): Likewise.
18166         * modules/link-tests (Depends-on): Likewise.
18167         * modules/linkat-tests (Depends-on): Likewise.
18168         * modules/lstat-tests (Depends-on): Likewise.
18169         * modules/mkdir-tests (Depends-on): Likewise.
18170         * modules/mkfifo-tests (Depends-on): Likewise.
18171         * modules/mkfifoat-tests (Depends-on): Likewise.
18172         * modules/mknod-tests (Depends-on): Likewise.
18173         * modules/openat-tests (Depends-on): Likewise.
18174         * modules/readlink-tests (Depends-on): Likewise.
18175         * modules/remove-tests (Depends-on): Likewise.
18176         * modules/rename-tests (Depends-on): Likewise.
18177         * modules/renameat-tests (Depends-on): Likewise.
18178         * modules/rmdir-tests (Depends-on): Likewise.
18179         * modules/symlink-tests (Depends-on): Likewise.
18180         * modules/symlinkat-tests (Depends-on): Likewise.
18181         * modules/unlink-tests (Depends-on): Likewise.
18182         * modules/utimens-tests (Depends-on): Likewise.
18183         * modules/utimensat-tests (Depends-on): Likewise.
18184
18185 2010-01-31  Bruno Haible  <bruno@clisp.org>
18186
18187         Perform the same test for many <math.h> functions.
18188         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
18189         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
18190         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
18191         of gl_MATHFUNC.
18192         * modules/acos (configure.ac): Likewise.
18193         * modules/asin (configure.ac): Likewise.
18194         * modules/atan (configure.ac): Likewise.
18195         * modules/atan2 (configure.ac): Likewise.
18196         * modules/cbrt (configure.ac): Likewise.
18197         * modules/copysign (configure.ac): Likewise.
18198         * modules/cos (configure.ac): Likewise.
18199         * modules/cosh (configure.ac): Likewise.
18200         * modules/erf (configure.ac): Likewise.
18201         * modules/erfc (configure.ac): Likewise.
18202         * modules/exp (configure.ac): Likewise.
18203         * modules/fmod (configure.ac): Likewise.
18204         * modules/hypot (configure.ac): Likewise.
18205         * modules/j0 (configure.ac): Likewise.
18206         * modules/j1 (configure.ac): Likewise.
18207         * modules/jn (configure.ac): Likewise.
18208         * modules/lgamma (configure.ac): Likewise.
18209         * modules/log (configure.ac): Likewise.
18210         * modules/log10 (configure.ac): Likewise.
18211         * modules/log1p (configure.ac): Likewise.
18212         * modules/pow (configure.ac): Likewise.
18213         * modules/remainder (configure.ac): Likewise.
18214         * modules/sin (configure.ac): Likewise.
18215         * modules/sinh (configure.ac): Likewise.
18216         * modules/tan (configure.ac): Likewise.
18217         * modules/tanh (configure.ac): Likewise.
18218         * modules/y0 (configure.ac): Likewise.
18219         * modules/y1 (configure.ac): Likewise.
18220         * modules/yn (configure.ac): Likewise.
18221         Suggested by Paolo Bonzini.
18222
18223 2010-01-31  Bruno Haible  <bruno@clisp.org>
18224
18225         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
18226
18227 2010-01-31  Bruno Haible  <bruno@clisp.org>
18228
18229         Work around getdelim() bug on FreeBSD 8.0.
18230         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
18231         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
18232         not work.
18233         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
18234         is 1.
18235         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
18236         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
18237         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
18238         a non-zero size.
18239         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
18240
18241 2010-01-31  Bruno Haible  <bruno@clisp.org>
18242
18243         Work around getline() bug on FreeBSD 8.0.
18244         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
18245         and a non-zero size.
18246         * tests/test-getline.c (main): Likewise.
18247         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
18248         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
18249
18250 2010-01-28  Eric Blake  <ebb9@byu.net>
18251
18252         regex: fix build failure
18253         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
18254         platforms.
18255
18256 2010-01-28  Jim Meyering  <meyering@redhat.com>
18257
18258         regex: do not ignore memory allocation failure
18259         * lib/regex_internal.c (create_cd_newstate): Detect
18260         re_node_set_init_copy failure.   Extracted from glibc commit
18261         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
18262
18263         regex: sync more white-space changes from libc
18264         * lib/regex_internal.c: White-space only changes.
18265         * lib/regexec.c: Likewise.
18266
18267         regex: add many uses of __attribute_warn_unused_result__
18268         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
18269         * lib/regexec.c: Likewise.
18270         Extracted from a messy glibc commit.
18271
18272         regcomp.c: spelling and merge-artifact from glibc
18273         * lib/regcomp.c: Merge remainder of glibc's
18274         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
18275
18276         regcomp.c: sync white-space changes from glibc
18277         * lib/regcomp.c: Merge to accommodate white space
18278         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
18279
18280         regcomp.c: do not ignore internal return values
18281         * lib/regcomp.c: Do not ignore internal return values.
18282         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
18283         but without its white-space changes and spelling fixes.
18284
18285         regex_internal.h: define __attribute_warn_unused_result__
18286         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
18287
18288         maint: add a syntax-check rule to check for vulnerable Makefile.in
18289         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
18290
18291 2010-01-27  Jim Meyering  <meyering@redhat.com>
18292
18293         ncftpput-ftp: clean up spaces
18294         * build-aux/ncftpput-ftp: Make Copyright line consistent.
18295         Remove trailing blanks.
18296
18297 2010-01-27  Simon Josefsson  <simon@josefsson.org>
18298
18299         * build-aux/git-version-gen: Fix copyright statement.
18300         * build-aux/gnupload: Likewise.
18301         * tests/test-arcfour.c: Likewise.
18302         * tests/test-arctwo.c: Likewise.
18303         * tests/test-count-one-bits.c: Likewise.
18304         * tests/test-crc.c: Likewise.
18305         * tests/test-des.c: Likewise.
18306         * tests/test-gc-arcfour.c: Likewise.
18307         * tests/test-gc-arctwo.c: Likewise.
18308         * tests/test-gc-des.c: Likewise.
18309         * tests/test-gc-hmac-md5.c: Likewise.
18310         * tests/test-gc-hmac-sha1.c: Likewise.
18311         * tests/test-gc-md2.c: Likewise.
18312         * tests/test-gc-md4.c: Likewise.
18313         * tests/test-gc-md5.c: Likewise.
18314         * tests/test-gc-pbkdf2-sha1.c: Likewise.
18315         * tests/test-gc-rijndael.c: Likewise.
18316         * tests/test-gc-sha1.c: Likewise.
18317         * tests/test-gc.c: Likewise.
18318         * tests/test-gethostname.c: Likewise.
18319         * tests/test-gettimeofday.c: Likewise.
18320         * tests/test-hash.c: Likewise.
18321         * tests/test-hmac-md5.c: Likewise.
18322         * tests/test-hmac-sha1.c: Likewise.
18323         * tests/test-md2.c: Likewise.
18324         * tests/test-md4.c: Likewise.
18325         * tests/test-md5.c: Likewise.
18326         * tests/test-memchr.c: Likewise.
18327         * tests/test-memchr2.c: Likewise.
18328         * tests/test-memcmp.c: Likewise.
18329         * tests/test-memmem.c: Likewise.
18330         * tests/test-memrchr.c: Likewise.
18331         * tests/test-rawmemchr.c: Likewise.
18332         * tests/test-read-file.c: Likewise.
18333         * tests/test-rijndael.c: Likewise.
18334         * tests/test-sockets.c: Likewise.
18335         * tests/test-strchrnul.c: Likewise.
18336         * tests/test-strstr.c: Likewise.
18337         * tests/test-strtod.c: Likewise.
18338         * build-aux/ncftpput-ftp: Likewise.
18339
18340 2010-01-26  Eric Blake  <ebb9@byu.net>
18341
18342         ignore-value: update recommended header name
18343         * modules/ignore-value (Include): Only use <> for headers that
18344         exist in glibc.
18345
18346 2010-01-26  Jim Meyering  <meyering@redhat.com>
18347
18348         test-userspec.c: avoid compiler warnings
18349         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
18350         and "initialization discards qualifiers..." warnings.
18351         Put the first "uid" in its own scope, and make char* members "const".
18352
18353 2010-01-25  Bruno Haible  <bruno@clisp.org>
18354
18355         gnulib-tool: Make warning diagnostics consistent.
18356         * gnulib-tool (func_warning): New function.
18357         Use it everywhere where gnulib-tool produces output to stderr and it is
18358         not a fatal error.
18359
18360 2010-01-25  Bruno Haible  <bruno@clisp.org>
18361
18362         Fix test dependencies.
18363         * modules/xstrtol-tests (Depends-on): Add inttypes.
18364         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
18365
18366 2010-01-25 Pádraig Brady <P@draigBrady.com>
18367
18368         syntax-check: detect incorrect boolean macro values in config.h
18369         * modules/maintainer-makefile (configure.ac): Parameterize the location
18370         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
18371         The logic is from Eric Blake and the location indicated by Jim Meyering.
18372         Note the more natural CONFIG_HEADER name is prohibited by automake
18373         for backwards compatibility reasons.
18374         * top/maint.mk (sc_Wundef_boolean): New rule.
18375
18376 2010-01-25  Jim Meyering  <meyering@redhat.com>
18377
18378         bootstrap: detect MacOS 10.6's shasum, too
18379         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
18380         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
18381
18382 2010-01-23  Jim Meyering  <meyering@redhat.com>
18383
18384         xstrtoll: new module
18385         * modules/xstrtoll: New file.
18386         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
18387         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
18388         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
18389         ./configure fails if you use this module and lack "long long".
18390         * modules/xstrtoll-tests: New module.
18391         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
18392         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
18393         new init.sh-based test framework.
18394
18395 2010-01-24  Bruno Haible  <bruno@clisp.org>
18396
18397         Tests for module 'yn'.
18398         * modules/yn-tests: New file.
18399         * tests/test-yn.c: New file.
18400
18401         Tests for module 'y1'.
18402         * modules/y1-tests: New file.
18403         * tests/test-y1.c: New file.
18404
18405         Tests for module 'y0'.
18406         * modules/y0-tests: New file.
18407         * tests/test-y0.c: New file.
18408
18409         Tests for module 'tanh'.
18410         * modules/tanh-tests: New file.
18411         * tests/test-tanh.c: New file.
18412
18413         Tests for module 'tan'.
18414         * modules/tan-tests: New file.
18415         * tests/test-tan.c: New file.
18416
18417         Tests for module 'sqrt'.
18418         * modules/sqrt-tests: New file.
18419         * tests/test-sqrt.c: New file.
18420
18421         Tests for module 'sinh'.
18422         * modules/sinh-tests: New file.
18423         * tests/test-sinh.c: New file.
18424
18425         Tests for module 'sin'.
18426         * modules/sin-tests: New file.
18427         * tests/test-sin.c: New file.
18428
18429         Tests for module 'rint'.
18430         * modules/rint-tests: New file.
18431         * tests/test-rint.c: New file.
18432
18433         Tests for module 'remainder'.
18434         * modules/remainder-tests: New file.
18435         * tests/test-remainder.c: New file.
18436
18437         Tests for module 'pow'.
18438         * modules/pow-tests: New file.
18439         * tests/test-pow.c: New file.
18440
18441         Tests for module 'nextafter'.
18442         * modules/nextafter-tests: New file.
18443         * tests/test-nextafter.c: New file.
18444
18445         Tests for module 'modf'.
18446         * modules/modf-tests: New file.
18447         * tests/test-modf.c: New file.
18448
18449         Tests for module 'logb'.
18450         * modules/logb-tests: New file.
18451         * tests/test-logb.c: New file.
18452
18453         Tests for module 'log1p'.
18454         * modules/log1p-tests: New file.
18455         * tests/test-log1p.c: New file.
18456
18457         Tests for module 'log10'.
18458         * modules/log10-tests: New file.
18459         * tests/test-log10.c: New file.
18460
18461         Tests for module 'log'.
18462         * modules/log-tests: New file.
18463         * tests/test-log.c: New file.
18464
18465         Tests for module 'lgamma'.
18466         * modules/lgamma-tests: New file.
18467         * tests/test-lgamma.c: New file.
18468
18469         Tests for module 'ldexp'.
18470         * modules/ldexp-tests: New file.
18471         * tests/test-ldexp.c: New file.
18472
18473         Tests for module 'jn'.
18474         * modules/jn-tests: New file.
18475         * tests/test-jn.c: New file.
18476
18477         Tests for module 'j1'.
18478         * modules/j1-tests: New file.
18479         * tests/test-j1.c: New file.
18480
18481         Tests for module 'j0'.
18482         * modules/j0-tests: New file.
18483         * tests/test-j0.c: New file.
18484
18485         Tests for module 'hypot'.
18486         * modules/hypot-tests: New file.
18487         * tests/test-hypot.c: New file.
18488
18489         Tests for module 'fmod'.
18490         * modules/fmod-tests: New file.
18491         * tests/test-fmod.c: New file.
18492
18493         Tests for module 'fabs'.
18494         * modules/fabs-tests: New file.
18495         * tests/test-fabs.c: New file.
18496
18497         Tests for module 'exp'.
18498         * modules/exp-tests: New file.
18499         * tests/test-exp.c: New file.
18500
18501         Tests for module 'erfc'.
18502         * modules/erfc-tests: New file.
18503         * tests/test-erfc.c: New file.
18504
18505         Tests for module 'erf'.
18506         * modules/erf-tests: New file.
18507         * tests/test-erf.c: New file.
18508
18509         Tests for module 'cosh'.
18510         * modules/cosh-tests: New file.
18511         * tests/test-cosh.c: New file.
18512
18513         Tests for module 'cos'.
18514         * modules/cos-tests: New file.
18515         * tests/test-cos.c: New file.
18516
18517         Tests for module 'copysign'.
18518         * modules/copysign-tests: New file.
18519         * tests/test-copysign.c: New file.
18520
18521         Tests for module 'cbrt'.
18522         * modules/cbrt-tests: New file.
18523         * tests/test-cbrt.c: New file.
18524
18525         Tests for module 'atan2'.
18526         * modules/atan2-tests: New file.
18527         * tests/test-atan2.c: New file.
18528
18529         Tests for module 'atan'.
18530         * modules/atan-tests: New file.
18531         * tests/test-atan.c: New file.
18532
18533         Tests for module 'asin'.
18534         * modules/asin-tests: New file.
18535         * tests/test-asin.c: New file.
18536
18537         Tests for module 'acos'.
18538         * modules/acos-tests: New file.
18539         * tests/test-acos.c: New file.
18540
18541 2010-01-24  Bruno Haible  <bruno@clisp.org>
18542
18543         Fix tests for common <math.h> functions.
18544         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
18545         code snippet that references the function pointer, rather than merely
18546         calling the function. Substitute the FUNC_LIBM variable.
18547         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
18548         * modules/acos (configure.ac): Likewise.
18549         * modules/asin (configure.ac): Likewise.
18550         * modules/atan (configure.ac): Likewise.
18551         * modules/atan2 (configure.ac): Likewise.
18552         * modules/cbrt (configure.ac): Likewise.
18553         * modules/copysign (configure.ac): Likewise.
18554         * modules/cos (configure.ac): Likewise.
18555         * modules/cosh (configure.ac): Likewise.
18556         * modules/erf (configure.ac): Likewise.
18557         * modules/erfc (configure.ac): Likewise.
18558         * modules/exp (configure.ac): Likewise.
18559         * modules/fabs (configure.ac): Likewise.
18560         * modules/fmod (configure.ac): Likewise.
18561         * modules/hypot (configure.ac): Likewise.
18562         * modules/j0 (configure.ac): Likewise.
18563         * modules/j1 (configure.ac): Likewise.
18564         * modules/jn (configure.ac): Likewise.
18565         * modules/ldexp (configure.ac): Likewise.
18566         * modules/lgamma (configure.ac): Likewise.
18567         * modules/log (configure.ac): Likewise.
18568         * modules/log10 (configure.ac): Likewise.
18569         * modules/log1p (configure.ac): Likewise.
18570         * modules/logb (configure.ac): Likewise.
18571         * modules/modf (configure.ac): Likewise.
18572         * modules/nextafter (configure.ac): Likewise.
18573         * modules/pow (configure.ac): Likewise.
18574         * modules/remainder (configure.ac): Likewise.
18575         * modules/rint (configure.ac): Likewise.
18576         * modules/sin (configure.ac): Likewise.
18577         * modules/sinh (configure.ac): Likewise.
18578         * modules/tan (configure.ac): Likewise.
18579         * modules/tanh (configure.ac): Likewise.
18580         * modules/y0 (configure.ac): Likewise.
18581         * modules/y1 (configure.ac): Likewise.
18582         * modules/yn (configure.ac): Likewise.
18583
18584 2010-01-24  Bruno Haible  <bruno@clisp.org>
18585
18586         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
18587         * tests/test-acosl.c (x): New variable.
18588         (main): Store argument in x and fetch it from x.
18589         * tests/test-asinl.c (x): New variable.
18590         (main): Store argument in x and fetch it from x.
18591         * tests/test-atanl.c (x): New variable.
18592         (main): Store argument in x and fetch it from x.
18593         * tests/test-cosl.c (x): New variable.
18594         (main): Store argument in x and fetch it from x.
18595         * tests/test-expl.c (x): New variable.
18596         (main): Store argument in x and fetch it from x.
18597         * tests/test-logl.c (x): New variable.
18598         (main): Store argument in x and fetch it from x.
18599         * tests/test-sinl.c (x): New variable.
18600         (main): Store argument in x and fetch it from x.
18601         * tests/test-sqrtl.c (x): New variable.
18602         (main): Store argument in x and fetch it from x.
18603         * tests/test-tanl.c (x): New variable.
18604         (main): Store argument in x and fetch it from x.
18605
18606 2010-01-24  Bruno Haible  <bruno@clisp.org>
18607
18608         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
18609         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
18610         assignments to the initial TESTS_ENVIRONMENT.
18611         * doc/gnulib.texi (Unit test modules): Document it.
18612         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
18613         TESTS_ENVIRONMENT.
18614         * modules/btowc-tests (Makefile.am): Likewise.
18615         * modules/c-stack-tests (Makefile.am): Likewise.
18616         * modules/c-strcase-tests (Makefile.am): Likewise.
18617         * modules/copy-file-tests (Makefile.am): Likewise.
18618         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
18619         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
18620         * modules/mbrtowc-tests (Makefile.am): Likewise.
18621         * modules/mbscasecmp-tests (Makefile.am): Likewise.
18622         * modules/mbscasestr-tests (Makefile.am): Likewise.
18623         * modules/mbschr-tests (Makefile.am): Likewise.
18624         * modules/mbscspn-tests (Makefile.am): Likewise.
18625         * modules/mbsinit-tests (Makefile.am): Likewise.
18626         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
18627         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
18628         * modules/mbspbrk-tests (Makefile.am): Likewise.
18629         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
18630         * modules/mbsrchr-tests (Makefile.am): Likewise.
18631         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
18632         * modules/mbsspn-tests (Makefile.am): Likewise.
18633         * modules/mbsstr-tests (Makefile.am): Likewise.
18634         * modules/nl_langinfo-tests (Makefile.am): Likewise.
18635         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
18636         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
18637         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
18638         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
18639         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
18640         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
18641         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
18642         * modules/wcrtomb-tests (Makefile.am): Likewise.
18643         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
18644         * modules/wcsrtombs-tests (Makefile.am): Likewise.
18645         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
18646         assignments from TESTS_ENVIRONMENT.
18647         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
18648         augmentation.
18649         * modules/argp-version-etc-tests (Makefile.am): Likewise.
18650         * modules/atexit-tests (Makefile.am): Likewise.
18651         * modules/binary-io-tests (Makefile.am): Likewise.
18652         * modules/closein-tests (Makefile.am): Likewise.
18653         * modules/dprintf-posix-tests (Makefile.am): Likewise.
18654         * modules/exclude-tests (Makefile.am): Likewise.
18655         * modules/fflush-tests (Makefile.am): Likewise.
18656         * modules/fpending-tests (Makefile.am): Likewise.
18657         * modules/fprintf-posix-tests (Makefile.am): Likewise.
18658         * modules/freadahead-tests (Makefile.am): Likewise.
18659         * modules/freadptr-tests (Makefile.am): Likewise.
18660         * modules/freadseek-tests (Makefile.am): Likewise.
18661         * modules/fseek-tests (Makefile.am): Likewise.
18662         * modules/fseeko-tests (Makefile.am): Likewise.
18663         * modules/ftell-tests (Makefile.am): Likewise.
18664         * modules/ftello-tests (Makefile.am): Likewise.
18665         * modules/idpriv-drop-tests (Makefile.am): Likewise.
18666         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
18667         * modules/lseek-tests (Makefile.am): Likewise.
18668         * modules/parse-duration-tests (Makefile.am): Likewise.
18669         * modules/perror-tests (Makefile.am): Likewise.
18670         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
18671         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
18672         * modules/pipe-tests (Makefile.am): Likewise.
18673         * modules/pread-tests (Makefile.am): Likewise.
18674         * modules/printf-posix-tests (Makefile.am): Likewise.
18675         * modules/select-tests (Makefile.am): Likewise.
18676         * modules/sigpipe-tests (Makefile.am): Likewise.
18677         * modules/tsearch-tests (Makefile.am): Likewise.
18678         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
18679         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
18680         * modules/uniname/uniname-tests (Makefile.am): Likewise.
18681         * modules/uniwidth/width-tests (Makefile.am): Likewise.
18682         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
18683         * modules/version-etc-tests (Makefile.am): Likewise.
18684         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
18685         * modules/vprintf-posix-tests (Makefile.am): Likewise.
18686         * modules/xalloc-die-tests (Makefile.am): Likewise.
18687         * modules/xprintf-posix-tests (Makefile.am): Likewise.
18688         * modules/xstrtoimax-tests (Makefile.am): Likewise.
18689         * modules/xstrtol-tests (Makefile.am): Likewise.
18690         * modules/xstrtoumax-tests (Makefile.am): Likewise.
18691         * modules/yesno-tests (Makefile.am): Likewise.
18692         Suggested by Jim Meyering.
18693
18694 2010-01-24  Bruno Haible  <bruno@clisp.org>
18695
18696         More documentation.
18697         * doc/gnulib.texi (Writing modules): New chapter.
18698         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
18699         the new chapter.
18700
18701 2010-01-24  Jim Meyering  <meyering@redhat.com>
18702
18703         maint.mk: do not prepend "./" after filtering
18704         * top/maint.mk (_prepend_srcdir_prefix): New variable
18705         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
18706         "./" when $(srcdir) is ".".
18707
18708         define STREQ(a,b) consistently, removing useless parentheses
18709         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
18710         since the only risk is that "a" or "b" contains an unparenthesized
18711         comma, but if either did that, STREQ would have 3 or more arguments.
18712         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
18713         * lib/fts.c (STREQ): Remove unnecessary parentheses.
18714         * lib/hash-triple.c (STREQ): Likewise.
18715         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
18716         * lib/getugroups.c (STREQ): Likewise.
18717
18718 2010-01-23  Jim Meyering  <meyering@redhat.com>
18719
18720         maint.mk: fix syntax-check in a non-srcdir build directory
18721         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
18722         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
18723
18724 2010-01-22  Jim Meyering  <meyering@redhat.com>
18725
18726         userspec: add unit tests
18727         * tests/test-userspec.c: New file.
18728         * modules/userspec-tests: Likewise.
18729
18730 2010-01-21  Jim Meyering  <meyering@redhat.com>
18731
18732         maint.mk: handle source file names containing "." robustly
18733         * top/maint.mk (_dot_escaped_srcdir): Define.
18734         (VC_LIST): Use it in LHS of sed substitution.
18735
18736 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
18737
18738         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
18739         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
18740         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
18741         from a non-srcdir build.
18742
18743 2010-01-20  Eric Blake  <ebb9@byu.net>
18744
18745         warn-on-use: use instead of link-warning
18746         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
18747         * modules/unistd (Depends-on, Makefile.am): Likewise.
18748         * modules/arpa_inet (Depends-on): Replace link-warning with
18749         warn-on-use.
18750         (Makefile.am): Update rules accordingly.
18751         * modules/ctype (Depends-on, Makefile.am): Likewise.
18752         * modules/dirent (Depends-on, Makefile.am): Likewise.
18753         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
18754         * modules/inttypes (Depends-on, Makefile.am): Likewise.
18755         * modules/langinfo (Depends-on, Makefile.am): Likewise.
18756         * modules/locale (Depends-on, Makefile.am): Likewise.
18757         * modules/math (Depends-on, Makefile.am): Likewise.
18758         * modules/search (Depends-on, Makefile.am): Likewise.
18759         * modules/signal (Depends-on, Makefile.am): Likewise.
18760         * modules/spawn (Depends-on, Makefile.am): Likewise.
18761         * modules/stdlib (Depends-on, Makefile.am): Likewise.
18762         * modules/string (Depends-on, Makefile.am): Likewise.
18763         * modules/strings (Depends-on, Makefile.am): Likewise.
18764         * modules/sys_file (Depends-on, Makefile.am): Likewise.
18765         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
18766         * modules/sys_select (Depends-on, Makefile.am): Likewise.
18767         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
18768         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
18769         * modules/sys_times (Depends-on, Makefile.am): Likewise.
18770         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
18771         * modules/wchar (Depends-on, Makefile.am): Likewise.
18772         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
18773         should be poisoned.
18774         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
18775         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
18776         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
18777         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
18778         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
18779         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
18780         * m4/math_h.m4 (gl_MATH_H): Likewise.
18781         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
18782         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
18783         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
18784         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
18785         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
18786         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
18787         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
18788         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
18789         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
18790         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
18791         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
18792         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
18793         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
18794         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
18795         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
18796         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
18797         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
18798         GL_LINK_WARNING.
18799         * lib/ctype.in.h: Likewise.
18800         * lib/dirent.in.h: Likewise.
18801         * lib/fcntl.in.h: Likewise.
18802         * lib/inttypes.in.h: Likewise.
18803         * lib/langinfo.in.h: Likewise.
18804         * lib/locale.in.h: Likewise.
18805         * lib/math.in.h: Likewise.
18806         * lib/search.in.h: Likewise.
18807         * lib/signal.in.h: Likewise.
18808         * lib/spawn.in.h: Likewise.
18809         * lib/stdio.in.h: Likewise.
18810         * lib/stdlib.in.h: Likewise.
18811         * lib/string.in.h: Likewise.
18812         * lib/strings.in.h: Likewise.
18813         * lib/sys_file.in.h: Likewise.
18814         * lib/sys_ioctl.in.h: Likewise.
18815         * lib/sys_select.in.h: Likewise.
18816         * lib/sys_socket.in.h: Likewise.
18817         * lib/sys_stat.in.h: Likewise.
18818         * lib/sys_times.in.h: Likewise.
18819         * lib/sys_utsname.in.h: Likewise.
18820         * lib/unistd.in.h: Likewise.
18821         * lib/wchar.in.h: Likewise.
18822
18823 2010-01-20  Bruno Haible  <bruno@clisp.org>
18824
18825         Avoid duplicate -lm.
18826         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
18827         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
18828         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
18829         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
18830         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
18831         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
18832         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
18833         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
18834         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
18835         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
18836         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
18837         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
18838         Reported by Paolo Bonzini.
18839
18840 2010-01-19  Bruno Haible  <bruno@clisp.org>
18841
18842         langinfo, nl_langinfo: Relicense under LGPLv2+.
18843         * modules/langinfo (License): Change to LGPLv2+.
18844         * modules/nl_langinfo (License): Likewise.
18845         Patch by David Lutterkort <lutter@redhat.com>.
18846
18847 2010-01-19  Bruno Haible  <bruno@clisp.org>
18848
18849         Avoid compilation error with cc on OSF/1 5.1.
18850         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
18851         statement, not before.
18852         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
18853
18854 2010-01-18  Bruno Haible  <bruno@clisp.org>
18855
18856         Avoid a link error due to the __printf__ symbol.
18857         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
18858         and 2.6.x.
18859         (__format__, __printf__): Remove definitions.
18860         * lib/argp-fmtstream.h: Likewise.
18861         * lib/argp.h: Likewise.
18862         * lib/error.h: Likewise.
18863         * lib/vasnprintf.h: Likewise.
18864         * lib/xprintf.h: Likewise.
18865         * lib/xvasprintf.h: Likewise.
18866         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
18867
18868 2010-01-18  Bruno Haible  <bruno@clisp.org>
18869
18870         Tests for module 'tanl'.
18871         * modules/tanl-tests: New file.
18872         * tests/test-tanl.c: New file.
18873
18874         Tests for module 'sqrtl'.
18875         * modules/sqrtl-tests: New file.
18876         * tests/test-sqrtl.c: New file.
18877
18878         Tests for module 'sinl'.
18879         * modules/sinl-tests: New file.
18880         * tests/test-sinl.c: New file.
18881
18882         Tests for module 'logl'.
18883         * modules/logl-tests: New file.
18884         * tests/test-logl.c: New file.
18885
18886         Tests for module 'expl'.
18887         * modules/expl-tests: New file.
18888         * tests/test-expl.c: New file.
18889
18890         Tests for module 'cosl'.
18891         * modules/cosl-tests: New file.
18892         * tests/test-cosl.c: New file.
18893
18894         Tests for module 'atanl'.
18895         * modules/atanl-tests: New file.
18896         * tests/test-atanl.c: New file.
18897
18898         Tests for module 'asinl'.
18899         * modules/asinl-tests: New file.
18900         * tests/test-asinl.c: New file.
18901
18902         Tests for module 'acosl'.
18903         * modules/acosl-tests: New file.
18904         * tests/test-acosl.c: New file.
18905
18906         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
18907         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
18908         tanl): Use the standard gnulib idiom.
18909         * lib/cosl.c: Don't include trigl.c and sincosl.c.
18910         * lib/sinl.c: Likewise.
18911         * lib/tanl.c: Don't include trigl.c.
18912         (kernel_tanl): Make static.
18913         * lib/sincosl.c: Include trigl.h first.
18914         * lib/trigl.c: Likewise.
18915         * m4/acosl.m4: New file.
18916         * m4/asinl.m4: New file.
18917         * m4/atanl.m4: New file.
18918         * m4/cosl.m4: New file.
18919         * m4/expl.m4: New file.
18920         * m4/logl.m4: New file.
18921         * m4/sinl.m4: New file.
18922         * m4/sqrtl.m4: New file.
18923         * m4/tanl.m4: New file.
18924         * m4/mathl.m4: Remove file.
18925         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
18926         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
18927         Don't initialize GNULIB_MATHL.
18928         * modules/acosl: New file.
18929         * modules/asinl: New file.
18930         * modules/atanl: New file.
18931         * modules/cosl: New file.
18932         * modules/expl: New file.
18933         * modules/logl: New file.
18934         * modules/sinl: New file.
18935         * modules/sqrtl: New file.
18936         * modules/tanl: New file.
18937         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
18938         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
18939         substitute GNULIB_MATHL.
18940         * modules/mathl: Rewritten.
18941         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
18942         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
18943         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
18944         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
18945         * doc/posix-functions/expl.texi: Mention the 'expl' module.
18946         * doc/posix-functions/logl.texi: Mention the 'logl' module.
18947         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
18948         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
18949         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
18950
18951 2010-01-18  Bruno Haible  <bruno@clisp.org>
18952
18953         sqrt: Make gl_FUNC_SQRT requirable.
18954         * m4/sqrt.m4: New file.
18955         * modules/sqrt (Files): Add it.
18956         (configure.ac): Invoke gl_FUNC_SQRT.
18957
18958 2010-01-18  Bruno Haible  <bruno@clisp.org>
18959
18960         New modules for common <math.h> functions.
18961         * m4/mathfunc.m4: New file.
18962         * modules/acos: New file.
18963         * modules/asin: New file.
18964         * modules/atan: New file.
18965         * modules/atan2: New file.
18966         * modules/cbrt: New file.
18967         * modules/copysign: New file.
18968         * modules/cos: New file.
18969         * modules/cosh: New file.
18970         * modules/erf: New file.
18971         * modules/erfc: New file.
18972         * modules/exp: New file.
18973         * modules/fabs: New file.
18974         * modules/fmod: New file.
18975         * modules/hypot: New file.
18976         * modules/j0: New file.
18977         * modules/j1: New file.
18978         * modules/jn: New file.
18979         * modules/ldexp: New file.
18980         * modules/lgamma: New file.
18981         * modules/log: New file.
18982         * modules/log10: New file.
18983         * modules/log1p: New file.
18984         * modules/logb: New file.
18985         * modules/modf: New file.
18986         * modules/nextafter: New file.
18987         * modules/pow: New file.
18988         * modules/remainder: New file.
18989         * modules/rint: New file.
18990         * modules/sin: New file.
18991         * modules/sinh: New file.
18992         * modules/sqrt: New file.
18993         * modules/tan: New file.
18994         * modules/tanh: New file.
18995         * modules/y0: New file.
18996         * modules/y1: New file.
18997         * modules/yn: New file.
18998         * doc/posix-functions/acos.texi: Mention the 'acos' module.
18999         * doc/posix-functions/asin.texi: Mention the 'asin' module.
19000         * doc/posix-functions/atan.texi: Mention the 'atan' module.
19001         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
19002         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
19003         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
19004         * doc/posix-functions/cos.texi: Mention the 'cos' module.
19005         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
19006         * doc/posix-functions/erf.texi: Mention the 'erf' module.
19007         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
19008         * doc/posix-functions/exp.texi: Mention the 'exp' module.
19009         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
19010         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
19011         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
19012         * doc/posix-functions/j0.texi: Mention the 'j0' module.
19013         * doc/posix-functions/j1.texi: Mention the 'j1' module.
19014         * doc/posix-functions/jn.texi: Mention the 'jn' module.
19015         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
19016         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
19017         * doc/posix-functions/log.texi: Mention the 'log' module.
19018         * doc/posix-functions/log10.texi: Mention the 'log10' module.
19019         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
19020         * doc/posix-functions/logb.texi: Mention the 'logb' module.
19021         * doc/posix-functions/modf.texi: Mention the 'modf' module.
19022         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
19023         * doc/posix-functions/pow.texi: Mention the 'pow' module.
19024         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
19025         * doc/posix-functions/rint.texi: Mention the 'rint' module.
19026         * doc/posix-functions/sin.texi: Mention the 'sin' module.
19027         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
19028         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
19029         * doc/posix-functions/tan.texi: Mention the 'tan' module.
19030         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
19031         * doc/posix-functions/y0.texi: Mention the 'y0' module.
19032         * doc/posix-functions/y1.texi: Mention the 'y1' module.
19033         * doc/posix-functions/yn.texi: Mention the 'yn' module.
19034
19035 2010-01-18  Jim Meyering  <meyering@redhat.com>
19036
19037         ignore-value: relax license to LGPLv2+
19038         * modules/ignore-value (License): Relax to LGPLv2+.
19039
19040         getdate: don't leak when TZ contains two or more '"'s
19041         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
19042         double quote in TZ after the first one.
19043
19044         readtokens: do not leak internal token_lengths buffer
19045         * lib/readtokens.c (readtokens): Free the local, lengths,
19046         when the supplied "token_lengths" parameter is NULL.
19047
19048 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19049
19050         Fix a couple of missing LIBTHREAD link failures on AIX.
19051         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
19052         $(LIBTHREAD).
19053         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
19054
19055         Link test-poll against INET_PTON_LIB.
19056         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
19057         for inet_pton on Solaris 10.
19058
19059 2010-01-17  Bruno Haible  <bruno@clisp.org>
19060
19061         unistdio/*-sprintf: Fix typo in module description.
19062         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
19063         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
19064         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
19065         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
19066         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
19067         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
19068         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
19069         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
19070
19071 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19072
19073         gnulib-tool: fix filelist for AIX, HP-UX ksh.
19074         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
19075         variables in shell case patterns, for AIX and HP-UX ksh.
19076
19077         Split large sed scripts, for HP-UX sed.
19078         * modules/stdio: Split sed scripts around 50 sed commands,
19079         to avoid HP-UX limit of 99 commands, in the near future.
19080         * modules/string: Likewise.
19081         * modules/unistd: Likewise.
19082
19083         gnulib-tool: avoid writing in the current directory.
19084         * gnulib-tool (func_emit_lib_Makefile_am)
19085         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
19086         not in the current directory, so concurrent gnulib-tool
19087         instances do not interfere.
19088
19089 2010-01-16  Jim Meyering  <meyering@redhat.com>
19090
19091         doc: update users.txt
19092         * users.txt: Add grep.
19093         (diffutils, gzip): Update URLs.
19094
19095 2010-01-12  Bruno Haible  <bruno@clisp.org>
19096
19097         posix_spawn: Avoid test failure on Cygwin.
19098         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
19099         characters.
19100         Reported by Simon Josefsson.
19101
19102 2010-01-12  Bruno Haible  <bruno@clisp.org>
19103
19104         * tests/test-cond.c (main): When skipping the test, show the reason.
19105
19106 2010-01-12  Simon Josefsson  <simon@josefsson.org>
19107
19108         * lib/striconv.c (str_cd_iconv): Avoid if before free.
19109
19110 2010-01-12  Simon Josefsson  <simon@josefsson.org>
19111
19112         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
19113         VC_LIST_ALWAYS_EXCLUDE_REGEX.
19114
19115 2010-01-12  Eric Blake  <ebb9@byu.net>
19116
19117         build: guarantee AS_VAR_IF
19118         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
19119         (gl_AS_VAR_IF): Move...
19120         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
19121         Reported by Simon Josefsson.
19122
19123 2010-01-12  Simon Josefsson  <simon@josefsson.org>
19124
19125         * lib/stdio.in.h: Fix typo.
19126
19127 2010-01-12  Simon Josefsson  <simon@josefsson.org>
19128
19129         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
19130         libgpg-error.
19131
19132 2010-01-12  Simon Josefsson  <simon@josefsson.org>
19133
19134         * tests/test-xalloc-die.sh: Use $EXEEXT.
19135
19136 2010-01-12  Simon Josefsson  <simon@josefsson.org>
19137             Bruno Haible  <bruno@clisp.org>
19138
19139         getlogin, getlogin_r: Avoid test failure.
19140         * tests/test-getlogin.c: Include <stdio.h>.
19141         (main): Skip the test when the function fails because stdin is not a
19142         tty.
19143         * tests/test-getlogin_r.c: Include <stdio.h>.
19144         (main): Skip the test when the function fails because stdin is not a
19145         tty.
19146
19147 2010-01-11  Eric Blake  <ebb9@byu.net>
19148
19149         tests: avoid more large file warnings
19150         * tests/test-fflush.c: Avoid warning about ftell use.
19151         * tests/test-fseek.c: Avoid warning about fseek use.
19152
19153 2010-01-10  Bruno Haible  <bruno@clisp.org>
19154
19155         nproc: Work better on Linux when /proc and /sys are not mounted.
19156         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
19157         as lower bound when, on glibc/Linux systems,
19158         sysconf (_SC_NPROCESSORS_CONF) returns 1.
19159         Suggested by Pádraig Brady <P@draigbrady.com>.
19160         Reported by Dmitry V. Levin <ldv@altlinux.org>.
19161
19162         nproc: Refactor.
19163         * lib/nproc.c (num_processors_via_affinity_mask): New function,
19164         extracted from num_processors.
19165         (num_processors): Call it.
19166
19167 2010-01-11  Jim Meyering  <meyering@redhat.com>
19168
19169         utimecmp: avoid new warning from upcoming gcc-4.5.0
19170         * lib/utimecmp.c (BILLION): Define using #define rather than an
19171         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
19172
19173 2010-01-11  Eric Blake  <ebb9@byu.net>
19174
19175         math: add portability warnings for classification macros
19176         * modules/math (Depends-on): Add warn-on-use.
19177         (Makefile.am): Provide new substitutions.
19178         * m4/math_h.m4 (gl_MATH_H): Require inline.
19179         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
19180         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
19181         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
19182         implement warnings.
19183
19184         unistd: warn on use of environ without module
19185         * modules/unistd (Depends-on): Add warn-on-use.
19186         (Makefile.am): Provide new substitutions.
19187         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
19188         * lib/unistd.in.h (environ): Wrap with a warning helper function.
19189
19190         stdio: warn on suspicious uses
19191         * modules/stdio (Depends-on): Add warn-on-use.
19192         (Makefile.am): Provide new substitutions.
19193         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
19194         fseeko.
19195         * lib/stdio.in.h (gets): Always warn on use.
19196         (fseek, ftell): Adjust when warnings are issued, and honor
19197         _GL_NO_LARGE_FILES as a way to silence the warning.
19198         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
19199         any warning about large file offsets.
19200         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
19201         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
19202         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
19203         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
19204         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
19205         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
19206         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
19207         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
19208
19209         warn-on-use: new module
19210         * modules/warn-on-use: New file.
19211         * build-aux/warn-on-use.h: Likewise.
19212         * m4/warn-on-use.m4: Likewise.
19213         * MODULES.html.sh (Support for building): Mention it.
19214
19215 2010-01-10  Bruno Haible  <bruno@clisp.org>
19216
19217         Tests for module 'unistr/u32-strdup'.
19218         * modules/unistr/u32-strdup-tests: New file.
19219         * tests/unistr/test-u32-strdup.c: New file.
19220
19221         Tests for module 'unistr/u16-strdup'.
19222         * modules/unistr/u16-strdup-tests: New file.
19223         * tests/unistr/test-u16-strdup.c: New file.
19224
19225         Tests for module 'unistr/u8-strdup'.
19226         * modules/unistr/u8-strdup-tests: New file.
19227         * tests/unistr/test-u8-strdup.c: New file.
19228         * tests/unistr/test-strdup.h: New file.
19229
19230         Tests for module 'unistr/u32-strncmp'.
19231         * modules/unistr/u32-strncmp-tests: New file.
19232         * tests/unistr/test-u32-strncmp.c: New file.
19233
19234         Tests for module 'unistr/u16-strncmp'.
19235         * modules/unistr/u16-strncmp-tests: New file.
19236         * tests/unistr/test-u16-strncmp.c: New file.
19237
19238         Tests for module 'unistr/u8-strncmp'.
19239         * modules/unistr/u8-strncmp-tests: New file.
19240         * tests/unistr/test-u8-strncmp.c: New file.
19241         * tests/unistr/test-strncmp.h: New file.
19242
19243         Tests for module 'unistr/u32-strcoll'.
19244         * modules/unistr/u32-strcoll-tests: New file.
19245         * tests/unistr/test-u32-strcoll.c: New file.
19246
19247         Tests for module 'unistr/u16-strcoll'.
19248         * modules/unistr/u16-strcoll-tests: New file.
19249         * tests/unistr/test-u16-strcoll.c: New file.
19250
19251         Tests for module 'unistr/u8-strcoll'.
19252         * modules/unistr/u8-strcoll-tests: New file.
19253         * tests/unistr/test-u8-strcoll.c: New file.
19254
19255         Tests for module 'unistr/u32-strcmp'.
19256         * modules/unistr/u32-strcmp-tests: New file.
19257         * tests/unistr/test-u32-strcmp.c: New file.
19258         * tests/unistr/test-u32-strcmp.h: New file.
19259
19260         Tests for module 'unistr/u16-strcmp'.
19261         * modules/unistr/u16-strcmp-tests: New file.
19262         * tests/unistr/test-u16-strcmp.c: New file.
19263         * tests/unistr/test-u16-strcmp.h: New file.
19264
19265         Tests for module 'unistr/u8-strcmp'.
19266         * modules/unistr/u8-strcmp-tests: New file.
19267         * tests/unistr/test-u8-strcmp.c: New file.
19268         * tests/unistr/test-u8-strcmp.h: New file.
19269         * tests/unistr/test-strcmp.h: New file.
19270
19271         Tests for module 'unistr/u32-strncat'.
19272         * modules/unistr/u32-strncat-tests: New file.
19273         * tests/unistr/test-u32-strncat.c: New file.
19274
19275         Tests for module 'unistr/u16-strncat'.
19276         * modules/unistr/u16-strncat-tests: New file.
19277         * tests/unistr/test-u16-strncat.c: New file.
19278
19279         Tests for module 'unistr/u8-strncat'.
19280         * modules/unistr/u8-strncat-tests: New file.
19281         * tests/unistr/test-u8-strncat.c: New file.
19282         * tests/unistr/test-strncat.h: New file.
19283
19284         Tests for module 'unistr/u32-strcat'.
19285         * modules/unistr/u32-strcat-tests: New file.
19286         * tests/unistr/test-u32-strcat.c: New file.
19287
19288         Tests for module 'unistr/u16-strcat'.
19289         * modules/unistr/u16-strcat-tests: New file.
19290         * tests/unistr/test-u16-strcat.c: New file.
19291
19292         Tests for module 'unistr/u8-strcat'.
19293         * modules/unistr/u8-strcat-tests: New file.
19294         * tests/unistr/test-u8-strcat.c: New file.
19295         * tests/unistr/test-strcat.h: New file.
19296
19297         Tests for module 'unistr/u32-stpncpy'.
19298         * modules/unistr/u32-stpncpy-tests: New file.
19299         * tests/unistr/test-u32-stpncpy.c: New file.
19300
19301         Tests for module 'unistr/u16-stpncpy'.
19302         * modules/unistr/u16-stpncpy-tests: New file.
19303         * tests/unistr/test-u16-stpncpy.c: New file.
19304
19305         Tests for module 'unistr/u8-stpncpy'.
19306         * modules/unistr/u8-stpncpy-tests: New file.
19307         * tests/unistr/test-u8-stpncpy.c: New file.
19308         * tests/unistr/test-stpncpy.h: New file.
19309
19310         Tests for module 'unistr/u32-strncpy'.
19311         * modules/unistr/u32-strncpy-tests: New file.
19312         * tests/unistr/test-u32-strncpy.c: New file.
19313
19314         Tests for module 'unistr/u16-strncpy'.
19315         * modules/unistr/u16-strncpy-tests: New file.
19316         * tests/unistr/test-u16-strncpy.c: New file.
19317
19318         Tests for module 'unistr/u8-strncpy'.
19319         * modules/unistr/u8-strncpy-tests: New file.
19320         * tests/unistr/test-u8-strncpy.c: New file.
19321         * tests/unistr/test-strncpy.h: New file.
19322
19323         Tests for module 'unistr/u32-stpcpy'.
19324         * modules/unistr/u32-stpcpy-tests: New file.
19325         * tests/unistr/test-u32-stpcpy.c: New file.
19326
19327         Tests for module 'unistr/u16-stpcpy'.
19328         * modules/unistr/u16-stpcpy-tests: New file.
19329         * tests/unistr/test-u16-stpcpy.c: New file.
19330
19331         Tests for module 'unistr/u8-stpcpy'.
19332         * modules/unistr/u8-stpcpy-tests: New file.
19333         * tests/unistr/test-u8-stpcpy.c: New file.
19334         * tests/unistr/test-stpcpy.h: New file.
19335
19336         Tests for module 'unistr/u32-strcpy'.
19337         * modules/unistr/u32-strcpy-tests: New file.
19338         * tests/unistr/test-u32-strcpy.c: New file.
19339
19340         Tests for module 'unistr/u16-strcpy'.
19341         * modules/unistr/u16-strcpy-tests: New file.
19342         * tests/unistr/test-u16-strcpy.c: New file.
19343
19344         Tests for module 'unistr/u8-strcpy'.
19345         * modules/unistr/u8-strcpy-tests: New file.
19346         * tests/unistr/test-u8-strcpy.c: New file.
19347         * tests/unistr/test-strcpy.h: New file.
19348
19349         Tests for module 'unistr/u32-strnlen'.
19350         * modules/unistr/u32-strnlen-tests: New file.
19351         * tests/unistr/test-u32-strnlen.c: New file.
19352
19353         Tests for module 'unistr/u16-strnlen'.
19354         * modules/unistr/u16-strnlen-tests: New file.
19355         * tests/unistr/test-u16-strnlen.c: New file.
19356
19357         Tests for module 'unistr/u8-strnlen'.
19358         * modules/unistr/u8-strnlen-tests: New file.
19359         * tests/unistr/test-u8-strnlen.c: New file.
19360         * tests/unistr/test-strnlen.h: New file.
19361
19362         Tests for module 'unistr/u32-strlen'.
19363         * modules/unistr/u32-strlen-tests: New file.
19364         * tests/unistr/test-u32-strlen.c: New file.
19365
19366         Tests for module 'unistr/u16-strlen'.
19367         * modules/unistr/u16-strlen-tests: New file.
19368         * tests/unistr/test-u16-strlen.c: New file.
19369
19370         Tests for module 'unistr/u8-strlen'.
19371         * modules/unistr/u8-strlen-tests: New file.
19372         * tests/unistr/test-u8-strlen.c: New file.
19373
19374         Tests for module 'unistr/u32-prev'.
19375         * modules/unistr/u32-prev-tests: New file.
19376         * tests/unistr/test-u32-prev.c: New file.
19377
19378         Tests for module 'unistr/u16-prev'.
19379         * modules/unistr/u16-prev-tests: New file.
19380         * tests/unistr/test-u16-prev.c: New file.
19381
19382         Tests for module 'unistr/u8-prev'.
19383         * modules/unistr/u8-prev-tests: New file.
19384         * tests/unistr/test-u8-prev.c: New file.
19385
19386         Tests for module 'unistr/u32-next'.
19387         * modules/unistr/u32-next-tests: New file.
19388         * tests/unistr/test-u32-next.c: New file.
19389
19390         Tests for module 'unistr/u16-next'.
19391         * modules/unistr/u16-next-tests: New file.
19392         * tests/unistr/test-u16-next.c: New file.
19393
19394         Tests for module 'unistr/u8-next'.
19395         * modules/unistr/u8-next-tests: New file.
19396         * tests/unistr/test-u8-next.c: New file.
19397
19398         Tests for module 'unistr/u32-strmbtouc'.
19399         * modules/unistr/u32-strmbtouc-tests: New file.
19400         * tests/unistr/test-u32-strmbtouc.c: New file.
19401
19402         Tests for module 'unistr/u16-strmbtouc'.
19403         * modules/unistr/u16-strmbtouc-tests: New file.
19404         * tests/unistr/test-u16-strmbtouc.c: New file.
19405
19406         Tests for module 'unistr/u8-strmbtouc'.
19407         * modules/unistr/u8-strmbtouc-tests: New file.
19408         * tests/unistr/test-u8-strmbtouc.c: New file.
19409
19410         Tests for module 'unistr/u32-strmblen'.
19411         * modules/unistr/u32-strmblen-tests: New file.
19412         * tests/unistr/test-u32-strmblen.c: New file.
19413
19414         Tests for module 'unistr/u16-strmblen'.
19415         * modules/unistr/u16-strmblen-tests: New file.
19416         * tests/unistr/test-u16-strmblen.c: New file.
19417
19418         Tests for module 'unistr/u8-strmblen'.
19419         * modules/unistr/u8-strmblen-tests: New file.
19420         * tests/unistr/test-u8-strmblen.c: New file.
19421
19422         Tests for module 'unistr/u32-cpy-alloc'.
19423         * modules/unistr/u32-cpy-alloc-tests: New file.
19424         * tests/unistr/test-u32-cpy-alloc.c: New file.
19425
19426         Tests for module 'unistr/u16-cpy-alloc'.
19427         * modules/unistr/u16-cpy-alloc-tests: New file.
19428         * tests/unistr/test-u16-cpy-alloc.c: New file.
19429
19430         Tests for module 'unistr/u8-cpy-alloc'.
19431         * modules/unistr/u8-cpy-alloc-tests: New file.
19432         * tests/unistr/test-u8-cpy-alloc.c: New file.
19433         * tests/unistr/test-cpy-alloc.h: New file.
19434
19435         Tests for module 'unistr/u32-mbsnlen'.
19436         * modules/unistr/u32-mbsnlen-tests: New file.
19437         * tests/unistr/test-u32-mbsnlen.c: New file.
19438
19439         Tests for module 'unistr/u16-mbsnlen'.
19440         * modules/unistr/u16-mbsnlen-tests: New file.
19441         * tests/unistr/test-u16-mbsnlen.c: New file.
19442
19443         Tests for module 'unistr/u8-mbsnlen'.
19444         * modules/unistr/u8-mbsnlen-tests: New file.
19445         * tests/unistr/test-u8-mbsnlen.c: New file.
19446
19447         Tests for module 'unistr/u32-chr'.
19448         * modules/unistr/u32-chr-tests: New file.
19449         * tests/unistr/test-u32-chr.c: New file.
19450
19451         Tests for module 'unistr/u16-chr'.
19452         * modules/unistr/u16-chr-tests: New file.
19453         * tests/unistr/test-u16-chr.c: New file.
19454
19455         Tests for module 'unistr/u8-chr'.
19456         * modules/unistr/u8-chr-tests: New file.
19457         * tests/unistr/test-u8-chr.c: New file.
19458         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
19459
19460         Tests for module 'unistr/u32-cmp2'.
19461         * modules/unistr/u32-cmp2-tests: New file.
19462         * tests/unistr/test-u32-cmp2.c: New file.
19463
19464         Tests for module 'unistr/u16-cmp2'.
19465         * modules/unistr/u16-cmp2-tests: New file.
19466         * tests/unistr/test-u16-cmp2.c: New file.
19467
19468         Tests for module 'unistr/u8-cmp2'.
19469         * modules/unistr/u8-cmp2-tests: New file.
19470         * tests/unistr/test-u8-cmp2.c: New file.
19471         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
19472
19473         Tests for module 'unistr/u32-cmp'.
19474         * modules/unistr/u32-cmp-tests: New file.
19475         * tests/unistr/test-u32-cmp.c: New file.
19476
19477         Tests for module 'unistr/u16-cmp'.
19478         * modules/unistr/u16-cmp-tests: New file.
19479         * tests/unistr/test-u16-cmp.c: New file.
19480
19481         Tests for module 'unistr/u8-cmp'.
19482         * modules/unistr/u8-cmp-tests: New file.
19483         * tests/unistr/test-u8-cmp.c: New file.
19484         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
19485
19486         Tests for module 'unistr/u32-set'.
19487         * modules/unistr/u32-set-tests: New file.
19488         * tests/unistr/test-u32-set.c: New file.
19489
19490         Tests for module 'unistr/u16-set'.
19491         * modules/unistr/u16-set-tests: New file.
19492         * tests/unistr/test-u16-set.c: New file.
19493
19494         Tests for module 'unistr/u8-set'.
19495         * modules/unistr/u8-set-tests: New file.
19496         * tests/unistr/test-u8-set.c: New file.
19497         * tests/unistr/test-set.h: New file.
19498
19499         Tests for module 'unistr/u32-move'.
19500         * modules/unistr/u32-move-tests: New file.
19501         * tests/unistr/test-u32-move.c: New file.
19502
19503         Tests for module 'unistr/u16-move'.
19504         * modules/unistr/u16-move-tests: New file.
19505         * tests/unistr/test-u16-move.c: New file.
19506
19507         Tests for module 'unistr/u8-move'.
19508         * modules/unistr/u8-move-tests: New file.
19509         * tests/unistr/test-u8-move.c: New file.
19510         * tests/unistr/test-move.h: New file.
19511
19512         Tests for module 'unistr/u32-cpy'.
19513         * modules/unistr/u32-cpy-tests: New file.
19514         * tests/unistr/test-u32-cpy.c: New file.
19515
19516         Tests for module 'unistr/u16-cpy'.
19517         * modules/unistr/u16-cpy-tests: New file.
19518         * tests/unistr/test-u16-cpy.c: New file.
19519
19520         Tests for module 'unistr/u8-cpy'.
19521         * modules/unistr/u8-cpy-tests: New file.
19522         * tests/unistr/test-u8-cpy.c: New file.
19523         * tests/unistr/test-cpy.h: New file.
19524
19525 2010-01-09  Bruno Haible  <bruno@clisp.org>
19526
19527         Tests for module 'unistr/u32-uctomb'.
19528         * modules/unistr/u32-uctomb-tests: New file.
19529         * tests/unistr/test-u32-uctomb.c: New file.
19530
19531         Tests for module 'unistr/u16-uctomb'.
19532         * modules/unistr/u16-uctomb-tests: New file.
19533         * tests/unistr/test-u16-uctomb.c: New file.
19534
19535         Tests for module 'unistr/u8-uctomb'.
19536         * modules/unistr/u8-uctomb-tests: New file.
19537         * tests/unistr/test-u8-uctomb.c: New file.
19538
19539         Tests for module 'unistr/u32-mbtoucr'.
19540         * modules/unistr/u32-mbtoucr-tests: New file.
19541         * tests/unistr/test-u32-mbtoucr.c: New file.
19542
19543         Tests for module 'unistr/u16-mbtoucr'.
19544         * modules/unistr/u16-mbtoucr-tests: New file.
19545         * tests/unistr/test-u16-mbtoucr.c: New file.
19546
19547         Tests for module 'unistr/u8-mbtoucr'.
19548         * modules/unistr/u8-mbtoucr-tests: New file.
19549         * tests/unistr/test-u8-mbtoucr.c: New file.
19550
19551         Tests for module 'unistr/u32-mbtouc'.
19552         * modules/unistr/u32-mbtouc-tests: New file.
19553         * tests/unistr/test-u32-mbtouc.c: New file.
19554
19555         Tests for module 'unistr/u16-mbtouc'.
19556         * modules/unistr/u16-mbtouc-tests: New file.
19557         * tests/unistr/test-u16-mbtouc.c: New file.
19558
19559         Tests for module 'unistr/u8-mbtouc'.
19560         * modules/unistr/u8-mbtouc-tests: New file.
19561         * tests/unistr/test-u8-mbtouc.c: New file.
19562
19563         Tests for module 'unistr/u32-mbtouc-unsafe'.
19564         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
19565         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
19566         * tests/unistr/test-u32-mbtouc.h: New file.
19567
19568         Tests for module 'unistr/u16-mbtouc-unsafe'.
19569         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
19570         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
19571         * tests/unistr/test-u16-mbtouc.h: New file.
19572
19573         Tests for module 'unistr/u8-mbtouc-unsafe'.
19574         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
19575         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
19576         * tests/unistr/test-u8-mbtouc.h: New file.
19577
19578         Tests for module 'unistr/u32-mblen'.
19579         * modules/unistr/u32-mblen-tests: New file.
19580         * tests/unistr/test-u32-mblen.c: New file.
19581
19582         Tests for module 'unistr/u16-mblen'.
19583         * modules/unistr/u16-mblen-tests: New file.
19584         * tests/unistr/test-u16-mblen.c: New file.
19585
19586         Tests for module 'unistr/u8-mblen'.
19587         * modules/unistr/u8-mblen-tests: New file.
19588         * tests/unistr/test-u8-mblen.c: New file.
19589
19590         Tests for module 'unistr/u32-to-u16'.
19591         * modules/unistr/u32-to-u16-tests: New file.
19592         * tests/unistr/test-u32-to-u16.c: New file.
19593
19594         Tests for module 'unistr/u32-to-u8'.
19595         * modules/unistr/u32-to-u8-tests: New file.
19596         * tests/unistr/test-u32-to-u8.c: New file.
19597
19598         Tests for module 'unistr/u16-to-u32'.
19599         * modules/unistr/u16-to-u32-tests: New file.
19600         * tests/unistr/test-u16-to-u32.c: New file.
19601
19602         Tests for module 'unistr/u16-to-u8'.
19603         * modules/unistr/u16-to-u8-tests: New file.
19604         * tests/unistr/test-u16-to-u8.c: New file.
19605
19606         Tests for module 'unistr/u8-to-u32'.
19607         * modules/unistr/u8-to-u32-tests: New file.
19608         * tests/unistr/test-u8-to-u32.c: New file.
19609
19610         Tests for module 'unistr/u8-to-u16'.
19611         * modules/unistr/u8-to-u16-tests: New file.
19612         * tests/unistr/test-u8-to-u16.c: New file.
19613
19614         Tests for module 'unistr/u32-check'.
19615         * modules/unistr/u32-check-tests: New file.
19616         * tests/unistr/test-u32-check.c: New file.
19617
19618         Tests for module 'unistr/u16-check'.
19619         * modules/unistr/u16-check-tests: New file.
19620         * tests/unistr/test-u16-check.c: New file.
19621
19622         Tests for module 'unistr/u8-check'.
19623         * modules/unistr/u8-check-tests: New file.
19624         * tests/unistr/test-u8-check.c: New file.
19625
19626         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
19627         (category_equals): New function.
19628         (main): Add more tests.
19629         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
19630
19631         * tests/unictype/test-bidi_byname.c (main): Add more tests.
19632
19633 2010-01-10  Bruno Haible  <bruno@clisp.org>
19634
19635         unistr/u*-strcoll: Try harder to distinguish different strings.
19636         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
19637         compare s1 and s2 to see if they are different.
19638
19639 2010-01-10  Bruno Haible  <bruno@clisp.org>
19640
19641         unistr/u*-stpncpy: Fix the return value.
19642         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
19643         description of the return value consistent with stpncpy in glibc.
19644         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
19645         written non-NUL unit.
19646
19647 2010-01-10  Bruno Haible  <bruno@clisp.org>
19648
19649         unistr/u*-next: Add missing dependencies.
19650         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
19651         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
19652         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
19653
19654 2010-01-10  Bruno Haible  <bruno@clisp.org>
19655
19656         unistr/u8-mbsnlen: Fix return value for incomplete character.
19657         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
19658         u8_mblen.
19659         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
19660         Remove unistr/u8-mblen.
19661         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
19662         u16_mblen.
19663         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
19664         Remove unistr/u16-mblen.
19665
19666 2010-01-10  Bruno Haible  <bruno@clisp.org>
19667
19668         wchar: Fix compilation error when <wchar.h> is used from coreutils.
19669         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
19670         Reported by Brian Gough <bjg@gnu.org> and
19671         Chris Clayton <chris2553@googlemail.com> via
19672         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
19673
19674 2010-01-09  Bruno Haible  <bruno@clisp.org>
19675
19676         unistr/u16-to-u32: Reject invalid input.
19677         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
19678         u16_mbtouc.
19679         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
19680         Remove unistr/u16-mbtouc.
19681
19682         unistr/u16-to-u8: Reject invalid input.
19683         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
19684         u16_mbtouc.
19685         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
19686         Remove unistr/u16-mbtouc.
19687
19688         unistr/u8-to-u32: Reject invalid input.
19689         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
19690         u8_mbtouc.
19691         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
19692         Remove unistr/u8-mbtouc.
19693
19694         unistr/u8-to-u16: Reject invalid input.
19695         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
19696         u8_mbtouc.
19697         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
19698         Remove unistr/u8-mbtouc.
19699
19700 2010-01-09  Bruno Haible  <bruno@clisp.org>
19701
19702         Tests for module 'getlogin'.
19703         * modules/getlogin-tests: New file.
19704         * tests/test-getlogin.c: New file.
19705
19706         New module 'getlogin'.
19707         * lib/unistd.in.h (getlogin): New declaration.
19708         * lib/getlogin.c: New file.
19709         * m4/getlogin.m4: New file.
19710         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
19711         HAVE_GETLOGIN.
19712         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
19713         HAVE_GETLOGIN.
19714         * modules/getlogin: New file.
19715         * doc/posix-functions/getlogin.texi: Mention the new module.
19716         Reported by John W. Eaton <jwe@gnu.org>.
19717
19718 2010-01-09  Bruno Haible  <bruno@clisp.org>
19719
19720         getlogin_r: Support for native Windows.
19721         * lib/getlogin_r.c: Include <windows.h>
19722         (getlogin_r): Implement for native Windows.
19723         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
19724         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
19725         via John W. Eaton <jwe@gnu.org>.
19726
19727 2010-01-09  Bruno Haible  <bruno@clisp.org>
19728
19729         getlogin_r: Small fixes.
19730         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
19731         succeeds.
19732         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
19733         before testing whether getlogin_r is declared. No need to set
19734         HAVE_DECL_GETLOGIN_R to 1.
19735         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
19736
19737 2010-01-09  Bruno Haible  <bruno@clisp.org>
19738
19739         * lib/unistd.in.h (getlogin_r): Add comment.
19740
19741 2010-01-09  Bruno Haible  <bruno@clisp.org>
19742
19743         Tests for module 'getlogin_r'.
19744         * modules/getlogin_r-tests: New file.
19745         * tests/test-getlogin_r.c: New file.
19746
19747 2010-01-09  Jim Meyering  <meyering@redhat.com>
19748
19749         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
19750         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
19751         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
19752
19753 2010-01-08  Simon Josefsson  <simon@josefsson.org>
19754
19755         * lib/dup2.c (rpl_dup2): Improve comment.
19756
19757 2010-01-08  Eric Blake  <ebb9@byu.net>
19758
19759         maint.mk: allow packages to add makefile @@ exceptions
19760         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
19761         (sc_makefile_check): Rename...
19762         (sc_makefile_at_at_check): ...to this, and use hook.
19763
19764         dup2: work around mingw bug
19765         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
19766         Reported by Simon Josefsson.
19767
19768 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
19769
19770         glob: Fix C++ compilation.
19771         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
19772         C++.
19773
19774 2010-01-07  Bruno Haible  <bruno@clisp.org>
19775
19776         Fix indentation of wctype.in.h, broken since 2007-01-06.
19777         * lib/wctype.in.h: Fix indentation of preprocessor directives.
19778
19779 2010-01-07  Bruno Haible  <bruno@clisp.org>
19780
19781         mbslen: Avoid collision with system function.
19782         * lib/string.in.h [MirBSD]: Include <wchar.h>.
19783         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
19784         * m4/mbslen.m4: New file.
19785         * modules/mbslen (Files): Add it.
19786         (configure.ac): Invoke gl_MBSLEN.
19787         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
19788         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
19789         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
19790         via Ian Beckwith <ianb@erislabs.net>.
19791
19792 2010-01-07  Bruno Haible  <bruno@clisp.org>
19793
19794         dirent: Document the last fix.
19795         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
19796
19797 2010-01-07  Bruno Haible  <bruno@clisp.org>
19798
19799         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
19800         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
19801         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
19802         va_list are defined.
19803         * doc/posix-headers/stdio.texi: Document the bug of missing types.
19804         Reported by Eric Blake.
19805
19806 2010-01-07  Bruno Haible  <bruno@clisp.org>
19807
19808         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
19809         * modules/xlist (Depends-on): Add 'list',
19810         * modules/xoset (Depends-on): Add 'oset'.
19811         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
19812
19813 2010-01-07  Bruno Haible  <bruno@clisp.org>
19814
19815         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
19816         * doc/posix-functions/strncasecmp.texi: Likewise.
19817
19818 2010-01-07  Bruno Haible  <bruno@clisp.org>
19819
19820         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
19821
19822 2010-01-07  John W. Eaton  <jwe@octave.org>
19823
19824         wctype: allow C++ use
19825         * lib/wctype.in.h: Add extern "C" block for C++.
19826
19827 2010-01-06  Eric Blake  <ebb9@byu.net>
19828
19829         maint.mk: detect incorrect GFDL usage
19830         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
19831
19832 2010-01-06  Jim Meyering  <meyering@redhat.com>
19833         and Eric Blake  <ebb9@byu.net>
19834
19835         maint.mk: ignore multi-line copyright in NEWS
19836         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
19837
19838 2010-01-06  Eric Blake  <ebb9@byu.net>
19839
19840         select: add missing dependency
19841         * modules/select-tests (Depends-on): Move sockets dependency...
19842         * modules/select (Depends-on): ...here.
19843         Reported by Ian Beckwith.
19844
19845         doc: regenerate INSTALL
19846         * doc/INSTALL: Reflect recent autoconf update.
19847         * doc/INSTALL.ISO: Likewise.
19848         * doc/INSTALL.UTF-8: Likewise.
19849
19850         pread: fix compilation on glibc
19851         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
19852         Reported by Ralf Wildenhues.
19853
19854         dirent: fix test failure
19855         * lib/dirent.in.h (includes): Guarantee ino_t.
19856         Reported by Ralf Wildenhues.
19857
19858 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
19859
19860         linkat, renameat: avoid bad free
19861         * lib/at-func2.c (at_func2): Fix typo.
19862         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
19863
19864 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19865
19866         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
19867         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
19868         to avoid failure of symlink test later.
19869
19870 2010-01-06  Eric Blake  <ebb9@byu.net>
19871
19872         stdio, unistd: guarantee ssize_t
19873         * lib/unistd.in.h (includes): Ensure that types required by POSIX
19874         2008 are exposed when needed.
19875         * lib/stdio.in.h (includes): Likewise.
19876         Reported by Ralf Wildenhues.
19877
19878 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
19879
19880         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
19881         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
19882         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
19883
19884 2010-01-06  Jim Meyering  <meyering@redhat.com>
19885
19886         readtokens: this module *does* require xalloc.h
19887         It uses only functions that were omitted by the old syntax-check rule.
19888         * lib/readtokens.c: Include "xalloc.h" once again.
19889         * modules/readtokens (Depends-on): Add xalloc.
19890         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
19891
19892 2010-01-05  Eric Blake  <ebb9@byu.net>
19893
19894         maint: support 'make announcement' from a VPATH build
19895         * top/maint.mk (announcement): Look for correct NEWS file.
19896
19897 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
19898
19899         utimens (fdutimens): ignore a negative FD, per contract
19900         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
19901         when we have a valid file descriptor.  Otherwise, using a brand
19902         new glibc (with just-patched futimens that now fails with EBADF)
19903         would cause this function to fail with ENOSYS.
19904         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
19905         See also http://bugzilla.redhat.com/552320.
19906
19907 2010-01-05  Eric Blake  <ebb9@byu.net>
19908
19909         strcase: document what it provides
19910         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
19911         gnulib module.
19912         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
19913         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
19914
19915 2010-01-05  Jim Meyering  <meyering@redhat.com>
19916
19917         maint: remove useless inclusions of "xalloc.h"
19918         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
19919         * lib/readtokens.c: Likewise.
19920         * lib/same.c: Likewise.
19921         * modules/getloadavg (Depends-on): Remove xalloc.
19922         * modules/readtokens: Likewise.
19923         * modules/same: Likewise.
19924
19925         maint.mk: include 4 more function names in alloca.h-checking regexp
19926         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
19927         regexp.  Before, we would give a false-positive (saying alloca.h
19928         is included unnecessarily) when the only uses involved omitted symbols.
19929
19930         xalloc.h: use consistent formatting
19931         * lib/xalloc.h: Move declarations to start in the first column.
19932
19933 2010-01-05  Eric Blake  <ebb9@byu.net>
19934
19935         mkdir: avoid xalloc
19936         * lib/mkdir.c (includes): Drop unused header.
19937         Reported by John W. Eaton.
19938
19939 2010-01-04  Jim Meyering  <meyering@redhat.com>
19940
19941         nl_langinfo: avoid configure-time syntax error
19942         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
19943         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
19944         the empty string.  Don't let that provoke a shell syntax error.
19945
19946         regcomp, regexec, fnmatch: avoid array bounds read error
19947         * lib/regcomp.c (build_equiv_class): From glibc:
19948         Use only the low 24 bits of a findidx return value as an index
19949         into the weights array.  Patch by Ulrich Drepper:
19950         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
19951         * lib/regexec.c (check_node_accept_bytes): Likewise.
19952         * lib/fnmatch_loop.c (FCT): Likewise.
19953
19954         regcomp: skip collseq lookup when there are no rules
19955         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
19956         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
19957
19958         regcomp: recognize ill-formed { } expressions
19959         * lib/regcomp.c (parse_dup_op): From glibc:
19960         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
19961
19962         regcomp: fix typo in comment
19963         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
19964         s/satisfy/satisfies/.
19965
19966         regcomp: sync from glibc: remove dead store
19967         * lib/regcomp.c (duplicate_node_closure): Remove useless
19968         search_duplicated_node call and dead store.
19969
19970         regcomp: sync from glibc; always use nl_langinfo
19971         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
19972         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
19973         * modules/regex (Depends-on): Add nl_langinfo.
19974
19975 2010-01-04  Eric Blake  <ebb9@byu.net>
19976
19977         fdopendir: fix configure test
19978         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
19979
19980 2010-01-01  Bruno Haible  <bruno@clisp.org>
19981
19982         wchar: Remove unused configure check.
19983         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
19984
19985 2010-01-01  Eric Blake  <ebb9@byu.net>
19986
19987         headers: make check of system header explicit
19988         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
19989         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
19990         ourselves.
19991         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
19992         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
19993         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
19994         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
19995         internals.
19996         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
19997         missing.
19998         Suggested by Bruno Haible.
19999
20000 2010-01-01  Jim Meyering  <meyering@redhat.com>
20001
20002         ChangeLog: tweak to eliminate unnecessary copyright line
20003         * ChangeLog: Remove a copyright line that was mistakenly updated
20004         by today's update-copyright run.  Reported by Eric Blake.
20005
20006         test-update-copyright: don't let envvar setting cause test failure
20007         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
20008
20009 2010-01-01  Bruno Haible  <bruno@clisp.org>
20010
20011         localename: Avoid gcc warning.
20012         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
20013         function if it is not used.
20014
20015 2010-01-01  Jim Meyering  <meyering@redhat.com>
20016
20017         update nearly all FSF copyright year lists to include 2010
20018         Use the same procedure as for 2009, outlined in
20019         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
20020
20021         version-etc: set COPYRIGHT_YEAR to 2010
20022         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
20023
20024 2009-12-31  Eric Blake  <ebb9@byu.net>
20025
20026         doc: correct availability of cygwin 1.5.x getopt
20027         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
20028         variables.
20029         * doc/posix-functions/opterr.texi (opterr): Likewise.
20030         * doc/posix-functions/optind.texi (optind): Likewise.
20031         * doc/posix-functions/optopt.texi (optopt): Likewise.
20032         * doc/posix-functions/tzname.texi (tzname): Likewise.
20033
20034         openat: update maintainer
20035         * modules/openat (Maintainer): Add myself.
20036
20037         utimens: avoid shadowing warning
20038         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
20039         buffers into one, to avoid shadowing, as well as avoiding a
20040         redundant stat.
20041         Reported by Jim Meyering.
20042
20043         test-dup2: avoid compiler warning
20044         * tests/test-dup2.c (is_inheritable): Only define if used.
20045
20046 2010-01-01  Bruno Haible  <bruno@clisp.org>
20047
20048         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
20049         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
20050         defined, use wctomb instead of wcrtomb.
20051
20052 2010-01-01  Bruno Haible  <bruno@clisp.org>
20053
20054         iconv: Reject native Solaris iconv.
20055         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
20056         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
20057
20058 2009-12-31  Bruno Haible  <bruno@clisp.org>
20059
20060         * tests/test-signal.c (main): Remove test of 'SIG'.
20061
20062 2009-12-31  Bruno Haible  <bruno@clisp.org>
20063
20064         spawn: Fix incomplete fix.
20065         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
20066         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
20067         warnings for GNULIB_POSIXCHECK again.
20068         Reported by Eric Blake.
20069
20070 2009-12-31  Bruno Haible  <bruno@clisp.org>
20071
20072         Avoid namespace pollution on glibc systems.
20073         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
20074         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
20075         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
20076         glibc systems.
20077
20078 2009-12-31  Bruno Haible  <bruno@clisp.org>
20079
20080         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
20081         (gl_REPLACE_WCHAR_H): Turn into a no-op.
20082         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
20083         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
20084         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
20085         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
20086         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
20087
20088 2009-12-31  Bruno Haible  <bruno@clisp.org>
20089
20090         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
20091         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
20092         afterwards.
20093
20094 2009-12-31  Bruno Haible  <bruno@clisp.org>
20095
20096         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
20097         SYS_UTSNAME_H.
20098
20099 2009-12-31  Bruno Haible  <bruno@clisp.org>
20100
20101         spawn: Fix misapplied patch.
20102         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
20103         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
20104         warnings for GNULIB_POSIXCHECK.
20105
20106 2009-12-31  Bruno Haible  <bruno@clisp.org>
20107
20108         times: Update after sys_times changed.
20109         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
20110         * modules/times (Files): Add it.
20111         (configure.ac): Invoke gl_FUNC_TIMES.
20112
20113 2009-12-31  Bruno Haible  <bruno@clisp.org>
20114
20115         Use AC_C_INLINE where necessary.
20116         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
20117         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
20118         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
20119         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
20120         * m4/mbfile.m4 (gl_MBFILE): Likewise.
20121         * m4/mbiter.m4 (gl_MBITER): Likewise.
20122         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
20123         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
20124         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
20125         * modules/u64 (configure.ac): Likewise.
20126
20127 2009-12-31  Bruno Haible  <bruno@clisp.org>
20128
20129         Use AC_C_INLINE instead of module 'inline' where possible.
20130         * modules/inline (Description): Clarify purpose.
20131         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
20132         * modules/count-one-bits (Depends-on): Remove inline.
20133         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
20134         * modules/openat (Depends-on): Remove inline.
20135         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
20136         instead of depending on module 'inline'.
20137         * modules/filevercmp (Depends-on, configure.ac): Likewise.
20138         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
20139         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
20140         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
20141         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
20142         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
20143         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
20144         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
20145         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
20146         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
20147         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
20148         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
20149         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
20150         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
20151         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
20152         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
20153         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
20154         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
20155         Likewise.
20156         * modules/unictype/property-ascii-hex-digit (Depends-on,
20157         configure.ac): Likewise.
20158         * modules/unictype/property-bidi-arabic-digit (Depends-on,
20159         configure.ac): Likewise.
20160         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
20161         configure.ac): Likewise.
20162         * modules/unictype/property-bidi-block-separator (Depends-on,
20163         configure.ac): Likewise.
20164         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
20165         configure.ac): Likewise.
20166         * modules/unictype/property-bidi-common-separator (Depends-on,
20167         configure.ac): Likewise.
20168         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
20169         Likewise.
20170         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
20171         configure.ac): Likewise.
20172         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
20173         configure.ac): Likewise.
20174         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
20175         configure.ac): Likewise.
20176         * modules/unictype/property-bidi-european-digit (Depends-on,
20177         configure.ac): Likewise.
20178         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
20179         configure.ac): Likewise.
20180         * modules/unictype/property-bidi-left-to-right (Depends-on,
20181         configure.ac): Likewise.
20182         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
20183         configure.ac): Likewise.
20184         * modules/unictype/property-bidi-other-neutral (Depends-on,
20185         configure.ac): Likewise.
20186         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
20187         Likewise.
20188         * modules/unictype/property-bidi-segment-separator (Depends-on,
20189         configure.ac): Likewise.
20190         * modules/unictype/property-bidi-whitespace (Depends-on,
20191         configure.ac): Likewise.
20192         * modules/unictype/property-combining (Depends-on, configure.ac):
20193         Likewise.
20194         * modules/unictype/property-composite (Depends-on, configure.ac):
20195         Likewise.
20196         * modules/unictype/property-currency-symbol (Depends-on,
20197         configure.ac): Likewise.
20198         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
20199         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
20200         Likewise.
20201         * modules/unictype/property-default-ignorable-code-point (Depends-on,
20202         configure.ac): Likewise.
20203         * modules/unictype/property-deprecated (Depends-on, configure.ac):
20204         Likewise.
20205         * modules/unictype/property-diacritic (Depends-on, configure.ac):
20206         Likewise.
20207         * modules/unictype/property-extender (Depends-on, configure.ac):
20208         Likewise.
20209         * modules/unictype/property-format-control (Depends-on, configure.ac):
20210         Likewise.
20211         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
20212         Likewise.
20213         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
20214         Likewise.
20215         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
20216         Likewise.
20217         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
20218         Likewise.
20219         * modules/unictype/property-hyphen (Depends-on, configure.ac):
20220         Likewise.
20221         * modules/unictype/property-id-continue (Depends-on, configure.ac):
20222         Likewise.
20223         * modules/unictype/property-id-start (Depends-on, configure.ac):
20224         Likewise.
20225         * modules/unictype/property-ideographic (Depends-on, configure.ac):
20226         Likewise.
20227         * modules/unictype/property-ids-binary-operator (Depends-on,
20228         configure.ac): Likewise.
20229         * modules/unictype/property-ids-trinary-operator (Depends-on,
20230         configure.ac): Likewise.
20231         * modules/unictype/property-ignorable-control (Depends-on,
20232         configure.ac): Likewise.
20233         * modules/unictype/property-iso-control (Depends-on, configure.ac):
20234         Likewise.
20235         * modules/unictype/property-join-control (Depends-on, configure.ac):
20236         Likewise.
20237         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
20238         Likewise.
20239         * modules/unictype/property-line-separator (Depends-on, configure.ac):
20240         Likewise.
20241         * modules/unictype/property-logical-order-exception (Depends-on,
20242         configure.ac): Likewise.
20243         * modules/unictype/property-lowercase (Depends-on, configure.ac):
20244         Likewise.
20245         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
20246         * modules/unictype/property-non-break (Depends-on, configure.ac):
20247         Likewise.
20248         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
20249         Likewise.
20250         * modules/unictype/property-numeric (Depends-on, configure.ac):
20251         Likewise.
20252         * modules/unictype/property-other-alphabetic (Depends-on,
20253         configure.ac): Likewise.
20254         * modules/unictype/property-other-default-ignorable-code-point
20255         (Depends-on, configure.ac): Likewise.
20256         * modules/unictype/property-other-grapheme-extend (Depends-on,
20257         configure.ac): Likewise.
20258         * modules/unictype/property-other-id-continue (Depends-on,
20259         configure.ac): Likewise.
20260         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
20261         Likewise.
20262         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
20263         Likewise.
20264         * modules/unictype/property-other-math (Depends-on, configure.ac):
20265         Likewise.
20266         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
20267         Likewise.
20268         * modules/unictype/property-paired-punctuation (Depends-on,
20269         configure.ac): Likewise.
20270         * modules/unictype/property-paragraph-separator (Depends-on,
20271         configure.ac): Likewise.
20272         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
20273         Likewise.
20274         * modules/unictype/property-pattern-white-space (Depends-on,
20275         configure.ac): Likewise.
20276         * modules/unictype/property-private-use (Depends-on, configure.ac):
20277         Likewise.
20278         * modules/unictype/property-punctuation (Depends-on, configure.ac):
20279         Likewise.
20280         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
20281         Likewise.
20282         * modules/unictype/property-radical (Depends-on, configure.ac):
20283         Likewise.
20284         * modules/unictype/property-sentence-terminal (Depends-on,
20285         configure.ac): Likewise.
20286         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
20287         Likewise.
20288         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
20289         * modules/unictype/property-terminal-punctuation (Depends-on,
20290         configure.ac): Likewise.
20291         * modules/unictype/property-titlecase (Depends-on, configure.ac):
20292         Likewise.
20293         * modules/unictype/property-unassigned-code-value (Depends-on,
20294         configure.ac): Likewise.
20295         * modules/unictype/property-unified-ideograph (Depends-on,
20296         configure.ac): Likewise.
20297         * modules/unictype/property-uppercase (Depends-on, configure.ac):
20298         Likewise.
20299         * modules/unictype/property-variation-selector (Depends-on,
20300         configure.ac): Likewise.
20301         * modules/unictype/property-white-space (Depends-on, configure.ac):
20302         Likewise.
20303         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
20304         Likewise.
20305         * modules/unictype/property-xid-start (Depends-on, configure.ac):
20306         Likewise.
20307         * modules/unictype/property-zero-width (Depends-on, configure.ac):
20308         Likewise.
20309         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
20310         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
20311         Likewise.
20312
20313 2009-12-31  Bruno Haible  <bruno@clisp.org>
20314
20315         Remove unnecessary AC_C_INLINE invocation.
20316         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
20317         since 2009-08-21.
20318
20319 2009-12-31  Jim Meyering  <meyering@redhat.com>
20320
20321         maint.mk: don't require explicit gpg_key_ID in cfg.mk
20322         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
20323         With this change, we can all remove the gpg_key_ID = ... definition
20324         from our respective cfg.mk files.
20325
20326         maint.mk: create announcement template in ~/, not in /tmp
20327         * top/maint.mk (emit_upload_commands): Adjust.
20328         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
20329         Remove temporary file, .ci-msg.
20330
20331 2009-12-31  Eric Blake  <ebb9@byu.net>
20332
20333         link-warning: always build headers with link warnings
20334         * modules/arpa_inet (Makefile.am): Always build replacement
20335         header.
20336         * modules/ctype (Makefile.am): Likewise.
20337         * modules/dirent (Makefile.am): Likewise.
20338         * modules/inttypes (Makefile.am): Likewise.
20339         * modules/langinfo (Makefile.am): Likewise.
20340         * modules/locale (Makefile.am): Likewise.
20341         * modules/spawn (Makefile.am): Likewise.
20342         * modules/sys_file (Makefile.am): Likewise.
20343         * modules/sys_ioctl (Makefile.am): Likewise.
20344         * modules/sys_select (Makefile.am): Likewise.
20345         * modules/sys_socket (Makefile.am): Likewise.
20346         * modules/sys_times (Makefile.am): Likewise.
20347         * modules/sys_utsname (Makefile.am): Likewise.
20348         * modules/sys_wait (Makefile.am): Likewise.
20349         * modules/wchar (Makefile.am): Likewise.
20350         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
20351         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
20352         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
20353         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
20354         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
20355         Likewise.
20356         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
20357         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
20358         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
20359         Likewise.
20360         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
20361         Likewise.
20362         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
20363         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
20364         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
20365         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
20366         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
20367         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
20368         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
20369         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
20370         (gl_WCHAR_H_DEFAULTS): Likewise.
20371
20372 2009-12-31  Eric Blake  <ebb9@byu.net>
20373
20374         signal, spawn: use link warnings
20375         * lib/signal.in.h (sigset_t): Make unconditional.
20376         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
20377         (sigpending, sigprocmask, sigaction): Add link warnings.
20378         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
20379         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
20380         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
20381         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
20382         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
20383         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
20384         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
20385         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
20386         (posix_spawn_file_actions_destroy)
20387         (posix_spawn_file_actions_addopen)
20388         (posix_spawn_file_actions_addclose)
20389         (posix_spawn_file_actions_adddup2): Likewise.
20390         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
20391         * tests/test-signal.c (main): Enhance test.
20392
20393         spawn: improve wrapper support
20394         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
20395         (gl_SPAWN_H_DEFAULTS): New defaults.
20396         * modules/spawn (Makefile.am): Substitute them.
20397         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
20398         Only declare if missing or broken.
20399
20400         sys_times, sys_utsname: use include_next
20401         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
20402         header.
20403         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
20404         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
20405         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
20406         * modules/sys_times (Depends-on): Add include_next.
20407         (Makefile.am): Substitute additional values.
20408         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
20409         * lib/sys_times.in.h (includes): Include native header, if
20410         available.
20411         * lib/sys_utsname.in.h (includes): Likewise.
20412         * tests/test-sys_times.c (main): Enhance test.
20413
20414         fdutimensat: revert prior patch
20415         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
20416         utimens.h.
20417         Reported by Bruno Haible.
20418
20419 2009-12-30  Eric Blake  <ebb9@byu.net>
20420
20421         sys_wait: drop link-warning dependency
20422         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
20423         link-warning efforts.
20424         * lib/sys_wait.in.h: Likewise.
20425
20426         fdutimensat: remove bogus dependency
20427         * modules/fdutimensat (Depends-on): Drop inline.
20428
20429         unistd: fix typo
20430         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
20431
20432 2009-12-30  Bruno Haible  <bruno@clisp.org>
20433
20434         Fix compilation error with Solaris cc.
20435         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
20436         * lib/unicase/u16-is-invariant.c: Likewise.
20437         * lib/unicase/u32-is-invariant.c: Likewise.
20438         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
20439
20440 2009-12-30  Bruno Haible  <bruno@clisp.org>
20441
20442         Fix test crash.
20443         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
20444         locales.
20445         Reported by Simon Josefsson <simon@josefsson.org>.
20446
20447 2009-12-30  Bruno Haible  <bruno@clisp.org>
20448
20449         Fix compilation error on most platforms.
20450         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
20451         Reported by Simon Josefsson <simon@josefsson.org>
20452         and Nelson H. F. Beebe <beebe@math.utah.edu>.
20453
20454 2009-12-30  Eric Blake  <ebb9@byu.net>
20455
20456         futimens, utimensat: work around ntfs-3g bug
20457         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
20458         a ctime bug is present, and expand workaround to cover ntfs-3g.
20459         * lib/utimens.c (fdutimens, lutimens): Likewise.
20460         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
20461         (validate_timespec): Adjust return value.
20462         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
20463         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
20464         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
20465
20466 2009-12-29  Eric Blake  <ebb9@byu.net>
20467
20468         link-warning: make usage consistent
20469         * modules/ctype (Depends-on): Add link-warning.
20470         (Makefile.am): Update rules accordingly.
20471         * modules/langinfo (Depends-on, Makefile.am): Likewise.
20472         * modules/locale (Depends-on, Makefile.am): Likewise.
20473         * modules/sys_file (Makefile.am): Likewise.
20474         * modules/getopt-posix (Makefile.am): Delete unused link warning
20475         efforts.
20476         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
20477         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
20478         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
20479         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
20480
20481         stdio: remove unused variables
20482         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
20483         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
20484         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
20485
20486         tests: test more substitute headers
20487         * modules/ctype-tests: New file.
20488         * modules/dirent-tests: Likewise.
20489         * modules/spawn-tests: Likewise.
20490         * modules/sys_file-tests: Likewise.
20491         * modules/sys_ioctl-tests: Likewise.
20492         * modules/sys_wait-tests: Likewise.
20493         * tests/test-ctype.c: Likewise.
20494         * tests/test-dirent.c: Likewise.
20495         * tests/test-spawn.c: Likewise.
20496         * tests/test-sys_file.c: Likewise.
20497         * tests/test-sys_ioctl.c: Likewise.
20498         * tests/test-sys_wait.c: Likewise.
20499         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
20500         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
20501         whether or not flock is in use.
20502
20503         tests: remove License section from module
20504         * modules/arpa_inet-tests: Remove unneeded section.
20505         * modules/byteswap-tests: Likewise.
20506         * modules/ceilf-tests: Likewise.
20507         * modules/ceill-tests: Likewise.
20508         * modules/crypto/des-tests: Likewise.
20509         * modules/crypto/gc-arcfour-tests: Likewise.
20510         * modules/crypto/gc-arctwo-tests: Likewise.
20511         * modules/crypto/gc-des-tests: Likewise.
20512         * modules/crypto/gc-hmac-md5-tests: Likewise.
20513         * modules/crypto/gc-hmac-sha1-tests: Likewise.
20514         * modules/crypto/gc-md2-tests: Likewise.
20515         * modules/crypto/gc-md4-tests: Likewise.
20516         * modules/crypto/gc-md5-tests: Likewise.
20517         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
20518         * modules/crypto/gc-rijndael-tests: Likewise.
20519         * modules/crypto/gc-sha1-tests: Likewise.
20520         * modules/crypto/gc-tests: Likewise.
20521         * modules/crypto/md2-tests: Likewise.
20522         * modules/crypto/md4-tests: Likewise.
20523         * modules/fcntl-h-tests: Likewise.
20524         * modules/floorf-tests: Likewise.
20525         * modules/floorl-tests: Likewise.
20526         * modules/frexp-nolibm-tests: Likewise.
20527         * modules/frexp-tests: Likewise.
20528         * modules/frexpl-nolibm-tests: Likewise.
20529         * modules/frexpl-tests: Likewise.
20530         * modules/getaddrinfo-tests: Likewise.
20531         * modules/inttypes-tests: Likewise.
20532         * modules/isfinite-tests: Likewise.
20533         * modules/isinf-tests: Likewise.
20534         * modules/ldexpl-tests: Likewise.
20535         * modules/locale-tests: Likewise.
20536         * modules/math-tests: Likewise.
20537         * modules/netdb-tests: Likewise.
20538         * modules/netinet_in-tests: Likewise.
20539         * modules/printf-frexp-tests: Likewise.
20540         * modules/printf-frexpl-tests: Likewise.
20541         * modules/priv-set-tests: Likewise.
20542         * modules/random_r-tests: Likewise.
20543         * modules/round-tests: Likewise.
20544         * modules/roundf-tests: Likewise.
20545         * modules/roundl-tests: Likewise.
20546         * modules/search-tests: Likewise.
20547         * modules/select-tests: Likewise.
20548         * modules/signal-tests: Likewise.
20549         * modules/stdbool-tests: Likewise.
20550         * modules/stddef-tests: Likewise.
20551         * modules/stdint-tests: Likewise.
20552         * modules/stdio-tests: Likewise.
20553         * modules/stdlib-tests: Likewise.
20554         * modules/string-tests: Likewise.
20555         * modules/strings-tests: Likewise.
20556         * modules/sys_select-tests: Likewise.
20557         * modules/sys_socket-tests: Likewise.
20558         * modules/sys_stat-tests: Likewise.
20559         * modules/sys_time-tests: Likewise.
20560         * modules/sys_utsname-tests: Likewise.
20561         * modules/sysexits-tests: Likewise.
20562         * modules/time-tests: Likewise.
20563         * modules/trunc-tests: Likewise.
20564         * modules/truncf-tests: Likewise.
20565         * modules/truncl-tests: Likewise.
20566         * modules/tsearch-tests: Likewise.
20567         * modules/unistd-tests: Likewise.
20568         * modules/wchar-tests: Likewise.
20569         * modules/wctype-tests: Likewise.
20570
20571         tests: fix license on several tests
20572         * tests/test-des.c: Update to GPLv3+.
20573         * tests/test-flock.c: Likewise.
20574         * tests/test-fsync.c: Likewise.
20575         * tests/test-futimens.h: Likewise.
20576         * tests/test-gc-arcfour.c: Likewise.
20577         * tests/test-gc-arctwo.c: Likewise.
20578         * tests/test-gc-des.c: Likewise.
20579         * tests/test-gc-hmac-md5.c: Likewise.
20580         * tests/test-gc-hmac-sha1.c: Likewise.
20581         * tests/test-gc-md2.c: Likewise.
20582         * tests/test-gc-md4.c: Likewise.
20583         * tests/test-gc-md5.c: Likewise.
20584         * tests/test-gc-pbkdf2-sha1.c: Likewise.
20585         * tests/test-gc-rijndael.c: Likewise.
20586         * tests/test-gc-sha1.c: Likewise.
20587         * tests/test-gc.c: Likewise.
20588         * tests/test-getcwd.c: Likewise.
20589         * tests/test-link.c: Likewise.
20590         * tests/test-link.h: Likewise.
20591         * tests/test-lutimens.h: Likewise.
20592         * tests/test-md2.c: Likewise.
20593         * tests/test-md4.c: Likewise.
20594         * tests/test-mkdir.h: Likewise.
20595         * tests/test-rename.c: Likewise.
20596         * tests/test-rename.h: Likewise.
20597         * tests/test-safe-alloc.c: Likewise.
20598         * tests/test-utimens-common.h: Likewise.
20599         * tests/test-utimens.h: Likewise.
20600
20601         maint: sync license texts
20602         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
20603         * doc/gpl-3.0.texi: Revert copyright year update.
20604         * doc/lgpl-3.0.texi: Likewise.
20605
20606 2009-12-29  Jim Meyering  <meyering@redhat.com>
20607
20608         update nearly all FSF copyright year lists to include 2009
20609         The files named by the following are exempted:
20610             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
20611               test -f "$dst" && { echo "$dst"; continue; }
20612               test -d "$dst" || continue
20613               echo "$dst"/$(basename "$src")
20614             done > exempt
20615             git ls-files tests/unictype >> exempt
20616         In the remaining files, convert to all-interval notation if
20617         - there is already at least one year interval like 2000-2003
20618         - the file is maintained by me
20619         - the file is in lib/uni*/, where that style already prevails
20620         Otherwise, use update-copyright's default.
20621
20622 2009-12-29  Simon Josefsson  <simon@josefsson.org>
20623         and Eric Blake  <ebb9@byu.net>
20624
20625         tests: don't require debug system() to pass
20626         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
20627         * tests/test-rmdir.h (test_rmdir_func): Likewise.
20628         * tests/test-unlink.h (test_unlink_func): Likewise.
20629         * tests/test-fstatat.c (main): ...into callers.
20630         * tests/test-lstat.c (main): Likewise.
20631         * tests/test-rmdir.c (main): Likewise.
20632         * tests/test-unlink.c (main): Likewise.
20633         * tests/test-unlinkat.c (main): Likewise.
20634         * tests/test-areadlink-with-size.c (main): Don't require a
20635         debug-only system call to pass, aiding cross-testing to mingw.
20636         * tests/test-areadlink.c (main): Likewise.
20637         * tests/test-areadlinkat-with-size.c (main): Likewise.
20638         * tests/test-areadlinkat.c (main): Likewise.
20639         * tests/test-canonicalize-lgpl.c (main): Likewise.
20640         * tests/test-canonicalize.c (main): Likewise.
20641         * tests/test-chown.c (main): Likewise.
20642         * tests/test-fchownat.c (main): Likewise.
20643         * tests/test-lchown.c (main): Likewise.
20644         * tests/test-fdutimensat.c (main): Likewise.
20645         * tests/test-futimens.c (main): Likewise.
20646         * tests/test-link.c (main): Likewise.
20647         * tests/test-linkat.c (main): Likewise.
20648         * tests/test-mkdir.c (main): Likewise.
20649         * tests/test-mkdirat.c (main): Likewise.
20650         * tests/test-mkfifo.c (main): Likewise.
20651         * tests/test-mkfifoat.c (main): Likewise.
20652         * tests/test-mknod.c (main): Likewise.
20653         * tests/test-readlink.c (main): Likewise.
20654         * tests/test-remove.c (main): Likewise.
20655         * tests/test-rename.c (main): Likewise.
20656         * tests/test-renameat.c (main): Likewise.
20657         * tests/test-symlink.c (main): Likewise.
20658         * tests/test-symlinkat.c (main): Likewise.
20659         * tests/test-utimens.c (main): Likewise.
20660         * tests/test-utimensat.c (main): Likewise.
20661
20662 2009-12-29  Simon Josefsson  <simon@josefsson.org>
20663
20664         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
20665         on $(UNUSED_PARAMETER_H) to avoid build failure.
20666
20667 2009-12-28  Jim Meyering  <meyering@redhat.com>
20668
20669         update-copyright: you may specify a max. line length other than 72
20670         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
20671
20672         maint: use consistent FSF copyright line syntax
20673         * lib/posixtm.c: Add missing comma in FSF copyright line.
20674         * lib/posixtm.h: Likewise.
20675         * lib/getugroups.c: Add missing ", Inc.".
20676
20677         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
20678         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
20679         FSF copyright line.  Remove trailing blanks.
20680
20681 2009-12-28  Eric Blake  <ebb9@byu.net>
20682
20683         test-dup2: reduce dependencies
20684         * modules/cloexec (Configure.ac): Set witness.
20685         * modules/dup2-tests (Depends-on): Drop cloexec.
20686         * tests/test-dup2.c (main): Skip portion of test if cloexec module
20687         not present.
20688         Suggested by Bruno Haible.
20689
20690 2009-12-26  Bruno Haible  <bruno@clisp.org>
20691
20692         Remove an unneeded dependency.
20693         * modules/fseterr (Depends-on): Remove dup2.
20694
20695 2009-12-26  Eric Blake  <ebb9@byu.net>
20696
20697         tests: use macros.h in more places
20698         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
20699         (ASSERT_STREAM): Provide default of stderr.
20700         * tests/test-dirent-safer.c: Include macros.h, using alternate
20701         stream for assertions.
20702         * tests/test-dup-safer.c: Likewise.
20703         * tests/test-freopen-safer.c: Likewise.
20704         * tests/test-getopt.c: Likewise.
20705         * tests/test-openat-safer.c: Likewise.
20706         * tests/test-pipe.c: Likewise.
20707         * tests/test-popen-safer.c: Likewise.
20708         * modules/dirent-safer-tests (Files): Include macros.h.
20709         * modules/unistd-safer-tests (Files): Likewise.
20710         * modules/freopen-safer-tests (Files): Likewise.
20711         * modules/getopt-posix-tests (Files): Likewise.
20712         * modules/openat-safer-tests (Files): Likewise.
20713         * modules/pipe-tests (Files): Likewise.
20714
20715 2009-12-26  Bruno Haible  <bruno@clisp.org>
20716
20717         javacomp: Portability fix.
20718         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
20719         that it also works on Solaris.
20720
20721 2009-12-26  Bruno Haible  <bruno@clisp.org>
20722
20723         localename: Fix storage allocation of gl_locale_name_thread's result.
20724         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
20725         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
20726         all platforms that have 'uselocale'.
20727         (gl_locale_name_thread_unsafe): New function, extracted from
20728         gl_locale_name_thread.
20729         (gl_locale_name_thread): Call struniq on all platforms that have
20730         'uselocale'.
20731         * tests/test-localename.c (test_locale_name_thread): Check that the
20732         resulting strings are permanently allocated.
20733         * modules/localename-tests (Depends-on): Add strdup.
20734
20735 2009-12-26  Bruno Haible  <bruno@clisp.org>
20736
20737         * tests/test-localename.c (categories): Fill in the strings.
20738
20739 2009-12-26  Jim Meyering  <meyering@redhat.com>
20740
20741         isdir: complete the removal of m4/isdir.m4
20742         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
20743
20744         isdir: clean up, since at least grep still uses it
20745         * lib/isdir.c: Include "isdir.h".
20746         (S_ISDIR): Remove now-unneeded definition.
20747         * modules/isdir (Files): Add lib/isdir.h.
20748         * lib/isdir.h: New file, with declaration.
20749         * m4/isdir.m4: Remove file -- unneeded.
20750
20751 2009-12-25  Bruno Haible  <bruno@clisp.org>
20752
20753         selinux-h: Make generated .h files standalone.
20754         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
20755         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
20756         * lib/se-selinux.in.h: Likewise.
20757         * modules/selinux-h (Depends-on): Add unused-parameter.
20758         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
20759         selinux/selinux.h and selinux/context.h.
20760         Suggested by Eric Blake.
20761
20762 2009-12-25  Bruno Haible  <bruno@clisp.org>
20763
20764         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
20765         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
20766         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
20767         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
20768         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
20769
20770 2009-12-24  Bruno Haible  <bruno@clisp.org>
20771
20772         openat: Fix warning.
20773         * lib/openat-proc.c: Include <unistd.h>.
20774
20775 2009-12-24  Bruno Haible  <bruno@clisp.org>
20776
20777         New module 'unused-parameter'.
20778         * build-aux/unused-parameter.h: New file, extracted from earlier
20779         gnulib-common.m4.
20780         * modules/unused-parameter: New file.
20781         * lib/unistr.h: Include unused-parameter.h.
20782         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
20783         _GL_UNUSED.
20784         * modules/unistr/base (Depends-on): Add unused-parameter.
20785
20786 2009-12-24  Bruno Haible  <bruno@clisp.org>
20787
20788         Add missing dependencies to 'extensions' module.
20789         * m4/extensions.m4: Add comment.
20790         * modules/accept4 (Depends-on): Add extensions.
20791         * modules/dup3 (Depends-on): Likewise.
20792         * modules/fcntl (Depends-on): Likewise.
20793         * modules/futimens (Depends-on): Likewise.
20794         * modules/mknod (Depends-on): Likewise.
20795         * modules/pipe2 (Depends-on): Likewise.
20796         * modules/stat-time (Depends-on): Likewise.
20797         * modules/strcasestr-simple (Depends-on): Likewise.
20798         * modules/strsignal (Depends-on): Likewise.
20799         * modules/utimensat (Depends-on): Likewise.
20800         * modules/localcharset (Depends-on): Likewise. Needed because of
20801         gl_FCNTL_O_FLAGS.
20802         * modules/wcrtomb (Depends-on): Likewise. Needed because of
20803         AC_TYPE_MBSTATE_T.
20804         * modules/wcsnrtombs (Depends-on): Likewise.
20805         * modules/wcsrtombs (Depends-on): Likewise.
20806
20807 2009-12-24  Bruno Haible  <bruno@clisp.org>
20808
20809         binary-io: Avoid gcc warning due to SET_BINARY.
20810         * lib/binary-io.h (SET_BINARY): Cast the result to void.
20811         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
20812
20813 2009-12-24  Bruno Haible  <bruno@clisp.org>
20814
20815         Avoid future namespace pollution on glibc systems.
20816         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
20817         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
20818         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
20819         glibc systems.
20820
20821 2009-12-24  Bruno Haible  <bruno@clisp.org>
20822
20823         Refactor common macros used in tests.
20824         * tests/macros.h: New file.
20825         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
20826         and/or <stdlib.h>, if appropriate.
20827         (ASSERT, SIZEOF): Remove macros.
20828         * tests/test-areadlink-with-size.c: Likewise.
20829         * tests/test-areadlinkat.c: Likewise.
20830         * tests/test-areadlinkat-with-size.c: Likewise.
20831         * tests/test-argmatch.c: Likewise.
20832         * tests/test-argv-iter.c: Likewise.
20833         * tests/test-array-mergesort.c: Likewise.
20834         * tests/test-array_list.c: Likewise.
20835         * tests/test-array_oset.c: Likewise.
20836         * tests/test-avltree_list.c: Likewise.
20837         * tests/test-avltree_oset.c: Likewise.
20838         * tests/test-avltreehash_list.c: Likewise.
20839         * tests/test-base64.c: Likewise.
20840         * tests/test-binary-io.c: Likewise.
20841         * tests/test-bitrotate.c: Likewise.
20842         * tests/test-btowc.c: Likewise.
20843         * tests/test-byteswap.c: Likewise.
20844         * tests/test-c-ctype.c: Likewise.
20845         * tests/test-c-stack.c: Likewise.
20846         * tests/test-c-strcasecmp.c: Likewise.
20847         * tests/test-c-strcasestr.c: Likewise.
20848         * tests/test-c-strncasecmp.c: Likewise.
20849         * tests/test-c-strstr.c: Likewise.
20850         * tests/test-canonicalize-lgpl.c: Likewise.
20851         * tests/test-canonicalize.c: Likewise.
20852         * tests/test-carray_list.c: Likewise.
20853         * tests/test-ceilf1.c: Likewise.
20854         * tests/test-ceilf2.c: Likewise.
20855         * tests/test-ceill.c: Likewise.
20856         * tests/test-chown.c: Likewise.
20857         * tests/test-cloexec.c: Likewise.
20858         * tests/test-copy-acl.c: Likewise.
20859         * tests/test-copy-file.c: Likewise.
20860         * tests/test-count-one-bits.c: Likewise.
20861         * tests/test-dprintf-posix.c: Likewise.
20862         * tests/test-dup2.c: Likewise.
20863         * tests/test-dup3.c: Likewise.
20864         * tests/test-duplocale.c: Likewise.
20865         * tests/test-fbufmode.c: Likewise.
20866         * tests/test-fchdir.c: Likewise.
20867         * tests/test-fchownat.c: Likewise.
20868         * tests/test-fcntl-safer.c: Likewise.
20869         * tests/test-fcntl.c: Likewise.
20870         * tests/test-fdopendir.c: Likewise.
20871         * tests/test-fdutimensat.c: Likewise.
20872         * tests/test-fflush2.c: Likewise.
20873         * tests/test-file-has-acl.c: Likewise.
20874         * tests/test-filevercmp.c: Likewise.
20875         * tests/test-flock.c: Likewise.
20876         * tests/test-floorf1.c: Likewise.
20877         * tests/test-floorf2.c: Likewise.
20878         * tests/test-floorl.c: Likewise.
20879         * tests/test-fnmatch.c: Likewise.
20880         * tests/test-fopen.h: Likewise.
20881         * tests/test-fpending.c: Likewise.
20882         * tests/test-fprintf-posix.c: Likewise.
20883         * tests/test-fpurge.c: Likewise.
20884         * tests/test-freadable.c: Likewise.
20885         * tests/test-freadahead.c: Likewise.
20886         * tests/test-freading.c: Likewise.
20887         * tests/test-freadptr.c: Likewise.
20888         * tests/test-freadptr2.c: Likewise.
20889         * tests/test-freadseek.c: Likewise.
20890         * tests/test-freopen.c: Likewise.
20891         * tests/test-frexp.c: Likewise.
20892         * tests/test-frexpl.c: Likewise.
20893         * tests/test-fseek.c: Likewise.
20894         * tests/test-fseeko.c: Likewise.
20895         * tests/test-fstatat.c: Likewise.
20896         * tests/test-fstrcmp.c: Likewise.
20897         * tests/test-fsync.c: Likewise.
20898         * tests/test-ftell.c: Likewise.
20899         * tests/test-ftello.c: Likewise.
20900         * tests/test-func.c: Likewise.
20901         * tests/test-futimens.c: Likewise.
20902         * tests/test-fwritable.c: Likewise.
20903         * tests/test-fwriting.c: Likewise.
20904         * tests/test-getcwd.c: Likewise.
20905         * tests/test-getdate.c: Likewise.
20906         * tests/test-getdelim.c: Likewise.
20907         * tests/test-getdtablesize.c: Likewise.
20908         * tests/test-getgroups.c: Likewise.
20909         * tests/test-getline.c: Likewise.
20910         * tests/test-getndelim2.c: Likewise.
20911         * tests/test-glob.c: Likewise.
20912         * tests/test-hash.c: Likewise.
20913         * tests/test-i-ring.c: Likewise.
20914         * tests/test-iconv-utf.c: Likewise.
20915         * tests/test-iconv.c: Likewise.
20916         * tests/test-idpriv-drop.c: Likewise.
20917         * tests/test-idpriv-droptemp.c: Likewise.
20918         * tests/test-inet_ntop.c: Likewise.
20919         * tests/test-inet_pton.c: Likewise.
20920         * tests/test-isblank.c: Likewise.
20921         * tests/test-isfinite.c: Likewise.
20922         * tests/test-isinf.c: Likewise.
20923         * tests/test-isnan.c: Likewise.
20924         * tests/test-isnand.h: Likewise.
20925         * tests/test-isnanf.h: Likewise.
20926         * tests/test-isnanl.h: Likewise.
20927         * tests/test-lchown.c: Likewise.
20928         * tests/test-ldexpl.c: Likewise.
20929         * tests/test-link.c: Likewise.
20930         * tests/test-linkat.c: Likewise.
20931         * tests/test-linked_list.c: Likewise.
20932         * tests/test-linkedhash_list.c: Likewise.
20933         * tests/test-localename.c: Likewise.
20934         * tests/test-lseek.c: Likewise.
20935         * tests/test-lstat.c: Likewise.
20936         * tests/test-mbmemcasecmp.c: Likewise.
20937         * tests/test-mbmemcasecoll.c: Likewise.
20938         * tests/test-mbrtowc.c: Likewise.
20939         * tests/test-mbscasecmp.c: Likewise.
20940         * tests/test-mbscasestr1.c: Likewise.
20941         * tests/test-mbscasestr2.c: Likewise.
20942         * tests/test-mbscasestr3.c: Likewise.
20943         * tests/test-mbscasestr4.c: Likewise.
20944         * tests/test-mbschr.c: Likewise.
20945         * tests/test-mbscspn.c: Likewise.
20946         * tests/test-mbsinit.c: Likewise.
20947         * tests/test-mbsncasecmp.c: Likewise.
20948         * tests/test-mbsnrtowcs.c: Likewise.
20949         * tests/test-mbspbrk.c: Likewise.
20950         * tests/test-mbspcasecmp.c: Likewise.
20951         * tests/test-mbsrchr.c: Likewise.
20952         * tests/test-mbsrtowcs.c: Likewise.
20953         * tests/test-mbsspn.c: Likewise.
20954         * tests/test-mbsstr1.c: Likewise.
20955         * tests/test-mbsstr2.c: Likewise.
20956         * tests/test-mbsstr3.c: Likewise.
20957         * tests/test-memchr.c: Likewise.
20958         * tests/test-memchr2.c: Likewise.
20959         * tests/test-memcmp.c: Likewise.
20960         * tests/test-memmem.c: Likewise.
20961         * tests/test-memrchr.c: Likewise.
20962         * tests/test-mkdir.c: Likewise.
20963         * tests/test-mkdirat.c: Likewise.
20964         * tests/test-mkfifo.c: Likewise.
20965         * tests/test-mkfifoat.c: Likewise.
20966         * tests/test-mknod.c: Likewise.
20967         * tests/test-nanosleep.c: Likewise.
20968         * tests/test-nl_langinfo.c: Likewise.
20969         * tests/test-obstack-printf.c: Likewise.
20970         * tests/test-open.c: Likewise.
20971         * tests/test-openat.c: Likewise.
20972         * tests/test-pipe-filter-gi1.c: Likewise.
20973         * tests/test-pipe-filter-gi2-main.c: Likewise.
20974         * tests/test-pipe-filter-ii1.c: Likewise.
20975         * tests/test-pipe-filter-ii2-main.c: Likewise.
20976         * tests/test-pipe2.c: Likewise.
20977         * tests/test-popen.h: Likewise.
20978         * tests/test-posixtm.c: Likewise.
20979         * tests/test-pread.c: Likewise.
20980         * tests/test-printf-frexp.c: Likewise.
20981         * tests/test-printf-frexpl.c: Likewise.
20982         * tests/test-printf-posix.c: Likewise.
20983         * tests/test-priv-set.c: Likewise.
20984         * tests/test-quotearg.c: Likewise.
20985         * tests/test-random_r.c: Likewise.
20986         * tests/test-rawmemchr.c: Likewise.
20987         * tests/test-rbtree_list.c: Likewise.
20988         * tests/test-rbtree_oset.c: Likewise.
20989         * tests/test-rbtreehash_list.c: Likewise.
20990         * tests/test-readlink.c: Likewise.
20991         * tests/test-remove.c: Likewise.
20992         * tests/test-rename.c: Likewise.
20993         * tests/test-renameat.c: Likewise.
20994         * tests/test-rmdir.c: Likewise.
20995         * tests/test-round1.c: Likewise.
20996         * tests/test-roundf1.c: Likewise.
20997         * tests/test-roundl.c: Likewise.
20998         * tests/test-safe-alloc.c: Likewise.
20999         * tests/test-sameacls.c: Likewise.
21000         * tests/test-set-mode-acl.c: Likewise.
21001         * tests/test-setenv.c: Likewise.
21002         * tests/test-sigaction.c: Likewise.
21003         * tests/test-signbit.c: Likewise.
21004         * tests/test-sleep.c: Likewise.
21005         * tests/test-snprintf-posix.c: Likewise.
21006         * tests/test-snprintf.c: Likewise.
21007         * tests/test-sprintf-posix.c: Likewise.
21008         * tests/test-stat-time.c: Likewise.
21009         * tests/test-stat.c: Likewise.
21010         * tests/test-strcasestr.c: Likewise.
21011         * tests/test-strchrnul.c: Likewise.
21012         * tests/test-strerror.c: Likewise.
21013         * tests/test-striconv.c: Likewise.
21014         * tests/test-striconveh.c: Likewise.
21015         * tests/test-striconveha.c: Likewise.
21016         * tests/test-strsignal.c: Likewise.
21017         * tests/test-strstr.c: Likewise.
21018         * tests/test-strtod.c: Likewise.
21019         * tests/test-strverscmp.c: Likewise.
21020         * tests/test-symlink.c: Likewise.
21021         * tests/test-symlinkat.c: Likewise.
21022         * tests/test-trunc1.c: Likewise.
21023         * tests/test-trunc2.c: Likewise.
21024         * tests/test-truncf1.c: Likewise.
21025         * tests/test-truncf2.c: Likewise.
21026         * tests/test-truncl.c: Likewise.
21027         * tests/test-uname.c: Likewise.
21028         * tests/test-unlink.c: Likewise.
21029         * tests/test-unlinkat.c: Likewise.
21030         * tests/test-unsetenv.c: Likewise.
21031         * tests/test-usleep.c: Likewise.
21032         * tests/test-utimens.c: Likewise.
21033         * tests/test-utimensat.c: Likewise.
21034         * tests/test-vasnprintf-posix.c: Likewise.
21035         * tests/test-vasnprintf-posix2.c: Likewise.
21036         * tests/test-vasnprintf.c: Likewise.
21037         * tests/test-vasprintf-posix.c: Likewise.
21038         * tests/test-vasprintf.c: Likewise.
21039         * tests/test-vdprintf-posix.c: Likewise.
21040         * tests/test-vfprintf-posix.c: Likewise.
21041         * tests/test-vprintf-posix.c: Likewise.
21042         * tests/test-vsnprintf-posix.c: Likewise.
21043         * tests/test-vsnprintf.c: Likewise.
21044         * tests/test-vsprintf-posix.c: Likewise.
21045         * tests/test-wcrtomb.c: Likewise.
21046         * tests/test-wcsnrtombs.c: Likewise.
21047         * tests/test-wcsrtombs.c: Likewise.
21048         * tests/test-wctype.c: Likewise.
21049         * tests/test-wcwidth.c: Likewise.
21050         * tests/test-xfprintf-posix.c: Likewise.
21051         * tests/test-xmemdup0.c: Likewise.
21052         * tests/test-xprintf-posix.c: Likewise.
21053         * tests/test-xvasprintf.c: Likewise.
21054         * tests/unicase/test-locale-language.c: Likewise.
21055         * tests/unicase/test-mapping-part1.h: Likewise.
21056         * tests/unicase/test-predicate-part1.h: Likewise.
21057         * tests/unicase/test-u8-casecmp.c: Likewise.
21058         * tests/unicase/test-u8-casecoll.c: Likewise.
21059         * tests/unicase/test-u8-casefold.c: Likewise.
21060         * tests/unicase/test-u8-is-cased.c: Likewise.
21061         * tests/unicase/test-u8-is-casefolded.c: Likewise.
21062         * tests/unicase/test-u8-is-lowercase.c: Likewise.
21063         * tests/unicase/test-u8-is-titlecase.c: Likewise.
21064         * tests/unicase/test-u8-is-uppercase.c: Likewise.
21065         * tests/unicase/test-u8-tolower.c: Likewise.
21066         * tests/unicase/test-u8-totitle.c: Likewise.
21067         * tests/unicase/test-u8-toupper.c: Likewise.
21068         * tests/unicase/test-u16-casecmp.c: Likewise.
21069         * tests/unicase/test-u16-casecoll.c: Likewise.
21070         * tests/unicase/test-u16-casefold.c: Likewise.
21071         * tests/unicase/test-u16-is-cased.c: Likewise.
21072         * tests/unicase/test-u16-is-casefolded.c: Likewise.
21073         * tests/unicase/test-u16-is-lowercase.c: Likewise.
21074         * tests/unicase/test-u16-is-titlecase.c: Likewise.
21075         * tests/unicase/test-u16-is-uppercase.c: Likewise.
21076         * tests/unicase/test-u16-tolower.c: Likewise.
21077         * tests/unicase/test-u16-totitle.c: Likewise.
21078         * tests/unicase/test-u16-toupper.c: Likewise.
21079         * tests/unicase/test-u32-casecmp.c: Likewise.
21080         * tests/unicase/test-u32-casecoll.c: Likewise.
21081         * tests/unicase/test-u32-casefold.c: Likewise.
21082         * tests/unicase/test-u32-is-cased.c: Likewise.
21083         * tests/unicase/test-u32-is-casefolded.c: Likewise.
21084         * tests/unicase/test-u32-is-lowercase.c: Likewise.
21085         * tests/unicase/test-u32-is-titlecase.c: Likewise.
21086         * tests/unicase/test-u32-is-uppercase.c: Likewise.
21087         * tests/unicase/test-u32-tolower.c: Likewise.
21088         * tests/unicase/test-u32-totitle.c: Likewise.
21089         * tests/unicase/test-u32-toupper.c: Likewise.
21090         * tests/unicase/test-ulc-casecmp.c: Likewise.
21091         * tests/unicase/test-ulc-casecoll.c: Likewise.
21092         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
21093         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
21094         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
21095         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
21096         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
21097         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
21098         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
21099         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
21100         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
21101         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
21102         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
21103         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
21104         * tests/unictype/test-bidi_byname.c: Likewise.
21105         * tests/unictype/test-bidi_name.c: Likewise.
21106         * tests/unictype/test-bidi_of.c: Likewise.
21107         * tests/unictype/test-bidi_test.c: Likewise.
21108         * tests/unictype/test-block_list.c: Likewise.
21109         * tests/unictype/test-block_of.c: Likewise.
21110         * tests/unictype/test-block_test.c: Likewise.
21111         * tests/unictype/test-categ_and.c: Likewise.
21112         * tests/unictype/test-categ_and_not.c: Likewise.
21113         * tests/unictype/test-categ_byname.c: Likewise.
21114         * tests/unictype/test-categ_name.c: Likewise.
21115         * tests/unictype/test-categ_none.c: Likewise.
21116         * tests/unictype/test-categ_of.c: Likewise.
21117         * tests/unictype/test-categ_or.c: Likewise.
21118         * tests/unictype/test-categ_test_withtable.c: Likewise.
21119         * tests/unictype/test-combining.c: Likewise.
21120         * tests/unictype/test-decdigit.c: Likewise.
21121         * tests/unictype/test-digit.c: Likewise.
21122         * tests/unictype/test-mirror.c: Likewise.
21123         * tests/unictype/test-numeric.c: Likewise.
21124         * tests/unictype/test-pr_byname.c: Likewise.
21125         * tests/unictype/test-pr_test.c: Likewise.
21126         * tests/unictype/test-predicate-part1.h: Likewise.
21127         * tests/unictype/test-scripts.c: Likewise.
21128         * tests/unictype/test-sy_c_ident.c: Likewise.
21129         * tests/unictype/test-sy_java_ident.c: Likewise.
21130         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
21131         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
21132         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
21133         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
21134         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
21135         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
21136         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
21137         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
21138         * tests/uninorm/test-canonical-decomposition.c: Likewise.
21139         * tests/uninorm/test-compat-decomposition.c: Likewise.
21140         * tests/uninorm/test-composition.c: Likewise.
21141         * tests/uninorm/test-decomposing-form.c: Likewise.
21142         * tests/uninorm/test-decomposition.c: Likewise.
21143         * tests/uninorm/test-u8-nfc.c: Likewise.
21144         * tests/uninorm/test-u8-nfd.c: Likewise.
21145         * tests/uninorm/test-u8-nfkc.c: Likewise.
21146         * tests/uninorm/test-u8-nfkd.c: Likewise.
21147         * tests/uninorm/test-u8-normcmp.c: Likewise.
21148         * tests/uninorm/test-u8-normcoll.c: Likewise.
21149         * tests/uninorm/test-u16-nfc.c: Likewise.
21150         * tests/uninorm/test-u16-nfd.c: Likewise.
21151         * tests/uninorm/test-u16-nfkc.c: Likewise.
21152         * tests/uninorm/test-u16-nfkd.c: Likewise.
21153         * tests/uninorm/test-u16-normcmp.c: Likewise.
21154         * tests/uninorm/test-u16-normcoll.c: Likewise.
21155         * tests/uninorm/test-u32-nfc.c: Likewise.
21156         * tests/uninorm/test-u32-nfd.c: Likewise.
21157         * tests/uninorm/test-u32-nfkc.c: Likewise.
21158         * tests/uninorm/test-u32-nfkd.c: Likewise.
21159         * tests/uninorm/test-u32-normalize-big.c: Likewise.
21160         * tests/uninorm/test-u32-normcmp.c: Likewise.
21161         * tests/uninorm/test-u32-normcoll.c: Likewise.
21162         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
21163         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
21164         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
21165         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
21166         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
21167         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
21168         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
21169         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
21170         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
21171         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
21172         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
21173         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
21174         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
21175         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
21176         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
21177         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
21178         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
21179         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
21180         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
21181         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
21182         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
21183         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
21184         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
21185         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
21186         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
21187         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
21188         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
21189         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
21190         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
21191         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
21192         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
21193         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
21194         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
21195         * tests/uniwidth/test-u8-strwidth.c: Likewise.
21196         * tests/uniwidth/test-u8-width.c: Likewise.
21197         * tests/uniwidth/test-u16-strwidth.c: Likewise.
21198         * tests/uniwidth/test-u16-width.c: Likewise.
21199         * tests/uniwidth/test-u32-strwidth.c: Likewise.
21200         * tests/uniwidth/test-u32-width.c: Likewise.
21201         * tests/uniwidth/test-uc_width.c: Likewise.
21202         * tests/uniwidth/test-uc_width2.c: Likewise.
21203         * modules/acl-tests (Files): Add tests/macros.h.
21204         * modules/areadlink-tests (Files): Likewise.
21205         * modules/areadlink-with-size-tests (Files): Likewise.
21206         * modules/areadlinkat-tests (Files): Likewise.
21207         * modules/areadlinkat-with-size-tests (Files): Likewise.
21208         * modules/argmatch-tests (Files): Likewise.
21209         * modules/argv-iter-tests (Files): Likewise.
21210         * modules/array-list-tests (Files): Likewise.
21211         * modules/array-mergesort-tests (Files): Likewise.
21212         * modules/array-oset-tests (Files): Likewise.
21213         * modules/avltree-list-tests (Files): Likewise.
21214         * modules/avltree-oset-tests (Files): Likewise.
21215         * modules/avltreehash-list-tests (Files): Likewise.
21216         * modules/base64-tests (Files): Likewise.
21217         * modules/binary-io-tests (Files): Likewise.
21218         * modules/bitrotate-tests (Files): Likewise.
21219         * modules/btowc-tests (Files): Likewise.
21220         * modules/byteswap-tests (Files): Likewise.
21221         * modules/c-ctype-tests (Files): Likewise.
21222         * modules/c-stack-tests (Files): Likewise.
21223         * modules/c-strcase-tests (Files): Likewise.
21224         * modules/c-strcasestr-tests (Files): Likewise.
21225         * modules/c-strstr-tests (Files): Likewise.
21226         * modules/canonicalize-lgpl-tests (Files): Likewise.
21227         * modules/canonicalize-tests (Files): Likewise.
21228         * modules/carray-list-tests (Files): Likewise.
21229         * modules/ceilf-tests (Files): Likewise.
21230         * modules/ceill-tests (Files): Likewise.
21231         * modules/chown-tests (Files): Likewise.
21232         * modules/cloexec-tests (Files): Likewise.
21233         * modules/copy-file-tests (Files): Likewise.
21234         * modules/count-one-bits-tests (Files): Likewise.
21235         * modules/dprintf-posix-tests (Files): Likewise.
21236         * modules/dup2-tests (Files): Likewise.
21237         * modules/dup3-tests (Files): Likewise.
21238         * modules/duplocale-tests (Files): Likewise.
21239         * modules/fbufmode-tests (Files): Likewise.
21240         * modules/fchdir-tests (Files): Likewise.
21241         * modules/fcntl-safer-tests (Files): Likewise.
21242         * modules/fcntl-tests (Files): Likewise.
21243         * modules/fdopendir-tests (Files): Likewise.
21244         * modules/fdutimensat-tests (Files): Likewise.
21245         * modules/fflush-tests (Files): Likewise.
21246         * modules/filevercmp-tests (Files): Likewise.
21247         * modules/flock-tests (Files): Likewise.
21248         * modules/floorf-tests (Files): Likewise.
21249         * modules/floorl-tests (Files): Likewise.
21250         * modules/fnmatch-tests (Files): Likewise.
21251         * modules/fopen-safer-tests (Files): Likewise.
21252         * modules/fopen-tests (Files): Likewise.
21253         * modules/fpending-tests (Files): Likewise.
21254         * modules/fprintf-posix-tests (Files): Likewise.
21255         * modules/fpurge-tests (Files): Likewise.
21256         * modules/freadable-tests (Files): Likewise.
21257         * modules/freadahead-tests (Files): Likewise.
21258         * modules/freading-tests (Files): Likewise.
21259         * modules/freadptr-tests (Files): Likewise.
21260         * modules/freadseek-tests (Files): Likewise.
21261         * modules/freopen-tests (Files): Likewise.
21262         * modules/frexp-nolibm-tests (Files): Likewise.
21263         * modules/frexp-tests (Files): Likewise.
21264         * modules/frexpl-nolibm-tests (Files): Likewise.
21265         * modules/frexpl-tests (Files): Likewise.
21266         * modules/fseek-tests (Files): Likewise.
21267         * modules/fseeko-tests (Files): Likewise.
21268         * modules/fstrcmp-tests (Files): Likewise.
21269         * modules/fsync-tests (Files): Likewise.
21270         * modules/ftell-tests (Files): Likewise.
21271         * modules/ftello-tests (Files): Likewise.
21272         * modules/func-tests (Files): Likewise.
21273         * modules/futimens-tests (Files): Likewise.
21274         * modules/fwritable-tests (Files): Likewise.
21275         * modules/fwriting-tests (Files): Likewise.
21276         * modules/getcwd-tests (Files): Likewise.
21277         * modules/getdate-tests (Files): Likewise.
21278         * modules/getdelim-tests (Files): Likewise.
21279         * modules/getdtablesize-tests (Files): Likewise.
21280         * modules/getgroups-tests (Files): Likewise.
21281         * modules/getline-tests (Files): Likewise.
21282         * modules/getndelim2-tests (Files): Likewise.
21283         * modules/glob-tests (Files): Likewise.
21284         * modules/hash-tests (Files): Likewise.
21285         * modules/i-ring-tests (Files): Likewise.
21286         * modules/iconv-tests (Files): Likewise.
21287         * modules/iconv_open-utf-tests (Files): Likewise.
21288         * modules/idpriv-drop-tests (Files): Likewise.
21289         * modules/idpriv-droptemp-tests (Files): Likewise.
21290         * modules/inet_ntop-tests (Files): Likewise.
21291         * modules/inet_pton-tests (Files): Likewise.
21292         * modules/isblank-tests (Files): Likewise.
21293         * modules/isfinite-tests (Files): Likewise.
21294         * modules/isinf-tests (Files): Likewise.
21295         * modules/isnan-tests (Files): Likewise.
21296         * modules/isnand-nolibm-tests (Files): Likewise.
21297         * modules/isnand-tests (Files): Likewise.
21298         * modules/isnanf-nolibm-tests (Files): Likewise.
21299         * modules/isnanf-tests (Files): Likewise.
21300         * modules/isnanl-nolibm-tests (Files): Likewise.
21301         * modules/isnanl-tests (Files): Likewise.
21302         * modules/lchown-tests (Files): Likewise.
21303         * modules/ldexpl-tests (Files): Likewise.
21304         * modules/link-tests (Files): Likewise.
21305         * modules/linkat-tests (Files): Likewise.
21306         * modules/linked-list-tests (Files): Likewise.
21307         * modules/linkedhash-list-tests (Files): Likewise.
21308         * modules/localename-tests (Files): Likewise.
21309         * modules/lseek-tests (Files): Likewise.
21310         * modules/lstat-tests (Files): Likewise.
21311         * modules/mbmemcasecmp-tests (Files): Likewise.
21312         * modules/mbmemcasecoll-tests (Files): Likewise.
21313         * modules/mbrtowc-tests (Files): Likewise.
21314         * modules/mbscasecmp-tests (Files): Likewise.
21315         * modules/mbscasestr-tests (Files): Likewise.
21316         * modules/mbschr-tests (Files): Likewise.
21317         * modules/mbscspn-tests (Files): Likewise.
21318         * modules/mbsinit-tests (Files): Likewise.
21319         * modules/mbsncasecmp-tests (Files): Likewise.
21320         * modules/mbsnrtowcs-tests (Files): Likewise.
21321         * modules/mbspbrk-tests (Files): Likewise.
21322         * modules/mbspcasecmp-tests (Files): Likewise.
21323         * modules/mbsrchr-tests (Files): Likewise.
21324         * modules/mbsrtowcs-tests (Files): Likewise.
21325         * modules/mbsspn-tests (Files): Likewise.
21326         * modules/mbsstr-tests (Files): Likewise.
21327         * modules/memchr-tests (Files): Likewise.
21328         * modules/memchr2-tests (Files): Likewise.
21329         * modules/memcmp-tests (Files): Likewise.
21330         * modules/memmem-tests (Files): Likewise.
21331         * modules/memrchr-tests (Files): Likewise.
21332         * modules/mkdir-tests (Files): Likewise.
21333         * modules/mkfifo-tests (Files): Likewise.
21334         * modules/mkfifoat-tests (Files): Likewise.
21335         * modules/mknod-tests (Files): Likewise.
21336         * modules/nanosleep-tests (Files): Likewise.
21337         * modules/nl_langinfo-tests (Files): Likewise.
21338         * modules/obstack-printf-tests (Files): Likewise.
21339         * modules/open-tests (Files): Likewise.
21340         * modules/openat-tests (Files): Likewise.
21341         * modules/pipe-filter-gi-tests (Files): Likewise.
21342         * modules/pipe-filter-ii-tests (Files): Likewise.
21343         * modules/pipe2-tests (Files): Likewise.
21344         * modules/popen-safer-tests (Files): Likewise.
21345         * modules/popen-tests (Files): Likewise.
21346         * modules/posixtm-tests (Files): Likewise.
21347         * modules/pread-tests (Files): Likewise.
21348         * modules/printf-frexp-tests (Files): Likewise.
21349         * modules/printf-frexpl-tests (Files): Likewise.
21350         * modules/printf-posix-tests (Files): Likewise.
21351         * modules/priv-set-tests (Files): Likewise.
21352         * modules/quotearg-tests (Files): Likewise.
21353         * modules/random_r-tests (Files): Likewise.
21354         * modules/rawmemchr-tests (Files): Likewise.
21355         * modules/rbtree-list-tests (Files): Likewise.
21356         * modules/rbtree-oset-tests (Files): Likewise.
21357         * modules/rbtreehash-list-tests (Files): Likewise.
21358         * modules/readlink-tests (Files): Likewise.
21359         * modules/remove-tests (Files): Likewise.
21360         * modules/rename-tests (Files): Likewise.
21361         * modules/renameat-tests (Files): Likewise.
21362         * modules/rmdir-tests (Files): Likewise.
21363         * modules/round-tests (Files): Likewise.
21364         * modules/roundf-tests (Files): Likewise.
21365         * modules/roundl-tests (Files): Likewise.
21366         * modules/safe-alloc-tests (Files): Likewise.
21367         * modules/setenv-tests (Files): Likewise.
21368         * modules/sigaction-tests (Files): Likewise.
21369         * modules/signbit-tests (Files): Likewise.
21370         * modules/sleep-tests (Files): Likewise.
21371         * modules/snprintf-posix-tests (Files): Likewise.
21372         * modules/snprintf-tests (Files): Likewise.
21373         * modules/sprintf-posix-tests (Files): Likewise.
21374         * modules/stat-tests (Files): Likewise.
21375         * modules/stat-time-tests (Files): Likewise.
21376         * modules/strcasestr-tests (Files): Likewise.
21377         * modules/strchrnul-tests (Files): Likewise.
21378         * modules/strerror-tests (Files): Likewise.
21379         * modules/striconv-tests (Files): Likewise.
21380         * modules/striconveh-tests (Files): Likewise.
21381         * modules/striconveha-tests (Files): Likewise.
21382         * modules/strsignal-tests (Files): Likewise.
21383         * modules/strstr-tests (Files): Likewise.
21384         * modules/strtod-tests (Files): Likewise.
21385         * modules/strverscmp-tests (Files): Likewise.
21386         * modules/symlink-tests (Files): Likewise.
21387         * modules/symlinkat-tests (Files): Likewise.
21388         * modules/trunc-tests (Files): Likewise.
21389         * modules/truncf-tests (Files): Likewise.
21390         * modules/truncl-tests (Files): Likewise.
21391         * modules/uname-tests (Files): Likewise.
21392         * modules/unicase/cased-tests (Files): Likewise.
21393         * modules/unicase/ignorable-tests (Files): Likewise.
21394         * modules/unicase/locale-language-tests (Files): Likewise.
21395         * modules/unicase/tolower-tests (Files): Likewise.
21396         * modules/unicase/totitle-tests (Files): Likewise.
21397         * modules/unicase/toupper-tests (Files): Likewise.
21398         * modules/unicase/u8-casecmp-tests (Files): Likewise.
21399         * modules/unicase/u8-casecoll-tests (Files): Likewise.
21400         * modules/unicase/u8-casefold-tests (Files): Likewise.
21401         * modules/unicase/u8-is-cased-tests (Files): Likewise.
21402         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
21403         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
21404         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
21405         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
21406         * modules/unicase/u8-tolower-tests (Files): Likewise.
21407         * modules/unicase/u8-totitle-tests (Files): Likewise.
21408         * modules/unicase/u8-toupper-tests (Files): Likewise.
21409         * modules/unicase/u16-casecmp-tests (Files): Likewise.
21410         * modules/unicase/u16-casecoll-tests (Files): Likewise.
21411         * modules/unicase/u16-casefold-tests (Files): Likewise.
21412         * modules/unicase/u16-is-cased-tests (Files): Likewise.
21413         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
21414         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
21415         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
21416         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
21417         * modules/unicase/u16-tolower-tests (Files): Likewise.
21418         * modules/unicase/u16-totitle-tests (Files): Likewise.
21419         * modules/unicase/u16-toupper-tests (Files): Likewise.
21420         * modules/unicase/u32-casecmp-tests (Files): Likewise.
21421         * modules/unicase/u32-casecoll-tests (Files): Likewise.
21422         * modules/unicase/u32-casefold-tests (Files): Likewise.
21423         * modules/unicase/u32-is-cased-tests (Files): Likewise.
21424         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
21425         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
21426         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
21427         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
21428         * modules/unicase/u32-tolower-tests (Files): Likewise.
21429         * modules/unicase/u32-totitle-tests (Files): Likewise.
21430         * modules/unicase/u32-toupper-tests (Files): Likewise.
21431         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
21432         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
21433         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
21434         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
21435         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
21436         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
21437         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
21438         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
21439         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
21440         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
21441         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
21442         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
21443         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
21444         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
21445         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
21446         * modules/unictype/bidicategory-name-tests (Files): Likewise.
21447         * modules/unictype/bidicategory-of-tests (Files): Likewise.
21448         * modules/unictype/bidicategory-test-tests (Files): Likewise.
21449         * modules/unictype/block-list-tests (Files): Likewise.
21450         * modules/unictype/block-of-tests (Files): Likewise.
21451         * modules/unictype/block-test-tests (Files): Likewise.
21452         * modules/unictype/category-C-tests (Files): Likewise.
21453         * modules/unictype/category-Cc-tests (Files): Likewise.
21454         * modules/unictype/category-Cf-tests (Files): Likewise.
21455         * modules/unictype/category-Cn-tests (Files): Likewise.
21456         * modules/unictype/category-Co-tests (Files): Likewise.
21457         * modules/unictype/category-Cs-tests (Files): Likewise.
21458         * modules/unictype/category-L-tests (Files): Likewise.
21459         * modules/unictype/category-Ll-tests (Files): Likewise.
21460         * modules/unictype/category-Lm-tests (Files): Likewise.
21461         * modules/unictype/category-Lo-tests (Files): Likewise.
21462         * modules/unictype/category-Lt-tests (Files): Likewise.
21463         * modules/unictype/category-Lu-tests (Files): Likewise.
21464         * modules/unictype/category-M-tests (Files): Likewise.
21465         * modules/unictype/category-Mc-tests (Files): Likewise.
21466         * modules/unictype/category-Me-tests (Files): Likewise.
21467         * modules/unictype/category-Mn-tests (Files): Likewise.
21468         * modules/unictype/category-N-tests (Files): Likewise.
21469         * modules/unictype/category-Nd-tests (Files): Likewise.
21470         * modules/unictype/category-Nl-tests (Files): Likewise.
21471         * modules/unictype/category-No-tests (Files): Likewise.
21472         * modules/unictype/category-P-tests (Files): Likewise.
21473         * modules/unictype/category-Pc-tests (Files): Likewise.
21474         * modules/unictype/category-Pd-tests (Files): Likewise.
21475         * modules/unictype/category-Pe-tests (Files): Likewise.
21476         * modules/unictype/category-Pf-tests (Files): Likewise.
21477         * modules/unictype/category-Pi-tests (Files): Likewise.
21478         * modules/unictype/category-Po-tests (Files): Likewise.
21479         * modules/unictype/category-Ps-tests (Files): Likewise.
21480         * modules/unictype/category-S-tests (Files): Likewise.
21481         * modules/unictype/category-Sc-tests (Files): Likewise.
21482         * modules/unictype/category-Sk-tests (Files): Likewise.
21483         * modules/unictype/category-Sm-tests (Files): Likewise.
21484         * modules/unictype/category-So-tests (Files): Likewise.
21485         * modules/unictype/category-Z-tests (Files): Likewise.
21486         * modules/unictype/category-Zl-tests (Files): Likewise.
21487         * modules/unictype/category-Zp-tests (Files): Likewise.
21488         * modules/unictype/category-Zs-tests (Files): Likewise.
21489         * modules/unictype/category-and-not-tests (Files): Likewise.
21490         * modules/unictype/category-and-tests (Files): Likewise.
21491         * modules/unictype/category-byname-tests (Files): Likewise.
21492         * modules/unictype/category-name-tests (Files): Likewise.
21493         * modules/unictype/category-none-tests (Files): Likewise.
21494         * modules/unictype/category-of-tests (Files): Likewise.
21495         * modules/unictype/category-or-tests (Files): Likewise.
21496         * modules/unictype/category-test-withtable-tests (Files): Likewise.
21497         * modules/unictype/combining-class-tests (Files): Likewise.
21498         * modules/unictype/ctype-alnum-tests (Files): Likewise.
21499         * modules/unictype/ctype-alpha-tests (Files): Likewise.
21500         * modules/unictype/ctype-blank-tests (Files): Likewise.
21501         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
21502         * modules/unictype/ctype-digit-tests (Files): Likewise.
21503         * modules/unictype/ctype-graph-tests (Files): Likewise.
21504         * modules/unictype/ctype-lower-tests (Files): Likewise.
21505         * modules/unictype/ctype-print-tests (Files): Likewise.
21506         * modules/unictype/ctype-punct-tests (Files): Likewise.
21507         * modules/unictype/ctype-space-tests (Files): Likewise.
21508         * modules/unictype/ctype-upper-tests (Files): Likewise.
21509         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
21510         * modules/unictype/decimal-digit-tests (Files): Likewise.
21511         * modules/unictype/digit-tests (Files): Likewise.
21512         * modules/unictype/mirror-tests (Files): Likewise.
21513         * modules/unictype/numeric-tests (Files): Likewise.
21514         * modules/unictype/property-alphabetic-tests (Files): Likewise.
21515         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
21516         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
21517         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
21518         Likewise.
21519         * modules/unictype/property-bidi-block-separator-tests (Files):
21520         Likewise.
21521         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
21522         Likewise.
21523         * modules/unictype/property-bidi-common-separator-tests (Files):
21524         Likewise.
21525         * modules/unictype/property-bidi-control-tests (Files): Likewise.
21526         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
21527         Likewise.
21528         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
21529         Likewise.
21530         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
21531         Likewise.
21532         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
21533         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
21534         Likewise.
21535         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
21536         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
21537         Likewise.
21538         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
21539         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
21540         * modules/unictype/property-bidi-segment-separator-tests (Files):
21541         Likewise.
21542         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
21543         * modules/unictype/property-byname-tests (Files): Likewise.
21544         * modules/unictype/property-combining-tests (Files): Likewise.
21545         * modules/unictype/property-composite-tests (Files): Likewise.
21546         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
21547         * modules/unictype/property-dash-tests (Files): Likewise.
21548         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
21549         * modules/unictype/property-default-ignorable-code-point-tests (Files):
21550         Likewise.
21551         * modules/unictype/property-deprecated-tests (Files): Likewise.
21552         * modules/unictype/property-diacritic-tests (Files): Likewise.
21553         * modules/unictype/property-extender-tests (Files): Likewise.
21554         * modules/unictype/property-format-control-tests (Files): Likewise.
21555         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
21556         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
21557         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
21558         * modules/unictype/property-hex-digit-tests (Files): Likewise.
21559         * modules/unictype/property-hyphen-tests (Files): Likewise.
21560         * modules/unictype/property-id-continue-tests (Files): Likewise.
21561         * modules/unictype/property-id-start-tests (Files): Likewise.
21562         * modules/unictype/property-ideographic-tests (Files): Likewise.
21563         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
21564         * modules/unictype/property-ids-trinary-operator-tests (Files):
21565         Likewise.
21566         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
21567         * modules/unictype/property-iso-control-tests (Files): Likewise.
21568         * modules/unictype/property-join-control-tests (Files): Likewise.
21569         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
21570         * modules/unictype/property-line-separator-tests (Files): Likewise.
21571         * modules/unictype/property-logical-order-exception-tests (Files):
21572         Likewise.
21573         * modules/unictype/property-lowercase-tests (Files): Likewise.
21574         * modules/unictype/property-math-tests (Files): Likewise.
21575         * modules/unictype/property-non-break-tests (Files): Likewise.
21576         * modules/unictype/property-not-a-character-tests (Files): Likewise.
21577         * modules/unictype/property-numeric-tests (Files): Likewise.
21578         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
21579         * modules/unictype/property-other-default-ignorable-code-point-tests
21580         (Files): Likewise.
21581         * modules/unictype/property-other-grapheme-extend-tests (Files):
21582         Likewise.
21583         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
21584         * modules/unictype/property-other-id-start-tests (Files): Likewise.
21585         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
21586         * modules/unictype/property-other-math-tests (Files): Likewise.
21587         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
21588         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
21589         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
21590         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
21591         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
21592         * modules/unictype/property-private-use-tests (Files): Likewise.
21593         * modules/unictype/property-punctuation-tests (Files): Likewise.
21594         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
21595         * modules/unictype/property-radical-tests (Files): Likewise.
21596         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
21597         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
21598         * modules/unictype/property-space-tests (Files): Likewise.
21599         * modules/unictype/property-terminal-punctuation-tests (Files):
21600         Likewise.
21601         * modules/unictype/property-test-tests (Files): Likewise.
21602         * modules/unictype/property-titlecase-tests (Files): Likewise.
21603         * modules/unictype/property-unassigned-code-value-tests (Files):
21604         Likewise.
21605         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
21606         * modules/unictype/property-uppercase-tests (Files): Likewise.
21607         * modules/unictype/property-variation-selector-tests (Files): Likewise.
21608         * modules/unictype/property-white-space-tests (Files): Likewise.
21609         * modules/unictype/property-xid-continue-tests (Files): Likewise.
21610         * modules/unictype/property-xid-start-tests (Files): Likewise.
21611         * modules/unictype/property-zero-width-tests (Files): Likewise.
21612         * modules/unictype/scripts-tests (Files): Likewise.
21613         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
21614         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
21615         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
21616         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
21617         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
21618         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
21619         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
21620         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
21621         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
21622         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
21623         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
21624         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
21625         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
21626         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
21627         * modules/uninorm/composition-tests (Files): Likewise.
21628         * modules/uninorm/decomposing-form-tests (Files): Likewise.
21629         * modules/uninorm/decomposition-tests (Files): Likewise.
21630         * modules/uninorm/filter-tests (Files): Likewise.
21631         * modules/uninorm/nfc-tests (Files): Likewise.
21632         * modules/uninorm/nfd-tests (Files): Likewise.
21633         * modules/uninorm/nfkc-tests (Files): Likewise.
21634         * modules/uninorm/nfkd-tests (Files): Likewise.
21635         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
21636         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
21637         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
21638         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
21639         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
21640         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
21641         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
21642         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
21643         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
21644         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
21645         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
21646         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
21647         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
21648         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
21649         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
21650         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
21651         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
21652         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
21653         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
21654         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
21655         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
21656         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
21657         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
21658         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
21659         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
21660         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
21661         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
21662         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
21663         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
21664         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
21665         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
21666         * modules/uniwidth/u8-width-tests (Files): Likewise.
21667         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
21668         * modules/uniwidth/u16-width-tests (Files): Likewise.
21669         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
21670         * modules/uniwidth/u32-width-tests (Files): Likewise.
21671         * modules/uniwidth/width-tests (Files): Likewise.
21672         * modules/unlink-tests (Files): Likewise.
21673         * modules/unsetenv-tests (Files): Likewise.
21674         * modules/usleep-tests (Files): Likewise.
21675         * modules/utimens-tests (Files): Likewise.
21676         * modules/utimensat-tests (Files): Likewise.
21677         * modules/vasnprintf-posix-tests (Files): Likewise.
21678         * modules/vasnprintf-tests (Files): Likewise.
21679         * modules/vasprintf-posix-tests (Files): Likewise.
21680         * modules/vasprintf-tests (Files): Likewise.
21681         * modules/vdprintf-posix-tests (Files): Likewise.
21682         * modules/vfprintf-posix-tests (Files): Likewise.
21683         * modules/vprintf-posix-tests (Files): Likewise.
21684         * modules/vsnprintf-posix-tests (Files): Likewise.
21685         * modules/vsnprintf-tests (Files): Likewise.
21686         * modules/vsprintf-posix-tests (Files): Likewise.
21687         * modules/wcrtomb-tests (Files): Likewise.
21688         * modules/wcsnrtombs-tests (Files): Likewise.
21689         * modules/wcsrtombs-tests (Files): Likewise.
21690         * modules/wctype-tests (Files): Likewise.
21691         * modules/wcwidth-tests (Files): Likewise.
21692         * modules/xmemdup0-tests (Files): Likewise.
21693         * modules/xprintf-posix-tests (Files): Likewise.
21694         * modules/xvasprintf-tests (Files): Likewise.
21695
21696 2009-12-24  Eric Blake  <ebb9@byu.net>
21697
21698         test-nanosleep: fix typo
21699         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
21700         patch.
21701         Reported by Bruno Haible.
21702
21703 2009-12-24  Bruno Haible  <bruno@clisp.org>
21704
21705         Reduce namespace pollution on glibc systems.
21706         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
21707         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
21708         systems.
21709         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
21710         <getopt.h> on glibc systems.
21711         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
21712         systems.
21713         * lib/fcntl.c: Include <unistd.h> here instead.
21714
21715 2009-12-24  Bruno Haible  <bruno@clisp.org>
21716
21717         * lib/stdlib.in.h (includes): Fix typo in today's commit.
21718
21719 2009-12-24  Eric Blake  <ebb9@byu.net>
21720
21721         tests: add signature checks
21722         * tests/signature.h (SIGNATURE_CHECK): New file.
21723         * modules/atexit-tests (Files): Use it.
21724         * modules/btowc-tests (Files): Likewise.
21725         * modules/canonicalize-lgpl-tests (Files): Likewise.
21726         * modules/ceilf-tests (Files): Likewise.
21727         * modules/ceill-tests (Files): Likewise.
21728         * modules/chown-tests (Files): Likewise.
21729         * modules/dprintf-posix-tests (Files): Likewise.
21730         * modules/dup2-tests (Files): Likewise.
21731         * modules/dup3-tests (Files): Likewise.
21732         * modules/duplocale-tests (Files): Likewise.
21733         * modules/fchdir-tests (Files): Likewise.
21734         * modules/fcntl-tests (Files): Likewise.
21735         * modules/fdopendir-tests (Files): Likewise.
21736         * modules/fflush-tests (Files): Likewise.
21737         * modules/flock-tests (Files): Likewise.
21738         * modules/floorf-tests (Files): Likewise.
21739         * modules/floorl-tests (Files): Likewise.
21740         * modules/fnmatch-tests (Files): Likewise.
21741         * modules/fopen-tests (Files): Likewise.
21742         * modules/fprintf-posix-tests (Files): Likewise.
21743         * modules/freopen-tests (Files): Likewise.
21744         * modules/frexp-nolibm-tests (Files): Likewise.
21745         * modules/frexp-tests (Files): Likewise.
21746         * modules/frexpl-nolibm-tests (Files): Likewise.
21747         * modules/frexpl-tests (Files): Likewise.
21748         * modules/fseek-tests (Files): Likewise.
21749         * modules/fseeko-tests (Files): Likewise.
21750         * modules/fsync-tests (Files): Likewise.
21751         * modules/ftell-tests (Files): Likewise.
21752         * modules/ftello-tests (Files): Likewise.
21753         * modules/futimens-tests (Files): Likewise.
21754         * modules/getaddrinfo-tests (Files): Likewise.
21755         * modules/getcwd-tests (Files): Likewise.
21756         * modules/getdelim-tests (Files): Likewise.
21757         * modules/getdtablesize-tests (Files): Likewise.
21758         * modules/getgroups-tests (Files): Likewise.
21759         * modules/gethostname-tests (Files): Likewise.
21760         * modules/getline-tests (Files): Likewise.
21761         * modules/getopt-posix-tests (Files): Likewise.
21762         * modules/gettimeofday-tests (Files): Likewise.
21763         * modules/glob-tests (Files): Likewise.
21764         * modules/iconv-tests (Files): Likewise.
21765         * modules/inet_ntop-tests (Files): Likewise.
21766         * modules/inet_pton-tests (Files): Likewise.
21767         * modules/isblank-tests (Files): Likewise.
21768         * modules/lchown-tests (Files): Likewise.
21769         * modules/ldexpl-tests (Files): Likewise.
21770         * modules/link-tests (Files): Likewise.
21771         * modules/linkat-tests (Files): Likewise.
21772         * modules/lseek-tests (Files): Likewise.
21773         * modules/lstat-tests (Files): Likewise.
21774         * modules/mbrtowc-tests (Files): Likewise.
21775         * modules/mbsinit-tests (Files): Likewise.
21776         * modules/mbsnrtowcs-tests (Files): Likewise.
21777         * modules/mbsrtowcs-tests (Files): Likewise.
21778         * modules/memchr-tests (Files): Likewise.
21779         * modules/memcmp-tests (Files): Likewise.
21780         * modules/memmem-tests (Files): Likewise.
21781         * modules/memrchr-tests (Files): Likewise.
21782         * modules/mkdir-tests (Files): Likewise.
21783         * modules/mkfifo-tests (Files): Likewise.
21784         * modules/mkfifoat-tests (Files): Likewise.
21785         * modules/mknod-tests (Files): Likewise.
21786         * modules/nanosleep-tests (Files): Likewise.
21787         * modules/nl_langinfo-tests (Files): Likewise.
21788         * modules/obstack-printf-tests (Files): Likewise.
21789         * modules/open-tests (Files): Likewise.
21790         * modules/openat-tests (Files): Likewise.
21791         * modules/perror-tests (Files): Likewise.
21792         * modules/pipe2-tests (Files): Likewise.
21793         * modules/poll-tests (Files): Likewise.
21794         * modules/popen-tests (Files): Likewise.
21795         * modules/posix_spawn-tests (Files): Likewise.
21796         * modules/posix_spawnp-tests (Files): Likewise.
21797         * modules/pread-tests (Files): Likewise.
21798         * modules/printf-posix-tests (Files): Likewise.
21799         * modules/pty-tests (Files): Likewise.
21800         * modules/random_r-tests (Files): Likewise.
21801         * modules/rawmemchr-tests (Files): Likewise.
21802         * modules/readlink-tests (Files): Likewise.
21803         * modules/remove-tests (Files): Likewise.
21804         * modules/rename-tests (Files): Likewise.
21805         * modules/renameat-tests (Files): Likewise.
21806         * modules/rmdir-tests (Files): Likewise.
21807         * modules/round-tests (Files): Likewise.
21808         * modules/roundf-tests (Files): Likewise.
21809         * modules/roundl-tests (Files): Likewise.
21810         * modules/select-tests (Files): Likewise.
21811         * modules/setenv-tests (Files): Likewise.
21812         * modules/sigaction-tests (Files): Likewise.
21813         * modules/sleep-tests (Files): Likewise.
21814         * modules/snprintf-posix-tests (Files): Likewise.
21815         * modules/snprintf-tests (Files): Likewise.
21816         * modules/sprintf-posix-tests (Files): Likewise.
21817         * modules/stat-tests (Files): Likewise.
21818         * modules/strcasestr-tests (Files): Likewise.
21819         * modules/strchrnul-tests (Files): Likewise.
21820         * modules/strerror-tests (Files): Likewise.
21821         * modules/strsignal-tests (Files): Likewise.
21822         * modules/strstr-tests (Files): Likewise.
21823         * modules/strtod-tests (Files): Likewise.
21824         * modules/strverscmp-tests (Files): Likewise.
21825         * modules/symlink-tests (Files): Likewise.
21826         * modules/symlinkat-tests (Files): Likewise.
21827         * modules/times-tests (Files): Likewise.
21828         * modules/trunc-tests (Files): Likewise.
21829         * modules/truncf-tests (Files): Likewise.
21830         * modules/truncl-tests (Files): Likewise.
21831         * modules/tsearch-tests (Files): Likewise.
21832         * modules/uname-tests (Files): Likewise.
21833         * modules/unlink-tests (Files): Likewise.
21834         * modules/unsetenv-tests (Files): Likewise.
21835         * modules/usleep-tests (Files): Likewise.
21836         * modules/utimensat-tests (Files): Likewise.
21837         * modules/vasprintf-tests (Files): Likewise.
21838         * modules/vdprintf-posix-tests (Files): Likewise.
21839         * modules/vfprintf-posix-tests (Files): Likewise.
21840         * modules/vprintf-posix-tests (Files): Likewise.
21841         * modules/vsnprintf-posix-tests (Files): Likewise.
21842         * modules/vsnprintf-tests (Files): Likewise.
21843         * modules/vsprintf-posix-tests (Files): Likewise.
21844         * modules/wcrtomb-tests (Files): Likewise.
21845         * modules/wcsnrtombs-tests (Files): Likewise.
21846         * modules/wcsrtombs-tests (Files): Likewise.
21847         * modules/wcwidth-tests (Files): Likewise.
21848         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
21849         * tests/test-isinf.c (isinf): Likewise.
21850         * tests/test-isnan.c (isnan): Likewise.
21851         * tests/test-signbit.c (signbit): Likewise.
21852         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
21853         declaration, either as macro or with correct signature.
21854         (select): Ensure function under test is declared with correct
21855         signature in correct header.
21856         * tests/test-atexit.c (atexit): Likewise.
21857         * tests/test-btowc.c (btowc): Likewise.
21858         * tests/test-canonicalize-lgpl.c (realpath)
21859         (canonicalize_file_name): Likewise.
21860         * tests/test-ceilf1.c (ceilf): Likewise.
21861         * tests/test-ceill.c (ceill): Likewise.
21862         * tests/test-chown.c (chown): Likewise.
21863         * tests/test-dprintf-posix.c (dprintf): Likewise.
21864         * tests/test-dup2.c (dup2): Likewise.
21865         * tests/test-dup3.c (dup3): Likewise.
21866         * tests/test-duplocale.c (duplocale): Likewise.
21867         * tests/test-fchdir.c (fchdir): Likewise.
21868         * tests/test-fchownat.c (fchownat): Likewise.
21869         * tests/test-fcntl.c (fcntl): Likewise.
21870         * tests/test-fdopendir.c (fdopendir): Likewise.
21871         * tests/test-fflush.c (fflush): Likewise.
21872         * tests/test-flock.c (flock): Likewise.
21873         * tests/test-floorf1.c (floorf): Likewise.
21874         * tests/test-floorl.c (floorl): Likewise.
21875         * tests/test-fnmatch.c (fnmatch): Likewise.
21876         * tests/test-fopen.c (fopen): Likewise.
21877         * tests/test-fprintf-posix.c (fprintf): Likewise.
21878         * tests/test-freopen.c (freopen): Likewise.
21879         * tests/test-frexp.c (frexp): Likewise.
21880         * tests/test-frexpl.c (frexpl): Likewise.
21881         * tests/test-fseek.c (fseek): Likewise.
21882         * tests/test-fseeko.c (fseeko): Likewise.
21883         * tests/test-fstatat.c (fstatat): Likewise.
21884         * tests/test-fsync.c (fsync): Likewise.
21885         * tests/test-ftell.c (ftell): Likewise.
21886         * tests/test-ftello.c (ftello): Likewise.
21887         * tests/test-futimens.c (futimens): Likewise.
21888         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
21889         (gai_strerror): Likewise.
21890         * tests/test-getcwd.c (getcwd): Likewise.
21891         * tests/test-getdelim.c (getdelim): Likewise.
21892         * tests/test-getdtablesize.c (getdtablesize): Likewise.
21893         * tests/test-getgroups.c (getgroups): Likewise.
21894         * tests/test-gethostname.c (gethostname): Likewise.
21895         * tests/test-getline.c (getline): Likewise.
21896         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
21897         Likewise.
21898         * tests/test-gettimeofday.c (gettimeofday): Likewise.
21899         * tests/test-glob.c (glob, globfree): Likewise.
21900         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
21901         * tests/test-inet_ntop.c (inet_ntop): Likewise.
21902         * tests/test-inet_pton.c (inet_pton): Likewise.
21903         * tests/test-isblank.c (isblank): Likewise.
21904         * tests/test-lchown.c (lchown): Likewise.
21905         * tests/test-ldexpl.c (ldexpl): Likewise.
21906         * tests/test-link.c (link): Likewise.
21907         * tests/test-linkat.c (linkat): Likewise.
21908         * tests/test-lseek.c (lseek): Likewise.
21909         * tests/test-lstat.c (lstat): Likewise.
21910         * tests/test-mbrtowc.c (mbrtowc): Likewise.
21911         * tests/test-mbsinit.c (mbsinit): Likewise.
21912         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
21913         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
21914         * tests/test-memchr.c (memchr): Likewise.
21915         * tests/test-memcmp.c (memcmp): Likewise.
21916         * tests/test-memmem.c (memmem): Likewise.
21917         * tests/test-memrchr.c (memrchr): Likewise.
21918         * tests/test-mkdir.c (mkdir): Likewise.
21919         * tests/test-mkdirat.c (mkdirat): Likewise.
21920         * tests/test-mkfifo.c (mkfifo): Likewise.
21921         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
21922         * tests/test-mknod.c (mknod): Likewise.
21923         * tests/test-nanosleep.c (nanosleep): Likewise.
21924         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
21925         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
21926         Likewise.
21927         * tests/test-open.c (open): Likewise.
21928         * tests/test-openat.c (openat): Likewise.
21929         * tests/test-perror.c (perror): Likewise.
21930         * tests/test-pipe2.c (pipe2): Likewise.
21931         * tests/test-poll.c (poll): Likewise.
21932         * tests/test-popen.c (popen, pclose): Likewise.
21933         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
21934         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
21935         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
21936         (posix_spawn_file_actions_destroy)
21937         (posix_spawn_file_actions_addclose)
21938         (posix_spawn_file_actions_addopen)
21939         (posix_spawn_file_actions_adddup2): Likewise.
21940         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
21941         * tests/test-pread.c (pread): Likewise.
21942         * tests/test-printf-posix.c (printf): Likewise.
21943         * tests/test-pty.c (openpty, forkpty): Likewise.
21944         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
21945         (random_r): Likewise.
21946         * tests/test-rawmemchr.c (rawmemchr): Likewise.
21947         * tests/test-readlink.c (readlink): Likewise.
21948         * tests/test-remove.c (remove): Likewise.
21949         * tests/test-rename.c (rename): Likewise.
21950         * tests/test-renameat.c (renameat): Likewise.
21951         * tests/test-rmdir.c (rmdir): Likewise.
21952         * tests/test-round1.c (round): Likewise.
21953         * tests/test-roundf1.c (roundf): Likewise.
21954         * tests/test-roundl.c (roundl): Likewise.
21955         * tests/test-setenv.c (setenv): Likewise.
21956         * tests/test-sigaction.c (sigaction): Likewise.
21957         * tests/test-sleep.c (sleep): Likewise.
21958         * tests/test-snprintf.c (snprintf): Likewise.
21959         * tests/test-sprintf-posix.c (sprintf): Likewise.
21960         * tests/test-stat.c (stat): Likewise.
21961         * tests/test-stpncpy.c (stpncpy): Likewise.
21962         * tests/test-strcasestr.c (strcasestr): Likewise.
21963         * tests/test-strchrnul.c (strchrnul): Likewise.
21964         * tests/test-strerror.c (strerror): Likewise.
21965         * tests/test-strsignal.c (strsignal): Likewise.
21966         * tests/test-strstr.c (strstr): Likewise.
21967         * tests/test-strtod.c (strtod): Likewise.
21968         * tests/test-strverscmp.c (strverscmp): Likewise.
21969         * tests/test-symlink.c (symlink): Likewise.
21970         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
21971         * tests/test-times.c (times): Likewise.
21972         * tests/test-trunc1.c (trunc): Likewise.
21973         * tests/test-truncf1.c (truncf): Likewise.
21974         * tests/test-truncl.c (truncl): Likewise.
21975         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
21976         Likewise.
21977         * tests/test-uname.c (uname): Likewise.
21978         * tests/test-unlink.c (unlink): Likewise.
21979         * tests/test-unlinkat.c (unlinkat): Likewise.
21980         * tests/test-unsetenv.c (unsetenv): Likewise.
21981         * tests/test-usleep.c (usleep): Likewise.
21982         * tests/test-utimensat.c (utimensat): Likewise.
21983         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
21984         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
21985         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
21986         * tests/test-vprintf-posix.c (vprintf): Likewise.
21987         * tests/test-vsnprintf.c (vsnprintf): Likewise.
21988         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
21989         * tests/test-wcrtomb.c (wcrtomb): Likewise.
21990         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
21991         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
21992         * tests/test-wcwidth.c (wcwidth): Likewise.
21993
21994         build: pull in conditional headers during GNULIB_POSIXCHECK
21995         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
21996         definitions from any conditionally-included headers.
21997         * lib/stdlib.in.h (includes): Likewise.
21998         * lib/unistd.in.h (includes): Likewise.
21999
22000 2009-12-24  Bruno Haible  <bruno@clisp.org>
22001
22002         * tests/test-argv-iter.c: Include header file being tested immediately
22003         after config.h.
22004         * tests/test-base64.c: Likewise.
22005         * tests/test-flock.c: Likewise.
22006         * tests/test-fsync.c: Likewise.
22007         * tests/test-getdate.c: Likewise.
22008         * tests/test-getndelim2.c: Likewise.
22009         * tests/test-isfinite.c: Likewise.
22010         * tests/test-isinf.c: Likewise.
22011         * tests/test-strerror.c: Likewise.
22012         * tests/test-strsignal.c: Likewise.
22013
22014 2009-12-23  Eric Blake  <ebb9@byu.net>
22015
22016         unistd: work around cygwin bug
22017         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
22018         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
22019         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
22020
22021 2009-12-23  Bruno Haible  <bruno@clisp.org>
22022
22023         localename: More tests.
22024         * tests/test-localename.c (SIZEOF): New macro.
22025         (categories): New variable.
22026         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
22027         test_locale_name_default): Add test w.r.t. thread locale.
22028         (test_locale_name_thread): New function.
22029         (main): Invoke it.
22030
22031         localename: Make aware of thread locale.
22032         * lib/localename.h (gl_locale_name_thread): New declaration.
22033         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
22034         behaviour with respect to thread locale.
22035         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
22036         <langinfo.h>, glthread/lock.h.
22037         (SIZE_BITS): New macro.
22038         (string_hash): New function.
22039         (struct hash_node): New type.
22040         (HASH_TABLE_SIZE): New macro.
22041         (struniq_hash_table, struniq_lock): New variables.
22042         (struniq): New function.
22043         (gl_locale_name_thread): New function.
22044         (gl_locale_name): Invoke it.
22045         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
22046         * modules/localename (Depends-on): Add lock.
22047         Reported by Mike Gran <spk121@yahoo.com>.
22048
22049 2009-12-23  Eric Blake  <ebb9@byu.net>
22050
22051         va-args: new module
22052         * modules/va-args: New file.
22053         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
22054         * MODULES.html.sh (Core language properties): Mention it.
22055
22056         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
22057         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
22058         named alias for __attribute__((__unused__)).
22059         * lib/chown.c: Update client.
22060         * lib/fchmodat.c: Likewise.
22061         * lib/fts.c: Likewise.
22062         * lib/getdate.y: Likewise.
22063         * lib/getgroups.c: Likewise.
22064         * lib/getopt.c: Likewise.
22065         * lib/getugroups.c: Likewise.
22066         * lib/mkdir.c: Likewise.
22067         * lib/mkfifo.c: Likewise.
22068         * lib/mkfifoat.c: Likewise.
22069         * lib/mknod.c: Likewise.
22070         * lib/mknodat.c: Likewise.
22071         * lib/readlink.c: Likewise.
22072         * lib/se-context.in.h: Likewise.
22073         * lib/se-selinux.in.h: Likewise.
22074         * lib/sockets.c: Likewise.
22075         * lib/symlink.c: Likewise.
22076         * lib/symlinkat.c: Likewise.
22077         * lib/unicodeio.c: Likewise.
22078         * lib/unistr.h: Likewise.
22079         * tests/test-areadlink.c: Likewise.
22080         * tests/test-areadlinkat.c: Likewise.
22081         * tests/test-filenamecat.c: Likewise.
22082         * tests/test-fseeko.c: Likewise.
22083         * tests/test-ftello.c: Likewise.
22084         * tests/test-getdate.c: Likewise.
22085         * tests/test-getgroups.c: Likewise.
22086         * tests/test-gethostname.c: Likewise.
22087         * tests/test-quotearg.c: Likewise.
22088         * tests/test-version-etc.c: Likewise.
22089         * tests/test-xalloc-die.c: Likewise.
22090         * tests/test-xfprintf-posix.c: Likewise.
22091         * tests/test-xprintf-posix.c: Likewise.
22092         * tests/test-xvasprintf.c: Likewise.
22093
22094         tests: avoid compiler warnings
22095         * tests/test-fcntl.c (main): Delete unused parameters.
22096         * tests/test-freopen-safer.c (main): Likewise.
22097         * tests/test-xalloc-die.c (main): Mark unused parameters.
22098         * tests/test-fseeko.c (main): Likewise.
22099         * tests/test-ftello.c (main): Likewise.
22100         * tests/test-nanosleep.c (main): Avoid declaration warning.
22101         * tests/test-sleep.c (main): Likewise.
22102         * tests/test-unsetenv.c (main): Silence warning about string
22103         literal.
22104         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
22105
22106 2009-12-23  Bruno Haible  <bruno@clisp.org>
22107
22108         * tests/test-localename.c (test_locale_name): New function, extracted
22109         from main. Also test mixed situations.
22110         (test_locale_name_posix, test_locale_name_environ,
22111         test_locale_name_default): New functions.
22112         (main): Invoke them all.
22113         * modules/localename-tests (configure.ac): Test for newlocale.
22114
22115 2009-12-23  Bruno Haible  <bruno@clisp.org>
22116
22117         unistd: Ensure getcwd gets declared before being overridden.
22118         * lib/unistd.in.h: Conditionally include <io.h>.
22119
22120 2009-12-22  Bruno Haible  <bruno@clisp.org>
22121
22122         wchar: Diagnose broken combination of glibc and gcc versions and flags.
22123         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
22124         (gl_WCHAR_H): Invoke it.
22125         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
22126         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
22127         Reported by Karl Berry <karl@freefriends.org>.
22128
22129 2009-12-22  Eric Blake  <ebb9@byu.net>
22130
22131         math, unistd: avoid redundant includes
22132         * lib/math.in.h (isnan): No need to re-include <math.h>.
22133         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
22134
22135         getsubopt: work around cygwin bug
22136         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
22137         avoid conflicting with system getsubopt.
22138         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
22139         bug.
22140
22141         getopt: synchronize from glibc
22142         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
22143         parameter order.  Adjust all callers.
22144         (_getopt_internal_r, main): Adjust quoting in error messages.
22145         Drop considerations for outdated POSIX 1003.2 error message.
22146         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
22147         callers.
22148         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
22149
22150         test-getopt: test stderr behavior
22151         * modules/getopt-posix-tests (Depends-on): Add dup2.
22152         * tests/test-getopt.c (ASSERT): Avoid stderr.
22153         (main): Move stderr to a temporary file.
22154         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
22155         Instead, add parameter to inform caller if output occurred.
22156         (test_getopt): Adjust all existing tests to expect silence, and
22157         add new tests of leading ":".
22158         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
22159         glibc shortcomings with leading "-:" or "+:" in optstring.
22160         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
22161         Likewise.
22162         * doc/posix-functions/getopt.texi (getopt): Likewise.
22163
22164         test-getopt: enhance test
22165         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
22166         supports optind=0.
22167         * tests/test-getopt.c (OPTIND_MIN): Move...
22168         * tests/test-getopt.h (OPTIND_MIN): ...here.
22169         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
22170         Require that optind=0 works, since modern BSD supports it in
22171         addition to optreset, and since coreutils expects it.
22172         (test_getopt_long_only): New test.
22173         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
22174         glibc shortcomings with 'W;', and enforcement of optind=0.
22175         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
22176         Likewise.
22177
22178 2009-12-21  Bruno Haible  <bruno@clisp.org>
22179
22180         localename: Improvements for MacOS X and Cygwin.
22181         * lib/localename.h (gl_locale_name_environ): New declaration.
22182         * lib/localename.c (gl_locale_name_environ): New function, extracted from
22183         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
22184         (gl_locale_name_posix): Invoke it.
22185         (gl_locale_name_default): Add comments. Use Windows native API also on
22186         Cygwin.
22187
22188 2009-12-21  Bruno Haible  <bruno@clisp.org>
22189
22190         Update list of Win32 locale ids.
22191         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
22192         (LANG_SAMI): Renamed from LANG_SAAMI.
22193         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
22194         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
22195         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
22196         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
22197         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
22198         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
22199         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
22200         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
22201         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
22202         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
22203         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
22204         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
22205         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
22206         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
22207         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
22208         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
22209         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
22210         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
22211         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
22212         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
22213         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
22214         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
22215         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
22216         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
22217         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
22218         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
22219         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
22220         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
22221         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
22222         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
22223         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
22224         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
22225         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
22226         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
22227         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
22228         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
22229         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
22230         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
22231         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
22232         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
22233         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
22234         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
22235         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
22236         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
22237         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
22238         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
22239         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
22240         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
22241         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
22242         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
22243         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
22244         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
22245         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
22246         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
22247         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
22248         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
22249         Add more languages and countries for Sami, Sorbian. Add more countries
22250         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
22251         for Pashto. Change country for Syriac, Tswana.
22252
22253 2009-12-21  Eric Blake  <ebb9@byu.net>
22254
22255         test-utimens: avoid spurious failure
22256         * tests/test-chown.h (nap): Factor...
22257         * tests/nap.h: ...into new file.
22258         * tests/test-lchown.h (nap): Avoid duplication.
22259         * tests/test-utimens-common.h (nap): Use shared implementation,
22260         necessary on file systems with 1-second resolution.
22261         * modules/chown-tests (Files): Include new file.
22262         * modules/fdutimensat-tests (Files): Likewise.
22263         * modules/futimens-tests (Files): Likewise.
22264         * modules/lchown-tests (Files): Likewise.
22265         * modules/openat-tests (Files): Likewise.
22266         * modules/utimens-tests (Files): Likewise.
22267         * modules/utimensat-tests (Files): Likewise.
22268
22269 2009-12-19  Eric Blake  <ebb9@byu.net>
22270
22271         futimens, utimensat: work around Linux bug
22272         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
22273         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
22274         * lib/utimensat.c (rpl_utimensat): Work around it.
22275         * lib/futimens.c (rpl_futimens): Adjust comment.
22276
22277         utimens: work around Linux ctime bug
22278         * lib/utimens.c (detect_ctime_bug): New helper function.
22279         (update_timespec): Differentiate between workaround needed for
22280         this bug vs. what is needed for systems that lack utimensat.
22281         (fdutimens, lutimens): Work around bug.
22282
22283         utimens: check for ctime update
22284         * tests/test-utimens-common.h (check_ctime): Define.
22285         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
22286         * tests/test-futimens.h (test_futimens): Likewise.
22287         * tests/test-lutimens.h (test_lutimens): Likewise.
22288         * doc/posix-functions/futimens.texi (futimens): Document the bug.
22289         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
22290
22291 2009-12-19  Bruno Haible  <bruno@clisp.org>
22292
22293         dprintf-posix: Check against memory leak fixed on 2009-12-15.
22294         * tests/test-dprintf-posix2.sh: New file.
22295         * tests/test-dprintf-posix2.c: New file.
22296         * modules/dprintf-posix-tests (Files): Add them.
22297         (configure.ac): Check for getrlimit and setrlimit.
22298         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
22299
22300 2009-12-19  Bruno Haible  <bruno@clisp.org>
22301
22302         fprintf-posix: Check against memory leak fixed on 2009-12-15.
22303         * tests/test-fprintf-posix3.sh: New file.
22304         * tests/test-fprintf-posix3.c: New file.
22305         * modules/fprintf-posix-tests (Files): Add them.
22306         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
22307
22308 2009-12-19  Eric Blake  <ebb9@byu.net>
22309
22310         dirfd: fix prototype
22311         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
22312         * lib/dirfd.c (dirfd): Likewise.
22313
22314         canonicalize: reduce memory usage
22315         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
22316         allocation to size.
22317         Reported by Solar Designer <solar@openwall.com>.
22318
22319 2009-12-19  Bruno Haible  <bruno@clisp.org>
22320
22321         New module attribute 'Applicability'.
22322         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
22323         * gnulib-tool: New option --extract-applicability.
22324         (func_usage): Document it.
22325         (sed_extract_prog): Recognize it.
22326         (func_get_applicability): New function.
22327         (func_import): Generalize handling of 'link-warning' module.
22328         * modules/link-warning (Applicability): New section.
22329         * modules/arg-nonnull (Applicability): New section.
22330         Repoted by Simon Josefsson <simon@josefsson.org>.
22331
22332 2009-12-19  Bruno Haible  <bruno@clisp.org>
22333
22334         fflush: tweak
22335         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
22336         * lib/fseeko.c (rpl_fseeko): Likewise.
22337
22338 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
22339
22340         * lib/gl_list.h: Fix typo in comment.
22341
22342 2009-12-16  Eric Blake  <ebb9@byu.net>
22343
22344         fcntl: use to simplify other modules
22345         * modules/cloexec (Depends-on): Add fcntl.
22346         * modules/fchdir (Depends-on): Likewise.
22347         * modules/fd-safer-flag (Depends-on): Likewise.
22348         * modules/unistd-safer (Depends-on): Likewise.
22349         * modules/dup3 (configure.ac): Set module indicator.
22350         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
22351         missing.
22352         * lib/fchdir.c (_gl_register_dup): Fix comment.
22353         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
22354         * lib/dup-safer.c (dup_safer): Likewise.
22355         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
22356         * lib/dup3.c (dup3): Likewise.
22357         * tests/test-fchdir.c (main): Enhance test.
22358         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
22359
22360         fcntl: port portions of fcntl to mingw
22361         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
22362         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
22363         replacement for mingw.
22364         * modules/fcntl (Description): Update.
22365         (Depends-on): Add dup2.
22366         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
22367         * modules/fcntl-h (Makefile.am): Substitute it.
22368         * lib/fcntl.in.h (fcntl): Update declaration.
22369         (F_DUPFD, F_GETFD): New macros, when needed.
22370         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
22371         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
22372         * tests/test-fcntl.c (check_flags, main): Enhance test for items
22373         we now guarantee.
22374
22375         fcntl: work around cygwin bug in F_DUPFD
22376         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
22377         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
22378         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
22379         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
22380         * doc/posix-functions/fcntl.texi (fcntl): Document it.
22381
22382         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
22383         * modules/fcntl (Files): List new files.
22384         (configure.ac): Run a test.
22385         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
22386         * lib/fcntl.c (rpl_fcntl): Likewise.
22387         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
22388         (gl_FCNTL_H): Always replace fcntl.h.
22389         * modules/fcntl-h (Makefile.am): Substitute witnesses.
22390         * lib/fcntl.in.h (fcntl): Declare replacement.
22391         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
22392         needed, plus a witness.
22393         * doc/posix-functions/fcntl.texi (fcntl): Document this.
22394         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
22395         * tests/test-fcntl.c: New file.
22396         * modules/fcntl-tests: Likewise.
22397
22398         binary-io: avoid potential compilation warning
22399         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
22400         directives.
22401
22402         fflush: avoid compilation error on NetBSD
22403         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
22404         between off_t and fpos_t, since the latter is sometimes a struct.
22405         * lib/fseeko.c (rpl_fseeko): Likewise.
22406         Reported by Alexander Nasonov <alnsn@yandex.ru>.
22407
22408 2009-12-15  Eric Blake  <ebb9@byu.net>
22409
22410         fcntl-h, stdio, sys_ioctl: fix declarations
22411         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
22412         function must not take arguments.
22413         * lib/sys_ioctl.in.h (ioctl): Likewise.
22414         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
22415         (open): Add a link warning.
22416
22417 2009-12-15  Jim Meyering  <meyering@redhat.com>
22418
22419         areadlink, areadlink-with-size: relax license to LGPLv2+
22420         * modules/areadlink (License): Relax to LGPLv2+.
22421         * modules/areadlink-with-size (License): Likewise.
22422
22423 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
22424             Bruno Haible  <bruno@clisp.org>
22425
22426         *printf: Fix memory leak.
22427         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
22428         * lib/vfprintf.c (vfprintf): Likewise.
22429         * lib/dprintf.c (dprintf): Likewise.
22430         * lib/vdprintf.c (vdprintf): Likewise.
22431
22432 2009-12-14  Eric Blake  <ebb9@byu.net>
22433
22434         accept4: adjust module dependencies
22435         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
22436
22437         utimens: one more try at avoiding compiler warning
22438         * lib/utimens.c (lutimens): Lower scope of result.
22439
22440 2009-12-13  Bruno Haible  <bruno@clisp.org>
22441
22442         Move the malloc checking from module 'list' to new module 'xlist'.
22443         * modules/xlist: New file.
22444         * lib/gl_xlist.h: New file.
22445         * lib/gl_xlist.c: New file.
22446         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
22447         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
22448         gl_list_add_last, gl_list_add_before, gl_list_add_after,
22449         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
22450         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
22451         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
22452         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
22453         gl_sortedlist_nx_add): New declarations.
22454         (struct gl_list_implementation): Rename and change methods accordingly.
22455         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
22456         (gl_list_nx_create): Renamed from gl_list_create.
22457         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
22458         (gl_list_nx_set_at): Renamed from gl_list_set_at.
22459         (gl_list_nx_add_first): Renamed from gl_list_add_first.
22460         (gl_list_nx_add_last): Renamed from gl_list_add_last.
22461         (gl_list_nx_add_before): Renamed from gl_list_add_before.
22462         (gl_list_nx_add_after): Renamed from gl_list_add_after.
22463         (gl_list_nx_add_at): Renamed from gl_list_add_at.
22464         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
22465         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
22466         gl_list_create_empty.
22467         (gl_list_nx_create): Renamed from gl_list_create.
22468         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
22469         (gl_list_nx_set_at): Renamed from gl_list_set_at.
22470         (gl_list_nx_add_first): Renamed from gl_list_add_first.
22471         (gl_list_nx_add_last): Renamed from gl_list_add_last.
22472         (gl_list_nx_add_before): Renamed from gl_list_add_before.
22473         (gl_list_nx_add_after): Renamed from gl_list_add_after.
22474         (gl_list_nx_add_at): Renamed from gl_list_add_at.
22475         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
22476         * lib/gl_array_list.c: Don't include xalloc.h.
22477         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
22478         NULL upon out-of-memory.
22479         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
22480         out-of-memory.
22481         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
22482         Change return type to 'int'.
22483         (gl_array_nx_set_at): Renamed from gl_array_set_at.
22484         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
22485         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
22486         upon out-of-memory.
22487         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
22488         upon out-of-memory.
22489         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
22490         upon out-of-memory.
22491         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
22492         upon out-of-memory.
22493         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
22494         out-of-memory.
22495         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
22496         Update.
22497         (gl_array_list_implementation): Update.
22498         * lib/gl_carray_list.c: Don't include xalloc.h.
22499         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
22500         Return NULL upon out-of-memory.
22501         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
22502         out-of-memory.
22503         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
22504         Change return type to 'int'.
22505         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
22506         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
22507         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
22508         upon out-of-memory.
22509         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
22510         upon out-of-memory.
22511         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
22512         out-of-memory.
22513         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
22514         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
22515         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
22516         Update.
22517         (gl_carray_list_implementation): Update.
22518         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
22519         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
22520         gl_linked_create_empty. Return NULL upon out-of-memory.
22521         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
22522         out-of-memory.
22523         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
22524         Change return type to 'int'. Return -1 upon out-of-memory.
22525         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
22526         out-of-memory.
22527         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
22528         upon out-of-memory.
22529         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
22530         upon out-of-memory.
22531         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
22532         NULL upon out-of-memory.
22533         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
22534         upon out-of-memory.
22535         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
22536         out-of-memory.
22537         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
22538         Update.
22539         * lib/gl_linked_list.c: Don't include xalloc.h.
22540         (gl_linked_list_implementation): Update.
22541         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
22542         (add_to_bucket): Change return type to 'int'.
22543         (gl_linkedhash_list_implementation): Update.
22544         * lib/gl_anytree_list1.h (free_subtree): New function.
22545         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
22546         gl_tree_create_empty. Return NULL upon out-of-memory.
22547         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
22548         Change return type to 'int'. Return -1 upon out-of-memory.
22549         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
22550         out-of-memory.
22551         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
22552         (gl_tree_remove_node): New function, moved here from
22553         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
22554         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
22555         Update.
22556         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
22557         malloc, not xmalloc. Return NULL upon out-of-memory.
22558         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
22559         out-of-memory.
22560         (gl_tree_remove_node_from_tree): New function, extracted from
22561         gl_tree_remove_node.
22562         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
22563         upon out-of-memory.
22564         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
22565         out-of-memory.
22566         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
22567         upon out-of-memory.
22568         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
22569         upon out-of-memory.
22570         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
22571         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
22572         not xmalloc. Return NULL upon out-of-memory.
22573         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
22574         out-of-memory.
22575         (gl_tree_remove_node_from_tree): New function, extracted from
22576         gl_tree_remove_node.
22577         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
22578         upon out-of-memory.
22579         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
22580         out-of-memory.
22581         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
22582         upon out-of-memory.
22583         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
22584         upon out-of-memory.
22585         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
22586         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
22587         gl_anytree_list1.h before gl_anyavltree_list2.h.
22588         (gl_avltree_list_implementation): Update.
22589         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
22590         gl_anytree_list1.h before gl_anyavltree_list2.h.
22591         (gl_rbtree_list_implementation): Update.
22592         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
22593         Change return type to 'int'. Return -1 upon out-of-memory. Use
22594         __builtin_expect.
22595         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
22596         (gl_avltreehash_list_implementation): Update.
22597         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
22598         (gl_rbtreehash_list_implementation): Update.
22599         * modules/array-list (Depends-on): Remove xalloc.
22600         * modules/carray-list (Depends-on): Likewise.
22601         * modules/linked-list (Depends-on): Likewise.
22602         * modules/linkedhash-list (Depends-on): Likewise.
22603         * modules/avltree-list (Depends-on): Likewise.
22604         * modules/rbtree-list (Depends-on): Likewise.
22605         * modules/avltreehash-list (Depends-on): Likewise.
22606         * modules/rbtreehash-list (Depends-on): Likewise.
22607
22608         * modules/xsublist: New file.
22609         * lib/gl_xsublist.h: New file.
22610         * lib/gl_xsublist.c: New file.
22611         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
22612         (gl_sublist_nx_create): New declaration.
22613         * lib/gl_sublist.c: Don't include xalloc.h.
22614         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
22615         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
22616         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
22617         Change return type to 'int'. Return -1 upon out-of-memory.
22618         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
22619         upon out-of-memory.
22620         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
22621         NULL upon out-of-memory.
22622         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
22623         upon out-of-memory.
22624         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
22625         NULL upon out-of-memory.
22626         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
22627         NULL upon out-of-memory.
22628         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
22629         upon out-of-memory.
22630         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
22631         (gl_sublist_list_implementation): Update.
22632         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
22633         upon out-of-memory.
22634         * modules/sublist (Depends-on): Remove xalloc.
22635
22636         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
22637         * tests/test-carray_list.c: Likewise.
22638         * tests/test-linked_list.c: Likewise.
22639         * tests/test-linkedhash_list.c: Likewise.
22640         * tests/test-avltree_list.c: Likewise.
22641         * tests/test-rbtree_list.c: Likewise.
22642         * tests/test-avltreehash_list.c: Likewise.
22643         * tests/test-rbtreehash_list.c: Likewise.
22644         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
22645         * modules/carray-list-tests (Makefile.am): Likewise.
22646         * modules/linked-list-tests (Makefile.am): Likewise.
22647         * modules/linkedhash-list-tests (Makefile.am): Likewise.
22648         * modules/avltree-list-tests (Makefile.am): Likewise.
22649         * modules/rbtree-list-tests (Makefile.am): Likewise.
22650         * modules/avltreehash-list-tests (Makefile.am): Likewise.
22651         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
22652
22653         * NEWS: Mention the changes.
22654
22655         * lib/clean-temp.c: Include gl_xlist.h.
22656         * modules/clean-temp (Depends-on): Add xlist.
22657
22658         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
22659         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
22660
22661         * tests/test-array_oset.c: Include gl_xlist.h.
22662         * modules/array-oset-tests (Depends-on): Add xlist.
22663
22664         Reported by José E. Marchesi <jemarch@gnu.org>.
22665
22666 2009-12-13  Bruno Haible  <bruno@clisp.org>
22667
22668         Move the malloc checking from module 'oset' to new module 'xoset'.
22669         * modules/xoset: New file.
22670         * lib/gl_xoset.h: New file.
22671         * lib/gl_xoset.c: New file.
22672         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
22673         declarations.
22674         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
22675         (struct gl_oset_implementation): Rename and change methods accordingly.
22676         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
22677         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
22678         'int'. Mark as __warn_unused_result__.
22679         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
22680         gl_oset_create_empty.
22681         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
22682         'int'.
22683         * lib/gl_array_oset.c: Don't include xalloc.h.
22684         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
22685         malloc, not xmalloc.
22686         (grow): Change return type to 'int'. Don't call xalloc_die.
22687         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
22688         to 'int'.
22689         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
22690         'int'.
22691         (gl_array_oset_implementation): Update.
22692         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
22693         gl_tree_create_empty.
22694         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
22695         'int'.
22696         * lib/gl_avltree_oset.c: Don't include xalloc.h.
22697         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
22698         xmalloc.
22699         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
22700         not xmalloc.
22701         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
22702         xmalloc.
22703         (gl_avltree_oset_implementation): Update.
22704         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
22705         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
22706         xmalloc.
22707         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
22708         not xmalloc.
22709         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
22710         xmalloc.
22711         (gl_rbtree_oset_implementation): Update.
22712         * modules/array-oset (Depends-on): Remove xalloc.
22713         * modules/avltree-oset (Depends-on): Likewise.
22714         * modules/rbtree-oset (Depends-on): Likewise.
22715         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
22716         * tests/test-avltree_oset.c: Likewise.
22717         * tests/test-rbtree_oset.c: Likewise.
22718         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
22719         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
22720         * modules/rbtree-oset-tests (Makefile.am): Likewise.
22721         * NEWS: Mention the change.
22722
22723 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
22724
22725         maint.mk: allow a project to override release-prep commands
22726         * top/maint.mk (alpha, beta, stable): Move release-preparatory
22727         commands into a new rule.
22728         (release-prep): New rule.
22729         (release-prep-hook): New overridable variable.
22730
22731 2009-12-13  Bruno Haible  <bruno@clisp.org>
22732
22733         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
22734
22735 2009-12-13  Jim Meyering  <meyering@redhat.com>
22736
22737         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
22738         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
22739
22740 2009-12-12  Bruno Haible  <bruno@clisp.org>
22741
22742         duplocale: Tweak.
22743         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
22744
22745 2009-12-12  Karl Berry  <karl@gnu.org>
22746
22747         * config/srclist.txt (strtoll.c): tab changes, no more sync.
22748
22749 2009-12-12  Bruno Haible  <bruno@clisp.org>
22750
22751         * m4/po.m4: Undo incorrect untabification.
22752
22753 2009-12-12  Bruno Haible  <bruno@clisp.org>
22754
22755         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
22756         * modules/c-strtod (Depends-on): Add locale.
22757         * modules/c-strtold (Depends-on): Likewise.
22758
22759 2009-12-12  Bruno Haible  <bruno@clisp.org>
22760
22761         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
22762
22763 2009-12-11  Eric Blake  <ebb9@byu.net>
22764
22765         setenv: relax requirement in light of POSIX ruling
22766         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
22767         not NULL.
22768         * tests/test-setenv.c (main): Relax test.
22769         * tests/test-unsetenv.c (main): Likewise.
22770         * doc/posix-functions/setenv.texi (setenv): Document this.
22771         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
22772
22773 2009-12-11  Bruno Haible  <bruno@clisp.org>
22774
22775         New module 'fd-safer-flag'.
22776         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
22777         * lib/dup-safer.c (dup_safer_flag): Remove function.
22778         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
22779         * lib/fd-safer.c (fd_safer_flag): Remove function.
22780         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
22781         * modules/cloexec (configure.ac): Drop indicator macro.
22782         * modules/fd-safer-flag: New file.
22783         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
22784         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
22785         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
22786
22787 2009-12-11  Bruno Haible  <bruno@clisp.org>
22788
22789         Tests for module 'nl_langinfo'.
22790         * modules/nl_langinfo-tests: New file.
22791         * tests/test-nl_langinfo.sh: New file.
22792         * tests/test-nl_langinfo.c: New file.
22793
22794         New module 'nl_langinfo'.
22795         * lib/nl_langinfo.c: New file.
22796         * m4/nl_langinfo.m4: New file.
22797         * modules/nl_langinfo: New file.
22798         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
22799
22800 2009-12-11  Bruno Haible  <bruno@clisp.org>
22801
22802         Tests for module 'langinfo'.
22803         * modules/langinfo-tests: New file.
22804         * tests/test-langinfo.c: New file.
22805
22806         New module 'langinfo'.
22807         * lib/langinfo.in.h: New file.
22808         * m4/langinfo_h.m4: New file.
22809         * modules/langinfo: New file.
22810         * doc/posix-headers/langinfo.texi: Mention the new module.
22811
22812 2009-12-11  Bruno Haible  <bruno@clisp.org>
22813
22814         * lib/config.charset: Untabify.
22815
22816 2009-12-11  Bruno Haible  <bruno@clisp.org>
22817
22818         * modules/unistd-safer (configure.ac): Drop indicator macro.
22819
22820 2009-12-11  Bruno Haible  <bruno@clisp.org>
22821
22822         Move pipe2-safer code to its own file.
22823         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
22824         * lib/pipe-safer.c (pipe2_safer): Remove function.
22825         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
22826         (Makefile.am): Add it to lib_SOURCES.
22827
22828 2009-12-10  Bruno Haible  <bruno@clisp.org>
22829
22830         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
22831
22832 2009-12-10  Bruno Haible  <bruno@clisp.org>
22833
22834         Declare which arguments expect non-NULL values, for GCC and clang.
22835         * build-aux/arg-nonnull.h: New file.
22836         * modules/arg-nonnull: New file.
22837         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
22838         (inet_ntop, inet_pton): Use it.
22839         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
22840         (closedir, dirfd, opendir, scandir, alphasort): Use it.
22841         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
22842         (open, openat): Use it.
22843         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
22844         (fnmatch): Use it.
22845         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
22846         (getopt, getopt_long, getopt_long_only): Use it.
22847         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
22848         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
22849         Use it.
22850         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
22851         (iconv_open): Use it.
22852         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
22853         (strtoimax, strtoumax): Use it.
22854         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
22855         (duplocale): Use it.
22856         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
22857         (frexp, frexpl): Use it.
22858         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
22859         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
22860         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
22861         (tsearch, tfind, tdelete, twalk): Use it.
22862         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
22863         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
22864         sigpending): Use it.
22865         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
22866         (posix_spawn, posix_spawnp, posix_spawnattr_init,
22867         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
22868         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
22869         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
22870         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
22871         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
22872         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
22873         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
22874         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
22875         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
22876         Use it.
22877         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
22878         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
22879         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
22880         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
22881         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
22882         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
22883         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
22884         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
22885         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
22886         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
22887         strtoull, unsetenv): Use it.
22888         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
22889         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
22890         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
22891         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
22892         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
22893         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
22894         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
22895         (strcasecmp, strncasecmp): Use it.
22896         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
22897         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
22898         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
22899         rpl_setsockopt): Use it.
22900         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
22901         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
22902         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
22903         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
22904         (gettimeofday): Use it.
22905         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
22906         (times): Use it.
22907         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
22908         (uname): Use it.
22909         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
22910         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
22911         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
22912         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
22913         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
22914         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
22915         unlinkat, write): Use it.
22916         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
22917         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
22918         * lib/argv-iter.h: Include arg-nonnull.h.
22919         (_ATTRIBUTE_NONNULL_): Remove macro.
22920         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
22921         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
22922         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
22923         optimization.
22924         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
22925         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
22926         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
22927         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
22928         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
22929         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
22930         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
22931         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
22932         * modules/arpa_inet (Depends-on): Add arg-nonnull.
22933         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
22934         * modules/dirent (Depends-on): Add arg-nonnull.
22935         (Makefile.am): Insert arg-nonnull.h into dirent.h.
22936         * modules/fcntl-h (Depends-on): Add arg-nonnull.
22937         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
22938         * modules/fnmatch (Depends-on): Add arg-nonnull.
22939         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
22940         * modules/getopt-posix (Depends-on): Add arg-nonnull.
22941         (Makefile.am): Insert arg-nonnull.h into getopt.h.
22942         * modules/glob (Depends-on): Add arg-nonnull.
22943         (Makefile.am): Insert arg-nonnull.h into glob.h.
22944         * modules/iconv_open (Depends-on): Add arg-nonnull.
22945         (Makefile.am): Insert arg-nonnull.h into iconv.h.
22946         * modules/inttypes (Depends-on): Add arg-nonnull.
22947         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
22948         * modules/locale (Depends-on): Add arg-nonnull.
22949         (Makefile.am): Insert arg-nonnull.h into locale.h.
22950         * modules/math (Depends-on): Add arg-nonnull.
22951         (Makefile.am): Insert arg-nonnull.h into math.h.
22952         * modules/netdb (Depends-on): Add arg-nonnull.
22953         (Makefile.am): Insert arg-nonnull.h into netdb.h.
22954         * modules/search (Depends-on): Add arg-nonnull.
22955         (Makefile.am): Insert arg-nonnull.h into search.h.
22956         * modules/signal (Depends-on): Add arg-nonnull.
22957         (Makefile.am): Insert arg-nonnull.h into signal.h.
22958         * modules/spawn (Depends-on): Add arg-nonnull.
22959         (Makefile.am): Insert arg-nonnull.h into spawn.h.
22960         * modules/stdio (Depends-on): Add arg-nonnull.
22961         (Makefile.am): Insert arg-nonnull.h into stdio.h.
22962         * modules/stdlib (Depends-on): Add arg-nonnull.
22963         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
22964         * modules/string (Depends-on): Add arg-nonnull.
22965         (Makefile.am): Insert arg-nonnull.h into string.h.
22966         * modules/strings (Depends-on): Add arg-nonnull.
22967         (Makefile.am): Insert arg-nonnull.h into strings.h.
22968         * modules/sys_socket (Depends-on): Add arg-nonnull.
22969         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
22970         * modules/sys_stat (Depends-on): Add arg-nonnull.
22971         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
22972         * modules/sys_time (Depends-on): Add arg-nonnull.
22973         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
22974         * modules/sys_times (Depends-on): Add arg-nonnull.
22975         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
22976         * modules/sys_utsname (Depends-on): Add arg-nonnull.
22977         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
22978         * modules/time (Depends-on): Add arg-nonnull.
22979         (Makefile.am): Insert arg-nonnull.h into time.h.
22980         * modules/unistd (Depends-on): Add arg-nonnull.
22981         (Makefile.am): Insert arg-nonnull.h into unistd.h.
22982         * modules/wchar (Depends-on): Add arg-nonnull.
22983         (Makefile.am): Insert arg-nonnull.h into wchar.h.
22984         * modules/argv-iter (Depends-on): Add arg-nonnull.
22985         * tests/test-canonicalize.c (null_ptr): New function.
22986         (main): Use it.
22987         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
22988         (main): Use it.
22989         * tests/test-memmem.c (null_ptr): New function.
22990         (main): Use it.
22991         Reported by Jim Meyering.
22992
22993 2009-12-10  Bruno Haible  <bruno@clisp.org>
22994
22995         Use spaces for indentation, not tabs.
22996         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
22997         * m4/*.m4: Untabify.
22998         * build-aux/*.h: Untabify.
22999         * tests/**/*.[hc]: Untabify.
23000         * README: New section "Indent with spaces, not TABs", based on
23001         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
23002         * NEWS: Mention the change.
23003
23004 2009-12-10  Bruno Haible  <bruno@clisp.org>
23005
23006         pty test: Fix link error.
23007         * modules/pty-tests (Makefile.am): Add the default LDADD value to
23008         test_pty_LDADD.
23009
23010 2009-12-07  Simon Josefsson  <simon@josefsson.org>
23011
23012         * modules/pty: New file.
23013         * modules/pty-tests: New file.
23014         * m4/pty.m4: New file.
23015         * tests/test-pty.c: New file.
23016         * doc/glibc-headers/pty.texi: Modified.
23017         * doc/glibc-functions/forkpty.texi: Modified.
23018         * doc/glibc-functions/openpty.texi: Modified.
23019
23020 2009-12-10  Bruno Haible  <bruno@clisp.org>
23021
23022         Avoid syntax error in C++ mode.
23023         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
23024
23025 2009-12-10  Bruno Haible  <bruno@clisp.org>
23026
23027         Use sed with option -e.
23028         * gnulib-tool (func_version, func_emit_copyright_notice,
23029         func_emit_initmacro_end, func_import, func_create_testdir): Pass
23030         option -e to sed.
23031         * modules/link-warning (Makefile.am): Likewise.
23032
23033 2009-12-10  Jim Meyering  <meyering@redhat.com>
23034
23035         mgetgroups: do not write bytes beyond end of malloc'd buffer
23036         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
23037         username, we call getgroups with a one-element-shorter buffer,
23038         but still told it the length was original, max_n_groups.
23039
23040 2009-12-09  Eric Blake  <ebb9@byu.net>
23041
23042         cloexec: relax license
23043         * modules/cloexec (Maintainer): Add myself.
23044         (License): Use LGPL, not GPL.
23045
23046         link-warning: optimize generation
23047         * modules/link-warning (Makefile.am): Reduce process usage.
23048
23049 2009-12-09  Bruno Haible  <bruno@clisp.org>
23050
23051         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
23052         workaround was added on 2009-11-17.
23053
23054 2009-12-09  Jim Meyering  <meyering@redhat.com>
23055             Bruno Haible  <bruno@clisp.org>
23056
23057         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
23058         * modules/link-warning (Makefile.am): Make the comment-removing sed
23059         command more robust in the face of bootstrap-prepended comment lines.
23060
23061 2009-12-09  Bruno Haible  <bruno@clisp.org>
23062
23063         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
23064         most one group.
23065
23066 2009-12-09  Simon Josefsson <simon@josefsson.org>
23067             Bruno Haible  <bruno@clisp.org>
23068
23069         * build-aux/link-warning.h: Add copyright notice.
23070         * modules/link-warning (Makefile.am): Generate link-warning.h from
23071         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
23072         * NEWS: Mention change in link-warning module.
23073         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
23074         * modules/dirent (Makefile.am): Add dependency to dirent.h.
23075         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
23076         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
23077         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
23078         * modules/math (Makefile.am): Add dependency to math.h.
23079         * modules/search (Makefile.am): Add dependency to search.h.
23080         * modules/signal (Makefile.am): Add dependency to signal.h.
23081         * modules/spawn (Makefile.am): Add dependency to spawn.h.
23082         * modules/stdio (Makefile.am): Add dependency to stdio.h.
23083         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
23084         * modules/string (Makefile.am): Add dependency to string.h.
23085         * modules/strings (Makefile.am): Add dependency to strings.h.
23086         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
23087         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
23088         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
23089         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
23090         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
23091         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
23092         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
23093         * modules/unistd (Makefile.am): Add dependency to unistd.h.
23094         * modules/wchar (Makefile.am): Add dependency to wchar.h.
23095
23096 2009-12-09  Bruno Haible  <bruno@clisp.org>
23097
23098         fchdir: Optimize away rpl_fstat when possible.
23099         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
23100         REPLACE_OPEN_DIRECTORY.
23101         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
23102
23103 2009-12-09  Bruno Haible  <bruno@clisp.org>
23104
23105         * lib/fchdir.c: Update comment.
23106
23107 2009-12-09  Bruno Haible  <bruno@clisp.org>
23108
23109         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
23110
23111 2009-12-08  Eric Blake  <ebb9@byu.net>
23112
23113         fchdir: avoid memory leak on re-registration.
23114         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
23115
23116 2009-12-08  Jim Meyering  <meyering@redhat.com>
23117
23118         init.sh: avoid Solaris 10 /bin/sh portability problem
23119         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
23120         sourced script:
23121           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
23122           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
23123           bar
23124         tests/init.sh relied on that, accepting a --set-path=DIR argument,
23125         and two tests used that idiom.
23126         * tests/init.sh: Update suggested usage comments.
23127         (path_prepend_): New function, to be used in place
23128         of the --src-path=DIR option.
23129         (setup_): Move PATH-prepending code into path_prepend_.
23130         * tests/test-pread.sh: Adapt to new usage.
23131         * tests/test-xalloc-die.sh: Likewise.
23132
23133 2009-12-08  Simon Josefsson  <simon@josefsson.org>
23134
23135         * doc/gnulib.texi (Glibc pty.h): Add.
23136         * doc/glibc-functions/forkpty.texi: Add.
23137         * doc/glibc-functions/openpty.texi: Add.
23138         Suggested by Bruno Haible.
23139
23140 2009-12-08  Eric Blake  <ebb9@byu.net>
23141
23142         fchdir: fix logic bugs
23143         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
23144         * tests/test-fchdir.c (main): Enhance test.
23145         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
23146         is in use.
23147
23148         dup2: fix logic bugs
23149         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
23150         REPLACE_DUP2 to decide when rpl_dup2 is needed.
23151         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
23152         exists.
23153         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
23154
23155 2009-12-07  Eric Blake  <ebb9@byu.net>
23156
23157         unlink: fix m4 detection
23158         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
23159
23160         unistd-safer: add unit test
23161         * modules/unistd-safer-tests: New file.
23162         * tests/test-dup-safer.c: Likewise.
23163         * tests/test-cloexec.c (setmode): Avoid compiler warning.
23164         * tests/test-dup2.c (setmode): Likewise.
23165         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
23166
23167         cloexec: preserve text vs. binary across dup_cloexec
23168         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
23169         mode.
23170         * modules/dup2-tests (Depends-on): Add binary-io.
23171         * modules/cloexec-tests (Depends-on): Likewise.
23172         * tests/test-dup2.c (setmode, is_mode): New helpers.
23173         (main): Add tests that translation mode is preserved.
23174         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
23175         Reported by Bruno Haible.
23176
23177         mgetgroups: reduce duplicate listings
23178         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
23179         resulting array.
23180         * tests/test-chown.h (test_chown): Simplify client.
23181         * tests/test-lchown.h (test_lchown): Likewise.
23182
23183 2009-12-06  Bruno Haible  <bruno@clisp.org>
23184
23185         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
23186         value.
23187
23188 2009-12-06  Bruno Haible  <bruno@clisp.org>
23189
23190         * lib/progname.c: Include stdio.h, stdlib.h.
23191         (set_program_name): Reject a NULL argument.
23192
23193 2009-12-05  Eric Blake  <ebb9@byu.net>
23194
23195         pipe2-safer: new module
23196         * modules/pipe2-safer: New file.
23197         * lib/unistd-safer.h (pipe2_safer): New prototype.
23198         * lib/unistd--.h (pipe2): New wrapper.
23199         * lib/pipe-safer.c (pipe2_safer): New function.
23200         * modules/pipe (Depends-on): Add pipe2-safer.
23201         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
23202
23203         stdlib-safer: preserve cloexec flag for mkostemp[s]
23204         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
23205         fd_safer_flag.
23206
23207         unistd-safer: allow preservation of cloexec status via flag
23208         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
23209         prototypes.
23210         * lib/dup-safer.c (dup_safer_flag): New function.
23211         * lib/fd-safer.c (fd_safer_flag): Likewise.
23212         * modules/cloexec (configure.ac): Set witness.
23213
23214         test-dup2: enhance test
23215         * modules/dup2-tests (Depends-on): Add cloexec.
23216         * tests/test-dup2.c (main): Enhance test.
23217
23218         cloexec: add dup_cloexec
23219         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
23220         header and comments.
23221         * lib/cloexec.c (set_cloexec_flag): Add comments.
23222         (dup_cloexec): New function, with mingw implementation borrowed
23223         from...
23224         * lib/w32spawn.h (dup_noinherit): ...here.
23225         * modules/execute (Depends-on): Add cloexec.
23226         * modules/pipe (Depends-on): Likewise.
23227         * modules/cloexec (Depends-on): Add dup2.
23228         * modules/cloexec-tests (Files): New file.
23229         * tests/test-cloexec.c: Likewise.
23230
23231         test-xalloc-die: fix test for mingw
23232         * modules/xalloc-die-tests (Files): Add tests/init.sh.
23233         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
23234         directory and .exe suffix off argv[0] output.
23235
23236         test-fseeko: fix test for mingw
23237         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
23238         than undefining fseek, so test will pass on mingw.
23239
23240 2009-12-05  Bruno Haible  <bruno@clisp.org>
23241
23242         * lib/progname.h (set_program_name): Clarify specification.
23243         * lib/progname.c (set_program_name): Likewise.
23244         Reported by Jim Meyering.
23245
23246 2009-12-05  Jim Meyering  <meyering@redhat.com>
23247
23248         maint.mk: backslash-escape parens in default regexp
23249         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
23250         backslash-escape the literal parentheses.
23251
23252         maint.mk: news-date-check: use grep -E
23253         * top/maint.mk (today): Define a Make variable, not a...
23254         (news-date-check): ...shell variable.
23255         (news-date-regexp): Use the Make variable.
23256         Use grep's -E option.  Change the failing diagnostic to mention
23257         the variable, $(news-date-regexp).
23258
23259 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
23260
23261         maintainer-makefile: allow customization of NEWS entry format
23262         * top/maint.mk (news-date-regexp): New overridable variable.
23263         (news-date-check): Use it.
23264
23265 2009-12-04  Eric Blake  <ebb9@byu.net>
23266
23267         mgetgroups: add xgetgroups, and avoid ENOSYS failures
23268         * lib/mgetgroups.h (xgetgroups): New prototype.
23269         * lib/mgetgroups.c (xgetgroups): New wrapper.
23270         (mgetgroups): Handle ENOSYS.
23271         * modules/mgetgroups (Depends-on): Add realloc.
23272         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
23273
23274         mgetgroups: avoid argument promotion issues with -1
23275         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
23276         for invalid gid_t.
23277         * tests/test-chown.h (getegid, test_chown): Likewise.
23278         * tests/test-lchown.h (getegid, test_lchown): Likewise.
23279
23280 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
23281
23282         exclude: Fix header file problems.
23283         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
23284
23285 2009-12-01  Jim Meyering  <meyering@redhat.com>
23286
23287         fts: fts_open: do not let an empty string cause immediate failure
23288         This is required in support of GNU rm, for which the command
23289         "rm A '' B" must process and remove both A and B, in spite of
23290         the empty string argument.
23291         * lib/fts.c (fts_open): Do not let the presence of an empty string
23292         cause fts_open to fail immediately.  Most fts-using tools must be
23293         able to process all arguments, in order, and can be expected to
23294         diagnose such arguments themselves.
23295
23296 2009-11-30  Eric Blake  <ebb9@byu.net>
23297
23298         utimens: fix compilation error
23299         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
23300         Declare variable at right scope.
23301
23302 2009-11-29  Jim Meyering  <meyering@redhat.com>
23303
23304         bootstrap: handle perl-5.11's changed --version output
23305         * build-aux/bootstrap (get_version): Handle perl separately,
23306         since perl-5.11's --version output is different.
23307
23308 2009-11-28  Jim Meyering  <meyering@redhat.com>
23309
23310         userspec: depend on the inttostr module, too
23311         * modules/userspec (Depends-on): Add inttostr.
23312
23313         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
23314         * lib/userspec.c (parse_with_separator): Do not accept a user ID
23315         number of MAXUID when it evaluates to (uid_t) -1.
23316         Likewise for group ID.  Reported by Matt McCutchen in
23317         <http://savannah.gnu.org/bugs/?28113>
23318
23319         userspec: reformat to use spaces, not TABs
23320         * lib/userspec.c: Expand TABs to spaces.
23321         Add Emacs' "indent-tabs-mode: nil" hint.
23322
23323 2009-11-27  Eric Blake  <ebb9@byu.net>
23324
23325         getopt-gnu: flush out another BSD bug
23326         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
23327         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
23328         flush out BSD bug.
23329         * tests/test-getopt.h (test_getopt): End lists with NULL.
23330         * tests/test-getopt_long.h (test_getopt_long): Likewise.
23331         (test_getopt_long_posix): Enhance test.
23332         * modules/getopt-posix-tests (Depends-on): Add stdbool.
23333         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
23334         getopt-gnu.
23335         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
23336         Likewise.
23337
23338 2009-11-27  Simon Josefsson  <simon@josefsson.org>
23339
23340         * modules/idpriv-droptemp-tests (Notice): Fix text.
23341
23342 2009-11-27  Jim Meyering  <meyering@redhat.com>
23343
23344         test-xalloc-die: avoid spurious failure due to libtool argv difference
23345         In a libtool-enabled project, this test would fail due to a difference
23346         in the emitted program name, e.g.,
23347         -test-xalloc-die: memory exhausted
23348         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
23349         Use program to avoid that.
23350         * modules/xalloc-die-tests (Depends-on): Add progname.
23351         * tests/test-xalloc-die.c: Include progname.h".
23352         (program_name): Remove decl.
23353         (main): Call set_program_name.
23354         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
23355
23356 2009-11-26  Richard Jones  <rjones@redhat.com>
23357
23358         w32sock: leave win32 error in place.
23359         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
23360
23361 2009-11-26  Eric Blake  <ebb9@byu.net>
23362
23363         init.sh: suggest to use skip_ and fail_ functions in comments
23364         * tests/init.sh: Add a sentence.
23365
23366 2009-11-25  Bruno Haible  <bruno@clisp.org>
23367
23368         init.sh: add documentation in comments
23369         * tests/init.sh: Add some developer and user documentation.
23370
23371 2009-11-26  Jim Meyering  <meyering@redhat.com>
23372
23373         init.sh: accommodate even those who specify bogus srcdir manually
23374         * tests/init.sh: Normally, srcdir is guaranteed by automake and
23375         configure-time tests to be sanitized, so that there is no need to
23376         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
23377         (with no double quotes) suffices.  However, since tests may be
23378         invoked manually, and since you may explicitly set srcdir to the
23379         name of a directory containing spaces, do quote its uses here.
23380         * tests/test-pread.sh: Likewise.
23381         Suggested by Bruno Haible.
23382
23383         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
23384         * tests/test-pread.sh: Write no data into the pipe, because
23385         test-pread actually reads none.  This avoids a diagnostic,
23386         "bash: echo: write error: Broken pipe", that arises in the unusual
23387         event something is ignoring SIGPIPE, and might be interpreted
23388         as some sort of failure.  Reported by Bruno Haible.
23389
23390 2009-11-25  Jim Meyering  <meyering@redhat.com>
23391
23392         test-pread: cover failure with ESPIPE and EINVAL
23393         * tests/test-pread.c (main): Test for failure, too.
23394         * tests/test-pread.sh: Invoke with stdin on a pipe.
23395         Suggested by Eric Blake.
23396
23397         pread: improvement and fix
23398         * modules/pread (Depends-on): Depend on lseek, for portability to
23399         e.g., mingw.  Suggested by Eric Blake.
23400         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
23401
23402         unistd.in.h: correct declaration of pread
23403         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
23404         Reported by Richard W.M. Jones.
23405
23406         test-pread.sh: distribute the test script
23407         * modules/pread-tests (Files): Include test-pread.sh.
23408
23409         test-pread.sh: clean up
23410         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
23411         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
23412         That is unnecessary, since it's always ".".
23413         Suggestion from Eric Blake.
23414
23415         test-pread.sh: make executable
23416         * tests/test-pread.sh: Set executable bit.
23417         Reported by Eric Blake.
23418
23419         correct typo in test-pread.sh
23420         * tests/test-pread.sh: Add #! line.
23421
23422         test pread
23423         * tests/test-pread.c: New file.
23424         * tests/test-pread.sh: Likewise.
23425         * modules/pread-tests: Likewise.
23426
23427         pread: new module
23428         * modules/pread: New file.
23429         * lib/unistd.in.h (pread): Define/declare.
23430         * lib/pread.c (pread): New file.
23431         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
23432         * modules/unistd (Makefile.am): Substitute witnesses.
23433         * doc/posix-functions/pread.texi (pread): Update.
23434         * MODULES.html.sh: Add pread.
23435
23436 2009-11-25  Jim Meyering  <meyering@redhat.com>
23437
23438         tests/init.sh: new file to be used via most *.sh tests
23439         * tests/init.sh: New file.
23440
23441 2009-11-25  Eric Blake  <ebb9@byu.net>
23442
23443         utimens: work around older Linux failure with symlinks
23444         * lib/utimens.c (lutimensat_works_really): New variable.
23445         (fdutimens, lutimens): Use it to manage kernels that support
23446         nanosecond times on files, but not on symlinks.
23447         Reported by OndÅ™ej Vašík.
23448
23449         utimes: fix configure grammar
23450         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
23451
23452 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
23453
23454         regex: Fix fastmap for multibyte character ranges.
23455         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
23456         characters when a multibyte character range is included.
23457
23458 2009-11-22  Andy Wingo  <wingo@pobox.com>
23459
23460         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
23461         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
23462
23463 2009-11-24  Bruno Haible  <bruno@clisp.org>
23464
23465         doc: Most *_l functions exist in MacOS X 10.5.
23466         * doc/posix-functions/duplocale.texi: Update platforms list.
23467         * doc/posix-functions/freelocale.texi: Likewise.
23468         * doc/posix-functions/newlocale.texi: Likewise.
23469         * doc/posix-functions/uselocale.texi: Likewise.
23470         * doc/posix-functions/isalnum_l.texi: Likewise.
23471         * doc/posix-functions/isalpha_l.texi: Likewise.
23472         * doc/posix-functions/isblank_l.texi: Likewise.
23473         * doc/posix-functions/iscntrl_l.texi: Likewise.
23474         * doc/posix-functions/isdigit_l.texi: Likewise.
23475         * doc/posix-functions/isgraph_l.texi: Likewise.
23476         * doc/posix-functions/islower_l.texi: Likewise.
23477         * doc/posix-functions/isprint_l.texi: Likewise.
23478         * doc/posix-functions/ispunct_l.texi: Likewise.
23479         * doc/posix-functions/isspace_l.texi: Likewise.
23480         * doc/posix-functions/isupper_l.texi: Likewise.
23481         * doc/posix-functions/iswalnum_l.texi: Likewise.
23482         * doc/posix-functions/iswalpha_l.texi: Likewise.
23483         * doc/posix-functions/iswblank_l.texi: Likewise.
23484         * doc/posix-functions/iswcntrl_l.texi: Likewise.
23485         * doc/posix-functions/iswctype_l.texi: Likewise.
23486         * doc/posix-functions/iswdigit_l.texi: Likewise.
23487         * doc/posix-functions/iswgraph_l.texi: Likewise.
23488         * doc/posix-functions/iswlower_l.texi: Likewise.
23489         * doc/posix-functions/iswprint_l.texi: Likewise.
23490         * doc/posix-functions/iswpunct_l.texi: Likewise.
23491         * doc/posix-functions/iswspace_l.texi: Likewise.
23492         * doc/posix-functions/iswupper_l.texi: Likewise.
23493         * doc/posix-functions/iswxdigit_l.texi: Likewise.
23494         * doc/posix-functions/isxdigit_l.texi: Likewise.
23495         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
23496         * doc/posix-functions/strcasecmp_l.texi: Likewise.
23497         * doc/posix-functions/strcoll_l.texi: Likewise.
23498         * doc/posix-functions/strfmon_l.texi: Likewise.
23499         * doc/posix-functions/strftime_l.texi: Likewise.
23500         * doc/posix-functions/strncasecmp_l.texi: Likewise.
23501         * doc/posix-functions/strxfrm_l.texi: Likewise.
23502         * doc/posix-functions/tolower_l.texi: Likewise.
23503         * doc/posix-functions/toupper_l.texi: Likewise.
23504         * doc/posix-functions/towctrans_l.texi: Likewise.
23505         * doc/posix-functions/towlower_l.texi: Likewise.
23506         * doc/posix-functions/towupper_l.texi: Likewise.
23507         * doc/posix-functions/wcscoll_l.texi: Likewise.
23508         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
23509         * doc/posix-functions/wctrans_l.texi: Likewise.
23510         * doc/posix-functions/wctype_l.texi: Likewise.
23511         * doc/glibc-functions/strptime_l.texi: Likewise.
23512         * doc/glibc-functions/strtod_l.texi: Likewise.
23513         * doc/glibc-functions/strtof_l.texi: Likewise.
23514         * doc/glibc-functions/strtol_l.texi: Likewise.
23515         * doc/glibc-functions/strtold_l.texi: Likewise.
23516         * doc/glibc-functions/strtoll_l.texi: Likewise.
23517         * doc/glibc-functions/strtoul_l.texi: Likewise.
23518         * doc/glibc-functions/strtoull_l.texi: Likewise.
23519         * doc/glibc-functions/wcsftime_l.texi: Likewise.
23520         * doc/glibc-functions/wcstod_l.texi: Likewise.
23521         * doc/glibc-functions/wcstof_l.texi: Likewise.
23522         * doc/glibc-functions/wcstol_l.texi: Likewise.
23523         * doc/glibc-functions/wcstold_l.texi: Likewise.
23524         * doc/glibc-functions/wcstoll_l.texi: Likewise.
23525         * doc/glibc-functions/wcstoul_l.texi: Likewise.
23526         * doc/glibc-functions/wcstoull_l.texi: Likewise.
23527
23528 2009-11-24  Bruno Haible  <bruno@clisp.org>
23529
23530         duplocale: Fix logic bug.
23531         * lib/duplocale.c: Don't include <langinfo.h>.
23532         (_NL_LOCALE_NAME): Remove macro.
23533         (rpl_duplocale): Use setlocale instead of nl_langinfo.
23534         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
23535
23536 2009-11-23  Jim Meyering  <meyering@redhat.com>
23537
23538         test-update-copyright: don't hard-code /usr/bin/perl
23539         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
23540         perl to print the current year.  Gilles Espinasse reported that
23541         the replaced use of perl was hard-coded as /usr/bin/perl.
23542
23543 2009-11-23  Bruno Haible  <bruno@clisp.org>
23544
23545         duplocale: Add support for glibc 2.3.x.
23546         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
23547
23548 2009-11-22  Bruno Haible  <bruno@clisp.org>
23549
23550         vasnprintf: Tiny optimization.
23551         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
23552         MacOS X.
23553
23554 2009-11-22  Bruno Haible  <bruno@clisp.org>
23555
23556         Tests for module 'duplocale'.
23557         * modules/duplocale-tests: New file.
23558         * tests/test-duplocale.c: New file.
23559
23560         New module 'duplocale'.
23561         * m4/duplocale.m4: New file.
23562         * lib/locale.in.h (duplocale): New declaration.
23563         * lib/duplocale.c: New file.
23564         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
23565         gl_LOCALE_H_DEFAULTS): New macros.
23566         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
23567         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
23568         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
23569         REPLACE_DUPLOCALE.
23570         * modules/duplocale: New file.
23571         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
23572
23573 2009-11-22  Bruno Haible  <bruno@clisp.org>
23574
23575         * modules/locale-tests (configure.ac): Test for newlocale function.
23576         * tests/test-locale.c: When the system has extended locale functions,
23577         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
23578
23579         locale: Make locale_t available when possible.
23580         * lib/locale.in.h: Include <xlocale.h> when it exists.
23581         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
23582         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
23583         * modules/locale (Depends-on): Add extensions.
23584         (Makefile.am): Also substitute HAVE_XLOCALE_H.
23585         * doc/posix-headers/locale.texi: Document the problem with locale_t.
23586
23587 2009-11-22  Bruno Haible  <bruno@clisp.org>
23588
23589         Add comments.
23590         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
23591         invocation.
23592         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
23593         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
23594         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
23595
23596 2009-11-22  Bruno Haible  <bruno@clisp.org>
23597
23598         error: account for the possibility of freopen (stdout).
23599         * lib/error.c: Include <unistd.h>.
23600         (flush_stdout): New function, extracted from error and error_at_line.
23601         Determine stdout's fd dynamically.
23602         (error, error_at_line): Invoke flush_stdout.
23603         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
23604         * modules/error (Depends-on): Add unistd.
23605
23606 2009-11-22  Bruno Haible  <bruno@clisp.org>
23607
23608         diffseq: Add comment.
23609         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
23610
23611 2009-11-22  Jim Meyering  <meyering@redhat.com>
23612
23613         c-stack: avoid defining an unused static function
23614         * lib/c-stack.c (find_stack_direction): Do not define this function
23615         when it will not be used.
23616
23617         diffseq: avoid spurious gcc warnings
23618         * lib/diffseq.h (IF_LINT2): Define.
23619         (compareseq): Use it to initialize two members of "part".
23620         This avoids two used-uninitialized warnings.
23621
23622 2009-11-21  Jim Meyering  <meyering@redhat.com>
23623
23624         c-stack: avoid "ignoring return value of `write'" warning
23625         * lib/c-stack.c: Include "ignore-value.h".
23626         (die): Explicitly ignore each write return value.
23627         * modules/c-stack (Depends-on): Add ignore-value.
23628
23629 2009-11-21  Bruno Haible  <bruno@clisp.org>
23630
23631         diffseq: reduce scope of variable 'best'.
23632         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
23633         variable, earlier used for two different purposes.
23634
23635 2009-11-21  Jim Meyering  <meyering@redhat.com>
23636
23637         diffseq: remove useless assignment to "best"
23638         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
23639         assignment.  At that point "best" is already guaranteed to be zero.
23640
23641 2009-11-20  Eric Blake  <ebb9@byu.net>
23642
23643         build: mention ftp redirector in release announcements
23644         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
23645         values that used to come from cfg.mk; mention FTP redirect URL.
23646         * build-aux/announce-gen: Mention the mirror list.
23647         Suggested by Karl Berry.
23648
23649         nanosleep: improve port to mingw
23650         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
23651         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
23652         LIB_NANOSLEEP, but only when needed.
23653         * modules/select (Link): Document LIBSOCKET.
23654         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
23655         enough.
23656
23657         nanosleep: work around cygwin bug
23658         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
23659         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
23660         bug.
23661         (getnow): Delete, not needed.
23662         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
23663         LIB_CLOCK_GETTIME.
23664         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
23665         clock-time, gettime.
23666         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
23667         bug.
23668         * modules/nanosleep-tests: New test.
23669         * tests/test-nanosleep.c: New file.
23670
23671         sleep: work around cygwin bug
23672         * lib/sleep.c (rpl_sleep): Work around the bug.
23673         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
23674         (gl_PREREQ_SLEEP): Delete unused macro.
23675         * modules/sleep (Depends-on): Add verify.
23676         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
23677         * modules/unistd (Makefile.am): Substitute witness.
23678         * lib/unistd.in.h (sleep): Update prototype.
23679         * doc/posix-functions/sleep.texi (sleep): Document the bug.
23680         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
23681         * modules/sleep-tests (Depends-on): Check for alarm.
23682
23683 2009-11-20  Jim Meyering  <meyering@redhat.com>
23684
23685         maint.mk: improve sc_prohibit_magic_number_exit
23686         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
23687         so it does not match uses like System.exit(1).
23688         Add comments showing how to correct all offenders.
23689
23690 2009-11-19  Eric Blake  <ebb9@byu.net>
23691
23692         xalloc-die-tests: add missing library
23693         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
23694
23695         test-xvasprintf: silence compiler warnings
23696         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
23697         empty string from gcc.
23698
23699 2009-11-19  Jim Meyering  <meyering@redhat.com>
23700
23701         xfreopen: new module, from coreutils
23702         * modules/xfreopen: New module.
23703         * lib/xfreopen.c: New file.
23704         * lib/xfreopen.h: New file.
23705         * MODULES.html.sh (File stream based Input/Output"): Add it.
23706
23707 2009-11-19  Eric Blake  <ebb9@byu.net>
23708
23709         manywarnings: depend on warnings
23710         * modules/manywarnings (Depends-on): Add warnings.
23711
23712         build: avoid compiler warnings
23713         * lib/select.c (rpl_select): Delete unused variable.
23714         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
23715
23716 2009-11-18  Eric Blake  <ebb9@byu.net>
23717
23718         tests: avoid false negative with --with-packager
23719         * tests/test-version-etc.sh: Discard packager information.
23720         * tests/test-argp-version-etc-1.sh: Likewise.
23721         Reported by Mike Frysinger.
23722
23723         utimens: fix regression on Solaris
23724         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
23725         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
23726         can only change fd timestamps via futimesat.  Instead, use an
23727         additional witness macro to avoid BSD bug.
23728         Reported by Jim Meyering.
23729
23730 2009-11-17  Eric Blake  <ebb9@byu.net>
23731
23732         usleep: use it to simplify tests
23733         * modules/stat-time-tests (Depends-on): Add usleep.
23734         (configure.ac): Drop usleep check.
23735         * modules/chown-tests (Depends-on, configure.ac): Likewise.
23736         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
23737         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
23738         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
23739         * modules/openat-tests (Depends-on, configure.ac): Likewise.
23740         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
23741         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
23742         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
23743         Likewise.
23744         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
23745         * tests/test-lchown.h (nap): Likewise.
23746         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
23747         * tests/test-stat-time.c (nap): Likewise.
23748         * tests/test-utimens-common.h (nap): Update comments.
23749
23750         usleep: new module
23751         * modules/usleep: New file.
23752         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
23753         * lib/usleep.c (usleep): Likewise.
23754         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
23755         * modules/unistd (Makefile.am): Substitute witnesses.
23756         * lib/unistd.in.h (usleep): Add declaration.
23757         * doc/pastposix-functions/usleep.texi (usleep): Document this.
23758         * MODULES.html.sh (Date and time): Likewise.
23759         * modules/usleep-tests (Depends-on): New test.
23760         * tests/test-usleep.c: New file.
23761
23762         chown: work around OpenBSD bug
23763         * lib/chown.c (rpl_chown): Work around the bug.
23764         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
23765         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
23766         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
23767         * modules/chown (Depends-on): Add stdbool.
23768         * modules/lchown (Depends-on): Likewise.
23769         * doc/posix-functions/chown.texi (chown): Document the bug.
23770         * doc/posix-functions/lchown.texi (lchown): Likewise.
23771         * tests/test-lchown.h (test_chown): Relax test.
23772
23773         mkstemp: avoid conflict with C++ keyword template
23774         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
23775         * lib/mkostemp.c (mkostemp): Likewise.
23776         * lib/mkostemps.c (mkostemps): Likewise.
23777         * lib/mkstemp.c (mkstemp): Likewise.
23778         * lib/mkstemps.c (mkstemps): Likewise.
23779
23780         xalloc-die-tests: optimize
23781         * tests/test-xalloc-die.sh: Reduce number of processes.
23782
23783 2009-11-17  Simon Josefsson  <simon@josefsson.org>
23784
23785         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
23786         patch from ludo@gnu.org (Ludovic Courtès).
23787
23788 2009-11-17  Jim Meyering  <meyering@redhat.com>
23789
23790         version-etc: use proper license string
23791         * modules/version-etc (License): Use LGPL, not LGPLv3+.
23792         * modules/version-etc-fsf: Likewise.
23793
23794 2009-11-17  Simon Josefsson  <simon@josefsson.org>
23795
23796         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
23797         printed to stdout.  Deal with EOL differences.
23798
23799 2009-11-17  Eric Blake  <ebb9@byu.net>
23800
23801         unsetenv: work around Solaris bug
23802         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
23803         * lib/unsetenv.c (rpl_unsetenv): Work around it.
23804         Reported by Jim Meyering.
23805
23806         vasnprintf: avoid compiler warnings
23807         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
23808         variables.
23809         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
23810
23811 2009-11-17  Simon Josefsson  <simon@josefsson.org>
23812
23813         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
23814         settings since xalloc-die is no longer the self test,
23815         xalloc-die.sh is.
23816
23817 2009-11-17  Jim Meyering  <meyering@redhat.com>
23818
23819         test-xalloc-die.sh: make the code agree with the commit log
23820         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
23821         at the end, just in case you happen to have a test-xalloc-die
23822         program in some other PATH directory.
23823
23824         test-xalloc-die.sh: fix a portability bug
23825         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
23826         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
23827         Otherwise, argv[0] (as often seen in diagnostics) would be too
23828         system-dependent, sometimes with, and sometimes without the leading "./".
23829
23830         version-etc-fsf: relax license to LGPLv3+
23831         * modules/version-etc-fsf (License): Relax license.
23832
23833 2009-11-16  Eric Blake  <ebb9@byu.net>
23834
23835         xalloc-die-tests: avoid printing null pointer
23836         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
23837         shell script.
23838         * tests/test-xalloc-die.c (program_name): Declare.
23839         * tests/test-xalloc-die.sh (tmpfiles): New file.
23840
23841         setenv, unsetenv: work around various bugs
23842         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
23843         (setenv) [HAVE_SETENV]: Work around bugs.
23844         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
23845         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
23846         for bugs.
23847         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
23848         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
23849         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
23850         * modules/stdlib (Makefile.am): Update substitutions.
23851         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
23852         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
23853         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
23854         * modules/setenv-tests: New test.
23855         * modules/unsetenv-tests: Likewise.
23856         * tests/test-setenv.c: New file.
23857         * tests/test-unsetenv.c: Likewise.
23858
23859 2009-11-16  Jim Meyering  <meyering@redhat.com>
23860
23861         version-etc: relax license to LGPLv3+
23862         * modules/version-etc (License): Relax license.
23863
23864         better AC_REQUIRE expanded-before-required-warning avoidance
23865         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
23866         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
23867         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
23868         which is no longer needed.
23869
23870 2009-11-16  Eric Blake  <ebb9@byu.net>
23871
23872         test-freading: clean up temporary file
23873         * tests/test-freading.c (main): Remove file on success, and use
23874         ASSERT more liberally.
23875         Reported by Jim Meyering.
23876
23877 2009-11-16  Jim Meyering  <meyering@redhat.com>
23878
23879         avoid new AC_REQUIRE expanded-before-required warnings
23880         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
23881         merely using it.
23882         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
23883         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
23884
23885 2009-11-15  Simon Josefsson  <simon@josefsson.org>
23886
23887         * tests/test-xalloc-die.c: New file.
23888         * modules/xalloc-die-tests: New file.
23889         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
23890         XFAIL_TESTS so it can be appended by modules.
23891
23892 2009-11-15  Simon Josefsson  <simon@josefsson.org>
23893
23894         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
23895         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
23896
23897 2009-11-14  Eric Blake  <ebb9@byu.net>
23898
23899         fnmatch: avoid compiler warning
23900         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
23901         to silence compiler warning about mismatch signedness in ?:.
23902         Reported by Robert Millan.
23903
23904         intprops: add double-inclusion guard
23905         * lib/intprops.h: Allow idempotent includes.
23906         Suggested by Bruce Korb.
23907
23908         openat: detect Solaris fchownat bug
23909         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
23910         penalizing glibc chownat when only lchownat is broken.
23911         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
23912         trailing slash bugs.
23913         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
23914         * modules/openat-tests (Files): Include more files.
23915         (Depends-on): Add mgetgroups, sleep, stat-time.
23916         (configure.ac): Add additional checks.
23917         (Makefile.am): Build new test.
23918         * tests/test-fchownat.c: New file.
23919
23920         lchown: detect Solaris and FreeBSD bug
23921         * lib/lchown.c (rpl_lchown): Work around bug.
23922         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
23923         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
23924         * modules/unistd (Makefile.am): Populate it.
23925         * lib/unistd.in.h (lchown): Update declaration.
23926         * doc/posix-functions/lchown.texi (lchown): Document the bug.
23927         * modules/lchown-tests: New file.
23928         * tests/test-lchown.h (test_lchown): Likewise.
23929         * tests/test-lchown.c (main): Likewise.
23930
23931         chown: detect Solaris and FreeBSD bug
23932         * lib/chown.c (rpl_chown): Work around bug.
23933         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
23934         (gl_PREREQ_CHOWN): Delete.
23935         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
23936         * modules/unistd (Makefile.am): Populate it.
23937         * lib/unistd.in.h (chown): Update declaration.
23938         * lib/lchown.c (chown): Update client.
23939         * modules/lchown (Depends-on): Add lstat.
23940         * doc/posix-functions/chown.texi (chown): Document the bug.
23941         * doc/posix-functions/getgroups.texi (getgroups): Document
23942         getgroups pitfall.
23943         * modules/chown-tests: New file.
23944         * tests/test-chown.h (test_chown): Likewise.
23945         * tests/test-chown.c (main): Likewise.
23946
23947 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
23948
23949         gnulib-tool: correctly detect absence of m4 directories
23950         * gnulib-tool: Avoid extra newline on data passed to wc -l.
23951
23952 2009-11-14  Jim Meyering  <meyering@redhat.com>
23953
23954         maint.mk: Prohibit inclusion of "xalloc.h" without use.
23955         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
23956
23957 2009-11-14  John W. Eaton  <jwe@gnu.org>
23958
23959         strftime.h: wrap funtion declaration in extern "C" block
23960         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
23961
23962 2009-11-13  Eric Blake  <ebb9@byu.net>
23963
23964         getgroups: avoid compiler warning
23965         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
23966
23967         getgroups: work around FreeBSD bug
23968         * lib/getgroups.c (rpl_getgroups): Work around the bug.
23969         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
23970         * doc/posix-functions/getgroups.texi (getgroups): Document it.
23971         * tests/test-getgroups.c (main): Fix buffer overrun.
23972
23973         getgroups: avoid compilation failure
23974         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
23975         * modules/getgroups (Depends-on): Add stdint.
23976
23977 2009-11-13  Jim Meyering  <meyering@redhat.com>
23978
23979         test-getgroups: avoid compilation failure
23980         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
23981
23982 2009-11-13  Eric Blake  <ebb9@byu.net>
23983
23984         mgetgroups: new module, taken from coreutils
23985         * modules/mgetgroups: New file.
23986         * lib/mgetgroups.h: Likewise.
23987         * lib/mgetgroups.c (mgetgroups): Likewise.
23988         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
23989         * MODULES.html.sh (Users and groups): Mention it.
23990
23991         getgroups: don't expose GETGROUPS_T to user
23992         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
23993         an element at a time if GETGROUPS_T is wrong size.
23994         * lib/getugroups.h (getugroups): Change signature.
23995         * lib/unistd.in.h (getgroups): Likewise.
23996         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
23997         signature needs fixing.
23998         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
23999         AC_TYPE_GETGROUPS.
24000         * modules/group-member (Depends-on): Add getgroups.
24001         * lib/group-member.c (group_info, get_group_info): Use gid_t.
24002         (group_member): Rely on getgroups replacement.
24003         * lib/getugroups.c (getugroups): Use gid_t.
24004         * tests/test-getgroups.c (main): Likewise.
24005         * NEWS: Mention the signature change.
24006         * doc/posix-functions/getgroups.texi (getgroups): Mention the
24007         problem with signature.
24008         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
24009         GETGROUPS_T is still useful for setgroups.
24010
24011         getgroups, getugroups: provide stubs for mingw
24012         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
24013         * lib/getugroups.c (getugroups): Likewise.
24014         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
24015         function.  Modernize replacement scheme.
24016         (gl_PREREQ_GETGROUPS): Delete.
24017         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
24018         * modules/getgroups (configure.ac): Declare witness.
24019         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
24020         * modules/unistd (Depends-on): Substitute witness.
24021         * lib/unistd.in.h (getgroups): Declare replacement.
24022
24023         getgroups: avoid calling exit
24024         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
24025         drop xalloc.
24026         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
24027         dependencies.
24028         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
24029         exiting, in the rare case of malloc failure.
24030
24031         getgroups: fix logic error
24032         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
24033         has more than 20 groups.
24034         * modules/getgroups-tests: New test.
24035         * tests/test-getgroups.c: New file.
24036
24037 2009-11-13  Simon Josefsson  <simon@josefsson.org>
24038
24039         * tests/test-base64.c: Improve.
24040
24041 2009-11-13  Simon Josefsson  <simon@josefsson.org>
24042
24043         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
24044         Blake <ebb9@byu.net>.
24045
24046 2009-11-13  Simon Josefsson  <simon@josefsson.org>
24047
24048         * tests/test-xvasprintf.c: Add %s%s related checks.
24049
24050 2009-11-12  Eric Blake  <ebb9@byu.net>
24051
24052         version-etc: match standards.texi style
24053         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
24054         and use <> only for URLs.
24055
24056 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
24057
24058         fts: do not fail on a submount during traversal
24059         * lib/fts.c (fts_build): Read the stat info again after opening
24060         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
24061         Original report at http://bugzilla.redhat.com/501848.
24062
24063 2009-11-12  Jim Meyering  <meyering@redhat.com>
24064
24065         bootstrap: sync from coreutils
24066         * build-aux/bootstrap (bootstrap_epilogue): New function.
24067         Use git_modules_config in one more place.  This make bootstrap's
24068         --gnulib-srcdir option more useful for testing.
24069
24070         bootstrap: generalize autoheader check
24071         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
24072         AC_CONFIG_HEADERS.
24073
24074 2009-11-11  Eric Blake  <ebb9@byu.net>
24075
24076         mkfifoat: use new modules for Solaris and BSD bugs
24077         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
24078         * lib/mkfifoat.c (mknodat): Split...
24079         * lib/mknodat.c (mknodat): ...into new file.
24080         * modules/mkfifoat (Files): Ship new file.
24081         (Depends-on): Add mkfifo, mknod.
24082         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
24083         (Depends-on): Add symlink.
24084         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
24085         redundant with test_mkfifo.h.
24086         (do_mkfifoat, do_mknodat): New helpers.
24087
24088         mknod: new module
24089         * modules/mknod: New file.
24090         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
24091         * lib/mknod.c (mknod): Likewise.
24092         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
24093         defaults.
24094         * modules/sys_stat (Makefile.am): Substitute them.
24095         * lib/sys_stat.in.h (mknod): Declare replacement.
24096         * MODULES.html.sh (Support for systems lacking POSIX:2008):
24097         Document it.
24098         * doc/posix-functions/mknod.texi (mknod): Likewise.
24099         * modules/mknod-tests: New test.
24100         * tests/test-mknod.c: Likewise.
24101
24102         mkfifo: new module
24103         * modules/mkfifo: New file.
24104         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
24105         * lib/mkfifo.c (mkfifo): Likewise.
24106         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
24107         defaults.
24108         * modules/sys_stat (Makefile.am): Substitute them.
24109         * lib/sys_stat.in.h (mkfifo): Declare replacement.
24110         * MODULES.html.sh (Support for systems lacking POSIX:2008):
24111         Document it.
24112         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
24113         * modules/mkfifo-tests: New test.
24114         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
24115         from test-mkfifoat.c.
24116         * tests/test-mkfifo.c: New file.
24117
24118         readlink: detect FreeBSD bug
24119         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
24120         slash on symlink.
24121         * doc/posix-functions/readlink.texi (readlink): Document the bug.
24122         * tests/test-readlink.h (test_readlink): Enhance test.
24123
24124         symlink: detect FreeBSD bug
24125         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
24126         slash on symlink.
24127         * doc/posix-functions/symlink.texi (symlink): Document the bug.
24128         * tests/test-symlink.h (test_symlink): Enhance test.
24129
24130 2009-11-10  Eric Blake  <ebb9@byu.net>
24131
24132         link: detect FreeBSD bug
24133         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
24134         symlink.
24135         * doc/posix-functions/link.texi (link): Document the bug.
24136         * tests/test-link.h (test_link): Enhance test.
24137         * tests/test-linkat.c (main): Update caller.
24138
24139         unlink, remove: detect FreeBSD bug
24140         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
24141         slash on symlink.
24142         * doc/posix-functions/unlink.texi (unlink): Document the bug.
24143         * doc/posix-functions/remove.texi (remove): Likewise.
24144         * tests/test-unlink.h (test_unlink): Enhance test.
24145         * tests/test-remove.c (main): Likewise.
24146
24147 2009-11-09  Eric Blake  <ebb9@byu.net>
24148
24149         rename: detect FreeBSD bug
24150         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
24151         slash on symlink.
24152         * modules/renameat-tests (Depends-on): Add filenamecat.
24153         * tests/test-rename.h (test_rename): Allow one more errno.
24154         * tests/test-renameat.c (main): Likewise.
24155         * doc/posix-functions/rename.texi (rename): Document the bug.
24156
24157         open: detect FreeBSD bug
24158         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
24159         symlink.
24160         * doc/posix-functions/open.texi (open): Document the bug.
24161         * doc/posix-functions/utimes.texi (utimes): Likewise.
24162         * tests/test-open.h (test_open): Add parameters, and test symlink
24163         handling.
24164         * tests/test-open.c (main): Adjust caller.
24165         * tests/test-fcntl-safer.c (main): Likewise.
24166         * modules/open-tests (Depends-on): Add stdbool, symlink.
24167         * modules/fcntl-safer-tests (Depends-on): Likewise.
24168         * tests/test-openat.c (main): Add test-open tests.
24169
24170         stat: detect FreeBSD bug
24171         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
24172         symlink.
24173         * doc/posix-functions/stat.texi (stat): Document the bug.
24174         * tests/test-stat.h (test_stat_func): Add argument.
24175         * tests/test-stat.c (main): Adjust caller.
24176         * tests/test-fstatat.c (main): Likewise.
24177         * modules/stat-tests (Depends-on): Add stdbool, symlink.
24178         Reported by Jim Meyering.
24179
24180 2009-11-09  James Youngman  <jay@gnu.org>
24181
24182         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
24183         * lib/strftime.c: Correct placement of #include "ignore-value.h".
24184
24185 2009-11-08  Jim Meyering  <meyering@redhat.com>
24186
24187         utimens: remove invalid futimesat call
24188         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
24189         It used the file descriptor of the target file as the DIR_FD
24190         parameter and NULL as the file name.  That caused failure with
24191         errno == EFAULT on FreeBSD-8.0-rc2
24192
24193 2009-11-07  Eric Blake  <ebb9@byu.net>
24194
24195         fflush, freadseek: use fseeko, not fseek
24196         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
24197         (clear_ungetc_buffer): Avoid potential problems on large files.
24198         * lib/freadseek.c (freadseek): Likewise.
24199         * modules/freadseek (Depends-on): Add fseeko.
24200         * modules/fseek (configure.ac): Set a witness.
24201         * tests/test-fflush.c (main): Use fseeko.
24202         * tests/test-fpurge.c (fseek): Disable link warning.
24203         * tests/test-freadable.c (fseek): Likewise.
24204         * tests/test-freading.c (fseek): Likewise.
24205         * tests/test-fseeko.c (fseek): Likewise.
24206         * tests/test-ftell.c (fseek): Likewise.
24207         * tests/test-ftello.c (fseek): Likewise.
24208         * tests/test-fwritable.c (fseek): Likewise.
24209         * tests/test-fwriting.c (fseek): Likewise.
24210
24211 2009-11-06  Simon Josefsson  <simon@josefsson.org>
24212
24213         * modules/memchr (Depends-on): Drop getpagesize dependency.
24214
24215 2009-11-06  Simon Josefsson  <simon@josefsson.org>
24216
24217         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
24218         Reported by Ludovic Courtès.
24219         * build-aux/pmccabe2html: Improve example usage.
24220         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
24221
24222 2009-11-06  Jim Meyering  <meyering@redhat.com>
24223
24224         do-release-commit-and-tag: New module.
24225         Automate the release-commit and tag process.
24226         * build-aux/do-release-commit-and-tag: New script, from coreutils.
24227         * modules/do-release-commit-and-tag: New file.
24228         * MODULES.html.sh (Support for maintaining and releasing): Add it.
24229
24230 2009-11-06  Simon Josefsson  <simon@josefsson.org>
24231
24232         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
24233         because test-select.c uses inet_pton.
24234
24235 2009-11-06  Simon Josefsson  <simon@josefsson.org>
24236
24237         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
24238         GETADDRINFO_LIB.  Bump serial number.
24239         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
24240         Suggested by Eric Blake <ebb9@byu.net>.
24241
24242 2009-11-05  Eric Blake  <ebb9@byu.net>
24243
24244         strtod: detect darwin bug
24245         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
24246         Reported by Leo Davis.
24247
24248         freopen-safer: new module
24249         * modules/freopen-safer: New module.
24250         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
24251         * lib/freopen-safer.c (freopen_safer): New file.
24252         * lib/stdio-safer.h (freopen_safer): New declaration.
24253         * lib/stdio--.h (freopen): New override.
24254         * MODULES.html.sh (File stream based Input/Output): Mention it.
24255         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
24256         freopen-safer module.
24257         * doc/posix-functions/stderr.texi (stderr): Likewise.
24258         * doc/posix-functions/stdin.texi (stdin): Likewise.
24259         * doc/posix-functions/stdout.texi (stdout): Likewise.
24260         * modules/freopen-safer-tests: New test.
24261         * tests/test-reopen-safer.c: New file.
24262
24263 2009-11-05  Jim Meyering  <meyering@redhat.com>
24264
24265         maint.mk: Prohibit inclusion of "close-stream.h" without use.
24266         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
24267
24268 2009-11-05  Simon Josefsson  <simon@josefsson.org>
24269
24270         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
24271
24272 2009-11-05  Simon Josefsson  <simon@josefsson.org>
24273
24274         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
24275
24276 2009-11-05  Simon Josefsson  <simon@josefsson.org>
24277
24278         Fix link error.
24279         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
24280         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
24281
24282 2009-11-05  Simon Josefsson  <simon@josefsson.org>
24283
24284         * tests/test-func.c: Also test value of __func__.
24285
24286 2009-11-05  Simon Josefsson  <simon@josefsson.org>
24287
24288         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
24289         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
24290
24291 2009-11-05  Bruno Haible  <bruno@clisp.org>
24292
24293         Fix link error.
24294         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
24295         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
24296         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
24297
24298 2009-11-05  Bruno Haible  <bruno@clisp.org>
24299
24300         Tests for module 'inet_pton'.
24301         * modules/inet_pton-tests: New file.
24302         * tests/test-inet_pton.c: New file.
24303
24304 2009-11-05  Bruno Haible  <bruno@clisp.org>
24305
24306         Tests for module 'inet_ntop'.
24307         * modules/inet_ntop-tests: New file.
24308         * tests/test-inet_ntop.c: New file.
24309
24310 2009-11-04  Eric Blake  <ebb9@byu.net>
24311
24312         stdlib-safer: wrap all mkstemp variants
24313         * modules/mkostemp (configure.ac): Set witness.
24314         * modules/mkostemps (configure.ac): Likewise.
24315         * modules/mkstemps (configure.ac): Likewise.
24316         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
24317         (mkstemps_safer): Wrap more functions.
24318         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
24319         wrapping.
24320         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
24321         (mkstemps_safer): Implement the wrappers.
24322
24323         mkstemps, mkostemps: new modules
24324         * modules/mkostemps: New module.
24325         * modules/mkstemps: Likewise.
24326         * lib/mkostemps.c (mkostemps): New file.
24327         * lib/mkstemps.c (mkstemps): Likewise.
24328         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
24329         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
24330         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
24331         * modules/stdlib (Makefile.am): Substitute them.
24332         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
24333         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
24334         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
24335         * doc/gnulib.texi (Glibc stdlib.h): Include them.
24336         * MODULES.html.sh (File system functions): Mention them.
24337
24338         tempname: resync from glibc
24339         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
24340         same values for __GT_FILE as glibc.  Abort even when assertions
24341         are disabled.
24342         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
24343         match its value otherwise.  Allow idempotent inclusion.
24344         * lib/mkdtemp.c (mkdtemp): Adjust caller.
24345         * lib/mkostemp.c (mkostemp): Likewise.
24346         * lib/mkstemp.c (mkstemp): Likewise.
24347         * lib/tmpfile.c (tmpfile): Likewise.
24348         * NEWS: Document this.
24349
24350         utimens: fix use of futimens on older Linux
24351         * lib/utimens.c (fdutimens): Use updated, rather than original,
24352         timespec to avoid bug in older Linux kernel.
24353         Reported by Simon Josefsson.
24354
24355 2009-11-04  Bruno Haible  <bruno@clisp.org>
24356
24357         Make num_processors more flexible and consistent.
24358         * lib/nproc.h (enum nproc_query): New type.
24359         (num_processors): Add a 'query' argument.
24360         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
24361         (num_processors): Add a 'query' argument. Test the value of the
24362         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
24363         mingw, count the number of CPUs available for the current process.
24364         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
24365         Check for sched_getaffinity and sched_getaffinity_np.
24366         * modules/nproc (Depends-on): Add c-ctype, extensions.
24367         * NEWS: Mention the change.
24368
24369 2009-11-03  Bruno Haible  <bruno@clisp.org>
24370
24371         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
24372
24373 2009-11-03  Jim Meyering  <meyering@redhat.com>
24374
24375         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
24376         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
24377         if it is defined.
24378
24379 2009-11-02  Eric Blake  <ebb9@byu.net>
24380
24381         mktime, timegm: share common declaration
24382         * lib/mktime-internal.h: New file.
24383         * lib/mktime.c: Use it rather than open-coding a declaration.
24384         * lib/timegm.c: Likewise.
24385         * modules/mktime (Files): Ship it.
24386         * modules/timegm (Files): Likewise.
24387         Suggested by Bruno Haible.
24388
24389         test-update-copyright: update test to match script changes
24390         * tests/test-update-copyright.sh: Avoid hard-coding perl
24391         location.  Don't update *.bak created by earlier runs.
24392
24393 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
24394             Simon Josefsson  <simon@josefsson.org>
24395             Bruno Haible  <bruno@clisp.org>
24396
24397         Fix link error on Solaris 8.
24398         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
24399         also in libnsl. Define also INET_PTON_LIB.
24400         * modules/inet_pton (Link): New section.
24401
24402 2009-11-02  Simon Josefsson  <simon@josefsson.org>
24403             Bruno Haible  <bruno@clisp.org>
24404
24405         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
24406         * modules/inet_ntop (Link): New section.
24407         Reported by Boyan Kasarov <bkasarov@gmail.com>.
24408
24409 2009-11-02  Eric Blake  <ebb9@byu.net>
24410
24411         maint: avoid compiler warnings in m4 macros
24412         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
24413         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
24414
24415 2009-11-02  Simon Josefsson  <simon@josefsson.org>
24416
24417         * m4/pmccabe2html.m4: Remove file.
24418         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
24419         function.  Change maintainer.
24420         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
24421         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
24422         Courtès).
24423
24424 2009-10-31  Eric Blake  <ebb9@byu.net>
24425
24426         fseeko: fix m4 regression
24427         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
24428         regression from 2009-10-27.
24429         Reported by Ralf Wildenhues.
24430
24431 2009-10-31  Jim Meyering  <meyering@redhat.com>
24432
24433         inttostr: aesthetics and improved (compile-time) safety
24434         Define inttype_is_signed rather than inttype_is_unsigned,
24435         since the sole use is via "#if inttype_is_signed".
24436         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
24437         inttype_is_unsigned.
24438         * lib/offtostr.c (inttype_is_signed): Likewise.
24439         * lib/uinttostr.c (inttype_is_signed): Likewise.
24440         * lib/umaxtostr.c (inttype_is_signed): Likewise.
24441         * lib/inttostr.c (inttostr): Use verify to cross-check the
24442         inttype_is_signed value and the signedness of the actual type.
24443         * modules/inttostr (Depends-on): Add verify.
24444
24445 2009-10-30  Eric Blake  <ebb9@byu.net>
24446
24447         build: avoid compiler warnings
24448         * lib/fchmodat.c (lchmod): Mark unused variables.
24449         * lib/getopt.c (_getopt_initialize): Likewise.
24450         * lib/mktime.c (__mktime_internal): Provide prototype.
24451         * lib/inttostr.c (inttostr): Avoid compiler warning even with
24452         older gcc that do not understand #pragma GCC diagnostic.
24453         * lib/uinttostr.c (inttype_is_unsigned): Define.
24454         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
24455
24456 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
24457
24458         stat: fix compilation on AIX
24459         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
24460         only see struct stat64.
24461
24462 2009-10-30  Eric Blake  <ebb9@byu.net>
24463
24464         exclude: make more robust
24465         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
24466         rather than masking a coding bug.
24467         Suggested by Bruno Haible.
24468
24469 2009-10-30  Jim Meyering  <meyering@redhat.com>
24470
24471         perl scripts: remove #!/usr/bin/perl in favor of more portable...
24472         Rather than putting #!/usr/bin/perl on the first line,
24473         start with a variant of what's recommended by "man perlrun" that
24474         invokes the first "perl" program from your shell's search path.
24475         * build-aux/gitlog-to-changelog: Replace #!... as above.
24476         Add a "Local Variables" perl mode setting.
24477         Prompted by a patch from Ludovic Courtès.
24478         Improved by Eric Blake.
24479         * build-aux/useless-if-before-free: Likewise.
24480         * build-aux/announce-gen: Likewise.
24481         * build-aux/update-copyright: Likewise.
24482
24483 2009-10-29  Eric Blake  <ebb9@byu.net>
24484
24485         filenamecat-lgpl: adjust clients
24486         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
24487         filenamecat.
24488         * modules/renameat (Depends-on): Likewise.
24489
24490         filenamecat: split into filenamecat-lgpl
24491         * modules/filenamecat-lgpl: New module.
24492         * modules/filenamecat (Files): Move library-safe files into
24493         filenamecat-lgpl.
24494         (Depends-on): Add filenamecat-lgpl.
24495         (configure.ac): Declare witness.
24496         * lib/filenamecat.h (file_name_concat): Only declare when using
24497         GPL module.
24498         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
24499         Move...
24500         * lib/filenamecat-lgpl.c: ...into new file.
24501         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
24502         (gl_FILE_NAME_CONCAT): Use it.
24503         * MODULES.html.sh (File system functions): Mention new module.
24504
24505         argp: avoid memory leak
24506         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
24507         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
24508         base_name, since the latter malloc()s and can call exit().
24509         Leak introduced 2006-07-03.
24510
24511         dirname-lgpl: adjust clients that don't need full dirname
24512         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
24513         * modules/filenamecat (Depends-on): Likewise.
24514         * modules/linkat (Depends-on): Likewise.
24515         * modules/mkancesdirs (Depends-on): Likewise.
24516         * modules/mkdir (Depends-on): Likewise.
24517         * modules/openat (Depends-on): Likewise.
24518         * modules/savewd (Depends-on): Likewise.
24519         * modules/rename (Depends-on): Likewise.
24520         (License): Relax license.
24521         * modules/mkdir-tests (Depends-on): Drop progname.
24522         (Makefile.am): Delete unneeded LDADD.
24523         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
24524
24525         dirname: split into dirname-lgpl
24526         * modules/dirname-lgpl: New module.
24527         * modules/dirname (Files): Move library-safe files into
24528         dirname-lgpl.
24529         (Depends-on): Add dirname-lgpl.
24530         (configure.ac): Declare witness.
24531         * modules/double-slash-root (License): Relax license.
24532         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
24533         module.
24534         * lib/dirname.c (dir_len, mdir_name): Move...
24535         * lib/dirname-lgpl.c: ...into new file.
24536         * lib/basename.c (last_component, base_len): Move...
24537         * lib/basename-lgpl.c: ...into new file.
24538         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
24539         (gl_DIRNAME): Use it.
24540         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
24541         Mention new module.
24542         * modules/dirname-tests (Depends-on): Add progname.
24543         * tests/test-dirname.c (program_name): Delete.
24544
24545         mkdir: make safe for libraries
24546         * modules/mkdir (Depends-on): Drop xalloc.
24547         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
24548         exit.
24549
24550         tests: avoid some compiler warnings
24551         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
24552         literals.
24553         * tests/test-memchr.c (main): Avoid type mismatch.
24554         * tests/test-arpa_inet.c (main): Avoid unused parameters.
24555         * tests/test-base64.c (main): Likewise.
24556         * tests/test-getdelim.c (main): Likewise.
24557         * tests/test-gethostname.c (main): Likewise.
24558         * tests/test-getline.c (main): Likewise.
24559         * tests/test-netinet_in.c (main): Likewise.
24560         * tests/test-select.c (open_server_socket, main): Likewise.
24561         * tests/test-select-stdin.c (main): Likewise.
24562         * tests/test-sockets.c (main): Likewise.
24563         * tests/test-strsignal.c (main): Likewise.
24564         * tests/test-sys_select.c (main): Likewise.
24565         * tests/test-sys_socket.c (main): Likewise.
24566         * tests/test-u64.c (main): Likewise.
24567         * tests/test-xfprintf-posix.c (main): Likewise.
24568         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
24569
24570         sockets: avoid compiler warning
24571         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
24572
24573         maint: detect usage(1) and other suspicious exits
24574         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
24575
24576 2009-10-29  Jim Meyering  <meyering@redhat.com>
24577
24578         timespec: long-to-int truncation could make timespec_cmp malfunction
24579         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
24580         a multiple of 2^32 nanoseconds as no difference.
24581
24582 2009-10-28  Jim Meyering  <meyering@redhat.com>
24583
24584         fprintftime: wrap macro code argument in "do {...} while(0)"
24585         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
24586         cpy macro must be a statement that can be followed by a semicolon.
24587         Now that the else clause contains a comment and is hence longer
24588         than one line, I require curly braces.  That in turn requires
24589         that we wrap this code block in the standard do...while(0).
24590
24591         fprintftime: remove stray semicolon from previous change
24592         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
24593
24594         fprintftime: avoid a warning about ignored fwrite return value
24595         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
24596         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
24597         that is unsafe.
24598         * modules/fprintftime (Depends-on): Add ignore-value.
24599
24600         exclude: avoid an unwarranted warning
24601         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
24602
24603 2009-10-27  Eric Blake  <ebb9@byu.net>
24604
24605         fseek: avoid compilation failure when fflush is replaced
24606         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
24607         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
24608         module is in use.
24609         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
24610         module is not in use; since REPLACE_FSEEK worked otherwise.
24611         (GNULIB_FTELLO): Likewise for ftell.
24612         Reported by Ian Beckwith and others.
24613
24614 2009-10-27  Bruno Haible  <bruno@clisp.org>
24615
24616         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
24617         Reported by Jim Meyering.
24618
24619 2009-10-27  Jim Meyering  <jim@meyering.net>
24620             Bruno Haible  <bruno@clisp.org>
24621
24622         Avoid warning despite dropping the return value of fwrite.
24623         * lib/unicodeio.c: Include ignore-value.h.
24624         (fwrite_success_callback): Explicitly ignore fwrite's return value.
24625         * modules/unicodeio (Depends-on): Add ignore-value.
24626
24627 2009-10-26  Eric Blake  <ebb9@byu.net>
24628
24629         areadlinkat: fix fallback path
24630         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
24631         pointer and zero.
24632
24633 2009-10-22  Pádraig Brady  <P@draigBrady.com>
24634
24635         Use a better IO block size for modern systems
24636         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
24637         * lib/md2.c: Likewise.
24638         * lib/md4.c: Likewise.
24639         * lib/md5.c: Likewise.
24640         * lib/sha1.c: Likewise.
24641         * lib/sha256.c: Likewise.
24642         * lib/sha512.c: Likewise.
24643
24644 2009-10-22  Eric Blake  <ebb9@byu.net>
24645
24646         tests: avoid several compiler warnings
24647         * tests/test-getcwd.c (main): Avoid buffer underflow.
24648         * tests/test-getdate.c (main): String literals are not safe with
24649         putenv, so use setenv.  Declare unused argument.
24650         * modules/getdate-tests (Depends-on): Add setenv.
24651         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
24652         problems with string literals in char *.
24653         * tests/test-hash.c (main): Avoid shadowing declaration.
24654         (insert_new): Treat string literals as char const *.
24655         * tests/test-getopt.h (test_getopt): Likewise.
24656         (getopt_loop): Alter types to minimize casting elsewhere.
24657         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
24658         (test_getopt_long_posix): Likewise.
24659         (do_getopt_long): Add wrapper to minimize casting.
24660         * tests/test-atexit.c (clear_temp_file): Use void.
24661         * tests/test-areadlink-with-size.c (main): Declare unused
24662         arguments.
24663         * tests/test-areadlink.c (main): Likewise.
24664         * tests/test-areadlinkat-with-size.c (main): Likewise.
24665         * tests/test-areadlinkat.c (main): Likewise.
24666         * tests/test-canonicalize-lgpl.c (main): Likewise.
24667         * tests/test-canonicalize.c (main): Likewise.
24668         * tests/test-dirent-safer.c (main): Likewise.
24669         * tests/test-dirname.c (main): Likewise.
24670         * tests/test-dup2.c (main): Likewise.
24671         * tests/test-fchdir.c (main): Likewise.
24672         * tests/test-fcntl-h.c (main): Likewise.
24673         * tests/test-fcntl-safer.c (main): Likewise.
24674         * tests/test-fdopendir.c (main): Likewise.
24675         * tests/test-fdutimensat.c (main): Likewise.
24676         * tests/test-fflush.c (main): Likewise.
24677         * tests/test-filenamecat.c (main): Likewise.
24678         * tests/test-filevercmp.c (main): Likewise.
24679         * tests/test-fopen-safer.c (main): Likewise.
24680         * tests/test-fopen.c (main): Likewise.
24681         * tests/test-fpending.c (main): Likewise.
24682         * tests/test-fpurge.c (main): Likewise.
24683         * tests/test-freading.c (main): Likewise.
24684         * tests/test-fstatat.c (main): Likewise.
24685         * tests/test-fsync.c (main): Likewise.
24686         * tests/test-futimens.c (main): Likewise.
24687         * tests/test-getndelim2.c (main): Likewise.
24688         * tests/test-gettimeofday.c (main): Likewise.
24689         * tests/test-getopt.c (main): Likewise.
24690         * tests/test-i-ring.c (main): Likewise.
24691         * tests/test-inttypes.c (main): Likewise.
24692         * tests/test-link.c (main): Likewise.
24693         * tests/test-lstat.c (main): Likewise.
24694         * tests/test-math.c (main): Likewise.
24695         * tests/test-md5.c (main): Likewise.
24696         * tests/test-memchr2.c (main): Likewise.
24697         * tests/test-memrchr.c (main): Likewise.
24698         * tests/test-mkdir.c (main): Likewise.
24699         * tests/test-mkdirat.c (main): Likewise.
24700         * tests/test-mkfifoat.c (main): Likewise.
24701         * tests/test-open.c (main): Likewise.
24702         * tests/test-openat-safer.c (main): Likewise.
24703         * tests/test-openat.c (main): Likewise.
24704         * tests/test-quotearg.c (main): Likewise.
24705         * tests/test-rawmemchr.c (main): Likewise.
24706         * tests/test-readlink.c (main): Likewise.
24707         * tests/test-remove.c (main): Likewise.
24708         * tests/test-rename.c (main): Likewise.
24709         * tests/test-renameat.c (main): Likewise.
24710         * tests/test-rmdir.c (main): Likewise.
24711         * tests/test-sha1.c (main): Likewise.
24712         * tests/test-signal.c (main): Likewise.
24713         * tests/test-sigaction.c (main): Likewise.
24714         * tests/test-stat.c (main): Likewise.
24715         * tests/test-stat-time.c (main): Likewise.
24716         * tests/test-stddef.c (main): Likewise.
24717         * tests/test-stdint.c (main): Likewise.
24718         * tests/test-stdio.c (main): Likewise.
24719         * tests/test-stdlib.c (main): Likewise.
24720         * tests/test-strchrnul.c (main): Likewise.
24721         * tests/test-strerror.c (main): Likewise.
24722         * tests/test-string.c (main): Likewise.
24723         * tests/test-strtod.c (main): Likewise.
24724         * tests/test-strverscmp.c (main): Likewise.
24725         * tests/test-symlink.c (main): Likewise.
24726         * tests/test-symlinkat.c (main): Likewise.
24727         * tests/test-sys_stat.c (main): Likewise.
24728         * tests/test-sys_time.c (main): Likewise.
24729         * tests/test-time.c (main): Likewise.
24730         * tests/test-unistd.c (main): Likewise.
24731         * tests/test-unlink.c (main): Likewise.
24732         * tests/test-unlinkat.c (main): Likewise.
24733         * tests/test-utimens.c (main): Likewise.
24734         * tests/test-utimensat.c (main): Likewise.
24735         * tests/test-version-etc.c (main): Likewise.
24736         * tests/test-wchar.c (main): Likewise.
24737         * tests/test-wctype.c (main): Likewise.
24738         * tests/test-xprintf-posix.c (main): Likewise.
24739         * tests/test-posixtm.c (main): Likewise.
24740         (STREQ): Delete unused macro.
24741         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
24742         shadowed variables.
24743         * tests/test-memchr.c (main): Likewise.
24744
24745 2009-10-21  Eric Blake  <ebb9@byu.net>
24746
24747         areadlinkat: avoid failure on older glibc
24748         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
24749         rather than mis-comparing 0 against FUNC_RESULT of char*.
24750
24751 2009-10-21  Bruno Haible  <bruno@clisp.org>
24752
24753         * modules/stpncpy (License): Relicense under LGPLv2+.
24754         Reported by David Lutterkort <lutter@redhat.com>.
24755
24756 2009-10-20  Eric Blake  <ebb9@byu.net>
24757
24758         utimensat: work around Solaris 9 bug
24759         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
24760         has trailing slash bugs.
24761         * tests/test-lutimens.h (test_lutimens): Enhance test.
24762         * tests/test-utimens.h (test_utimens): Likewise.
24763         * doc/posix-functions/utime.texi (utime): Enhance documentation.
24764         * doc/posix-functions/utimes.texi (utimes): Likewise.
24765         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
24766         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
24767         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
24768         * doc/posix-functions/futimens.texi (futimens): Likewise.
24769
24770         fdutimensat: new module
24771         * modules/fdutimensat: New file.
24772         * lib/fdutimensat.c (fdutimensat): Likewise.
24773         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
24774         * MODULES.html.sh (File system functions): Mention module.
24775         * modules/fdutimensat-tests: New test.
24776         * tests/test-fdutimensat.c: Likewise.
24777
24778         doc: regenerate INSTALL
24779         * doc/INSTALL: Reflect recent autoconf update.
24780         * doc/INSTALL.ISO: Likewise.
24781         * doc/INSTALL.UTF-8: Likewise.
24782
24783 2009-10-20  Pádraig Brady  <P@draigBrady.com>
24784
24785         acl: warn if ACL support is not detected
24786         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
24787
24788 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
24789
24790         * lib/nproc.h: Add extern "C" block for C++.
24791
24792 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
24793             Bruno Haible  <bruno@clisp.org>
24794
24795         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
24796         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
24797         * doc/posix-functions/isalpha.texi: Likewise.
24798         * doc/posix-functions/isblank.texi: Likewise.
24799         * doc/posix-functions/iscntrl.texi: Likewise.
24800         * doc/posix-functions/isdigit.texi: Likewise.
24801         * doc/posix-functions/isgraph.texi: Likewise.
24802         * doc/posix-functions/islower.texi: Likewise.
24803         * doc/posix-functions/isprint.texi: Likewise.
24804         * doc/posix-functions/ispunct.texi: Likewise.
24805         * doc/posix-functions/isspace.texi: Likewise.
24806         * doc/posix-functions/isupper.texi: Likewise.
24807         * doc/posix-functions/isxdigit.texi: Likewise.
24808
24809 2009-10-18  Bruno Haible  <bruno@clisp.org>
24810
24811         Tests for module 'isblank'.
24812         * modules/isblank-tests: New file.
24813         * tests/test-isblank.c: New file.
24814
24815         New module 'isblank'.
24816         * lib/isblank.c: New file.
24817         * m4/isblank.m4: New file.
24818         * modules/isblank: New file.
24819         * doc/posix-functions/isblank.texi: Mention the new module.
24820
24821 2009-10-18  Bruno Haible  <bruno@clisp.org>
24822
24823         New module 'ctype'.
24824         * lib/ctype.in.h: New file.
24825         * m4/ctype.m4: New file.
24826         * modules/ctype: New file.
24827         * doc/posix-headers/ctype.texi: Mention the new module.
24828
24829 2009-10-18  Jim Meyering  <meyering@redhat.com>
24830
24831         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
24832         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
24833         right after its initialization, rather than farther down.
24834         Keeping these in close proximity makes it easier to ensure
24835         that each such variable is initialized.  E.g.,
24836
24837             LIB_CLOCK_GETTIME=
24838             AC_SUBST([LIB_CLOCK_GETTIME])
24839
24840         This change also increments these serial numbers.
24841         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
24842         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
24843         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
24844
24845 2009-10-18  Bruno Haible  <bruno@clisp.org>
24846
24847         Don't let environment variables perturb build.
24848         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
24849         (gl_PREREQ_GETHRXTIME): ... not here.
24850
24851 2009-10-18  Bruno Haible  <bruno@clisp.org>
24852
24853         Avoid symlink attack in localcharset module.
24854         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
24855         (O_NOFOLLOW): Define fallback.
24856         (get_charset_aliases): Don't open the file if it is a symbolic link.
24857         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
24858         gl_FCNTL_H.
24859         (gl_FCNTL_H): Require it.
24860         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
24861         * modules/localcharset (Files): Add m4/fcntl_h.m4.
24862         Reported by Fergal Glynn <fglynn@veracode.com>.
24863
24864 2009-10-18  Bruno Haible  <bruno@clisp.org>
24865
24866         Implement nproc for mingw.
24867         * lib/nproc.c: Include <windows.h>
24868         (num_processors): On native Windows platforms, try GetSystemInfo.
24869
24870 2009-10-18  Bruno Haible  <bruno@clisp.org>
24871
24872         Implement nproc for IRIX.
24873         * lib/nproc.c: Include <sys/sysmp.h>.
24874         (num_processors): On IRIX systems, try sysmp.
24875         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
24876
24877 2009-10-18  Bruno Haible  <bruno@clisp.org>
24878
24879         Implement nproc for HP-UX.
24880         * lib/nproc.c: Include <sys/pstat.h>
24881         (num_processors): On HP-UX systems, try pstat_getdynamic.
24882         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
24883         pstat_getdynamic.
24884
24885 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
24886             Bruno Haible  <bruno@clisp.org>
24887
24888         Implement nproc for NetBSD, OpenBSD.
24889         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
24890         (ARRAY_SIZE): New macro.
24891         (num_processors): On BSD systems, try sysctl of HW_NCPU.
24892         * m4/nproc.m4: New file.
24893         * modules/nproc (Files): Add m4/nproc.m4.
24894         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
24895         (Makefile.am): Instead, augment lib_SOURCES.
24896
24897 2009-10-18  Bruno Haible  <bruno@clisp.org>
24898
24899         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
24900         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
24901         sys/param.h.
24902
24903 2009-10-16  Eric Blake  <ebb9@byu.net>
24904
24905         utimensat: new module
24906         * modules/utimensat: New file.
24907         * lib/utimensat.c (utimensat): Likewise.
24908         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
24909         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
24910         so we can work around Linux bugs.
24911         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
24912         * modules/sys_stat (Makefile.am): Substitute them.
24913         * lib/sys_stat.in.h (utimensat): Declare it.
24914         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
24915         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
24916         * modules/utimensat-tests: New test.
24917         * tests/test-utimensat.c: Likewise.
24918
24919         utimens: let lutimens work on non-symlinks
24920         * lib/utimens.c (lutimens): Fall back to utimens rather than
24921         failing with ENOSYS, when file is not a symlink.
24922         (utimens): Reduce redirection.
24923         * tests/test-lutimens.h (test_lutimens): Update test to cover
24924         non-symlinks.
24925         * tests/test-utimens.h (test_utimens): Update test to cover
24926         symlinks.
24927         * tests/test-utimens.c (main): Update caller.
24928
24929         utimens: cache whether utimensat syscall works
24930         * lib/utimens.c (utimensat_works_really): New cache variable.
24931         (fdutimens, lutimens): Use it to avoid failing syscall.
24932
24933         test-stat-time, test-utimens: improve portability
24934         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
24935         ext4 on alpha, and for cygwin.
24936         * tests/test-utimens-common.h: New file.
24937         (nap): Factor delays into single function.
24938         * tests/test-lutimens.h (test_lutimens): Use new header.
24939         * tests/test-futimens.h (test_futimens): Likewise.
24940         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
24941         timestamps to occur from same machine, as was done previously for
24942         test_utimens.
24943         * modules/utimens-tests (Files): Ship new file.
24944         * modules/futimens-tests (Files): Likewise.
24945         Reported in part by Jim Meyering.
24946
24947         sys_stat: sort replacement declarations
24948         * lib/sys_stat.in.h: Sort declarations.
24949         * lib/futimens.c (futimens): Fix typo.
24950
24951 2009-10-15  Jim Meyering  <meyering@redhat.com>
24952
24953         don't let environment settings perturb build
24954         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
24955         could cause a configure-time and/or build-time malfunction.
24956         Typically, a configure-time function-in-library test is performed
24957         via code like this:
24958
24959           LIB_VAR=
24960           AC_SUBST([LIB_VAR])
24961           prefix_saved_LIBS=$LIBS
24962             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
24963                        [test "$ac_cv_search_FUNC" = "none required" ||
24964                         LIB_VAR=$ac_cv_search_FUNC])
24965           LIBS=$prefix_saved_LIBS
24966
24967         However, in each of the files affected by this change, the LIB_VAR=
24968         initialization was omitted.  Thus, when set in the environment, its
24969         value would propagate into generated Makefiles when FUNC is not found
24970         in LIB_NAME.
24971         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
24972         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
24973         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
24974
24975 2009-10-14  Eric Blake  <ebb9@byu.net>
24976
24977         fchdir: avoid infinite recursion in mingw
24978         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
24979         recursing.
24980
24981         test-stat-time: port to mingw
24982         * tests/test-stat-time.c (force_unlink): Return a value.
24983         (test_ctime) [W32]: Fix compilation error.
24984         (nap): Don't call usleep with too large an argument.  Use
24985         force_unlink.
24986         * doc/pastposix-functions/usleep.texi (usleep): Document the
24987         portability issue.
24988
24989 2009-10-13  Jim Meyering  <meyering@redhat.com>
24990
24991         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
24992         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
24993         * modules/pipe-filter-ii: Likewise.
24994         * modules/sys_socket-tests: Likewise.
24995         * modules/tsearch-tests: Likewise.
24996         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
24997         (check): Depend on it.
24998
24999 2009-10-12  Eric Blake  <ebb9@byu.net>
25000
25001         utimens-tests: port to NFS file systems
25002         * tests/test-utimens.h (test_utimens): Refactor utimecmp
25003         comparisons to avoid spurious failures from timestamp drift
25004         between NFS machines.
25005
25006 2009-10-12  Eric Blake  <ebb9@byu.net>
25007
25008         stat-time-tests: minor cleanups
25009         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
25010         * tests/test-stat-time.c (nap): Separate assignment from call.
25011         Suggested by Paolo Bonzini and Bruno Haible.
25012
25013         sys_stat: guarantee struct timespec
25014         * lib/sys_stat.in.h (includes): Always include <time.h>
25015         * modules/sys_stat (Depends-on): Add time.
25016         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
25017         mode_t permission values.
25018         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
25019         get at subsecond timestamps.
25020
25021 2009-10-10  Eric Blake  <ebb9@byu.net>
25022
25023         futimens: new module
25024         * modules/futimens: New file.
25025         * lib/futimens.c (futimens): Likewise.
25026         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
25027         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
25028         we can work around Linux bugs.
25029         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
25030         * modules/sys_stat (Makefile.am): Substitute them.
25031         * lib/sys_stat.in.h (futimens): Declare it.
25032         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
25033         * doc/posix-functions/futimens.texi (futimens): Likewise.
25034         * modules/futimens-tests: New test.
25035         * tests/test-futimens.c: Likewise.
25036
25037         utimens: introduce fdutimens
25038         * lib/utimens.h (fdutimens): New prototype.
25039         * lib/utimens.c (gl_futimens): Move guts...
25040         (fdutimens): ...to new interface.
25041         * tests/test-utimens.c (do_fdutimens): Use it.
25042
25043         utimens: add UTIME_NOW and UTIME_OMIT support
25044         * lib/utimens.c (validate_timespec, update_timespec): New helper
25045         functions.
25046         (gl_futimens, lutimens): Use them.
25047         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
25048         stdbool, sys_stat.
25049         (Link): Mention resulting library dependency.
25050         * modules/utimecmp (Link): Likewise.
25051         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
25052         (Makefile.am): Pick up library dependency.
25053         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
25054         definition.
25055         * tests/test-sys_stat.c: Test the definitions.
25056         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
25057         * NEWS: Document library dependency.
25058
25059         utimecmp: support symlink timestamps
25060         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
25061         hashing when possible.  Use pathconf when available.
25062         (SYSCALL_RESOLUTION): Recognize tighter resolution.
25063         * modules/utimecmp (Depends-on): Add lstat.
25064
25065         utimens: add lutimens interface
25066         * lib/utimens.c (lutimens): New function.
25067         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
25068         * lib/utimens.h (lutimens): Declare new interface.
25069         * tests/test-utimens.c (main): Enhance test.
25070         * tests/test-lutimens.h (test_lutimens): New file.
25071         * modules/utimens-tests (Files): Distribute it.
25072         (Depends-on): Add symlink.
25073         (configure.ac): Check for usleep.
25074
25075         utimens: validate futimens usage
25076         * lib/utimens.c (gl_futimens): Require valid fd up front, using
25077         fewer syscalls on failure later on.  Avoid compiler warning on
25078         mingw.
25079         * modules/utimens (Depends-on): Add dup2.
25080
25081         utimens: add test
25082         * modules/utimens-tests: New test.
25083         * tests/test-utimens.h: New file.
25084         * tests/test-futimens.h: Likewise.
25085         * tests/test-utimens.c: Likewise.
25086
25087         doc: mention timestamp portability issues
25088         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
25089         instead.
25090         * doc/posix-functions/utime.texi (utime): Likewise.
25091         * doc/posix-functions/utimes.texi (utimes): Likewise.
25092         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
25093         instead.
25094         * doc/posix-functions/futimens.texi (futimens): Mention utimens
25095         module.
25096         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
25097         Mention weakness with symlink timestamps.
25098         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
25099         to utimensat/futimens instead.
25100         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
25101
25102         test-dup2: enhance test
25103         * tests/test-dup2.c (main): Also check AT_FDCWD.
25104
25105         test-stat-time: avoid more spurious failures
25106         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
25107         xfs; and avoid race if the two timestamps cross quantization edge.
25108
25109         relocatable: prefer 'file system' over 'filesystem'
25110         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
25111         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
25112         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
25113         * doc/relocatable.texi (Enabling Relocatability): Likewise.
25114         * lib/relocatable.c (compute_curr_prefix): Likewise.
25115
25116 2009-10-10  Jim Meyering  <meyering@redhat.com>
25117
25118         stat-time-tests: check for the usleep function
25119         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
25120
25121 2009-10-10  Bruno Haible  <bruno@clisp.org>
25122
25123         * modules/xnanosleep: Put the Link section after the Include section.
25124
25125 2009-10-09  Eric Blake  <ebb9@byu.net>
25126
25127         dup2: work around FreeBSD 6.1 bug
25128         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
25129         * doc/posix-functions/dup2.texi (dup2): Document it.
25130         Reported by Nelson H. F. Beebe and Jim Meyering.
25131
25132         test-stat-time: port to buggy NFS clients
25133         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
25134         (test_ctime): Also skip test if mtime and ctime are skewed.
25135
25136         maint: prefer 'file system' over 'filesystem'
25137         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
25138         * doc/posix-functions/lstat.texi (lstat): Likewise.
25139         * lib/file-has-acl.c (file_has_acl): Likewise.
25140         * lib/fwriteerror.c [TEST]: Likewise.
25141         * tests/test-areadlink.h (test_areadlink): Likewise.
25142         * tests/test-areadlinkat-with-size.c (main): Likewise.
25143         * tests/test-areadlinkat.c (main): Likewise.
25144         * tests/test-canonicalize-lgpl.c (main): Likewise.
25145         * tests/test-canonicalize.c (main): Likewise.
25146         * tests/test-fstatat.c (main): Likewise.
25147         * tests/test-linkat.c (main): Likewise.
25148         * tests/test-lstat.h (test_lstat_func): Likewise.
25149         * tests/test-mkdir.h (test_mkdir): Likewise.
25150         * tests/test-readlink.h (test_readlink): Likewise.
25151         * tests/test-remove.c (main): Likewise.
25152         * tests/test-rename.h (test_rename): Likewise.
25153         * tests/test-renameat.c (main): Likewise.
25154         * tests/test-rmdir.h (test_rmdir_func): Likewise.
25155         * tests/test-symlink.h (test_symlink): Likewise.
25156         * tests/test-symlinkat.c (main): Likewise.
25157         * tests/test-unlink.h (test_unlink_func): Likewise.
25158         * tests/test-unlinkat.c (main): Likewise.
25159
25160         maint: make realtime library usage explicit
25161         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
25162         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
25163         * modules/settime (Link): Likewise.
25164         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
25165
25166         test-stat-time: speed up execution
25167         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
25168         warning on mingw.
25169         (nap): New helper function.
25170         (prepare_test): Use it to reduce sleep time.
25171         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
25172         execution.
25173         * modules/stat-time-tests (configure.ac): Check for usleep.
25174
25175 2009-10-09  Jim Meyering  <meyering@redhat.com>
25176
25177         selinux-h: always use getfilecon wrappers
25178         * lib/getfilecon.c: New file.
25179         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
25180         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
25181         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
25182         (fgetfilecon): Provide a stub.
25183         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
25184         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
25185         file unconditionally.
25186         When <selinux/selinux.h> is found, arrange to use wrappers.
25187         * modules/selinux-h (Files): Add getfilecon.c.
25188         (Makefile.am): Substitute include-next-related bits
25189         into the now-always-generated selinux/selinux.h file.
25190         * doc/glibc-functions/lgetfilecon.texi: New file.
25191         * doc/glibc-functions/fgetfilecon.texi: New file.
25192         * doc/glibc-functions/getfilecon.texi: New file.
25193         * doc/glibc-functions/getfilecon-desc.texi: New file.
25194         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
25195         which to pull in the new files.
25196         * MODULES.html.sh (Misc): Add selinux-h.
25197
25198 2009-10-08  Jim Meyering  <meyering@redhat.com>
25199
25200         unistd: fix comment typo
25201         * lib/unistd.in.h (euidaccess): Fix a comment typo.
25202
25203 2009-10-08  Eric Blake  <ebb9@byu.net>
25204
25205         areadlink: use SIZE_MAX consistently
25206         * modules/areadlink (Depends-on): Add stdint.
25207         * modules/areadlink-with-size (Depends-on): Likewise.
25208         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
25209         gives NULL; drop sys/types, since unistd gives size_t; and add
25210         stdint for SIZE_MAX.
25211         (SIZE_MAX): Rely on headers.
25212         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
25213         and add stdint.
25214         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
25215         (SIZE_MAX): Likewise.
25216         (INITIAL_BUF_SIZE): Turn into enum.
25217         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
25218
25219 2009-10-08  Jim Meyering  <meyering@redhat.com>
25220
25221         areadlinkat: avoid compilation failure
25222         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
25223         Fix typo in comment.
25224
25225 2009-10-07  Eric Blake  <ebb9@byu.net>
25226
25227         areadlinkat-with-size: new module
25228         * modules/areadlinkat-with-size: New module.
25229         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
25230         * lib/areadlink.h (areadlinkat): Declare it.
25231         * MODULES.html.sh (File system functions): Mention it.
25232         * modules/areadlinkat-with-size-tests: New test.
25233         * tests/test-areadlinkat-with-size.c: New file.
25234
25235         xreadlinkat: new module
25236         * modules/xreadlinkat: New module.
25237         * lib/xreadlinkat.c (xreadlinkat): New file.
25238         * lib/xreadlink.h (xreadlinkat): Declare it.
25239         * MODULES.html.sh (File system functions): Mention it.
25240
25241         areadlinkat: new module
25242         * lib/at-func.c (FUNC_FAIL): New define.
25243         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
25244         * modules/areadlinkat: New module.
25245         * lib/linkat.c (areadlinkat): Move...
25246         * lib/areadlinkat.c (areadlinkat): ...to new file.
25247         * lib/areadlink.h (areadlinkat): Declare it.
25248         * modules/linkat (Depends-on): Add areadlinkat.
25249         * MODULES.html.sh (File system functions): Mention it.
25250         * modules/areadlinkat-tests: New test.
25251         * tests/test-areadlinkat.c: New file.
25252
25253         areadlink, areadlink-with-size: add tests
25254         * modules/areadlink-tests: New test.
25255         * modules/areadlink-with-size-tests: Likewise.
25256         * tests/test-areadlink.h: New file.
25257         * tests/test-areadlink.c: Likewise.
25258         * tests/test-areadlink-with-size.c: Likewise.
25259
25260         maint: minor cleanups
25261         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
25262         _UNUSED_PARAMETER_ instead.
25263         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
25264         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
25265         * modules/linkat-tests (Files): Distribute test-link.h.
25266
25267         openat, utimens: whitespace cleanup
25268         * lib/openat.c: Prefer space throughout, rather than mix of 8
25269         spaces vs. tabs.
25270         * lib/at-func.c: Likewise.
25271         * lib/utimens.c: Likewise.
25272
25273         openat: avoid using wrong fd
25274         * lib/openat.c (openat_permissive): Reject user's fd if saving the
25275         working directory chooses same fd.
25276         * lib/at-func.c (AT_FUNC_NAME): Likewise.
25277
25278         mkdir, mkdirat: fix cygwin 1.5.x bug
25279         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
25280         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
25281         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
25282         bug.
25283         (gl_PREREQ_MKDIR): Delete unused macro.
25284         * modules/mkdir (Files): Track file rename.
25285         (configure.ac): Update macro name.
25286         * modules/openat (Depends-on): Add mkdir.
25287         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
25288
25289         mkdir, mkdirat: add tests
25290         * modules/mkdir-tests: New test.
25291         * tests/test-mkdir.h: New file.
25292         * tests/test-mkdir.c: Likewise.
25293         * tests/test-mkdirat.c: Likewise.
25294         * modules/openat-tests (Files): Add new files.
25295         (Makefile.am): Run new test.
25296
25297 2009-10-06  Eric Blake  <ebb9@byu.net>
25298
25299         doc: tweak *at function documentation
25300         * doc/posix-functions/faccessat.texi (faccessat): Mention
25301         known issue with replacement.
25302         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
25303         * doc/posix-functions/linkat.texi (linkat): Likewise.
25304         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
25305         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
25306         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
25307         * doc/posix-functions/renameat.texi (renameat): Likewise.
25308         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
25309
25310         openat: fix GNU/Hurd bug in unlinkat
25311         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
25312         broken.
25313         * doc/posix-functions/unlink.texi (unlink): Document this.
25314         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
25315
25316         fdopendir: fix GNU/Hurd bug
25317         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
25318         allowing non-directory fds.
25319         * lib/fdopendir.c (rpl_fdopendir): Work around it.
25320         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
25321         * modules/dirent (Makefile.am): Substitute it.
25322         * lib/dirent.in.h (fdopendir): Declare replacement.
25323         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
25324         * tests/test-fdopendir.c (main): Test something other than
25325         /dev/null, since on Hurd that behaves like a directory.
25326
25327         test-symlink: port to GNU/Hurd
25328         * tests/test-symlink.h (test_symlink): Relax expected errno.
25329
25330         doc: tweak more cygwin information
25331         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
25332         now compatible with glibc.
25333         * doc/posix-functions/getopt.texi (getopt): Likewise.
25334
25335         getopt-gnu: add another test
25336         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
25337         guarantee behavior relied on by m4.
25338         * tests/test-getopt.c (main): Use it.
25339         * modules/getopt-posix-tests (Depends-on): Add setenv.
25340         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
25341
25342         getopt: fix compilation on darwin
25343         * lib/getopt.in.h (includes): Leave breadcrumbs during system
25344         include.
25345         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
25346         Reported by Ludovic Courtès.
25347
25348 2009-10-06  Bruno Haible  <bruno@clisp.org>
25349
25350         * modules/size_max (Description): Discourage its use.
25351         Reported by Simon Josefsson.
25352
25353 2009-10-06  Jim Meyering  <meyering@redhat.com>
25354
25355         linkat: avoid compilation failure
25356         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
25357
25358 2009-10-05  Eric Blake  <ebb9@byu.net>
25359
25360         linkat: support Linux 2.6.17
25361         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
25362         linkat on Linux, but allow cache variable override.
25363         * lib/linkat.c (rpl_linkat): Define override.
25364         * modules/linkat (Depends-on): Add symlinkat.
25365         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
25366         * modules/unistd (Makefile.am): Substitute it.
25367         * lib/unistd.in.h (linkat): Declare replacement.
25368         Reported by Pádraig Brady.
25369
25370         quotearg: port test to systems with C.UTF-8 locale
25371         * tests/test-quotearg.c (struct result_strings): Add another
25372         member, differentiating between C.ASCII and C.UTF-8 handling.
25373         (compare_strings): Add parameter.
25374         (main): Adjust all callers.
25375
25376         getopt: avoid clash with FreeBSD _getopt_internal
25377         * lib/getopt.in.h (_getopt_internal): Override the name.
25378         * lib/getopt_int.h (includes): Pick up any overrides.
25379         Reported by Reuben Thomas.
25380
25381         hash: allow C89 compilation
25382         * lib/hash.c (check_tuning): Move declaration before statement.
25383         Reported by Reuben Thomas.
25384
25385 2009-10-05  Karl Berry  <karl@gnu.org>
25386
25387         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
25388
25389 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
25390             Bruno Haible  <bruno@clisp.org>
25391
25392         * lib/uname.c (uname): Use a table-driven algorithm to compute
25393         Windows NT versions.
25394
25395 2009-10-04  Bruno Haible  <bruno@clisp.org>
25396
25397         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
25398         program_invocation_short_name.
25399         * modules/progname (configure.ac): Test for presence of
25400         program_invocation_short_name.
25401         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
25402
25403 2009-10-04  Bruno Haible  <bruno@clisp.org>
25404
25405         * lib/progname.c (set_program_name): Fix comment.
25406         Reported by Jim Meyering.
25407
25408 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
25409             Bruno Haible  <bruno@clisp.org>
25410
25411         * lib/uname.c: Include <string.h>.
25412         (uname): Do only one call to GetVersionEx in the common case.
25413
25414 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
25415             Bruno Haible  <bruno@clisp.org>
25416
25417         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
25418         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
25419         (uname): Add support for Windows CE and various non-x86 CPU types.
25420
25421 2009-10-03  Bruno Haible  <bruno@clisp.org>
25422
25423         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
25424         invocation to tests/configure.ac.
25425         Reported by Ian Beckwith <ianb@erislabs.net>.
25426
25427 2009-10-02  Eric Blake  <ebb9@byu.net>
25428
25429         fchdir: avoid compiler warning
25430         * lib/fchdir.c (canonicalize_file_name)
25431         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
25432
25433         test-open: support mingw errno values
25434         * tests/test-open.h (test_open): Relax test.
25435         * tests/test-fopen.h (test_fopen): Likewise.
25436         * tests/test-openat-safer.c (main): Likewise.
25437
25438         open: fix opening directory on mingw
25439         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
25440
25441         test-open: on GNU/Hurd, /dev/null is a directory
25442         * tests/test-fopen.h (main): Rename...
25443         (test_fopen): ...to this.  Use a guaranteed non-directory when
25444         confirming open behavior on trailing slash.
25445         * tests/test-openat-safer.c (main): Likewise.
25446         * tests/test-open.h (main): Likewise....
25447         (test_open): ...to this.
25448         * tests/test-fopen.c (main): Adjust caller.
25449         * tests/test-fopen-safer.c (main): Likewise.
25450         * tests/test-open.c (main): Likewise.
25451         * tests/test-fcntl-safer.c (main): Likewise.
25452         Reported by Samuel Thibault.
25453
25454         rename, fchdir: don't ignore chdir failure
25455         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
25456         * lib/rename.c (rpl_rename) [W32]: Likewise.
25457         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
25458         an empty destination directory if source cannot be renamed,
25459         although there is still possibility for failure.
25460         * doc/posix-functions/rename.texi (rename): Document the race.
25461         Reported by Jim Meyering.
25462
25463         maint: cleanup whitespace in recent commits
25464         * lib/rename.c (rpl_rename): Remove tabs.
25465         * tests/test-link.h (test_link): Likewise.
25466         * lib/fchdir.c (get_name): Likewise.
25467         Reported by Jim Meyering.
25468
25469 2009-10-02  Ben Pfaff  <blp@gnu.org>
25470
25471         relocatable-prog-wrapper: Add missing dependency on
25472         double-slash-root.
25473         * modules/relocatable-prog-wrapper: Add dependency.
25474         Reported by Ian Beckwith <ianb@erislabs.net>.
25475
25476 2009-10-02  Eric Blake  <ebb9@byu.net>
25477
25478         renameat: fix Solaris bugs
25479         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
25480         needed fixing.
25481         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
25482         * modules/stdio (Makefile.am): Substitute it.
25483         * lib/stdio.in.h (renameat): Declare replacement.
25484         * lib/renameat.c (rpl_renameat): Implement fix.
25485
25486         renameat: new module
25487         * modules/renameat: New file.
25488         * lib/renameat.c (renameat): Likewise.
25489         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
25490         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
25491         * modules/stdio (Makefile.am): Substitute them.
25492         * lib/stdio.in.h (renameat): Declare it.
25493         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
25494         * doc/posix-functions/renameat.texi (renameat): Likewise.
25495         * modules/renameat-tests: New test.
25496         * tests/test-renameat.c: Likewise.
25497
25498         rename: fix mingw bugs
25499         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
25500         directory overwrite bugs.
25501
25502         rename: fix another cygwin 1.5 bug
25503         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
25504         checks.
25505         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
25506         unnecessary cygwin workarounds.  Also work around bug with moving
25507         full directory onto an empty one.
25508         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
25509
25510         rename-dest-slash: merge into rename module
25511         * modules/rename-dest-slash (Status): Mark obsolete.
25512         (Depends-on): Add rename.
25513         (Files): Let rename do it all.
25514         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
25515         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
25516         * m4/rename-dest-slash.m4: ...so this file can be deleted.
25517         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
25518         * lib/rename.c (rpl_rename): Update comments.
25519
25520         rename: fix cygwin 1.5.x bugs
25521         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
25522         * lib/rename.c (rpl_rename): Work around them.
25523         * modules/rename (Depends-on): Add same-inode.
25524
25525         rename: fix Solaris 10 bug
25526         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
25527         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
25528         was the only bug.
25529
25530         rename: fix Solaris 9 bug
25531         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
25532         on non-directory.  Avoid calling exit.
25533         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
25534         strdup.
25535         * modules/rename-tests (Depends-on): Drop lstat.
25536         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
25537         (gl_PREREQ_RENAME): Delete unused macro.
25538
25539         rename-dest-slash: fix NetBSD bug
25540         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
25541         links.
25542         * modules/rename-dest-slash (Depends-on): Add same-inode.
25543
25544         rename-tests: new test, exposes several platform bugs
25545         * modules/rename-tests: New file.
25546         * tests/test-rename.h: Likewise.
25547         * tests/test-rename.c: Likewise.
25548         * doc/posix-functions/rename.texi (rename): Improve documentation,
25549         including bugs that will eventually be fixed in gnulib.
25550
25551 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
25552
25553         * lib/uname.c: Include <stdlib.h>
25554         (uname): Assume version info is available.
25555
25556 2009-10-02  Jim Meyering  <meyering@redhat.com>
25557
25558         gnu-web-doc-update: correct --help output
25559         * build-aux/gnu-web-doc-update: Make --help output relevant.
25560
25561         gnu-web-doc-update: add standard options
25562         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
25563
25564         gnu-web-doc-update: New module.
25565         Use this script to automatically update the on-line web documentation
25566         for your GNU project at http://www.gnu.org/software/$pkg/manual/
25567         * modules/gnu-web-doc-update: New file, from coreutils.
25568         * build-aux/gnu-web-doc-update: New script.
25569
25570 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
25571
25572         link: LoadLibrary is not needed.
25573         * lib/link.c: Use GetModuleHandle.
25574
25575 2009-10-01  Eric Blake  <ebb9@byu.net>
25576
25577         getopt: bump serial number
25578         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
25579         change.
25580
25581         tests: tighten link, rmdir, and remove tests
25582         * tests/test-link.h (includes): No need to use <config.h> here.
25583         Clean up if directory hard link was created, otherwise test for
25584         trailing '.'.
25585         * tests/test-linkat.c (main): Simplify.
25586         * tests/test-remove.c (main): Enhance test for trailing '.'.
25587         * tests/test-rmdir.h (test_rmdir_func): Likewise.
25588
25589 2009-10-01  Jim Meyering  <meyering@redhat.com>
25590
25591         maint.mk: requiring "make major" was annoying, for a "minor" release.
25592         What is intended is "stable", to contrast with alpha and beta,
25593         so require "make stable", not "make major".
25594         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
25595         (get_tool_versions): Likewise.
25596         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
25597
25598 2009-09-30  Ben Pfaff  <blp@gnu.org>
25599
25600         Fix broken build of replacement for Windows tmpfile().
25601         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
25602         flags argument added along with the 'mkostemp' module.
25603
25604 2009-09-28  Bruno Haible  <bruno@clisp.org>
25605
25606         Avoid identifier clash with POSIX function 'remove' defined as a macro.
25607         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
25608         to 'remove_elt'.
25609         (gl_list_remove): Update.
25610         * lib/gl_list.c (gl_list_remove): Update.
25611         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
25612         to 'remove_elt'.
25613         (gl_oset_remove): Update.
25614         * lib/gl_list.c (gl_oset_remove): Update.
25615         Reported by Eric Blake.
25616
25617 2009-09-28  Eric Blake  <ebb9@byu.net>
25618
25619         doc: mention yet more cygwin 1.7 status
25620         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
25621         cygwin.
25622         * doc/glibc-functions/execvpe.texi (execvpe): New file.
25623         * doc/gnulib.texi (Glibc unistd.h): Mention it.
25624
25625         argp: fix test failure
25626         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
25627         that are not upper-case.  Pass correct range to tolower.
25628
25629 2009-09-27  Jim Meyering  <meyering@redhat.com>
25630
25631         test-yesno: work around sparc-dash here-document infelicity
25632         Without this change, the literal \177 byte in a here document
25633         would make dash 0.5.5.1-3 access uninitialized memory.
25634         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
25635         Instead, use a marker, "@", and filter through tr to create the desired
25636         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
25637
25638 2009-09-27  Bruno Haible  <bruno@clisp.org>
25639
25640         Disable untested support for new flavours of ACLs on AIX.
25641         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
25642         progress.
25643         * lib/set-mode-acl.c (qset_acl): Likewise.
25644
25645 2008-12-07  Bruno Haible  <bruno@clisp.org>
25646
25647         Add support for new flavours of ACLs on AIX. (Untested.)
25648         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
25649         (file_has_acl): Add support for newer AIX.
25650         * lib/set-mode-acl.c (qset_acl): Likewise.
25651         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
25652         Rainer Tammer <tammer@tammer.net>.
25653
25654 2009-09-26  Eric Blake  <ebb9@byu.net>
25655
25656         argp: fix compilation of getopt
25657         * lib/getopt.in.h (includes): Use different guard than glibc.
25658         Reported by Sergey Poznyakoff.
25659
25660         doc: mention more cygwin 1.7 status
25661         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
25662         bug.
25663         * doc/posix-functions/execl.texi (execl): Likewise.
25664         * doc/posix-functions/execle.texi (execle): Likewise.
25665         * doc/posix-functions/execlp.texi (execlp): Likewise.
25666         * doc/posix-functions/execv.texi (execv): Likewise.
25667         * doc/posix-functions/execve.texi (execve): Likewise.
25668         * doc/posix-functions/execvp.texi (execvp): Likewise.
25669         * doc/glibc-functions/canonicalize_file_name.texi
25670         (canonicalize_file_name): Cygwin 1.7 now provides this.
25671         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
25672         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
25673         on AT_SYMLINK_NOFOLLOW.
25674
25675 2009-09-24  Eric Blake  <ebb9@byu.net>
25676
25677         test-linkat: make test more robust
25678         * tests/test-linkat.c (main): Avoid collision with EEXIST.
25679
25680         getopt: fix inclusion guards for cygwin
25681         * modules/getopt-posix (Depends-on): Add include-next.
25682         (Makefile.am): Substitute more items in replacement header.
25683         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
25684         <getopt.h>.
25685         * lib/getopt.in.h (includes): Use split inclusion guard, and
25686         prefer <getopt.h> over include <unistd.h> when one is present.
25687         (option): Also override name of 'struct option'.
25688
25689         same-inode: revert prior change; it is not yet ready
25690         * NEWS: Undo mention of this change.
25691         * lib/same-inode.h (same-inode.h): Undo tri-state change.
25692         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
25693         * lib/cycle-check.c (cycle_check): Likewise.
25694         * lib/same.c (same_name): Likewise.
25695         * lib/at-func2.c (at_func2): Likewise.
25696
25697 2009-09-23  Eric Blake  <ebb9@byu.net>
25698
25699         linkat: new module
25700         * modules/linkat: New file.
25701         * lib/at-func2.c (at_func2): Likewise.
25702         * lib/linkat.c (linkat): Likewise.
25703         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
25704         * lib/openat-priv.h (at_func2): Add declaration.
25705         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
25706         * modules/unistd (Makefile.am): Substitute them.
25707         * lib/unistd.in.h (linkat): Declare it.
25708         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
25709         * doc/posix-functions/linkat.texi (linkat): Likewise.
25710         * doc/posix-functions/link.texi (link): Tweak wording.
25711         * tests/test-link.c (main): Move guts...
25712         * tests/test-link.h (test_link): ...into new file.
25713         * modules/linkat-tests: New test.
25714         * tests/test-linkat.c: Likewise.
25715         * modules/link-tests (Files): Ship new file.
25716         (Depends-on): Add stdbool.
25717
25718         dirname: add library-safe mdir_name
25719         * lib/dirname.h (mdir_name): New prototype.
25720         * lib/dirname.c (dir_name): Move guts...
25721         (mdir_name): ...to new function that avoids xalloc_die.
25722
25723         fchdir: another mingw fix
25724         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
25725         * lib/fchdir.c (get_name): New helper method; skips canonicalize
25726         on mingw (where it has not yet been ported), and make it optional
25727         elsewhere.
25728         (_gl_register_fd): Use it.
25729
25730         same-inode: make SAME_INODE tri-state, to port to mingw
25731         * NEWS: Mention this change.
25732         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
25733         st_ino always being 0.
25734         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
25735         * lib/cycle-check.c (cycle_check): Likewise.
25736         * lib/same.c (same_name): Likewise.
25737
25738         lstat: avoid mingw compilation error
25739         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
25740         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
25741         lstat ourselves.
25742         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
25743         was adequate.
25744         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
25745         the checks for lstat.
25746         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
25747
25748         link: fix test failure on Solaris 9
25749         * lib/link.c (rpl_link): Don't assume link will catch bogus
25750         trailing slash on source.
25751
25752         test-symlinkat: enhance test
25753         * tests/test-readlink.c (main): Move guts...
25754         * tests/test-readlink.h (test_readlink): ...into new file.
25755         * tests/test-symlink.c (main): Move guts...
25756         * tests/test-symlink.h (test_symlink): ...into new file.
25757         * tests/test-symlinkat.c (main): Use new files for further
25758         coverage.
25759         (do_symlink, do_readlink): New helper functions.
25760         * modules/symlink-tests (Files): Ship new file.
25761         (Depends-on): Add stdbool.
25762         * modules/readlink-tests (Files): Ship new file.
25763         (Depends-on): Add stdbool.
25764         * modules/symlinkat-tests (Files): Use new files.
25765
25766 2009-09-23  Eric Blake  <ebb9@byu.net>
25767
25768         readlink: document portability issue with symlink length
25769         * doc/posix-functions/lstat.texi (lstat): Mention that some file
25770         systems have bogus st_size on symlinks, and mention the
25771         areadlink-with-size module.
25772         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
25773         * doc/posix-functions/readlink.texi (readlink): Mention the
25774         areadlink module, and ERANGE failure.
25775         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
25776         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
25777
25778         readlink: fix Solaris 9 bug with trailing slash
25779         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
25780         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
25781         * doc/posix-functions/readlink.texi (readlink): Document this.
25782         * modules/readlink-tests: New test.
25783         * tests/test-readlink.c: Likewise.
25784
25785         readlink: fix cygwin 1.5.x bug with return type
25786         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
25787         * lib/unistd.in.h (readlink): Use ssize_t.
25788         * lib/readlink.c (readlink): Likewise.
25789         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
25790         * modules/unistd (Makefile.am): Substitute it.
25791         * lib/unistd.in.h (readlink): Declare replacement.
25792         * doc/posix-functions/readlink.texi (readlink): Document this.
25793
25794         symlink: use throughout gnulib
25795         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
25796         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
25797         symlink is not used.
25798         * modules/symlinkat (Depends-on): Add symlink.
25799         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
25800         * modules/canonicalize-tests (Depends-on): Likewise.
25801         * modules/lstat-tests (Depends-on): Likewise.
25802         * modules/openat-tests (Depends-on): Likewise.
25803         * modules/remove-tests (Depends-on): Likewise.
25804         * modules/rmdir-tests (Depends-on): Likewise.
25805         * modules/unlink-tests (Depends-on): Likewise.
25806         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
25807         * tests/test-canonicalize.c (symlink): Likewise.
25808         * tests/test-fstatat.c (symlink): Likewise.
25809         * tests/test-lstat.c (symlink): Likewise.
25810         * tests/test-remove.c (symlink): Likewise.
25811         * tests/test-rmdir.c (symlink): Likewise.
25812         * tests/test-unlink.c (symlink): Likewise.
25813         * tests/test-unlinkat.c (symlink): Likewise.
25814
25815         symlink: new module, for Solaris 9 bug
25816         * modules/symlink: New file.
25817         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
25818         * lib/symlink.c: Likewise.
25819         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
25820         * modules/unistd (Makefile.am): Substitute them.
25821         * lib/unistd.in.h (symlink): Declare replacement.
25822         * MODULES.html.sh (File system functions): Mention it.
25823         * doc/posix-functions/symlink.texi (symlink): Likewise.
25824         * modules/symlink-tests: New test.
25825         * tests/test-symlink.c: Likewise.
25826
25827 2009-09-23  Bruno Haible  <bruno@clisp.org>
25828
25829         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
25830         when needed.
25831         Test case: gnulib-tool --import --with-tests atexit inttypes.
25832         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
25833
25834 2009-09-23  Bruno Haible  <bruno@clisp.org>
25835
25836         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
25837         subcommand, not in a subshell.
25838
25839 2009-09-22  Eric Blake  <ebb9@byu.net>
25840
25841         unistd: sort replacement declarations
25842         * lib/unistd.in.h: Sort declarations.
25843
25844         open, openat: minor optimization
25845         * lib/open.c (open): If open succeeded, len is non-zero.
25846         * lib/openat.c (rpl_openat): Likewise.
25847
25848         link-follow: ensure correct result
25849         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
25850         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
25851         distinguish between possible failures.
25852
25853 2009-09-21  Eric Blake  <ebb9@byu.net>
25854
25855         fts: avoid compiler warning
25856         * lib/fts.c (dirent_inode_sort_may_be_useful)
25857         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
25858
25859 2009-09-19  Bruno Haible  <bruno@clisp.org>
25860
25861         * lib/progreloc.c (canonicalize_file_name): New declaration.
25862
25863 2009-09-19  Eric Blake  <ebb9@byu.net>
25864
25865         link: fix quoting
25866         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
25867
25868         openat: fix openat bugs on Solaris 9
25869         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
25870         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
25871         * modules/openat (Depends-on): Add open.
25872         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
25873         * modules/fcntl-h (Makefile.am): Substitute it.
25874         * lib/fcntl.in.h (openat): Declare replacement.
25875         * doc/posix-functions/openat.texi (openat): Document this.
25876
25877         openat: move fstatat and unlinkat into correct files
25878         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
25879         compiled.
25880         * lib/openat.c (fstatat, unlinkat): Move...
25881         * lib/fstatat.c (fstatat): ...into correct files.
25882         * lib/unlinkat.c (unlinkat): Likewise.
25883
25884         openat: fix unlinkat bugs on Solaris 9
25885         * lib/unlinkat.c (unlinkat): New file.
25886         * modules/openat (Depends-on): Add unlink.
25887         (Files): Distribute it.
25888         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
25889         trailing slash behavior is broken.
25890         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
25891         * modules/unistd (Makefile.am): Substitute it.
25892         * lib/unistd.in.h (unlinkat): Declare replacement.
25893         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
25894
25895         openat: fix fstatat bugs on Solaris 9
25896         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
25897         stat.
25898         * doc/posix-functions/fstatat.texi (fstatat): Document this.
25899
25900         test-unlinkat: enhance test, to expose Solaris 9 bug
25901         * tests/test-unlink.c (main): Factor guts...
25902         * tests/test-unlink.h (test_rmdir_func): ...into new file.
25903         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
25904         * tests/test-rmdir.c (main): Adjust caller.
25905         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
25906         (unlinker): New helper function.
25907         (rmdirat): Enhance check.
25908         * modules/rmdir-tests (Depends-on): Add stdbool.
25909         * modules/unlink-tests (Depends-on): Likewise.
25910         (Files): Add test-unlink.h.
25911         * modules/openat-tests (Files): Likewise.
25912         (Depends-on): Add unlinkdir.
25913
25914         test-fstatat: new test, to expose Solaris 9 bugs
25915         * tests/test-stat.c (main): Factor guts...
25916         * tests/test-stat.h (test_stat_func): ...into new file.
25917         * tests/test-lstat.c (main): Factor guts...
25918         * tests/test-lstat.h (test_lstat_func): ...into new file.
25919         * tests/test-fstatat.c: New file.
25920         * modules/stat-tests (Files): Add test-stat.h.
25921         * modules/lstat-tests (Files): Add test-lstat.h.
25922         (Depends-on): Add stdbool.
25923         * modules/openat-tests (Depends-on): Add pathmax.
25924         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
25925         (Makefile.am): Run new test.
25926
25927         remove: new module, for mingw and Solaris 9 bugs
25928         * modules/remove: New file.
25929         * lib/remove.c: Likewise.
25930         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
25931         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
25932         * modules/stdio (Makefile.am): Use them.
25933         * lib/stdio.in.h (remove): Declare replacement.
25934         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
25935         * doc/posix-functions/remove.texi (remove): Likewise.
25936         * modules/remove-tests: New test.
25937         * tests/test-remove.c: Likewise.
25938
25939         unlink: new module, for Solaris 9 bug
25940         * modules/unlink: New file.
25941         * lib/unlink.c: Likewise.
25942         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
25943         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
25944         * modules/unistd (Makefile.am): Use them.
25945         * lib/unistd.in.h (stat): Declare replacement.
25946         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
25947         * doc/posix-functions/unlink.texi (unlink): Likewise.
25948         * modules/unlink-tests: New test.
25949         * tests/test-unlink.c: Likewise.
25950
25951         lstat: fix Solaris 9 bug
25952         * lib/lstat.c (lstat): Also check for trailing slash on
25953         non-symlink, non-directories.  Use stat module to simplify logic.
25954         * doc/posix-functions/lstat.texi (lstat): Document it.
25955         * modules/lstat-tests (Depends-on): Add errno, same-inode.
25956         (configure.ac): Check for symlink.
25957         * tests/test-lstat.c (main): Add more tests.
25958
25959         stat: add as dependency to other modules
25960         * modules/chown (Depends-on): Add stat.
25961         * modules/euidaccess (Depends-on): Likewise.
25962         * modules/fchdir (Depends-on): Likewise.
25963         * modules/isdir (Depends-on): Likewise.
25964         * modules/link (Depends-on): Likewise.
25965         * modules/lstat (Depends-on): Likewise.
25966         * modules/mkdir-p (Depends-on): Likewise.
25967         * modules/modechange (Depends-on): Likewise.
25968         * modules/open (Depends-on): Likewise.
25969         * modules/readlink (Depends-on): Likewise.
25970         * modules/same (Depends-on): Likewise.
25971
25972         stat: fix Solaris 9 bug
25973         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
25974         slash.
25975         * lib/stat.c (rpl_stat): Work around it.
25976         * doc/posix-functions/stat.texi (stat): Update documentation.
25977
25978         stat: new module, for mingw bug
25979         * modules/stat: New file.
25980         * lib/stat.c: Likewise.
25981         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
25982         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
25983         * modules/sys_stat (Makefile.am): Use them.
25984         * lib/sys_stat.in.h (stat): Declare replacement.
25985         * lib/openat.c (fstatat): Deal with lstat and stat being function
25986         macros.
25987         * modules/openat (Depends-on): Add inline.
25988         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
25989         * doc/posix-functions/stat.texi (stat): Likewise.
25990         * modules/stat-tests: New test.
25991         * tests/test-stat.c: Likewise.
25992
25993 2009-09-19  Jim Meyering  <meyering@redhat.com>
25994
25995         syntax-check: detect unnecessary inclusion of canonicalize.h
25996         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
25997
25998 2009-09-19  Eric Blake  <ebb9@byu.net>
25999
26000         canonicalize-lgpl: adjust clients to use correct header
26001         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
26002         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
26003         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
26004         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
26005         * lib/progreloc.c (includes): Likewise.
26006
26007 2009-09-19  Jim Meyering  <meyering@redhat.com>
26008
26009         test-posixtm.c: correct a comment
26010         * tests/test-posixtm.c: Correct first-line comment.
26011         Spotted by Eric Blake.
26012
26013 2009-09-16  Jim Meyering  <meyering@redhat.com>
26014
26015         posixtm-tests: make T const-correct; add a test case
26016         * tests/test-posixtm.c (T): Declare const.
26017         Add a test for -(2^31+1).
26018         Remove useless can-succeed-only-in-2002 test.
26019
26020         posixtm-tests: adjust the sole failing test
26021         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
26022         expected output matches what mktime now produces.  Cross-checked via
26023         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
26024
26025         posixtm: move #ifdef'd tests into a new module
26026         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
26027         * tests/test-posixtm.c: ... this new file.
26028         * modules/posixtm-tests: New module.
26029
26030 2009-09-19  Eric Blake  <ebb9@byu.net>
26031
26032         openat: simplify use of at-func.c
26033         * lib/at-func.c (includes): Include prerequisites here, to
26034         simplify requirements on client files.
26035         * lib/openat-priv.h: Add double-inclusion guard.
26036         * lib/faccessat.c (includes): Simplify.
26037         * lib/fchmodat.c (includes): Likewise.
26038         * lib/fchownat.c (includes): Likewise.
26039         * lib/mkdirat.c (includes): Likewise.
26040         * lib/mkfifoat.c (includes): Likewise.
26041         * lib/symlinkat.c (includes): Likewise.
26042
26043         openat: allow return of fd 0
26044         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
26045         * modules/save-cwd (Depends-on): Replace fcntl-safer with
26046         unistd-safer.
26047         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
26048         <fcntl.h>; this module does not leak fds.
26049         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
26050         must be allowed to return 0, leaving openat_safer to add the
26051         safety.
26052         (openat_permissive): Avoid writing to just-opened fd 2 if
26053         restoring the current directory fails.
26054         * lib/openat-die.c (openat_restore_fail): Add comment.
26055         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
26056         (save_cwd): Guarantee safe fd, but without use of open_safer.
26057         * tests/test-openat.c: New test.
26058         * modules/openat-tests (Files, Makefile.am): Distribute and build
26059         new file.
26060
26061         relocatable-prog-wrapper: fix build
26062         * modules/relocatable-prog-wrapper (Files): Update name of
26063         canonicalize m4 file, broken on 2009-09-17.
26064         Reported by emad hajjar <aleppos@hotmail.com>.
26065
26066 2009-09-19  Bruno Haible  <bruno@clisp.org>
26067
26068         * lib/safe-alloc.h: Use the standard header with GPL copyright.
26069         * lib/safe-alloc.c: Likewise.
26070         Reported by Ian Beckwith <ianb@erislabs.net>.
26071
26072 2009-09-18  Bruno Haible  <bruno@clisp.org>
26073
26074         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
26075         Reported by <erobles@sensacd.com.mx>.
26076
26077 2009-09-17  Eric Blake  <ebb9@byu.net>
26078
26079         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
26080         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
26081         slashes when checking if last component is missing.
26082         * tests/test-canonicalize.c (main): Test this.
26083
26084         canonicalize, canonicalize-lgpl: honor // if distinct from /
26085         * modules/canonicalize (Files): Add double-slash-root.m4.
26086         * modules/canonicalize-lgpl (Files): Likewise.
26087         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
26088         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
26089         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
26090         fallback definition.
26091         (canonicalize_filename_mode): Use it to protect //.
26092         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
26093         (__realpath): Likewise.
26094         * tests/test-canonicalize.c (main): Test this.
26095         * tests/test-canonicalize-lgpl.c (main): Likewise.
26096         * modules/canonicalize-tests (Depends-on): Add same-inode.
26097         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
26098
26099         canonicalize-lgpl: fix glibc bug with trailing slash
26100         * m4/canonicalize-lgpl.m4: Move contents...
26101         * m4/canonicalize.m4: ...here.
26102         (gl_CANONICALIZE_LGPL): Factor realpath check...
26103         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
26104         glibc 2.3.5 bug, fixed 2005-04-27.
26105         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
26106         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
26107         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
26108         * modules/canonicalize-lgpl (Files): Manage file rename.
26109         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
26110         * modules/stdlib (Makefile.am): Substitute witness.
26111         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
26112         is needed.
26113         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
26114         replacement is required.
26115         * lib/canonicalize.c (canonicalize_file_name): Likewise.
26116         * doc/glibc-functions/canonicalize_file_name.texi
26117         (canonicalize_file_name): Document this.
26118         * doc/posix-functions/realpath.texi (realpath): Likewise.
26119
26120         canonicalize-lgpl: reject non-directory with trailing slash
26121         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
26122         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
26123         catches failures in glibc 2.3.5.
26124         * tests/test-canonicalize.c (main): Likewise.
26125
26126         canonicalize-lgpl: use native realpath if it works
26127         * lib/canonicalize-lgpl.c (realpath): Guard with
26128         FUNC_REALPATH_WORKS.
26129         * lib/stdlib.in.h (realpath): Make declaration optional based on
26130         HAVE_REALPATH.
26131         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
26132         native realpath works.
26133         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
26134         * modules/stdlib (Makefile.am): Substitute witness.
26135
26136         canonicalize, canonicalize-lgpl: use <stdlib.h>
26137         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
26138         (Include): Mention <stdlib.h>.
26139         (configure.ac): Mention functions we provide.
26140         * modules/canonicalize (configure.ac): Likewise.
26141         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
26142         realpath if canonicalize_file_name is missing.
26143         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
26144         * modules/stdlib (Makefile.am): Substitute witnesses.
26145         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
26146         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
26147         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
26148         * NEWS: Document this.
26149         * doc/glibc-functions/canonicalize_file_name.texi
26150         (canonicalize_file_name): Likewise.
26151         * doc/posix-functions/realpath.texi (realpath): Likewise.
26152         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
26153
26154         test-canonicalize: consolidate into single C program
26155         * tests/test-canonicalize.sh: Delete; move setup into...
26156         * tests/test-canonicalize.c (main): ...the program, making it
26157         easier to run in debugger.  Add some tests.
26158         * modules/canonicalize-tests (Files): Remove unused file.
26159         (Depends-on): Add progname.
26160         (configure.ac, Makefile.am): Simplify.
26161
26162         test-canonicalize-lgpl: consolidate into single C program
26163         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
26164         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
26165         easier to run in debugger.  Add some tests.
26166         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
26167         (configure.ac, Makefile.am): Simplify.
26168
26169         canonicalize: avoid resolvepath
26170         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
26171         unnecessary checks.
26172         * lib/canonicalize.c (includes): Simplify.
26173         (canonicalize_file_name): Drop resolvepath implementation.
26174         * modules/canonicalize (Depends-on): Drop filenamecat.
26175
26176         canonicalize: don't lose errno
26177         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
26178         over calls to free.
26179
26180         canonicalize: simplify errno handling
26181         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
26182         assignment.
26183
26184         canonicalize, canonicalize-lgpl: update module dependencies
26185         * modules/canonicalize (Depends-on): Add extensions, lstat,
26186         pathmax, stdlib.
26187         (Files): Drop pathmax.h.
26188         (configure.ac): Adjust macro name.
26189         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
26190         lstat, stdlib, sys_stat.
26191         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
26192         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
26193         extensions.
26194         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
26195         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
26196         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
26197         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
26198         declaration, if available.
26199         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
26200         we can rely on the readlink module.
26201         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
26202         (includes): Use <unistd.h> unconditionally.
26203
26204 2009-09-17  Eric Blake  <ebb9@byu.net>
26205
26206         maint: make Include sections of modules consistent
26207         * modules/alloca: Use only header name; no need to list #include.
26208         * modules/alloca-opt: Likewise.
26209         * modules/arpa_inet: Likewise.
26210         * modules/canon-host: Likewise.
26211         * modules/configmake: Likewise.
26212         * modules/dirent: Likewise.
26213         * modules/eealloc: Likewise.
26214         * modules/environ: Likewise.
26215         * modules/fchdir: Likewise.
26216         * modules/fcntl: Likewise.
26217         * modules/fcntl-h: Likewise.
26218         * modules/gethrxtime: Likewise.
26219         * modules/gettime: Likewise.
26220         * modules/ignore-value: Likewise.
26221         * modules/inet_ntop: Likewise.
26222         * modules/inet_pton: Likewise.
26223         * modules/inttypes: Likewise.
26224         * modules/isnand-nolibm: Likewise.
26225         * modules/isnanf-nolibm: Likewise.
26226         * modules/mbchar: Likewise.
26227         * modules/mbfile: Likewise.
26228         * modules/mbiter: Likewise.
26229         * modules/mbuiter: Likewise.
26230         * modules/netdb: Likewise.
26231         * modules/netinet_in: Likewise.
26232         * modules/nproc: Likewise.
26233         * modules/pagealign_alloc: Likewise.
26234         * modules/poll: Likewise.
26235         * modules/printf-frexp: Likewise.
26236         * modules/pthread: Likewise.
26237         * modules/putenv: Likewise.
26238         * modules/random_r: Likewise.
26239         * modules/relocatable-prog: Likewise.
26240         * modules/search: Likewise.
26241         * modules/select: Likewise.
26242         * modules/selinux-h: Likewise.
26243         * modules/settime: Likewise.
26244         * modules/signal: Likewise.
26245         * modules/size_max: Likewise.
26246         * modules/socklen: Likewise.
26247         * modules/ssize_t: Likewise.
26248         * modules/stdarg: Likewise.
26249         * modules/stdbool: Likewise.
26250         * modules/stddef: Likewise.
26251         * modules/stdint: Likewise.
26252         * modules/stdio: Likewise.
26253         * modules/stdlib: Likewise.
26254         * modules/string: Likewise.
26255         * modules/strings: Likewise.
26256         * modules/sys_file: Likewise.
26257         * modules/sys_ioctl: Likewise.
26258         * modules/sys_select: Likewise.
26259         * modules/sys_socket: Likewise.
26260         * modules/sys_stat: Likewise.
26261         * modules/sys_time: Likewise.
26262         * modules/sys_times: Likewise.
26263         * modules/sys_utsname: Likewise.
26264         * modules/sys_wait: Likewise.
26265         * modules/sysexits: Likewise.
26266         * modules/time: Likewise.
26267         * modules/times: Likewise.
26268         * modules/tmpfile: Likewise.
26269         * modules/trim: Likewise.
26270         * modules/unistd: Likewise.
26271         * modules/wchar: Likewise.
26272         * modules/wctype: Likewise.
26273
26274 2009-09-17  Bruno Haible  <bruno@clisp.org>
26275
26276         Make getdate.y compile on QNX and NetBSD 5 / i386.
26277         * m4/getdate.m4 (gl_GETDATE): Conditionally define
26278         TIME_T_FITS_IN_LONG_INT.
26279         * lib/getdate.y (long_time_t): New type.
26280         (relative_time): Change type of 'seconds' field to long_time_t.
26281         (get_date): Update types of local variables. Check against overflow
26282         during conversion from long_time_t to time_t.
26283         Reported by Matt Kraai <kraai@ftbfs.org>
26284         and Hasso Tepper <hasso@netbsd.org>.
26285
26286 2009-09-17  Bruno Haible  <bruno@clisp.org>
26287
26288         * modules/COPYING: Update copyright years.
26289         * modules/README: Likeiwse.
26290         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
26291         Reported by Ian Beckwith <ianb@erislabs.net>.
26292
26293 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
26294
26295         * users.txt: Update references for gnuit package.
26296
26297 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
26298
26299         * m4/getdelim.m4: Fix typo in copyright line.
26300
26301 2009-09-17  Bruno Haible  <bruno@clisp.org>
26302
26303         * lib/atoll.c: Use the standard header with GPL copyright.
26304         * lib/argz.in.h: Likewise.
26305         * lib/glob.c: Likewise.
26306         * lib/glob-libc.h: Likewise.
26307         * lib/random_r.c: Likewise.
26308         * lib/siglist.h: Likewise.
26309         * lib/strsignal.c: Likewise.
26310         Reported by Ian Beckwith <ianb@erislabs.net>.
26311
26312 2009-09-17  Eric Blake  <ebb9@byu.net>
26313
26314         rmdir: ensure correct dependency order
26315         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
26316
26317 2009-09-17  Bruno Haible  <bruno@clisp.org>
26318
26319         Disable assertion that fails on NetBSD 5 / i386.
26320         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
26321         Reported by Sam Steingold <sds@gnu.org>
26322         and Hasso Tepper <hasso@netbsd.org>.
26323
26324 2009-09-16  Eric Blake  <ebb9@byu.net>
26325
26326         unlinkdir: port to mingw
26327         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
26328         on which no one can unlink a directory.
26329
26330         stdlib: sort witness names
26331         * modules/stdlib (Makefile.am): Sort replacements.
26332         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
26333         * lib/stdlib.in.h: Likewise.
26334
26335         parse-duration-tests: avoid link failure
26336         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
26337         LIBINTL.
26338         Reported by Tom G. Christensen.
26339
26340         openat-tests: ensure unlinkat behaves like rmdir
26341         * tests/test-rmdir.c (main): Factor guts...
26342         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
26343         * modules/rmdir-tests (Files): Ship new file.
26344         * modules/openat-tests: New test.
26345         * tests/test-unlinkat.c: Likewise.
26346
26347         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
26348         * modules/rmdir-errno (Status, Notice): Now obsolete.
26349
26350         rmdir: work around cygwin 1.5.x and mingw bugs
26351         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
26352         * lib/rmdir.c (rmdir): Work around it.
26353         * modules/rmdir (Status, Notice): No longer obsolete.
26354         (Files): Add dos.m4.
26355         (Depends-on): Add unistd.
26356         (configure.ac): Set witnesses.
26357         (License): Relax to LGPLv2+.
26358         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
26359         * modules/unistd (Makefile.am): Substitute witnesses.
26360         * lib/unistd.in.h (rmdir): Declare replacement.
26361         * doc/posix-functions/rmdir.texi (rmdir): Document this.
26362         * modules/rmdir-tests: New tests.
26363         * tests/test-rmdir.c: Likewise.
26364
26365 2009-09-15  Eric Blake  <ebb9@byu.net>
26366
26367         fchdir: improve use of replacement functions
26368         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
26369         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
26370         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
26371         REPLACE_CLOSEDIR.
26372         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
26373         * modules/sys_stat (Makefile.am): Substitute correct witness.
26374         * modules/dirent (Makefile.am): Likewise.
26375         * modules/unistd (Makefile.am): Likewise.
26376         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
26377         * lib/unistd.in.h (dup): Likewise.
26378         * lib/sys_stat.in.h (fstat): Likewise.
26379
26380         maint: ignore gnulib-tool temp files
26381         * .gitignore: Ignore files created during gnulib-tool --test.
26382
26383 2009-09-13  Jim Meyering  <meyering@redhat.com>
26384
26385         posixtm: don't reject a time that specify "60" as the number of seconds
26386         * lib/posixtm.c (posixtime): The code to reject invalid dates
26387         would also reject a time specified with the .60 suffix.
26388         But POSIX allows that, in order to accommodate leap seconds.
26389         So don't reject it.
26390         (main): Adjust tests accordingly.
26391         * modules/posixtm (Depends-on): Add stpcpy.
26392
26393 2009-09-11  Jim Meyering  <meyering@redhat.com>
26394
26395         announce-gen: include [$release_type] in emitted Subject:
26396         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
26397         e.g., [stable] in the emitted Subject: line.
26398
26399 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26400
26401         Remove obsolete macros from several modules.
26402         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
26403         obsolete Autoconf macros with their modern counterparts.
26404         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
26405         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
26406         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
26407         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
26408         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
26409         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
26410         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
26411         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
26412         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
26413         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
26414         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
26415         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
26416         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
26417         * m4/sockets.m4 (gl_SOCKETS): Likewise.
26418         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
26419         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
26420         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
26421         * m4/time_r.m4 (gl_TIME_R): Likewise.
26422         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
26423         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
26424         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
26425
26426         Fix copyright header in build-aux scripts.
26427         * build-aux/git-version-gen: Fix copyright header to match GPLv3
26428         recommendation.
26429         * build-aux/ncftpput-ftp: Likewise.
26430         * build-aux/update-copyright: Likewise.
26431
26432 2009-09-09  Eric Blake  <ebb9@byu.net>
26433
26434         test-link: allow Linux choice of errno
26435         * tests/test-link.c (main): Relax test for alternate error.
26436
26437         strndup: fix improper m4 caching
26438         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
26439         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
26440         (gl_PREREQ_STRNDUP): Delete.
26441         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
26442         * modules/string (Makefile.am): Substitute it.
26443         * lib/string.in.h (strndup): Modernize prototype.
26444
26445         getcwd: port to mingw
26446         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
26447         different from the POSIX assumptions made throughout the getcwd
26448         module; fortunately, the mingw getcwd does not need replacement.
26449         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
26450         * modules/getcwd-tests: New test.
26451         * tests/test-getcwd.c: Likewise.
26452
26453         link: fix platform bugs
26454         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
26455         * lib/link.c (link): Work around them.  Fix related mingw bug.
26456         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
26457         * modules/unistd (Makefile.am): Substitute it.
26458         * lib/unistd.in.h (link): Declare replacement.
26459         * doc/posix-functions/link.texi (link): Document this.
26460         * modules/link (Depends-on): Add strdup-posix, sys_stat.
26461
26462         test-link: consolidate into single C program, test more cases
26463         * tests/test-link.sh: Delete.
26464         * tests/test-link.c: Test more error conditions.  Exposes bugs on
26465         at least Cygwin and Solaris.
26466         * modules/link-tests (Files): Remove unused file.
26467         (Depends-on): Add errno, sys_stat.
26468         (Makefile.am): Simplify.
26469
26470 2009-09-08  Bruno Haible  <bruno@clisp.org>
26471
26472         Work around towlower, towupper bug on mingw.
26473         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
26474         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
26475         * doc/posix-functions/towlower.texi: Mention the mingw bug.
26476         * doc/posix-functions/towupper.texi: Likewise.
26477         Reported by Eric Blake.
26478
26479 2009-09-08  Jim Meyering  <meyering@redhat.com>
26480
26481         build: don't try to run autoheader if we don't use it
26482         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
26483         is not used in configure.ac.
26484
26485 2009-09-08  Eric Blake  <ebb9@byu.net>
26486
26487         euidaccess: fix compilation error
26488         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
26489
26490         rawmemchr: relax license
26491         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
26492         okay.
26493         Reported by Jim Meyering.
26494
26495         mkfifoat: new module
26496         * modules/mkfifoat: New file.
26497         * lib/mkfifoat.c: Likewise.
26498         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
26499         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
26500         * modules/sys_stat (Makefile.am): Use them.
26501         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
26502         * MODULES.html.sh (File system functions): Mention module.
26503         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
26504         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
26505         * modules/mkfifoat-tests: New test.
26506         * tests/test-mkfifoat.c: Likewise.
26507
26508         strchrnul: relax license
26509         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
26510         okay.
26511         Reported by Jim Meyering.
26512
26513 2009-09-08  Eric Blake  <ebb9@byu.net>
26514
26515         fstatat: fix compilation on Solaris
26516         * lib/fstatat.c (includes): Add fcntl.h.
26517         Reported by Pádraig Brady.
26518
26519 2009-09-07  Eric Blake  <ebb9@byu.net>
26520
26521         rename: modernize replacement
26522         * modules/rename (Depends-on): Add stdio.
26523         (configure.ac): Declare witness.
26524         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
26525         stdio take care of replacement.
26526         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
26527         * modules/stdio (Makefile.am): Substitute them.
26528         * lib/stdio.in.h (rename): Declare replacement.
26529         * lib/rename.c (includes): Allow cross-compilation to non-windows
26530         machines.
26531         * doc/posix-functions/rename.texi (rename): Improve
26532         documentation.
26533
26534         stdio: sort witness names
26535         * modules/stdio (Makefile.am): Sort replacements.
26536         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
26537         * lib/stdio.in.h: Likewise.
26538
26539         getcwd: minor cleanups
26540         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
26541         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
26542
26543         openat: provide more convenience names
26544         * modules/faccessat (configure.ac): Add C witness.
26545         * lib/unistd.in.h (readlinkat): Fix typo.
26546         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
26547         convenience wrappers.
26548         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
26549         wrappers in syntax checks.
26550
26551 2009-09-06  Eric Blake  <ebb9@byu.net>
26552
26553         doc: fix comments in recent patches
26554         * lib/faccessat.c: Mention correct function.
26555         * lib/fchmodat.c: Likewise.
26556         * lib/fchownat.c: Likewise.
26557         * lib/symlinkat.c: Likewise.
26558         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
26559         constants.
26560
26561         faccessat, symlinkat: continue cleanup of previous patch
26562         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
26563         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
26564         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
26565         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
26566         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
26567         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
26568         set.
26569
26570 2009-09-06  Bruno Haible  <bruno@clisp.org>
26571
26572         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
26573         (fstatat): Declare if GNULIB_FSTATAT is set.
26574         (mkdirat): Declare if GNULIB_MKDIRAT is set.
26575         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
26576         (unlinkat): Declare if GNULIB_UNLINKAT is set.
26577         * modules/fcntl-h (Files): Remove m4/openat.m4.
26578         * modules/sys_stat (Files): Remove m4/openat.m4.
26579         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
26580         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
26581         * modules/unistd (Files): Remove m4/openat.m4.
26582         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
26583         GNULIB_OPENAT.
26584         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
26585         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
26586         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
26587         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
26588         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
26589         gl_OPENAT_DEFAULTS.
26590         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
26591         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
26592         Don't require gl_OPENAT_DEFAULTS.
26593         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
26594         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
26595         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
26596         (gl_OPENAT_DEFAULTS): Remove macro.
26597
26598 2009-09-06  Bruno Haible  <bruno@clisp.org>
26599
26600         * modules/openat (configure.ac): Remove unneeded witness.
26601
26602 2009-09-06  Bruno Haible  <bruno@clisp.org>
26603
26604         Set errno to ENOSYS when a function is entirely unsupported.
26605         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
26606         EOPNOTSUPP.
26607         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
26608         * modules/chown (Depends-on): Remove errno.
26609
26610 2009-09-06  Bruno Haible  <bruno@clisp.org>
26611
26612         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
26613
26614 2009-09-06  Bruno Haible  <bruno@clisp.org>
26615
26616         * lib/sys_stat.in.h: Fix preprocessor command indentation.
26617
26618 2009-09-06  Ben Pfaff  <blp@gnu.org>
26619             Bruno Haible  <bruno@clisp.org>
26620
26621         Work around a glibc bug in strtok_r.
26622         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
26623         Undefine if UNDEFINE_STRTOK_R is set.
26624         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
26625         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
26626         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
26627         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
26628         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
26629         UNDEFINE_STRTOK_R.
26630         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
26631
26632 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
26633
26634         exclude: minor fix
26635         * lib/exclude.c: Include wctype.h
26636
26637 2009-09-06  Akim Demaille  <demaille@gostai.com>
26638
26639         bootstrap: improve error message
26640         * build-aux/bootstrap (find_tool): Upon failure, report the list
26641         of candidates.
26642         Honor the initial value of the envvar.
26643
26644 2009-09-05  Eric Blake  <ebb9@byu.net>
26645
26646         symlinkat: new module
26647         * modules/symlinkat: New file.
26648         * lib/symlinkat.c: Likewise.
26649         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
26650         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
26651         * modules/unistd (Makefile.am): Use them.
26652         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
26653         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
26654         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
26655         * MODULES.html.sh (File system functions): Mention module.
26656         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
26657         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
26658         * modules/symlinkat-tests: New test.
26659         * tests/test-symlinkat.c: Likewise.
26660
26661         test-openat-safer: add more checks
26662         * tests/test-openat-safer.c (main): Check more code paths.
26663
26664 2009-09-05  Jim Meyering  <meyering@redhat.com>
26665
26666         syntax-check: detect unnecessary inclusion of openat.h
26667         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
26668
26669 2009-09-05  Bruno Haible  <bruno@clisp.org>
26670
26671         Support towlower, towupper.
26672         * doc/posix-functions/towlower.texi: Mention module wctype.
26673         * doc/posix-functions/towupper.texi: Likewise.
26674         * lib/wctype.in.h (towlower, towupper): New functions.
26675         * tests/test-wctype.c: Include stdio.h, stdlib.h.
26676         (ASSERT): New macro.
26677         (e): New variable.
26678         (main): Test also towlower, towupper. Test WEOF argument.
26679         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
26680
26681 2009-09-05  Bruno Haible  <bruno@clisp.org>
26682
26683         Fix conversion behaviour when the input is invalid.
26684         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
26685         mark occurring in first pass of indirect conversion.
26686         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
26687         input.
26688         Found by clang's static analyzer.
26689
26690 2009-09-05  Bruno Haible  <bruno@clisp.org>
26691
26692         * tests/test-striconveh.c (main): Test indirect conversion on platforms
26693         where direct conversion is possible.
26694
26695 2009-09-04  Eric Blake  <ebb9@byu.net>
26696
26697         openat: fail with ENOENT on empty name
26698         * lib/openat-proc.c (openat_proc_name): Special-case the empty
26699         buffer.
26700
26701         link-follow: fix logic bug in prior patch
26702         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
26703         reversed sense of yes and no in prior patch.  Avoid confusing
26704         compilation failure with desired semantics.
26705
26706         link-follow: accomodate mingw and cross-compilation
26707         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
26708         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
26709         cross-compilation results to -1, to make linkat easier to
26710         implement when cross-compiling.  Trivially support mingw.
26711         * modules/link-follow (configure.ac): Call new name.
26712         * NEWS: Mention this.
26713
26714 2009-09-03  Eric Blake  <ebb9@byu.net>
26715
26716         faccessat: compile replacement
26717         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
26718         needed.
26719
26720         fts: fix compilation error
26721         * lib/fts.c (includes): Re-add "openat.h", for
26722         openat_needs_fchdir.
26723
26724         faccessat: new module
26725         * modules/faccessat: New file.
26726         * lib/faccessat.c: Likewise.
26727         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
26728         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
26729         * modules/unistd (Makefile.am): Use it.
26730         * lib/unistd.in.h (faccessat): Declare it.
26731         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
26732         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
26733         * MODULES.html.sh (File system functions): Mention it.
26734         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
26735         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
26736
26737         euidaccess: prefer POSIX over non-standard implementation
26738         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
26739         * lib/euidaccess.c (euidaccess): Use it if available.
26740
26741         openat: make template easier to use
26742         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
26743         AT_FUNC_F2 to be undefined.
26744         (VALIDATE_FLAG): New macro; use it to reject bad flags.
26745         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
26746         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
26747         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
26748         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
26749         Likewise.
26750         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
26751         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
26752         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
26753         Likewise.
26754
26755         openat: declare in POSIX headers
26756         * NEWS: Mention this.
26757         * modules/openat (configure.ac): Declare witnesses.
26758         (Depends-on): Add fcntl-h, sys_stat, unistd.
26759         (Include): Mention correct headers.
26760         * modules/fcntl-h (Depends-on): Add link-warning.
26761         (Files): Add openat.m4.
26762         (Makefile.am): Substitute witnesses.
26763         * modules/sys_stat (Files, Makefile.am): Likewise.
26764         * modules/unistd (Files, Makefile.am): Likewise.
26765         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
26766         (gl_OPENAT_DEFAULTS): New macro.
26767         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
26768         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
26769         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
26770         (SYS_STAT_H): Remove unused variable.
26771         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
26772         * lib/fcntl--.h (includes): Remove unneeded header.
26773         * lib/openat-safer.c (includes): Likewise.
26774         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
26775         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
26776         appropriate headers.
26777         (__OPENAT_PREFIX): Delete.
26778         * lib/fcntl.in.h (openat): Provide declaration.
26779         (AT_FDCWD): Fix Solaris bug.
26780         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
26781         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
26782         * lib/fchmodat.c (includes):  Adjust to find declaration.
26783         * lib/fchownat.c (includes): Likewise.
26784         * lib/mkdirat.c (includes): Likewise.
26785         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
26786         still visible.
26787
26788 2009-09-02  Eric Blake  <ebb9@byu.net>
26789
26790         errno: use consistently
26791         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
26792         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
26793         * lib/canonicalize.c (ELOOP): Likewise.
26794         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
26795         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
26796         * lib/lchown.c (EOPNOTSUPP): Likewise.
26797         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
26798         * lib/savewd.c (ESTALE): Likewise.
26799         * lib/settime.c (ENOSYS): Likewise.
26800         * lib/utimens.c (ENOSYS): Likewise.
26801         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
26802         * lib/chdir-safer.c (ELOOP): Likewise.
26803         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
26804         * modules/c-stack (Depends-on): Add errno.
26805         * modules/canonicalize (Depends-on): Likewise.
26806         * modules/chdir-safer (Depends-on): Likewise.
26807         * modules/fdopendir (Depends-on): Likewise.
26808         * modules/inet_ntop (Depends-on): Likewise.
26809         * modules/inet_pton (Depends-on): Likewise.
26810         * modules/lchown (Depends-on): Likewise.
26811         * modules/openat (Depends-on): Likewise.
26812         * modules/savewd (Depends-on): Likewise.
26813         * modules/settime (Depends-on): Likewise.
26814         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
26815
26816         fts: avoid leaking fds
26817         * modules/fts (Depends-on): Add cloexec.
26818         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
26819         flag.
26820
26821         fts: make directory fds more robust
26822         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
26823         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
26824
26825         backupfile, chdir-long, fts, savedir: make safer
26826         * lib/backupfile.c (includes): Use "dirent--.h", since
26827         numbered_backup can write to stderr during readdir.
26828         * lib/savedir.c (includes): Likewise.
26829         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
26830         emulation can write to stderr on failure.
26831         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
26832         * lib/getcwd.c: Document why opendir_safer is unused.
26833         * lib/glob.c: Likewise.
26834         * lib/scandir.c: Likewise.
26835         * lib/openat-proc.c: Likewise, for open_safer.
26836         * modules/backupfile (Depends-on): Add dirent-safer.
26837         * modules/savedir (Depends-on): Likewise.
26838         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
26839         * modules/chdir-long (Depends-on): Add openat-safer.
26840
26841         openat-safer: new module
26842         * modules/openat-safer: New file.
26843         * lib/openat-safer.c: Likewise.
26844         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
26845         * lib/fcntl-safer.h (openat_safer): Declare.
26846         * lib/fcntl--.h (openat): Override.
26847         * MODULES.html.sh (File descriptor based I/O): Mention it.
26848         * lib/openat.h: Add double-inclusion guards.
26849         * lib/openat.c (includes): Only include "fcntl-safer.h", not
26850         "fcntl--.h", so we can implement openat.
26851         * modules/openat-safer-tests: New test.
26852         * tests/test-openat-safer.c: New file.
26853
26854         dirent-safer: new module
26855         * modules/dirent-safer: New file.
26856         * lib/dirent--.h: Likewise.
26857         * lib/dirent-safer.h: Likewise.
26858         * lib/opendir-safer.c: Likewise.
26859         * m4/dirent-safer.m4: Likewise.
26860         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
26861         * modules/dirent-safer-tests: New test.
26862         * tests/test-dirent-safer.c: New file.
26863         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
26864
26865         fdopendir: optimize on mingw
26866         * lib/unistd.in.h (_gl_directory_name): New prototype.
26867         * lib/fchdir.c (_gl_directory_name): Implement it.
26868         (fchdir): Use it to simplify implementation.
26869         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
26870         fchdir, when available, to avoid calling [f]chdir().
26871
26872         fdopendir: split into its own module
26873         * lib/openat.c (fdopendir): Move...
26874         * lib/fdopendir.c: ...into new file.
26875         * modules/fdopendir: New module.
26876         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
26877         * modules/openat (Depends-on): Add fdopendir.
26878         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
26879         fdopendir here.
26880         * modules/savedir (Depends-on): Only need fdopendir, not full
26881         openat.
26882         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
26883         * lib/openat.h (fdopendir): Drop prototype.
26884         * lib/dirent.in.h (fdopendir): Provide prototype.
26885         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
26886         * modules/dirent (Makefile.am): Substitute them.
26887         * MODULES.html.sh (File system functions): Mention it.
26888         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
26889         * modules/fdopendir-tests: New file.
26890         * tests/test-fdopendir.c: Likewise.
26891
26892         fchdir: use more consistent macro convention
26893         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
26894         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
26895         REPLACE_FCHDIR, rather than relying on config.h macros.
26896         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
26897         inside a single make-time REPLACE_FCHDIR block, rather than using
26898         the config.h FCHDIR_REPLACEMENT.
26899         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
26900         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
26901         Manage fstat replacement.
26902         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
26903         REPLACE_FCHDIR.
26904         * modules/sys_stat (Files): Add m4/unistd_h.m4.
26905         (Makefile.am): Substitute REPLACE_FCHDIR.
26906         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
26907         FCHDIR_REPLACEMENT.
26908         * lib/dup-safer.c (dup_safer): Likewise.
26909         * lib/dup2.c (rpl_dup2): Likewise.
26910         * lib/dup3.c (rpl_dup3): Likewise.
26911         * lib/open.c (rpl_open): Likewise.
26912
26913         fchdir: simplify error handling, and support dup3
26914         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
26915         stdbool, malloc-posix, realloc-posix.
26916         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
26917         (ensure_dirs_slot): Return false on allocation failure.
26918         (rpl_dup2): Delete.
26919         (_gl_register_dup): New function.
26920         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
26921         (_gl_register_fd): Close fd on allocation failure.
26922         * lib/fcntl.in.h (_gl_register_fd): Update signature.
26923         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
26924         prototype.
26925         (rpl_dup2_fchdir): Delete prototype.
26926         * lib/open.c (open): Update caller.
26927         * lib/dup2.c (dup2): Track fchdir metadata.
26928         * lib/dup3.c (dup3): Likewise.
26929         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
26930         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
26931
26932 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26933
26934         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
26935         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
26936         don't pass arguments to AC_OUTPUT.
26937
26938 2009-09-02  Bruno Haible  <bruno@clisp.org>
26939
26940         * modules/mkdtemp (License): Relicense under LGPLv2+.
26941         Reported by Paolo Bonzini.
26942
26943 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26944
26945         Replace uses of obsolete autoconf macros in Jim's modules.
26946         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
26947         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
26948         can evoke a warning from autoconf when run with -Wobsolete
26949         enabled.  They were declared obsolete for good reasons (see
26950         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
26951         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
26952         should not continue using the deprecated macros.
26953         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
26954         obsolete Autoconf macros with modern counterparts.
26955         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
26956         * m4/dos.m4 (gl_AC_DOS): Likewise.
26957         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
26958         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
26959         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
26960         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
26961         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
26962         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
26963         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
26964         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
26965         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
26966         Likewise.
26967         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
26968         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
26969         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
26970         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
26971         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
26972         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
26973
26974 2009-09-01  Eric Blake  <ebb9@byu.net>
26975
26976         fchdir: fix off-by-one bug in previous patch
26977         * lib/fchdir.c (rpl_fstat): Use correct bounds.
26978         (_gl_unregister_fd): Delete useless if.
26979
26980 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
26981
26982         maint.mk: sort the list of syntax-check rules
26983         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
26984         easier to get a sense of progress when the rules are run sequentially
26985         and take a long time.
26986
26987 2009-09-01  Simon Josefsson  <simon@josefsson.org>
26988
26989         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
26990         * modules/netinet_in: Likewise.
26991         * modules/sys_file: Likewise.
26992         * modules/sys_ioctl: Likewise.
26993         * modules/sys_select: Likewise.
26994         * modules/sys_socket: Likewise.
26995         * modules/sys_stat: Likewise.
26996         * modules/sys_time: Likewise.
26997         * modules/sys_times: Likewise.
26998         * modules/sys_utsname: Likewise.
26999         * modules/sys_wait: Likewise.
27000
27001 2009-09-01  Jim Meyering  <meyering@redhat.com>
27002
27003         fts: help ensure that return values are not ignored
27004         * lib/fts_.h (__GNUC_PREREQ): Define.
27005         (__attribute_warn_unused_result__): Define.
27006         (fts_children, fts_close, fts_open, fts_read): Declare with
27007         __attribute_warn_unused_result__.
27008
27009         fts: fts_close now fails also when closing a dir file descriptor fails
27010         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
27011         and propagate to caller, along with errno.
27012
27013         announce-gen: correct formatting in --help output
27014         * build-aux/announce-gen (usage): Move the one-line description in
27015         --help output "up", to where it belongs, just after Usage:.
27016
27017 2009-08-31  Eric Blake  <ebb9@byu.net>
27018
27019         fchdir: port to mingw
27020         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
27021         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
27022         opened, then use a substitute.
27023         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
27024         replacement.
27025         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
27026         (_gl_register_fd): No need to check stat if open already filters
27027         all directories.
27028         (fchdir): Fix error condition to match POSIX.
27029         * modules/fchdir (Depends-on): Add sys_stat.
27030         * doc/posix-functions/open.texi (open): Document the limitation.
27031         * modules/fchdir-tests: New file.
27032         * tests/test-fchdir.c: Likewise.
27033
27034         canonicalize: allow cross-testing from cygwin to mingw
27035         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
27036         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
27037         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
27038         Likewise.
27039         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
27040         target does not support symlinks.
27041         * tests/test-canonicalize-lgpl.sh: Likewise.
27042
27043         chown: avoid compilation warning on mingw
27044         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
27045         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
27046         mingw.
27047         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
27048         * modules/chown (Depends-on): Add errno.
27049
27050 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
27051
27052         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
27053         command.
27054
27055 2009-08-31  Jim Meyering  <meyering@redhat.com>
27056
27057         canonicalize: remove useless initialization
27058         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
27059         initialization of local, "end".
27060
27061 2009-08-30  Bruno Haible  <bruno@clisp.org>
27062
27063         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
27064         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
27065         ENOSYS.
27066
27067 2009-08-30  Bruno Haible  <bruno@clisp.org>
27068
27069         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
27070         /usr/xpg4/bin/tr when it exists.
27071         * tests/test-pipe-filter-gi1.sh: Likewise.
27072
27073 2009-08-30  Bruno Haible  <bruno@clisp.org>
27074
27075         Work around deficient /usr/bin/id program on Solaris.
27076         * tests/test-file-has-acl.sh (ID): New variable.
27077         * tests/test-set-mode-acl.sh (ID): Likewise.
27078         * tests/test-copy-acl.sh (ID): Likewise.
27079         * tests/test-copy-file.sh (ID): Likewise.
27080
27081 2009-08-30  Bruno Haible  <bruno@clisp.org>
27082
27083         New module 'xstriconveh'.
27084         * lib/xstriconveh.h: New file.
27085         * lib/xstriconveh.c: New file.
27086         * modules/xstriconveh: New file.
27087
27088 2009-08-30  Bruno Haible  <bruno@clisp.org>
27089
27090         Make it easier to use mem_cd_iconveh.
27091         * lib/striconveh.h (iconveh_t): New type.
27092         (iconveh_open, iconveh_close): New declarations.
27093         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
27094         with a single 'const iconveh_t *' argument.
27095         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
27096         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
27097         with a single 'const iconveh_t *' argument.
27098         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
27099         * tests/test-striconveh.c (main): Update.
27100         * NEWS: Mention the change.
27101
27102 2009-08-30  Bruno Haible  <bruno@clisp.org>
27103
27104         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
27105         problem.
27106
27107 2009-08-30  Bruno Haible  <bruno@clisp.org>
27108
27109         Work around iconv_open problem on Solaris.
27110         * lib/iconv_open-solaris.gperf: New file.
27111         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
27112         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
27113         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
27114         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
27115         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
27116         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
27117
27118 2009-08-29  Jim Meyering  <meyering@redhat.com>
27119
27120         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
27121         * top/maint.mk (cvs-check): Remove target; it was just an alias
27122         to the better-named vc-diff-check.
27123         (maintainer-distcheck): Remove rule.  It was used only from
27124         the (alpha/beta/major) target, and all of its commands but one
27125         were coreutils-specific.
27126         (vc-dist): Remove rule.
27127         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
27128         Run vc-diff-check, not vc-dist.
27129         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
27130
27131 2009-08-27  Bruno Haible  <bruno@clisp.org>
27132
27133         * tests/test-bitrotate.c (main): Remove test that uses a shift count
27134         of 0.
27135
27136 2009-08-27  Bruno Haible  <bruno@clisp.org>
27137
27138         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
27139         compilers.
27140         * doc/func.texi: Document the SunPRO C bug.
27141
27142 2009-08-27  Bruno Haible  <bruno@clisp.org>
27143
27144         Fix link error on Solaris.
27145         * tests/test-parse-duration.c (xstrdup): Remove function.
27146
27147 2009-08-26  Pádraig Brady  <P@draigbrady.com>
27148
27149         ignore-value: handle pointer types, too
27150         * lib/ignore-value.h (__attribute__): Remove definition.
27151         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
27152         of a more concise and more-often effective "(void) i" statement.
27153         (ignore_ptr): New function to suppress warnings from functions that
27154         return pointers, and to make it explicit that one function doesn't
27155         handle all cases.
27156
27157 2009-08-25  Bruno Haible  <bruno@clisp.org>
27158
27159         dup2: work around a Linux bug.
27160         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
27161         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
27162         * doc/posix-functions/dup2.texi: Mention the Linux bug.
27163         Reported by Simon Josefsson.
27164
27165 2009-08-25  Jim Meyering  <meyering@redhat.com>
27166
27167         libguestfs uses gnulib
27168         * users.txt: Add libguestfs.
27169
27170 2009-08-24  Eric Blake  <ebb9@byu.net>
27171
27172         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
27173         * lib/pipe2.c (includes): Add binary-io.h.
27174         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
27175
27176 2009-08-24  Bruno Haible  <bruno@clisp.org>
27177
27178         Tolerate declared but missing accept4 syscall.
27179         * lib/accept4.c (accept4): Invoke original accept4 function first, if
27180         available.
27181         * lib/sys_socket.in.h (accept4): If the function is already present,
27182         override it.
27183         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
27184         * modules/accept4 (Makefile.am): Compile accept4.c always.
27185         Reported by Paolo Bonzini and Eric Blake.
27186
27187 2009-08-23  Bruno Haible  <bruno@clisp.org>
27188
27189         New module 'accept4'.
27190         * lib/sys_socket.in.h (accept4): New declaration.
27191         * lib/accept4.c: New file.
27192         * m4/accept4.m4: New file.
27193         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
27194         GNULIB_ACCEPT4, HAVE_ACCEPT4.
27195         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
27196         HAVE_ACCEPT4.
27197         * modules/accept4: New file.
27198         * doc/glibc-functions/accept4.texi: Mention the new module.
27199
27200 2009-08-24  Jim Meyering  <meyering@redhat.com>
27201
27202         progname: also set global program_invocation_name, when possible
27203         Before this change, a libtool-enabled program that calls glibc's
27204         error function would report the program name as
27205         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
27206         * modules/progname (configure.ac): Check for a declaration of
27207         program_invocation_name.
27208         * lib/progname.c:  Include <errno.h>.
27209         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
27210         Set program_invocation_name.
27211
27212 2009-08-23  Bruno Haible  <bruno@clisp.org>
27213
27214         * lib/dup3.c: Include <string.h>.
27215
27216 2009-08-23  Bruno Haible  <bruno@clisp.org>
27217
27218         * lib/dup3.c (dup3): Test only once whether the system actually exists.
27219         * lib/pipe2.c (pipe2): Likewise.
27220         Suggested by Eric Blake.
27221
27222 2009-08-23  Bruno Haible  <bruno@clisp.org>
27223
27224         Tolerate declared but missing dup3 syscall.
27225         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
27226         * lib/unistd.in.h (dup3): If the function is already present,
27227         override it.
27228         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
27229         * modules/dup3 (Makefile.am): Compile dup3.c always.
27230         Reported by Paolo Bonzini.
27231
27232 2009-08-23  Bruno Haible  <bruno@clisp.org>
27233
27234         Tolerate declared but missing pipe2 syscall.
27235         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
27236         available.
27237         * lib/unistd.in.h (pipe2): If the function is already present,
27238         override it.
27239         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
27240         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
27241         Reported by Paolo Bonzini.
27242
27243 2009-08-23  Bruno Haible  <bruno@clisp.org>
27244
27245         * lib/pipe2.c (pipe2): Move #ifs inside function.
27246
27247 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
27248
27249         quotearg: document limitations of quote_these_too
27250         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
27251         those limitations are created.
27252         * lib/quotearg.h (set_char_quoting): Document that digits and
27253         letters that are special after backslash are not permitted.
27254         (quotearg_char): Cross-reference set_char_quoting documentation.
27255
27256 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
27257
27258         quotearg: implement custom_quoting_style
27259         * lib/quotearg.c: (struct quoting_options): Add left_quote and
27260         right_quote fields.
27261         (set_custom_quoting): New public function.
27262         (quotearg_buffer_restyled): Add left_quote and right_quote
27263         arguments, handle them very much like locale quoting, and update
27264         all uses.
27265         (quotearg_n_custom): New public function.
27266         (quotearg_n_custom_mem): New public function.
27267         (quotearg_custom): New public function.
27268         (quotearg_custom_mem): New public function.
27269         * lib/quotearg.h: Prototype and document new public functions.
27270         (enum quoting_style): For escape_quoting_style and
27271         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
27272         ignored even though they're otherwise like c_quoting_style.
27273         Add custom_quoting_style member and document with comparison to
27274         clocale_quoting_style.
27275         * tests/test-quotearg.c (custom_quotes): New array.
27276         (custom_results): New array.
27277         (main): Extend to test custom quoting.
27278
27279 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
27280
27281         quotearg: fix right quote escaping when it's in quote_these_too
27282         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
27283         quote, be sure to prepend only one backslash.
27284         * tests/test-quotearg.c (use_quote_double_quotes): New function.
27285         (main): Test it.
27286
27287 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
27288
27289         quotearg-tests: test escaping of embedded locale quotes
27290         * tests/test-quotearg.c (struct result_strings): Add member for
27291         new input.
27292         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
27293         (inputs): Add new input.
27294         (results_g): Add expected results.
27295         (flag_results): Likewise.
27296         (locale_results): Likewise.
27297         (compare_strings): Check those.
27298
27299 2009-08-23  Bruno Haible  <bruno@clisp.org>
27300
27301         Tests for module 'dup3'.
27302         * modules/dup3-tests: New file.
27303         * tests/test-dup3.c: New file.
27304
27305         New module 'dup3'.
27306         * lib/unistd.in.h (dup3): New declaration.
27307         * lib/dup3.c: New file.
27308         * m4/dup3.m4: New file.
27309         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
27310         HAVE_DUP3.
27311         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
27312         * modules/dup3: New file.
27313         * doc/glibc-functions/dup3.texi: Mention the new module.
27314
27315 2009-08-23  Bruno Haible  <bruno@clisp.org>
27316
27317         Tweak the dup2 test.
27318         * tests/test-dup2.c (main): Create the test file empty. Verify that an
27319         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
27320         the test file is still empty. Fix argument order of lseek.
27321
27322 2009-08-23  Bruno Haible  <bruno@clisp.org>
27323
27324         Avoid test link errors when the modules getopt-gnu, gettext are used.
27325         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
27326         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
27327
27328 2009-08-23  Bruno Haible  <bruno@clisp.org>
27329
27330         Fix getdtablesize() on mingw.
27331         * lib/getdtablesize.c (getdtablesize): Implement differently.
27332         * lib/unistd.in.h (getdtablesize): Improve comment.
27333
27334 2009-08-23  Bruno Haible  <bruno@clisp.org>
27335
27336         New module 'mkostemp'.
27337         Based on Ulrich Drepper's 2007-08-10 change in glibc.
27338         * lib/stdlib.in.h (mksotemp): New declaration.
27339         * lib/mkostemp.c: New file, from glibc with modifications.
27340         * lib/tempname.h (GT_FILE): Remove outdated comment.
27341         (gen_tempname): Add flags argument.
27342         * lib/tempname.c (__GT_BIGFILE): Remove macro.
27343         (__GT_FILE): Map to 1.
27344         (small_open, large_open): Remove macros.
27345         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
27346         * lib/mkstemp.c (mkstemp): Update.
27347         * lib/mkdtemp.c (mkdtemp): Likewise.
27348         * m4/mkostemp.m4: New file.
27349         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
27350         HAVE_MKOSTEMP.
27351         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
27352         HAVE_MKOSTEMP.
27353         * modules/mkostemp: New file, based on modules/mkstemp.
27354         * doc/glibc-functions/mkostemp.texi: Mention the new module.
27355         * NEWS: Mention the change.
27356
27357 2009-08-23  Bruno Haible  <bruno@clisp.org>
27358
27359         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
27360         Reported by Eric Blake.
27361
27362 2009-08-23  Bruno Haible  <bruno@clisp.org>
27363
27364         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
27365         Reported by Eric Blake.
27366
27367 2009-08-23  Bruno Haible  <bruno@clisp.org>
27368
27369         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
27370         * modules/pipe2 (Depends-on): Likewise.
27371
27372 2009-08-23  Eric Blake  <ebb9@byu.net>
27373
27374         fcntl-h: add O_TTY_INIT support
27375         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
27376         * tests/test-fcntl-h.c (o): Test it.
27377         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
27378
27379         fcntl-h: rename from fcntl, in preparation for fcntl(2)
27380         * modules/fcntl: Move <fcntl.h> header replacement...
27381         * modules/fcntl-h: ...to new name, so as not to collide with
27382         like-named function.
27383         * tests/test-fcntl.c: Rename...
27384         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
27385         * modules/fcntl-tests: Rename...
27386         * modules/fcntl-h-tests: ...to this.  Update test file name.
27387         * modules/chdir-long (Depends-on): Update clients.
27388         * modules/chdir-safer (Depends-on): Likewise.
27389         * modules/fcntl-safer (Depends-on): Likewise.
27390         * modules/fts (Depends-on): Likewise.
27391         * modules/mkancesdirs (Depends-on): Likewise.
27392         * modules/mkdir-p (Depends-on): Likewise.
27393         * modules/open (Depends-on): Likewise.
27394         * modules/savewd (Depends-on): Likewise.
27395         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
27396         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
27397
27398 2009-08-22  Bruno Haible  <bruno@clisp.org>
27399
27400         * modules/binary-io (License): Relicense under LGPL.
27401         * modules/pipe2 (License): Likewise.
27402
27403 2009-08-22  Bruno Haible  <bruno@clisp.org>
27404
27405         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
27406         return value.
27407         * lib/pipe-filter-gi.c (filter_init): Likewise.
27408         Reported by Eric Blake.
27409
27410 2009-08-22  Bruno Haible  <bruno@clisp.org>
27411
27412         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
27413         * modules/pipe (Depends-on): Add pipe2.
27414
27415 2009-08-22  Bruno Haible  <bruno@clisp.org>
27416
27417         Tests for module 'pipe2'.
27418         * modules/pipe2-tests: New file.
27419         * tests/test-pipe2.c: New file.
27420
27421         New module 'pipe2'.
27422         * lib/unistd.in.h (pipe2): New declaration.
27423         * lib/pipe2.c: New file.
27424         * m4/pipe2.m4: New file.
27425         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
27426         HAVE_PIPE2.
27427         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
27428         * modules/pipe2: New file.
27429         * doc/glibc-functions/pipe2.texi: Mention the new module.
27430
27431 2009-08-22  Bruno Haible  <bruno@clisp.org>
27432
27433         Reference some new glibc functions.
27434         * doc/glibc-functions/accept4.texi: New file.
27435         * doc/glibc-functions/dup3.texi: New file.
27436         * doc/glibc-functions/mkostemp.texi: New file.
27437         * doc/glibc-functions/pipe2.texi: New file.
27438         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
27439         (Glibc sys/socket.h): Refer to accept4.
27440         (Glibc unistd.h): Refer to dup3, pipe2.
27441         Reported by Eric Blake.
27442
27443 2009-08-22  Jim Meyering  <meyering@redhat.com>
27444             Bruno Haible  <bruno@clisp.org>
27445
27446         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
27447         This makes it so packages using automake-1.11's silent-rules option
27448         can print e.g., a single "GEN    configmake.h" line, rather than
27449         the 30+ statements that perform the job.  If you want to see the
27450         actual commands, you can still run "make V=1".
27451         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
27452         so that make output is abbreviated when those variables are defined
27453         appropriately.
27454         * modules/argz: Likewise.
27455         * modules/arpa_inet: Likewise.
27456         * modules/byteswap: Likewise.
27457         * modules/configmake: Likewise.
27458         * modules/dirent: Likewise.
27459         * modules/errno: Likewise.
27460         * modules/fcntl: Likewise.
27461         * modules/float: Likewise.
27462         * modules/fnmatch: Likewise.
27463         * modules/getopt-posix: Likewise.
27464         * modules/glob: Likewise.
27465         * modules/iconv_open: Likewise.
27466         * modules/inttypes: Likewise.
27467         * modules/localcharset: Likewise.
27468         * modules/locale: Likewise.
27469         * modules/math: Likewise.
27470         * modules/netdb: Likewise.
27471         * modules/netinet_in: Likewise.
27472         * modules/poll: Likewise.
27473         * modules/posix_spawnp-tests: Likewise.
27474         * modules/sched: Likewise.
27475         * modules/search: Likewise.
27476         * modules/selinux-h: Likewise.
27477         * modules/signal: Likewise.
27478         * modules/spawn: Likewise.
27479         * modules/stdarg: Likewise.
27480         * modules/stdbool: Likewise.
27481         * modules/stddef: Likewise.
27482         * modules/stdint: Likewise.
27483         * modules/stdio: Likewise.
27484         * modules/stdlib: Likewise.
27485         * modules/string: Likewise.
27486         * modules/strings: Likewise.
27487         * modules/sys_file: Likewise.
27488         * modules/sys_ioctl: Likewise.
27489         * modules/sys_select: Likewise.
27490         * modules/sys_socket: Likewise.
27491         * modules/sys_stat: Likewise.
27492         * modules/sys_time: Likewise.
27493         * modules/sys_times: Likewise.
27494         * modules/sys_utsname: Likewise.
27495         * modules/sys_wait: Likewise.
27496         * modules/sysexits: Likewise.
27497         * modules/time: Likewise.
27498         * modules/unistd: Likewise.
27499         * modules/wchar: Likewise.
27500         * modules/wctype: Likewise.
27501
27502 2009-08-22  Jim Meyering  <meyering@redhat.com>
27503
27504         announce-gen: detect write failure
27505         * build-aux/announce-gen: Add Coda at end.
27506         Remove equivalent-but-more-verbose block at top.
27507
27508 2009-08-19  Akim Demaille  <demaille@gostai.com>
27509
27510         bootstrap: --help to stdout.
27511         * bootstrap (usage): Don't send --help to stderr.
27512         Use a here doc instead of a long string.
27513
27514 2009-08-21  Eric Blake  <ebb9@byu.net>
27515
27516         test-popen-safer: split from test-popen
27517         * tests/test-popen.c (main): Move...
27518         * tests/test-popen.h: ...into new file.
27519         * tests/test-popen-safer2.c: New file.
27520         * modules/popen-tests (Files): Add test-popen.h.
27521         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
27522         Suggested by Bruno Haible.
27523
27524         test-fcntl-safer: split from test-open
27525         * tests/test-open.c (main): Move...
27526         * tests/test-open.h: ...into new file.
27527         * tests/test-fcntl-safer.c: New file.
27528         * modules/open-tests (Files): Add test-open.h.
27529         * modules/fcntl-safer-tests: New file.
27530         Suggested by Bruno Haible.
27531
27532         test-fopen-safer: split from test-fopen
27533         * tests/test-fopen.c (main): Move...
27534         * tests/test-fopen.h: ...into new file.
27535         * tests/test-fopen-safer.c: New file.
27536         * modules/fopen-tests (Files): Add test-fopen.h.
27537         * modules/fopen-safer-tests: New file.
27538         Suggested by Bruno Haible.
27539
27540 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
27541
27542         popen-safer: test O_CLOEXEC at run-time.
27543         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
27544
27545 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
27546
27547         fcntl: move more flags to the header
27548         * lib/cloexec.c: Do not define FD_CLOEXEC here.
27549         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
27550         * lib/fcntl.in.h: Do both things here.
27551
27552 2009-08-21  Jim Meyering  <meyering@redhat.com>
27553
27554         consistently remove $@-t before redirecting to it
27555         * modules/argz: Remove $@-t and $@ before redirecting to the former.
27556         * modules/alloca-opt: Likewise.
27557         * modules/byteswap: Likewise.
27558         * modules/fnmatch: Likewise.
27559         * modules/getopt-posix: Likewise.
27560         * modules/glob: Likewise.
27561         * modules/poll: Likewise.
27562         * modules/posix_spawnp-tests: Likewise.
27563         * modules/sys_socket: Likewise.
27564         * modules/sysexits: Likewise.
27565
27566 2009-08-21  Eric Blake  <ebb9@byu.net>
27567
27568         popen: simplify access to original popen
27569         * lib/popen.c (rpl_popen): No need to worry about popen being a
27570         macro.
27571         Reported by Bruno Haible.
27572
27573 2009-08-20  Eric Blake  <ebb9@byu.net>
27574
27575         build: avoid some compiler warnings
27576         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
27577         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
27578         type.
27579         (new_exclude_segment, excluded_file_pattern_p)
27580         (excluded_file_name_p): Reduce scope.
27581         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
27582         old-style declaration.
27583
27584 2009-08-20  Simon Josefsson  <simon@josefsson.org>
27585
27586         * tests/test-exclude1.sh: Handle Windows EOL.
27587         * tests/test-exclude2.sh: Likewise.
27588         * tests/test-exclude3.sh: Likewise.
27589         * tests/test-exclude4.sh: Likewise.
27590         * tests/test-exclude5.sh: Likewise.
27591         * tests/test-exclude6.sh: Likewise.
27592         * tests/test-exclude7.sh: Likewise.
27593
27594 2009-08-19  Akim Demaille  <demaille@gostai.com>
27595
27596         bootstrap: find sha1sum when named gsha1sum.
27597         * bootstrap (find_tool): New.
27598         ($SHA1SUM): New.
27599         Use it.
27600
27601 2009-08-20  Jim Meyering  <meyering@redhat.com>
27602
27603         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
27604         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
27605         expression that converts "." in a file name to "\." in the resulting
27606         regexp.  Start with a dummy statement, so that prior shell variable
27607         definitions are expanded portably.  Reported by Simon Josefsson.
27608
27609 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
27610
27611         Fix polling for writeability of a screen buffer.
27612         * lib/poll.c: Distinguish input and screen buffers for the
27613         Win32 implementation.
27614         * lib/select.c: Likewise.
27615
27616 2009-08-19  Eric Blake  <ebb9@byu.net>
27617
27618         popen-safer: prevent popen from clobbering std descriptors
27619         * modules/popen-safer: New file.
27620         * lib/popen-safer.c: Likewise.
27621         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
27622         * lib/stdio--.h (popen): Provide override.
27623         * lib/stdio-safer.h (popen_safer): Provide declaration.
27624         * tests/test-popen.c (includes): Partially test this.
27625         * modules/popen-safer-tests: New file, for more tests.
27626         * tests/test-popen-safer.c: Likewise.
27627         * MODULES.html.sh (file stream based Input/Output): Mention it.
27628
27629         tests: test some of the *-safer modules
27630         * modules/fopen-safer (Depends-on): Add fopen.
27631         * modules/fcntl-safer (Depends-on): Add fcntl.
27632         * modules/stdlib-safer (Depends-on): Add stdlib.
27633         (configure.ac): Set indicator.
27634         * modules/unistd-safer (configure.ac): Likewise.
27635         * modules/tmpfile-safer (configure.ac): Likewise.
27636         (Depends-on): Add tmpfile.
27637         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
27638         active.
27639         * tests/test-fopen.c (includes): Test safer versions when they are
27640         in use.
27641         * tests/test-open.c (includes): Likewise.
27642
27643         popen: fix cygwin 1.5 bug when stdin closed
27644         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
27645         * modules/popen: New file.
27646         * modules/popen-tests: Likewise.
27647         * tests/test-popen.c: Likewise.
27648         * m4/popen.m4: Likewise.
27649         * lib/popen.c: Likewise.
27650         * lib/stdio.in.h (popen): New declaration.
27651         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
27652         * modules/stdio (Makefile.am): Likewise.
27653         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
27654
27655 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
27656
27657         maint.mk: give full control over update-copyright exclusions
27658         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
27659         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
27660         (update-copyright): Don't force inclusion of top-level
27661         ChangeLog.  Don't force exclusion of all COPYING files, but make
27662         them the default exclusion instead.
27663
27664 2009-08-16  Bruno Haible  <bruno@clisp.org>
27665
27666         Fix test failures on Solaris 10.
27667         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
27668         tests when Solaris iconv() is used.
27669         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
27670         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
27671         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
27672         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
27673         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
27674
27675 2009-08-16  Bruno Haible  <bruno@clisp.org>
27676
27677         Fix test failures on Solaris 10.
27678         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
27679         'tr' program and pass it as first argument.
27680         * tests/test-pipe-filter-gi1.sh: Likewise.
27681         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
27682         program as first argument.
27683         * tests/test-pipe-filter-gi1.c (main): Likewise.
27684
27685 2009-08-16  Eric Blake  <ebb9@byu.net>
27686
27687         fpurge: fix previous commits
27688         * modules/fpurge (Makefile.am): Make replacement conditional,
27689         partially reverting 2007-04-29 change; missed in previous
27690         attempt.
27691         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
27692         is missing.
27693
27694 2009-08-16  Bruno Haible  <bruno@clisp.org>
27695
27696         Clarify fpurge's effect on the file position.
27697         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
27698         * tests/test-fpurge.c (main): Make a second pass for checking the file
27699         position.
27700
27701 2009-08-16  Bruno Haible  <bruno@clisp.org>
27702
27703         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
27704         declaration of fpurge is missing.
27705         * tests/test-fpurge.c (main): Check that the file has not more contents
27706         than expected. Close the file before removing it.
27707
27708 2009-08-15  Eric Blake  <ebb9@byu.net>
27709
27710         fpurge: don't wrap working cygwin implementation
27711         * lib/fpurge.c (fpurge): Fix comment typo.
27712         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
27713         1.7 to avoid replacement.
27714         * tests/test-fpurge.c (main): Enhance test.
27715
27716 2009-08-15  Eric Blake  <ebb9@byu.net>
27717         and Jim Meyering  <meyering@redhat.com>
27718
27719         test-update-copyright: skip if perl is insufficient
27720         * tests/test-update-copyright.sh: Failure to run maintainer tool
27721         should not cause testsuite failure on cygwin 1.5.
27722
27723 2009-08-14  Eric Blake  <ebb9@byu.net>
27724
27725         doc: mention more functions added in cygwin 1.7.0
27726         * doc/posix-headers/limits.texi (limits.h): Update for recent
27727         cygwin additions.
27728         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
27729         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
27730         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
27731         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
27732         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
27733
27734 2009-08-14  Eric Blake  <ebb9@byu.net>
27735
27736         maint.mk: simplify update-copyright rule
27737         * top/maint.mk (update-copyright-local): Delete, and document how
27738         to do it in cfg.mk instead.
27739         (update-copyright-exclude-regexp): Delete, and document how to do
27740         it in .x-update-copyright instead.
27741         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
27742         exclude ChangeLog.
27743
27744 2009-08-14  Bruno Haible  <bruno@clisp.org>
27745
27746         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
27747
27748 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
27749
27750         maint.mk: support update-copyright-env
27751         * top/maint.mk (update-copyright-env): Define place-holder.
27752         (update-copyright): Expand $(update-copyright-env) before
27753         invoking update-copyright.
27754
27755 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
27756
27757         update-copyright: implement forced reformatting
27758         * build-aux/update-copyright: Implement and document
27759         UPDATE_COPYRIGHT_FORCE.
27760         * tests/test-update-copyright.sh: Test it.
27761
27762 2009-08-14  Eric Blake  <ebb9@byu.net>
27763         and Bruno Haible  <bruno@clisp.org>
27764
27765         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
27766         * tests/test-locale.c: Revert previous patch related to NULL.
27767         * tests/test-stdio.c: Likewise.
27768         * tests/test-stdlib.c: Likewise.
27769         * tests/test-string.c: Likewise.
27770         * tests/test-unistd.c: Likewise.
27771         * modules/time-tests (Depends-on): Add verify.
27772         * modules/wchar-tests (Depends-on): Likewise.
27773         * tests/test-time.c: Test for NULL compliance.
27774         * tests/test-wchar.c: Likewise.
27775         * modules/locale (Depends-on): Add stddef.
27776         * modules/stdio (Depends-on): Likewise.
27777         * modules/stdlib (Depends-on): Likewise.
27778         * modules/string (Depends-on): Likewise.
27779         * modules/time (Depends-on): Likewise.
27780         * modules/unistd (Depends-on): Likewise.
27781         * modules/wchar (Depends-on): Likewise.
27782         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
27783         * lib/stdlib.in.h (includes): Likewise.
27784         * lib/string.in.h (includes): Likewise.
27785         * lib/time.in.h (includes): Likewise.
27786         * lib/unistd.in.h (includes): Likewise.
27787         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
27788         replaced.
27789         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
27790         * m4/stddef_h.m4: New file.
27791         * modules/stddef: Likewise.
27792         * lib/stddef.in.h: Likewise.
27793         * modules/stddef-tests: Likewise.
27794         * tests/test-stddef.c: Likewise.
27795         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
27796         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
27797         * doc/posix-headers/locale.texi (locale.h): Likewise.
27798         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
27799         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
27800         * doc/posix-headers/string.texi (string.h): Likewise.
27801         * doc/posix-headers/time.texi (time.h): Likewise.
27802         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
27803         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
27804
27805 2009-08-14  Eric Blake  <ebb9@byu.net>
27806
27807         doc: improve git diff of texinfo files
27808         * .gitattributes: Add rule for *.texi files, with hint on how to
27809         use it.
27810         Copied from m4, and based on a report by Bruno Haible.
27811
27812 2009-08-14  Bruno Haible  <bruno@clisp.org>
27813
27814         Disable multithread support by default on Cygwin 1.5.x for real.
27815         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
27816
27817 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
27818
27819         update-copyright: much ado about intervals
27820         * build-aux/update-copyright: Implement and document
27821         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
27822         of copyright year intervals.
27823         Also, document UPDATE_COPYRIGHT_YEAR.
27824         * tests/test-update-copyright.sh: Test it.
27825
27826         update-copyright: convert 2-digit to 4-digit years
27827         * build-aux/update-copyright: Implement and document.
27828         * tests/test-update-copyright.sh: Update.
27829
27830 2009-08-14  Jim Meyering  <meyering@redhat.com>
27831
27832         test-exclude: avoid coreutils "make check" failure
27833         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
27834         just as in test-argmatch.c.
27835
27836 2009-08-13  Eric Blake  <ebb9@byu.net>
27837
27838         test-dup2: fix bad assumption
27839         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
27840         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
27841
27842         test-version-etc: fix CRLF portability issue
27843         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
27844         recognize \r.
27845         * tests/test-argp-version-etc-1.sh: Likewise.
27846
27847         getopt: update client modules
27848         * modules/argp (Depends-on): Use getopt-gnu.
27849         * modules/git-merge-changelog (Depends-on): Likewise.
27850         * modules/long-options (Depends-on): Likewise.
27851         * modules/xstrtol (Depends-on): Likewise.
27852
27853 2009-08-13  Simon Josefsson  <simon@josefsson.org>
27854
27855         * tests/test-version-etc.sh: Don't fail on different
27856         project/version.  Don't fail on CRLF differences.  Rewrite to use
27857         multiple -e instead of multiple sed forks, suggested by Eric Blake
27858         <ebb9@byu.net>.
27859         * tests/test-argp-version-etc-1.sh: Likewise.
27860
27861 2009-08-13  Simon Josefsson  <simon@josefsson.org>
27862
27863         * tests/test-version-etc.sh: Don't fail on different
27864         project/version.
27865
27866 2009-08-12  Bruno Haible  <bruno@clisp.org>
27867
27868         Tests for modules 'getopt-posix', 'getopt-gnu'.
27869         * modules/getopt-posix-tests: New file.
27870         * tests/test-getopt.c: New file.
27871         * tests/test-getopt.h: New file.
27872         * tests/test-getopt_long.h: New file.
27873
27874         New modules 'getopt-posix', 'getopt-gnu'.
27875         * modules/getopt-gnu: New file, renamed from modules/getopt.
27876         * modules/getopt-posix: New file.
27877         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
27878         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
27879         (gl_GETOPT): Remove macro.
27880         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
27881         Disable the test against BSD systems that declare optreset. Test
27882         against mingw bug. Test against lack of support of optional arguments
27883         on many platforms.
27884         * doc/glibc-headers/getopt.texi: Update module name and list of
27885         relevant platforms.
27886         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
27887         'getopt-gnu' and more portability problems.
27888         * NEWS: Mention the changes.
27889
27890 2009-08-12  Bruno Haible  <bruno@clisp.org>
27891
27892         Ensure that optarg etc. get declared by <unistd.h>.
27893         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
27894         AC_USE_SYSTEM_EXTENSIONS.
27895         * modules/getopt (Depends-on): Add 'extensions'.
27896
27897 2009-08-12  Bruno Haible  <bruno@clisp.org>
27898
27899         Avoid test link errors.
27900         * modules/pipe-filter-ii-tests (Makefile.am): Define
27901         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
27902         * modules/pipe-filter-gi-tests (Makefile.am): Define
27903         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
27904         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
27905
27906 2009-08-12  Bruno Haible  <bruno@clisp.org>
27907
27908         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
27909         gl_GETOPT_SUBSTITUTE before.
27910         (gl_GETOPT): Use it.
27911         * m4/argp.m4 (gl_ARGP): Update.
27912         Reported by Sergey Poznyakoff.
27913
27914         * m4/getopt.m4: Reorder macros.
27915         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
27916         (gl_GETOPT_SUBSTITUTE): Remove macro.
27917
27918 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
27919
27920         Minor improvement in gitlog-to-changelog
27921
27922         * build-aux/gitlog-to-changelog: New option `--format' makes
27923         output format string configurable.
27924
27925 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
27926
27927         Optimize exclude: use hash tables for non-wildcard patterns.
27928
27929         * lib/exclude.c: Include hash.h and mbuiter.h
27930         (struct exclude_pattern, exclude_segment): New data types.
27931         (struct exclude): Rewrite.
27932         (fnmatch_pattern_has_wildcards): New function.
27933         (new_exclude_segment, free_exclude_segment): New functions.
27934         (excluded_file_pattern_p, excluded_file_name_p): New functions.
27935         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
27936         * lib/exclude.h (is_fnmatch_pattern): New prototype.
27937         * modules/exclude: Depend on hash and mbuiter.
27938
27939         * modules/exclude-tests: New file.
27940         * tests/test-exclude.c: New file.
27941         * tests/test-exclude1.sh: New file.
27942         * tests/test-exclude2.sh: New file.
27943         * tests/test-exclude3.sh: New file.
27944         * tests/test-exclude4.sh: New file.
27945         * tests/test-exclude5.sh: New file.
27946         * tests/test-exclude6.sh: New file.
27947         * tests/test-exclude7.sh: New file.
27948
27949 2009-08-12  Bruno Haible  <bruno@clisp.org>
27950
27951         Ensure that getopt() gets declared by <unistd.h>.
27952         * lib/unistd.in.h: Conditionally include getopt.h.
27953         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
27954         Set GNULIB_UNISTD_H_GETOPT.
27955         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
27956         GNULIB_UNISTD_H_GETOPT.
27957         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
27958
27959 2009-08-12  Bruno Haible  <bruno@clisp.org>
27960
27961         Clarify logic.
27962         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
27963         gl_replace_getopt instead of GETOPT_H.
27964
27965 2009-08-12  Bruno Haible  <bruno@clisp.org>
27966
27967         * m4/getopt.m4: Add comments.
27968
27969 2009-08-12  Bruno Haible  <bruno@clisp.org>
27970
27971         Disable multithread support by default on Cygwin 1.5.x.
27972         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
27973         set gl_use_threads=no if not specified otherwise.
27974
27975 2009-08-11  Bruno Haible  <bruno@clisp.org>
27976
27977         Avoid compilation error on NetBSD 5.0.
27978         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
27979         * tests/test-stdio.c: Likewise.
27980         * tests/test-stdlib.c: Likewise.
27981         * tests/test-string.c: Likewise.
27982         * tests/test-unistd.c: Likewise.
27983         Reported by Greg Troxel <gdt@ir.bbn.com>
27984         at <https://savannah.gnu.org/support/?106973>.
27985
27986 2009-08-11  Bruno Haible  <bruno@clisp.org>
27987
27988         * modules/dup2-tests (Depends-on): Remove close.
27989
27990         Undo 2009-07-19 commit.
27991         * modules/acl-tests (Depends-on): Remove close.
27992         * modules/binary-io-tests (Depends-on): Likewise.
27993         * modules/closein-tests (Depends-on): Likewise.
27994         * modules/flock-tests (Depends-on): Likewise.
27995         * modules/fsync-tests (Depends-on): Likewise.
27996         * modules/lseek-tests (Depends-on): Likewise.
27997         * modules/pipe-tests (Depends-on): Likewise.
27998         * modules/posix_spawn-tests (Depends-on): Likewise.
27999         * modules/posix_spawnp-tests (Depends-on): Likewise.
28000         * modules/stat-time-tests (Depends-on): Likewise.
28001         * modules/yesno-tests (Depends-on): Likewise.
28002
28003 2009-08-10  Bruno Haible  <bruno@clisp.org>
28004
28005         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
28006
28007 2009-08-10  Bruno Haible  <bruno@clisp.org>
28008
28009         Fix a gcc warning.
28010         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
28011
28012 2009-08-10  Bruno Haible  <bruno@clisp.org>
28013
28014         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
28015         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
28016         not only the first time.
28017         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
28018         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
28019         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
28020         is 1, not only the the first time.
28021
28022 2009-08-10  Bruno Haible  <bruno@clisp.org>
28023
28024         Make it possible to use module 'gethostname' without module 'close'.
28025         * lib/unistd.in.h (close): Evoke a link error only if
28026         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
28027         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
28028         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
28029         * modules/unistd (Makefile.am): Substitute
28030         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
28031         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
28032         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
28033         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
28034         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
28035         * modules/sys_ioctl (Makefile.am): Substitute
28036         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
28037         * modules/socket (configure.ac): On native Windows, set
28038         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
28039         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
28040         Reported by Sam Steingold <sds@gnu.org>.
28041
28042 2009-08-10  Bruno Haible  <bruno@clisp.org>
28043
28044         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
28045         * modules/ioctl (configure.ac): Likewise.
28046
28047 2009-08-10  Bruno Haible  <bruno@clisp.org>
28048
28049         Avoid collision between gnulib wrapper and libintl wrapper.
28050         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
28051         already defined in intl/printf.c.
28052         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
28053         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
28054
28055 2009-08-09  Bruno Haible  <bruno@clisp.org>
28056
28057         Make <sys/select.h> really self-contained, also on Solaris 10.
28058         * lib/sys_select.in.h: Include <string.h>.
28059         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
28060         Solaris 10 problem.
28061         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
28062         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
28063         Reported by Jim Meyering.
28064
28065 2009-08-09  Bruno Haible  <bruno@clisp.org>
28066
28067         Avoid warnings from 'aclocal' that are due to a use of macro name
28068         AM_XGETTEXT_OPTION that is not defined in automake.
28069         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
28070         automake.
28071         * modules/error (configure.ac): Likewise.
28072         * modules/propername (configure.ac): Likewise.
28073         * modules/vasprintf (configure.ac): Likewise.
28074         * modules/verror (configure.ac): Likewise.
28075         * modules/xprintf (configure.ac): Likewise.
28076         * modules/xvasprintf (configure.ac): Likewise.
28077
28078 2009-08-08  Bruno Haible  <bruno@clisp.org>
28079
28080         Avoid compilation error in C++ mode.
28081         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
28082         Reported by Sam Steingold <sds@gnu.org>.
28083
28084 2009-08-08  Bruno Haible  <bruno@clisp.org>
28085
28086         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
28087         for the various Unix platforms.
28088         * doc/posix-headers/limits.texi: Update platforms list regarding
28089         HOST_NAME_MAX.
28090         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
28091
28092 2009-08-07  Jim Meyering  <meyering@redhat.com>
28093
28094         selinux-at: fix typo in a comment
28095         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
28096         Spotted by Paolo Bonzini.
28097
28098         selinux-at: remove redundant m4 code, add documentation
28099         * modules/selinux-at (configure.ac): Remove redundant code.
28100         LIB_SELINUX is already set via the dependent module, selinux-h.
28101         (Include): Add quotes around selinux-at.h.
28102         * lib/selinux-at.h: Add documentation.
28103         Reported by Bruno Haible in
28104         http://marc.info/?l=gnulib-bug&m=124958988300749
28105
28106 2009-08-07  Bruno Haible  <bruno@clisp.org>
28107
28108         Avoid link error on MacOS X 10.3 and 10.4.
28109         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
28110         on non-ELF systems.
28111         * lib/argp-pv.c (argp_program_version): Likewise.
28112         Reported by Simon Josefsson.
28113
28114 2009-08-07  Simon Josefsson  <simon@josefsson.org>
28115
28116         * tests/test-version-etc.sh: Use $EXEEXT.
28117
28118 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
28119
28120         update-copyright: update documentation to point to maint.mk
28121         * build-aux/update-copyright: Here.
28122
28123 2009-08-06  Jim Meyering  <meyering@redhat.com>
28124
28125         maint.mk: support update-copyright-local
28126         * top/maint.mk (update-copyright-local): Define place-holder.
28127         (update-copyright): Depend on $(update-copyright-local).
28128
28129 2009-08-06  Jim Meyering  <meyering@redhat.com>
28130
28131         selinux-at: new module
28132         Initially written for coreutils, this module will soon be
28133         used by findutils, too.
28134         * MODULES.html.sh [Misc]: Add selinux-at.
28135         * lib/selinux-at.h: New file, from coreutils.
28136         * lib/selinux-at.c: Likewise.
28137         * modules/selinux-at: Likewise.
28138         (License): Change from LGPL to GPL, since it depends
28139         on the GPL'd openat module.
28140
28141         doc: update README
28142         * README: Remove references to cogito.
28143         Remove cvs-repo-updating instructions from 2007.
28144         Don't imply that CVS is better if you have limited disk space.
28145
28146 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
28147
28148         update-copyright: support C-style comments
28149         * build-aux/update-copyright: Implement and document.
28150         * tests/test-update-copyright.sh: Test.
28151
28152 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
28153
28154         update-copyright: support omitted "(C)"
28155         * build-aux/update-copyright: Implement and document.  Also,
28156         allow variable whitespace before "(C)".
28157         * tests/test-update-copyright.sh: Test.
28158
28159 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
28160
28161         update-copyright: don't trip on non-FSF copyright statements
28162         * build-aux/update-copyright: Fix so that the first correctly
28163         formatted FSF copyright statement is recognized no matter what
28164         appears before it.  Update documentation.
28165         * tests/test-update-copyright.sh: Test that.
28166
28167 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
28168
28169         update-copyright: clean up code a little
28170         * build-aux/update-copyright: Append "_re" to the name of any
28171         variable holding a regular expression.
28172         Replace "old" and "new" with "stmt" in variable names.
28173         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
28174         handled correctly.
28175         Format code more consistently.
28176
28177 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
28178
28179         update-copyright-tests: improve portability
28180         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
28181         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
28182
28183 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
28184
28185         update-copyright: support @copyright{} and &copy;
28186         * build-aux/update-copyright: Implement and document.
28187         * tests/test-update-copyright.sh: Test.
28188
28189 2009-08-04  Jim Meyering  <meyering@redhat.com>
28190
28191         update-copyright-tests: correctly test EOL=\r\n handling
28192         * tests/test-update-copyright.sh: Put \r at the end of some lines
28193         for the dos-eol tests.  Based on a patch by Joel E. Denny.
28194
28195         maint.mk: make update-copyright exclusion list more configurable
28196         * top/maint.mk (update-copyright): Default to excluding COPYING,
28197         but allow an override, in case someone does want to update that file.
28198
28199         maint.mk: don't update copyright date in COPYING
28200         * top/maint.mk (update-copyright): Exclude COPYING.
28201
28202         maint.mk: add a copyright-updating rule
28203         * top/maint.mk (update-copyright): New rule.
28204         Derived from coreutils/Makefile.am.
28205
28206         update-copyright: rename some variables
28207         * build-aux/update-copyright: Rename a few variables for clarity.
28208         Tweak syntax.  List Joel E. Denny as coauthor.
28209
28210 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
28211
28212         update-copyright: fix bug for 2-digit last year and add tests
28213         * build-aux/update-copyright: Fix bug.
28214         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
28215         specified.
28216         * modules/update-copyright-tests: New
28217         * tests/test-update-copyright.sh: New.
28218
28219 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
28220
28221         update-copyright: handle leading tabs in line prefix
28222         * build-aux/update-copyright: Count leading tabs as 8 spaces
28223         when computing margin.  This helps with the formatting of
28224         ChangeLogs, for example.
28225         Fix documentation a little.
28226
28227 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
28228
28229         update-copyright: support EOL=\r\n
28230         * build-aux/update-copyright: Implement that.
28231
28232 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
28233
28234         update-copyright: automatically format copyright statements
28235         * build-aux/update-copyright: Implement that.
28236         Also, be a little more predictable and safer by always failing
28237         when the full copyright format is not perfectly recognized as an
28238         unbroken whole.  Discussed at
28239         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
28240         Rewrite documentation.
28241
28242 2009-08-03  Bruno Haible  <bruno@clisp.org>
28243
28244         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
28245
28246 2009-08-02  Bruno Haible  <bruno@clisp.org>
28247
28248         Tests for module 'uname'.
28249         * modules/uname-tests: New file.
28250         * tests/test-uname.c: New file.
28251
28252         New module 'uname'.
28253         * lib/uname.c: New file.
28254         * m4/uname.m4: New file.
28255         * modules/uname: New file.
28256         * doc/posix-functions/uname.texi: Mention the new module.
28257
28258 2009-08-02  Bruno Haible  <bruno@clisp.org>
28259
28260         Tests for module 'sys_utsname'.
28261         * modules/sys_utsname-tests: New file.
28262         * tests/test-sys_utsname.c: New file.
28263
28264         New module 'sys_utsname'.
28265         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
28266         * m4/sys_utsname_h.m4: New file.
28267         * modules/sys_utsname: New file.
28268         * doc/posix-headers/sys_utsname.texi: Mention the new module.
28269
28270 2009-08-02  Bruno Haible  <bruno@clisp.org>
28271
28272         Implicitly initialize the sockets library.
28273         * lib/gethostname.c: Include sockets.h.
28274         (rpl_gethostname): Invoke gl_sockets_startup.
28275         * lib/socket.c: Include sockets.h.
28276         (rpl_socket): Invoke gl_sockets_startup.
28277         * modules/gethostname (Depends-on): Add sockets.
28278         * modules/socket (Depends-on): Likewise.
28279         * tests/test-poll.c: Don't include sockets.h.
28280         (main): Don't invoke gl_sockets_startup.
28281         * tests/test-select.c: Don't include sockets.h.
28282         (main): Don't invoke gl_sockets_startup.
28283
28284 2009-08-02  Bruno Haible  <bruno@clisp.org>
28285
28286         Allow multiple calls to gl_sockets_startup.
28287         * lib/sockets.c (initialized_sockets_version): New variable.
28288         (gl_sockets_startup): Do nothing if already called for this or a higher
28289         version.
28290         (gl_sockets_cleanup): Reset initialized_sockets_version.
28291
28292 2009-08-03  Simon Josefsson  <simon@josefsson.org>
28293
28294         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
28295         different project/version.
28296
28297 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
28298             Bruno Haible  <bruno@clisp.org>
28299
28300         Tests for module 'pipe-filter-gi'.
28301         * modules/pipe-filter-gi-tests: New file.
28302         * tests/test-pipe-filter-gi1.sh: New file.
28303         * tests/test-pipe-filter-gi1.c: New file.
28304         * tests/test-pipe-filter-gi2.sh: New file.
28305         * tests/test-pipe-filter-gi2-main.c: New file.
28306         * tests/test-pipe-filter-gi2-child.c: New file.
28307
28308         New module 'pipe-filter-gi'.
28309         * lib/pipe-filter-gi.c: New file.
28310         * modules/pipe-filter-gi: New file.
28311
28312 2009-08-02  Bruno Haible  <bruno@clisp.org>
28313             Paolo Bonzini  <bonzini@gnu.org>
28314
28315         Tests for module 'pipe-filter-ii'.
28316         * modules/pipe-filter-ii-tests: New file.
28317         * tests/test-pipe-filter-ii1.sh: New file.
28318         * tests/test-pipe-filter-ii1.c: New file.
28319         * tests/test-pipe-filter-ii2.sh: New file.
28320         * tests/test-pipe-filter-ii2-main.c: New file.
28321         * tests/test-pipe-filter-ii2-child.c: New file.
28322
28323         New module 'pipe-filter-ii'.
28324         * lib/pipe-filter.h: New file.
28325         * lib/pipe-filter-ii.c: New file.
28326         * lib/pipe-filter-aux.h: New file.
28327         * modules/pipe-filter-ii: New file.
28328
28329 2009-08-02  Simon Josefsson  <simon@josefsson.org>
28330
28331         * lib/gc-libgcrypt.c: Change copyright to FSF.
28332         * lib/gc-gnulib.c: Likewise.
28333
28334 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
28335
28336         * lib/gethostname.c: Include limits.h.
28337
28338 2009-08-02  Simon Josefsson  <simon@josefsson.org>
28339             Bruno Haible  <bruno@clisp.org>
28340
28341         Ensure HOST_NAME_MAX as part of the gethostname module.
28342         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
28343         define also HOST_NAME_MAX.
28344         * tests/test-gethostname.c: Include <limits.h>.
28345         (main): Check also HOST_NAME_MAX.
28346         * doc/posix-headers/limits.texi: Document the mingw problem.
28347
28348 2009-08-02  Bruno Haible  <bruno@clisp.org>
28349
28350         * lib/gethostname.c (gethostname): Fix handling of large len argument.
28351         Add comments.
28352
28353 2009-03-31  Simon Josefsson  <simon@josefsson.org>
28354
28355         * lib/gethostname.c: Add Windows wrapper.
28356         * m4/gethostname.m4: Look for gethostname in -lws2_32.
28357         * modules/gethostname: Depend on sys_socket & errno, for also
28358         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
28359         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
28360
28361 2009-07-31  Jim Meyering  <meyering@redhat.com>
28362
28363         getloadavg: fix symbol name in comment
28364         * lib/getloadavg.c: Correct a typo I introduced when adding
28365         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
28366         Matt Kraai spotted the problem.
28367
28368 2009-07-29  Matt Kraai  <mkraai@beckman.com>
28369
28370         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
28371         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
28372         code also if ! defined N_NAME_POINTER.
28373         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
28374         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
28375         but the n_name member is a 12-byte array.
28376
28377 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
28378
28379         update-copyright: generalize comment handling
28380         * build-aux/update-copyright: Handle copyright statements
28381         within more comment styles.
28382         Document usage.
28383         Report any file with an external copyright holder or parse failure.
28384
28385 2009-07-29  Jim Meyering  <meyering@redhat.com>
28386
28387         mktime: correct setting of REPLACE_MKTIME
28388         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
28389
28390         update-copyright: new module
28391         * modules/update-copyright: New file.
28392         * build-aux/update-copyright: New file.
28393         * MODULES.html.sh (maint+release support): Add update-copyright.
28394
28395 2009-07-27  Bruno Haible  <bruno@clisp.org>
28396
28397         Fix compilation error when <ctime> is used and mktime is replaced.
28398         * lib/time.in.h (mktime): New declaration.
28399         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
28400         REPLACE_MKTIME instead of defining mktime in config.h.
28401         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
28402         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
28403         Reported by Ross McFarland <rwmcfa1@neces.com>.
28404
28405 2009-07-27  Bruno Haible  <bruno@clisp.org>
28406
28407         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
28408         Reported by Matt Kraai <mkraai@beckman.com>.
28409
28410 2009-07-25  Jim Meyering  <meyering@redhat.com>
28411
28412         maint.mk: avoid warnings about missing files
28413         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
28414         diagnostic when .prev-version does not exist.
28415         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
28416         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
28417         nonexistent cfg.mk.
28418         Suggestions from Simon Josefsson.
28419
28420 2009-07-25  Bruno Haible  <bruno@clisp.org>
28421
28422         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
28423         defined as macros. Needed on QNX 6.4.1.
28424         Reported by Matt Kraai <mkraai@beckman.com>.
28425
28426 2009-07-23  Jim Meyering  <meyering@redhat.com>
28427
28428         maint.mk: invoke "make dist" with a working value of XZ_OPT
28429         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
28430
28431 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
28432
28433         Make fseeko.c compile on QNX.
28434         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
28435
28436 2009-07-22  Peter Simons  <simons@cryp.to>
28437
28438         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
28439         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
28440         * lib/md4.h: Likewise.
28441         * lib/md5.h: Likewise.
28442         * lib/sha1.h: Likewise.
28443         * lib/sha256.h: Likewise.
28444         * lib/sha512.h: Likewise.
28445
28446         tests-sha1: don't assign literal string to 'char *' variable
28447         * tests/test-sha1.c (main): Declare locals with "const" to match
28448         attributes of the right hand side.
28449
28450 2009-07-21  Eric Blake  <ebb9@byu.net>
28451
28452         dup2: fix more mingw problems
28453         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
28454         fd to itself.
28455         * doc/posix-functions/dup2.texi (dup2): Document the bug.
28456         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
28457         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
28458         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
28459         care of mingw bugs.
28460
28461 2009-07-21  Jim Meyering  <meyering@redhat.com>
28462
28463         vc-list-files: avoid failure when /bin/sh is dash
28464         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
28465         On some Debian based systems, /bin/sh is a symlink to dash, and running
28466         this command would omit the "/" following each 'tests' prefix:
28467           dash -x build-aux/vc-list-files -C . tests
28468         That is because bash and dash work differently:
28469           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
28470           bash ok
28471           dash odd
28472
28473 2009-07-21  Eric Blake  <ebb9@byu.net>
28474
28475         dup2-tests: test previous patch
28476         * modules/dup2-tests: New file.
28477         * tests/test-dup2.c: Likewise.
28478         * tests/test-open.c (main): Avoid unspecified behavior.
28479         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
28480         test.
28481
28482         dup2: work around mingw and cygwin 1.5 bug
28483         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
28484         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
28485         * modules/unistd (Makefile.am): Substitute it.
28486         * lib/unistd.in.h (dup2): Declare the replacement.
28487         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
28488         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
28489         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
28490         * modules/execute (Depends-on): Add dup2.
28491         * modules/fseterr (Depends-on): Likewise.
28492         * modules/pipe (Depends-on): Likewise.
28493         * modules/posix_spawn-internal (Depends-on): Likewise.
28494
28495 2009-07-21  Bruno Haible  <bruno@clisp.org>
28496
28497         * modules/.gitattributes: New file.
28498
28499 2009-07-20  Bruno Haible  <bruno@clisp.org>
28500
28501         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
28502         (main): Use it.
28503
28504 2009-07-20  Eric Blake  <ebb9@byu.net>
28505
28506         test-pipe: make a bit more robust.
28507         * tests/test-pipe.c (myerr): Allow error messages regardless of
28508         what we do to stderr.
28509         (test_pipe): Rearrange to avoid deadlock.
28510         (child_main): Try a larger read, to ensure we avoided deadlock.
28511         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
28512         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
28513         if misused.
28514
28515 2009-07-19  Jim Meyering  <meyering@redhat.com>
28516
28517         fts: avoid false-positive cycle-detection
28518         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
28519         for each new command line argument.
28520
28521 2009-07-19  Bruno Haible  <bruno@clisp.org>
28522
28523         Fix build error on mingw with the modules sys_select and unistd.
28524         * modules/acl-tests (Depends-on): Add close.
28525         * modules/binary-io-tests (Depends-on): Likewise.
28526         * modules/closein-tests (Depends-on): Likewise.
28527         * modules/flock-tests (Depends-on): Likewise.
28528         * modules/fsync-tests (Depends-on): Likewise.
28529         * modules/lseek-tests (Depends-on): Likewise.
28530         * modules/pipe-tests (Depends-on): Likewise.
28531         * modules/posix_spawn-tests (Depends-on): Likewise.
28532         * modules/posix_spawnp-tests (Depends-on): Likewise.
28533         * modules/stat-time-tests (Depends-on): Likewise.
28534         * modules/yesno-tests (Depends-on): Likewise.
28535
28536 2009-07-19  Bruno Haible  <bruno@clisp.org>
28537
28538         Unify conditionals.
28539         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
28540         macros, not at the compiler macros.
28541         * lib/pipe.c: Likewise.
28542         * lib/execute.c: Likewise.
28543         * lib/spawni.c: Likewise.
28544
28545 2009-07-19  Bruno Haible  <bruno@clisp.org>
28546
28547         Fix handling of closed stdin/stdout/stderr on mingw.
28548         * lib/w32spawn.h: Include unistd.h.
28549         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
28550         file descriptor with O_NOINHERIT flag.
28551         (fd_safer_noinherit): New function, based on fd-safer.c.
28552         (dup_safer_noinherit): New function, based on dup-safer.c.
28553         (undup_safer_noinherit): New function.
28554         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
28555         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
28556         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
28557         instead of fd_safer.
28558         * tests/test-pipe.c: Include <windows.h>.
28559         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
28560         result.
28561
28562         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
28563         from main.
28564         (test_pipe): Pass an extra argument for disambiguation.
28565         (main): Invoke parent_main or child_main.
28566
28567         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
28568         consistently.
28569
28570 2009-07-18  Eric Blake  <ebb9@byu.net>
28571
28572         test-pipe: fix mingw build
28573         * tests/test-pipe.c (main): Avoid fcntl on mingw.
28574
28575 2009-07-18  Bruno Haible  <bruno@clisp.org>
28576
28577         * modules/pipe-tests (Makefile.am): Fix typo.
28578
28579 2009-07-18  Eric Blake  <ebb9@byu.net>
28580
28581         error: fix mingw build
28582         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
28583         Reported by Bruno Haible.
28584
28585         error: avoid undefined use of stdout
28586         * lib/error.c (error, error_at_line): Check that fd 1 is open
28587         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
28588         is handling faults and the close_stdout module wants to report the
28589         detection of closed stdout as an error.
28590
28591 2009-07-17  Eric Blake  <ebb9@byu.net>
28592
28593         pipe: be robust in face of closed fds
28594         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
28595         should cause child to misbehave.
28596         * modules/pipe-tests: New module.
28597         * tests/test-pipe.c: New file.
28598         * tests/test-pipe.sh: New file.
28599         Reported by Akim Demaille.
28600
28601 2009-07-14  Bruno Haible  <bruno@clisp.org>
28602
28603         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
28604         Reported by anonymous kc.
28605
28606 2009-07-07  Jim Meyering  <meyering@redhat.com>
28607
28608         maint.mk: don't look for translatable strings in *.m4 or *.mk
28609         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
28610         when searching for translatable strings.
28611
28612 2009-07-05  Jim Meyering  <meyering@redhat.com>
28613
28614         remove superfluous parentheses in STREQ definition
28615         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
28616         * lib/getugroups.c (STREQ): Likewise.
28617         * lib/fnmatch.c (STREQ): Likewise.
28618         Spotted by Bruno Haible.
28619
28620 2009-07-04  Jim Meyering  <meyering@redhat.com>
28621
28622         argv-iter: new module
28623         * MODULES.html.sh: Add argv-iter.
28624         * lib/argv-iter.c, lib/argv-iter.h: New files.
28625         * modules/argv-iter: New file.
28626         * modules/argv-iter-tests: New file.
28627         * tests/test-argv-iter.c: Test it.
28628
28629 2009-07-04  Bruno Haible  <bruno@clisp.org>
28630
28631         Fix assertion.
28632         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
28633         contains more exact copies of a given entry than file2, leave the extra
28634         copies unpaired rather than aborting.
28635         Reported by Eric Blake.
28636
28637 2009-07-02  Bruno Haible  <bruno@clisp.org>
28638
28639         Speedup git-merge-changelog for git cherry-pick.
28640         * lib/git-merge-changelog.c (struct entries_mapping): New type.
28641         (entries_mapping_get): New function, extracted from compute_mapping.
28642         (entries_mapping_reverse_get): New function.
28643         (compute_mapping): Add a 'full' argument. Return the result in a
28644         'struct entries_mapping'.
28645         (main): Update. Access the mappings through entries_mapping_get.
28646         Reported by Eric Blake.
28647
28648 2009-07-02  Bruno Haible  <bruno@clisp.org>
28649
28650         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
28651         best_i.
28652
28653 2009-07-02  Bruno Haible  <bruno@clisp.org>
28654
28655         Speed up approximate search for matching ChangeLog entries.
28656         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
28657         argument. Call fstrcmp_bounded instead of fstrcmp.
28658         (compute_mapping, try_split_merged_entry, main): Update callers.
28659
28660 2009-07-02  Bruno Haible  <bruno@clisp.org>
28661
28662         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
28663
28664 2009-06-30  Bruno Haible  <bruno@clisp.org>
28665
28666         Reduce the number of uc_is_cased calls.
28667         * lib/unicase.h (casing_suffix_context_t): Add
28668         'first_char_except_ignorable' field.
28669         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
28670         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
28671         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
28672         Update initializer.
28673         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
28674         case-ignorable characters.
28675         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
28676         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
28677         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
28678         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
28679         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
28680
28681 2009-06-30  Bruno Haible  <bruno@clisp.org>
28682
28683         Tests for module 'unicase/ignorable'.
28684         * modules/unicase/ignorable-tests: New file.
28685         * tests/unicase/test-ignorable.c: New file, generated by
28686         gen-uni-tables.
28687
28688         Tests for module 'unicase/cased'.
28689         * modules/unicase/cased-tests: New file.
28690         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
28691         * tests/unicase/test-predicate-part1.h: New file, derived from
28692         tests/unictype/test-predicate-part1.h.
28693         * tests/unicase/test-predicate-part2.h: New file, same as
28694         tests/unictype/test-predicate-part2.h.
28695
28696         Fix evaluation of "Before C" condition of FINAL_SIGMA.
28697         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
28698         (output_casing_properties): New function.
28699         (main): Call it.
28700         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
28701         * lib/unicase/cased.c: Include unictype/bitmap.h.
28702         (uc_is_cased): Define through a bitmap lookup.
28703         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
28704         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
28705         (uc_is_case_ignorable): Define through a bitmap lookup.
28706         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
28707         lib/unictype/bitmap.h.
28708         (Depends-on): Add inline. Clean up.
28709         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
28710         lib/unictype/bitmap.h.
28711         (Depends-on): Add inline. Clean up.
28712         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
28713         recognition.
28714         * tests/unicase/test-u16-tolower.c (main): Likewise.
28715         * tests/unicase/test-u32-tolower.c (main): Likewise.
28716
28717 2009-06-30  Bruno Haible  <bruno@clisp.org>
28718
28719         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
28720         * lib/unicase/u16-casemap.c: Likewise.
28721         * lib/unicase/u32-casemap.c: Likewise.
28722
28723 2009-06-29  Bruno Haible  <bruno@clisp.org>
28724
28725         Define u32_casefold as a wrapper around u32_ct_casefold.
28726         * lib/unicase/u32-casefold.c: Update.
28727         * modules/unicase/u32-casefold (Depends-on): Add
28728         unicase/u32-ct-casefold, unicase/empty-prefix-context,
28729         unicase/empty-suffix-context. Clean up.
28730
28731         Define u16_casefold as a wrapper around u16_ct_casefold.
28732         * lib/unicase/u16-casefold.c: Update.
28733         * modules/unicase/u16-casefold (Depends-on): Add
28734         unicase/u16-ct-casefold, unicase/empty-prefix-context,
28735         unicase/empty-suffix-context. Clean up.
28736
28737         Define u8_casefold as a wrapper around u8_ct_casefold.
28738         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
28739         * lib/unicase/u8-casefold.c: Update.
28740         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
28741         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
28742
28743         Define u32_totitle as a wrapper around u32_ct_totitle.
28744         * lib/unicase/u32-totitle.c: Update.
28745         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
28746         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
28747
28748         Define u16_totitle as a wrapper around u16_ct_totitle.
28749         * lib/unicase/u16-totitle.c: Update.
28750         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
28751         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
28752
28753         Define u8_totitle as a wrapper around u8_ct_totitle.
28754         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
28755         functions.
28756         (FUNC): Delegate to U_CT_TOTITLE.
28757         * lib/unicase/u8-totitle.c: Update.
28758         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
28759         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
28760
28761         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
28762         invocation.
28763         * modules/unicase/u32-tolower (Depends-on): Add
28764         unicase/empty-prefix-context, unicase/empty-suffix-context.
28765
28766         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
28767         invocation.
28768         * modules/unicase/u16-tolower (Depends-on): Add
28769         unicase/empty-prefix-context, unicase/empty-suffix-context.
28770
28771         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
28772         * modules/unicase/u8-tolower (Depends-on): Add
28773         unicase/empty-prefix-context, unicase/empty-suffix-context.
28774
28775         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
28776         invocation.
28777         * modules/unicase/u32-toupper (Depends-on): Add
28778         unicase/empty-prefix-context, unicase/empty-suffix-context.
28779
28780         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
28781         invocation.
28782         * modules/unicase/u16-toupper (Depends-on): Add
28783         unicase/empty-prefix-context, unicase/empty-suffix-context.
28784
28785         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
28786         * modules/unicase/u8-toupper (Depends-on): Add
28787         unicase/empty-prefix-context, unicase/empty-suffix-context.
28788
28789         New module 'unicase/u32-ct-casefold'.
28790         * lib/unicase/u32-ct-casefold.c: New file.
28791         * modules/unicase/u32-ct-casefold: New file.
28792
28793         New module 'unicase/u16-ct-casefold'.
28794         * lib/unicase/u16-ct-casefold.c: New file.
28795         * modules/unicase/u16-ct-casefold: New file.
28796
28797         New module 'unicase/u8-ct-casefold'.
28798         * lib/unicase/u8-ct-casefold.c: New file.
28799         * lib/unicase/u-ct-casefold.h: New file, derived from
28800         lib/unicase/u-casefold.h.
28801         * modules/unicase/u8-ct-casefold: New file.
28802
28803         New module 'unicase/u32-ct-totitle'.
28804         * lib/unicase/u32-ct-totitle.c: New file.
28805         * modules/unicase/u32-ct-totitle: New file.
28806
28807         New module 'unicase/u16-ct-totitle'.
28808         * lib/unicase/u16-ct-totitle.c: New file.
28809         * modules/unicase/u16-ct-totitle: New file.
28810
28811         New module 'unicase/u8-ct-totitle'.
28812         * lib/unicase/u8-ct-totitle.c: New file.
28813         * lib/unicase/u-ct-totitle.h: New file, derived from
28814         lib/unicase/u-totitle.h.
28815         * modules/unicase/u8-ct-totitle: New file.
28816
28817         New module 'unicase/u32-ct-tolower'.
28818         * lib/unicase/u32-ct-tolower.c: New file.
28819         * modules/unicase/u32-ct-tolower: New file.
28820
28821         New module 'unicase/u16-ct-tolower'.
28822         * lib/unicase/u16-ct-tolower.c: New file.
28823         * modules/unicase/u16-ct-tolower: New file.
28824
28825         New module 'unicase/u8-ct-tolower'.
28826         * lib/unicase/u8-ct-tolower.c: New file.
28827         * modules/unicase/u8-ct-tolower: New file.
28828
28829         New module 'unicase/u32-ct-toupper'.
28830         * lib/unicase/u32-ct-toupper.c: New file.
28831         * modules/unicase/u32-ct-toupper: New file.
28832
28833         New module 'unicase/u16-ct-toupper'.
28834         * lib/unicase/u16-ct-toupper.c: New file.
28835         * modules/unicase/u16-ct-toupper: New file.
28836
28837         New module 'unicase/u8-ct-toupper'.
28838         * lib/unicase/u8-ct-toupper.c: New file.
28839         * modules/unicase/u8-ct-toupper: New file.
28840
28841         Add context arguments to u*_casemap functions.
28842         * lib/unicase/unicasemap.h: Include unicase.h.
28843         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
28844         suffix_context arguments.
28845         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
28846         functions.
28847         (FUNC): Add prefix_context and suffix_context arguments. Use
28848         uc_is_cased and uc_is_case_ignorable.
28849         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
28850         * lib/unicase/u16-casemap.c: Likewise.
28851         * lib/unicase/u32-casemap.c: Likewise.
28852         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
28853         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
28854         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
28855         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
28856         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
28857         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
28858
28859         New module 'unicase/u32-suffix-context'.
28860         * lib/unicase/u32-suffix-context.c: New file.
28861         * modules/unicase/u32-suffix-context: New file.
28862
28863         New module 'unicase/u16-suffix-context'.
28864         * lib/unicase/u16-suffix-context.c: New file.
28865         * modules/unicase/u16-suffix-context: New file.
28866
28867         New module 'unicase/u8-suffix-context'.
28868         * lib/unicase/u8-suffix-context.c: New file.
28869         * lib/unicase/u-suffix-context.h: New file.
28870         * modules/unicase/u8-suffix-context: New file.
28871
28872         New module 'unicase/empty-suffix-context'.
28873         * lib/unicase/empty-suffix-context.c: New file.
28874         * modules/unicase/empty-suffix-context: New file.
28875
28876         New module 'unicase/u32-prefix-context'.
28877         * lib/unicase/u32-prefix-context.c: New file.
28878         * modules/unicase/u32-prefix-context: New file.
28879
28880         New module 'unicase/u16-prefix-context'.
28881         * lib/unicase/u16-prefix-context.c: New file.
28882         * modules/unicase/u16-prefix-context: New file.
28883
28884         New module 'unicase/u8-prefix-context'.
28885         * lib/unicase/u8-prefix-context.c: New file.
28886         * lib/unicase/u-prefix-context.h: New file.
28887         * lib/unicase/context.h: New file.
28888         * modules/unicase/u8-prefix-context: New file.
28889
28890         New module 'unicase/empty-prefix-context'.
28891         * lib/unicase/empty-prefix-context.c: New file.
28892         * modules/unicase/empty-prefix-context: New file.
28893
28894         New module 'unicase/ignorable'.
28895         * lib/unicase/ignorable.c: New file.
28896         * modules/unicase/ignorable: New file.
28897
28898         New module 'unicase/cased'.
28899         * lib/unicase/caseprop.h: New file.
28900         * lib/unicase/cased.c: New file.
28901         * modules/unicase/cased: New file.
28902
28903         New functions for case mapping of substrings.
28904         * lib/unicase.h (casing_prefix_context_t): New type.
28905         (unicase_empty_prefix_context): New variable.
28906         (u8_casing_prefix_context, u16_casing_prefix_context,
28907         u32_casing_prefix_context, u8_casing_prefixes_context,
28908         u16_casing_prefixes_context, u32_casing_prefixes_context): New
28909         declarations.
28910         (casing_suffix_context_t): New type.
28911         (unicase_empty_suffix_context): New variable.
28912         (u8_casing_suffix_context, u16_casing_suffix_context,
28913         u32_casing_suffix_context, u8_casing_suffixes_context,
28914         u16_casing_suffixes_context, u32_casing_suffixes_context,
28915         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
28916         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
28917         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
28918         declarations.
28919
28920 2009-06-28  Jim Meyering  <meyering@redhat.com>
28921
28922         boostrap: indent only with spaces
28923         * build-aux/bootstrap: Indent only with spaces, never TABs.
28924
28925         bootstrap: split long lines
28926         * build-aux/bootstrap: Keep line length < 80.
28927
28928         bootstrap: sync from coreutils
28929         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
28930         just as autoreconf does.  Verify a list of prerequisite
28931         package-name,version-number pairs if defined in bootstrap.conf.
28932         Refer to README-prereq, if prerequisites are not satisfied.
28933
28934 2009-06-27  Eric Blake  <ebb9@byu.net>
28935
28936         tests: add test for bogus NULL definition
28937         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
28938         * tests/test-stdlib.c: Likewise.
28939         * tests/test-string.c: Likewise.
28940         * tests/test-locale.c: Likewise.
28941         * tests/test-unistd.c: Likewise.
28942         * modules/stdio-tests (Depends-on): Add verify.
28943         * modules/stdlib-tests (Depends-on): Likewise.
28944         * modules/string-tests (Depends-on): Likewise.
28945         * modules/locale-tests (Depends-on): Likewise.
28946         * modules/unistd-tests (Depends-on): Likewise.
28947
28948 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
28949
28950         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
28951         self-explaining comment.
28952         * m4/selinux-selinux-h: Update serial.
28953         (gl_LIBSELINUX): New macro, adding a warning for missing development
28954         packages to code extracted from...
28955         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
28956         Add warning for missing development packages here, too.
28957
28958 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
28959
28960         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
28961
28962 2009-06-25  Eric Blake  <ebb9@byu.net>
28963
28964         version-etc: fix regression
28965         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
28966         gcc.
28967         (version_etc): Use it, to catch bugs with trailing NULL.
28968         * lib/version-etc.c (version_etc_arn): Delete unused argument.
28969         (version_etc_va): Fix logic bug.
28970         * modules/version-etc-tests: Add test.
28971         * tests/test-version-etc.c: New file.
28972         * tests/test-version-etc.sh: Likewise.
28973
28974 2009-06-25  Sam Steingold  <sds@gnu.org>
28975
28976         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
28977         mbtowc declaration.
28978
28979 2009-06-25  Eric Blake  <ebb9@byu.net>
28980
28981         fpurge: migrate into <stdio.h>
28982         * lib/fpurge.h: Delete...
28983         * lib/stdio.in.h (fpurge): ...and declare here, instead.
28984         * lib/fpurge.c (fpurge): Change declaring header.
28985         * modules/fpurge (Files): Drop deleted file.
28986         (Depends-on): Add stdio.
28987         (configure.ac): Set witness.
28988         * modules/stdio (Makefile.am): Support fpurge macros.
28989         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
28990         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
28991         * lib/fflush.c: Update client.
28992         * tests/test-fpurge.c: Likewise.
28993         * NEWS: Mention the change.
28994
28995 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
28996
28997         * lib/argp-version-etc.c (program_authors): Add const
28998         qualifier.
28999         * lib/version-etc.c: Fix typos in the comments.
29000         * modules/argp-version-etc: Depends on version-etc.
29001
29002 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
29003
29004         argp-version-etc: new module.
29005
29006         * lib/argp-version-etc.c: New file.
29007         * lib/argp-version-etc.h: New file.
29008         * modules/argp-version-etc: New file.
29009         * modules/argp-version-etc-tests: New file.
29010         * tests/test-argp-version-etc.c: New test.
29011         * tests/test-argp-version-etc-1.sh: New test.
29012
29013 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
29014
29015         Provide additional interfaces and documentation for version-etc
29016         module.
29017
29018         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
29019         interfaces.
29020         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
29021         prototypes.
29022
29023 2009-06-24  Bruno Haible  <bruno@clisp.org>
29024
29025         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
29026         HAVE_LIB${NAME} macro.
29027         Reported by Sam Steingold <sds@gnu.org>.
29028
29029 2009-06-23  Simon Josefsson  <simon@josefsson.org>
29030
29031         * modules/hash-tests (test_hash_LDADD): Link to libintl when
29032         needed.
29033
29034 2009-06-21  Bruno Haible  <bruno@clisp.org>
29035
29036         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
29037         work.
29038         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
29039         together with LIB${NAME}, LTLIB${NAME}.
29040         Reported by Sam Steingold <sds@gnu.org>.
29041
29042 2009-06-20  Jim Meyering  <meyering@redhat.com>
29043
29044         tests: make sc_require_test_exit_idiom more generic
29045         * top/maint.mk (Exit_witness_file): New overridable variable.
29046         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
29047         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
29048
29049 2009-06-19  Jim Meyering  <meyering@redhat.com>
29050
29051         hash: reverse order of src/dst parameters in an internal interface
29052         * lib/hash.c (transfer_entries): Reverse order of parameters to
29053         put DST before SRC.  Adjust callers.
29054
29055         tests: test-hash: avoid wholesale duplication
29056         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
29057         Instead, use a loop and add a single conditional.
29058
29059         tests: test-hash: allow seed selection via a command line argument
29060         * tests/test-hash.c (get_seed): New function.
29061         (main): Use it.
29062
29063 2009-06-19  Eric Blake  <ebb9@byu.net>
29064
29065         hash: avoid memory leak on allocation failure
29066         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
29067         failure.  Factor repeated algorithm...
29068         (transfer_entries): ...into new helper routine.
29069         (hash_delete): React to hash_rehash return value.
29070
29071         hash: reduce memory pressure in hash_rehash no-op case
29072         * lib/hash.c (next_prime): Avoid overflow.
29073         (hash_initialize): Factor bucket size computation...
29074         (compute_bucket_size): ...into new helper function.
29075         (hash_rehash): Use new function and open coding to reduce memory
29076         pressure, and avoid a memory leak in USE_OBSTACK code.
29077         Reported by Jim Meyering.
29078
29079 2009-06-18  Eric Blake  <ebb9@byu.net>
29080
29081         hash: make rotation more obvious
29082         * modules/hash (Depends-on): Add bitrotate and stdint.
29083         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
29084         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
29085         (SIZE_MAX): Rely on headers for definition.
29086         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
29087         (raw_hasher): Use rotr_sz.
29088         Suggested by Jim Meyering.
29089
29090         hash: fix memory leak in last patch
29091         * lib/hash.c (hash_rehash): Avoid memory leak.
29092
29093         hash: avoid no-op rehashing
29094         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
29095
29096         hash: provide default callback functions
29097         * lib/hash.c (raw_hasher, raw_comparator): New functions.
29098         (hash_initialize): Use them as defaults.
29099         * tests/test-hash.c (main): Test this.
29100
29101         hash: minor optimization
29102         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
29103         when possible.
29104         (hash_initialize): Document this promise.
29105         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
29106         * tests/test-hash.c (hash_compare_strings): Test this.
29107
29108 2009-06-18  Bruno Haible  <bruno@clisp.org>
29109
29110         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
29111         going to be replaced anyway.
29112
29113 2009-06-18  Bruno Haible  <bruno@clisp.org>
29114
29115         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
29116         in one place.
29117         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
29118         be replaced anyway.
29119
29120 2009-06-18  Eric Blake  <ebb9@byu.net>
29121
29122         hash: check for resize before insertion
29123         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
29124         threshold before insertion, so that a pathological hash_rehash
29125         that fills every bucket can still trigger another rehash.
29126
29127 2009-06-18  Jim Meyering  <meyering@redhat.com>
29128
29129         hash-tests: add a loop around the small tests
29130         * tests/test-hash.c (main): Repeat small tests with selected
29131         small initial table sizes.
29132
29133 2009-06-17  Eric Blake  <ebb9@byu.net>
29134
29135         hash: minor cleanups
29136         * lib/hash.h (hash_entry): Make opaque, by moving...
29137         * lib/hash.c (hash_entry): ...here.
29138         (hash_insert): Clarify restrictions on what can be inserted.
29139         (hash_get_next): Clarify when it is safe to remove an element
29140         during traversal.
29141         (check_tuning): Skip verification when tuning is known safe.
29142         (hash_initialize): Clarify restrictions on tuning.
29143
29144 2009-06-17  Jim Meyering  <jim@meyering.net>
29145         and Eric Blake  <ebb9@byu.net>
29146
29147         hash-tests: new module
29148         * modules/hash-tests: New file.
29149         * tests/test-hash.c: New file.
29150
29151 2009-06-17  Eric Blake  <ebb9@byu.net>
29152
29153         strstr-simple: document new module
29154         * MODULES.html.sh: Document new module.
29155
29156         strstr, strcasestr: replace on platforms with broken memchr
29157         * modules/strstr: Split into...
29158         * modules/strstr-simple: ...new module that does not care about
29159         performance, but does care about glibc bug.
29160         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
29161         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
29162         if platform memchr is broken, per Debian bug 521737.
29163         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
29164         memchr.
29165         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
29166         * doc/posix-functions/strstr.texi (strstr): Document the fix.
29167         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
29168         * modules/mountlist (Depends-on): Add strstr-simple.
29169         * modules/gen-uni-tables (Depends-on): Likewise.
29170         * modules/argz (Depends-on): Add strstr.
29171
29172 2009-06-17  Bruno Haible  <bruno@clisp.org>
29173
29174         * modules/posix_spawn-internal (Depends-on): Add errno.
29175
29176 2009-06-17  Bruno Haible  <bruno@clisp.org>
29177
29178         Define missing ESTALE on Interix 3.5.
29179         * lib/errno.in.h (ESTALE): Assign a value if missing.
29180         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
29181         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
29182         missing.
29183         * doc/posix-headers/errno.texi: Mention the Interix bug.
29184         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
29185
29186 2009-06-15  Eric Blake  <ebb9@byu.net>
29187
29188         memchr, memchr2: add valgrind exception
29189         * lib/memchr.valgrind: New file.
29190         * lib/memchr2.valgrind: New file.
29191         * modules/memchr (Files): Distribute valgrind file.
29192         * modules/memchr2 (Files): Likewise.
29193
29194         docs: memchr is no longer obsolete
29195         * MODULES.html.sh: Move memchr from obsolete to string.h section.
29196         * lib/string.in.h (memchr): Simplify logic.
29197
29198 2009-06-14  Jim Meyering  <meyering@redhat.com>
29199
29200         link-follow: fix the "checking..." message to not mention trailing slash
29201         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
29202         never considered trailing slashes.
29203
29204 2009-06-14  Bruno Haible  <bruno@clisp.org>
29205
29206         * m4/memchr.m4: Mention also the bug on IA-64.
29207         * doc/posix-functions/memchr.texi: Likewise.
29208
29209 2009-06-12  Eric Blake  <ebb9@byu.net>
29210
29211         memchr: detect broken x86_64 and alpha implementations
29212         * modules/memchr-tests (Depends-on): Move mmap detection...
29213         * modules/memchr (Depends-on): ...here.
29214         (configure.ac): Set indicator.
29215         * lib/string.in.h (memchr): Declare replacement.
29216         * modules/string (Makefile.am): Trigger replacement.
29217         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
29218         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
29219         bugs.
29220         * doc/posix-functions/memchr.texi (memchr): Document the bug.
29221         * modules/getpagesize (License): Relax license.
29222
29223 2009-06-11  Bruno Haible  <bruno@clisp.org>
29224
29225         * lib/idpriv.h: Add more references.
29226
29227 2009-06-08  Bruno Haible  <bruno@clisp.org>
29228
29229         Tests for module 'idpriv-droptemp'.
29230         * modules/idpriv-droptemp-tests: New file.
29231         * tests/test-idpriv-droptemp.sh: New file.
29232         * tests/test-idpriv-droptemp.su.sh: New file.
29233         * tests/test-idpriv-droptemp.c: New file.
29234
29235         New module 'idpriv-droptemp'.
29236         * lib/idpriv-droptemp.c: New file.
29237         * modules/idpriv-droptemp: New file.
29238
29239 2009-06-08  Bruno Haible  <bruno@clisp.org>
29240
29241         Tests for module 'idpriv-drop'.
29242         * modules/idpriv-drop-tests: New file.
29243         * tests/test-idpriv-drop.sh: New file.
29244         * tests/test-idpriv-drop.su.sh: New file.
29245         * tests/test-idpriv-drop.c: New file.
29246
29247         New module 'idpriv-drop'.
29248         * lib/idpriv.h: New file.
29249         * lib-idpriv-drop.c: New file.
29250         * m4/idpriv.m4: New file.
29251         * modules/idpriv-drop: New file.
29252
29253 2009-06-08  Bruno Haible  <bruno@clisp.org>
29254
29255         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
29256         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
29257         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
29258         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
29259         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
29260         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
29261         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
29262
29263 2009-06-08  Eric Blake  <ebb9@byu.net>
29264
29265         test-strstr: use memory fence, when possible
29266         * tests/test-strstr.c (main): Use memory fence, in order to be
29267         more likely to trigger Debian bug 521737.
29268         * modules/strstr-tests (Files): Pull in additional files.
29269
29270         memchr: no longer obsolete, for wider field testing
29271         * modules/memchr (Status, Notice): Delete, this module is no
29272         longer obsolete.
29273         * modules/vasnprintf (Depends-on): Add memchr.
29274
29275 2009-06-07  Jim Meyering  <meyering@redhat.com>
29276
29277         hash: declare some functions with the warn_unused_result attribute
29278         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
29279
29280 2009-06-07  Bruno Haible  <bruno@clisp.org>
29281
29282         * tests/test-alignof.c: Don't test int64_t if it does not exist.
29283         Reported by Eric Blake.
29284
29285 2009-06-06  Eric Blake  <ebb9@byu.net>
29286
29287         test-alignof: fix typo with long double
29288         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
29289         compiler error.
29290
29291 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
29292
29293         Escape non-texinfo { and }s.
29294         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
29295         markup error.
29296
29297 2009-06-04  Jim Meyering  <meyering@redhat.com>
29298
29299         gitlog-to-changelog: don't infloop on an empty commit log
29300         * build-aux/gitlog-to-changelog: Warn about an empty log message.
29301         Reported by Boris Petersen <transacid@centerim.org>.
29302
29303 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
29304
29305         version-etc: extend for packagers
29306         Add three new configure options, intended for packagers:
29307           --with-packager="packager name"
29308           --with-packager-version="packager-specific version"
29309           --with-packager-bug-reports="packager bug reporting"
29310         An example with coreutils:
29311           $ ./configure \
29312             --with-packager=Gentoo \
29313             --with-packager-bug-report=http://bugs.gentoo.org/ \
29314             --with-packager-version="patchset 1.6"
29315           $ ./src/ls --version | head -n2
29316           ls (GNU coreutils) 7.1-dirty
29317           Packaged by Gentoo (patchset 1.6)
29318         Note that the bug reporting info via --help doesn't show up because
29319         coreutils uses its own custom emit_bug_reporting_address() implementation
29320         in src/system.h.  If it didn't, it'd look like:
29321           $ ./src/ls --help | tail -n4
29322           Report bugs to <bug-coreutils@gnu.org>.
29323           Report Gentoo bugs to <http://bugs.gentoo.org/>.
29324           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
29325           General help using GNU software: <http://www.gnu.org/gethelp/>.
29326         * lib/version-etc.c: Print new information, if provided.
29327         * m4/version-etc.m4: New file.
29328         * modules/version-etc (Files): Add m4/version-etc.m4.
29329         (configure.ac): Add gl_VERSION_ETC.
29330
29331 2009-05-31  Bruno Haible  <bruno@clisp.org>
29332
29333         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
29334         and 'int64_t'.
29335         * modules/alignof-tests (Dependencies): Add stdint.
29336         Reported by Eric Blake.
29337
29338 2009-05-31  Bruno Haible  <bruno@clisp.org>
29339
29340         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
29341         restriction due to compiler bugs.
29342         Reported by Eric Blake.
29343
29344 2009-05-31  Simon Josefsson  <simon@josefsson.org>
29345             Bruno Haible  <bruno@clisp.org>
29346
29347         Fix test-alignof failure.
29348         * lib/alignof.h (alignof_slot): New macro.
29349         (alignof_type): New macro, with the same semantics as the previous
29350         'alignof'.
29351         (alignof): Alias to alignof_slot.
29352         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
29353         check that the results are usable as constant expressions.
29354
29355 2009-05-31  Bruno Haible  <bruno@clisp.org>
29356
29357         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
29358         * tests/test-memchr.c (main): Check that memchr does not read past the
29359         first occurrence of the byte.
29360         * tests/test-strstr.c (main): Update comment.
29361         Suggested by Eric Blake.
29362
29363 2009-05-30  Bruno Haible  <bruno@clisp.org>
29364
29365         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
29366         detail how to use dumpbin.
29367         Reported by David Byron <dbyron@dbyron.com>.
29368
29369 2009-06-02  Simon Josefsson  <simon@josefsson.org>
29370
29371         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
29372
29373 2009-06-02  Simon Josefsson  <simon@josefsson.org>
29374
29375         * m4/manywarnings.m4: Add GCC 4.4 warnings.
29376
29377 2009-05-28  Bruno Haible  <bruno@clisp.org>
29378
29379         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
29380         build-aux/ files.
29381
29382 2009-05-28  Simon Josefsson  <simon@josefsson.org>
29383
29384         * gnulib-tool (func_import): Transform license on build-aux/ files too.
29385
29386 2009-05-27  Simon Josefsson  <simon@josefsson.org>
29387
29388         * gnulib-tool (sed_transform_main_lib_file)
29389         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
29390         regexps.
29391
29392 2009-05-26  Simon Josefsson  <simon@josefsson.org>
29393
29394         * tests/test-strstr.c: Add another self-test.
29395         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
29396         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
29397
29398 2009-05-23  Bruno Haible  <bruno@clisp.org>
29399
29400         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
29401         change.
29402
29403 2009-05-21  Bruno Haible  <bruno@clisp.org>
29404
29405         Simplify use of mode_t varargs.
29406         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
29407         uses 'mode_t' or 'int'.
29408         * lib/openat.c (openat): Likewise.
29409         * lib/open-safer.c (open_safer): Likewise.
29410         * m4/mode_t.m4: New file.
29411         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
29412         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
29413         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
29414         * modules/open (Files): Add m4/mode_t.m4.
29415         * modules/openat (Files): Likewise.
29416         * modules/fcntl-safer (Files): Likewise.
29417         Suggested by Eric Blake.
29418
29419 2009-05-21  Pádraig Brady  <P@draigbrady.com>
29420
29421         * doc/glibc-functions/fallocate.texi: New file.
29422         * doc/gnulib.texi: Include it.
29423
29424 2009-05-21  Eric Blake  <ebb9@byu.net>
29425             Bruno Haible  <bruno@clisp.org>
29426
29427         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
29428         invocations.
29429         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
29430
29431 2009-05-21  Eric Blake  <ebb9@byu.net>
29432             Bruno Haible  <bruno@clisp.org>
29433
29434         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
29435         include_next. Fix of 2008-11-20 commit.
29436         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
29437         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
29438         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
29439         NEXT_MATH_H.
29440         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
29441         instead of NEXT_MATH_H.
29442
29443 2009-05-21  Bruno Haible  <bruno@clisp.org>
29444
29445         Avoid redefinition warnings for SIZE_MAX.
29446         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
29447         Reported by Simon Josefsson.
29448
29449 2009-05-21  Bruno Haible  <bruno@clisp.org>
29450
29451         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
29452         AC_CACHE_VAL.
29453
29454 2009-05-20  Bruno Haible  <bruno@clisp.org>
29455
29456         Make zeroptr.h work on mingw.
29457         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
29458         mprotect.
29459         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
29460         * modules/memchr2-tests (configure.ac): Likewise.
29461         * modules/memcmp-tests (configure.ac): Likewise.
29462         * modules/memmem-tests (configure.ac): Likewise.
29463         * modules/memrchr-tests (configure.ac): Likewise.
29464         Reported by Simon Josefsson.
29465
29466 2009-05-20  Simon Josefsson  <simon@josefsson.org>
29467
29468         * tests/test-glob.c: Include string.h for strcmp prototype.
29469
29470 2009-05-20  Simon Josefsson  <simon@josefsson.org>
29471
29472         * modules/getdelim (Depends-on): Add explicit stdint, although it
29473         was implicitly already pulled in via realloc-posix.
29474         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
29475
29476 2009-05-20  Simon Josefsson  <simon@josefsson.org>
29477
29478         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
29479         G. Christensen" <tgc@jupiterrise.com>.
29480         * m4/sys_socket_h.m4: Check for sa_family_t.
29481         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
29482         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
29483         * tests/test-sys_socket.c: Check that sa_family_t works.
29484
29485 2009-05-18  Eric Blake  <ebb9@byu.net>
29486
29487         maint.mk: allow gnulib_dir in VPATH build
29488         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
29489
29490 2009-05-15  Jim Meyering  <meyering@redhat.com>
29491
29492         maint.mk: Give gnulib_dir a default definition.
29493         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
29494         Thus, most packages no longer need to specify this variable in cfg.mk
29495
29496 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
29497
29498         rename.m4: fix typos that would make non-mingw cross-configure fail
29499         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
29500
29501 2009-05-13  Eric Blake  <ebb9@byu.net>
29502
29503         mmap-anon: avoid out-of-order autoconf expansion
29504         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
29505         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
29506         * modules/memchr-tests (Depends-on): Add extensions.
29507         * modules/memchr2-tests (Depends-on): Add extensions.
29508         * modules/memcmp-tests (Depends-on): Add extensions.
29509         * modules/memmem-tests (Depends-on): Add extensions.
29510         * modules/memrchr-tests (Depends-on): Add extensions.
29511
29512 2009-05-13  Bruno Haible  <bruno@clisp.org>
29513
29514         Make some tests ISO C 99 compliant.
29515         * tests/zerosize-ptr.h: New file.
29516         * tests/test-memchr.c: Include zerosize-ptr.h.
29517         (main): Use a zero-size object pointer instead of NULL.
29518         * tests/test-memchr2.c: Include zerosize-ptr.h.
29519         (main): Use a zero-size object pointer instead of NULL.
29520         * tests/test-memcmp.c: Include zerosize-ptr.h.
29521         (main): Use a zero-size object pointer instead of NULL.
29522         * tests/test-memmem.c: Include zerosize-ptr.h.
29523         (main): Use a zero-size object pointer instead of NULL.
29524         * tests/test-memrchr.c: Include zerosize-ptr.h.
29525         (main): Use a zero-size object pointer instead of NULL.
29526         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
29527         m4/mmap-anon.m4.
29528         (Depends-on): Add getpagesize.
29529         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
29530         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
29531         m4/mmap-anon.m4.
29532         (Depends-on): Add getpagesize.
29533         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
29534         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
29535         m4/mmap-anon.m4.
29536         (Depends-on): Add getpagesize.
29537         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
29538         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
29539         m4/mmap-anon.m4.
29540         (Depends-on): Add getpagesize.
29541         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
29542         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
29543         m4/mmap-anon.m4.
29544         (Depends-on): Add getpagesize.
29545         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
29546
29547 2009-05-12  Bruno Haible  <bruno@clisp.org>
29548
29549         Tests for module 'alignof'.
29550         * modules/alignof-tests: New file.
29551         * tests/test-alignof.c: New file.
29552
29553 2009-05-12  Bruno Haible  <bruno@clisp.org>
29554
29555         Fix alignof macro.
29556         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
29557         vendor compilers that are always correct.
29558
29559 2009-05-12  Bruno Haible  <bruno@clisp.org>
29560
29561         Make the MAP_ANONYMOUS detection work on HP-UX 11.
29562         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
29563         not whether its fully works.
29564
29565 2009-05-12  Bruno Haible  <bruno@clisp.org>
29566
29567         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
29568
29569 2009-05-12  Jim Meyering  <meyering@redhat.com>
29570
29571         * top/maint.mk: Adjust backslash alignment.
29572
29573 2009-05-11  Simon Josefsson  <simon@josefsson.org>
29574
29575         * top/maint.mk: Make $(srcdir)/build-aux configurable.
29576
29577 2009-05-11  Eric Blake  <ebb9@byu.net>
29578
29579         argp: avoid undefined behavior
29580         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
29581         macros.
29582
29583 2009-05-08  Simon Josefsson  <simon@josefsson.org>
29584
29585         * tests/test-vc-list-files-git.sh: Do git config of user.email and
29586         user.name to prevent git commit from complaining.
29587
29588 2009-05-10  Bruno Haible  <bruno@clisp.org>
29589
29590         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
29591         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
29592         it rewrites every file name only once.
29593         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
29594
29595 2009-05-08  Bruno Haible  <bruno@clisp.org>
29596
29597         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
29598         instead of 'max'.
29599
29600 2009-05-08  Simon Josefsson  <simon@josefsson.org>
29601
29602         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
29603         sockaddr_storage test.
29604
29605 2009-05-07  Simon Josefsson  <simon@josefsson.org>
29606
29607         * modules/sys_socket (Makefile.am): Substitute
29608         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
29609         * m4/sys_socket_h.m4: Check for sockaddr_storage.
29610         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
29611         * tests/test-sys_socket.c: Check sockaddr_storage.
29612
29613 2009-05-08  Bruno Haible  <bruno@clisp.org>
29614
29615         New module 'alignof'.
29616         * lib/alignof.h: New file.
29617         * modules/alignof: New file.
29618
29619 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
29620             Bruno Haible  <bruno@clisp.org>
29621
29622         Fix test-file-has-acl on FreeBSD.
29623         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
29624         mask is implicitly added.
29625         * tests/test-file-has-acl.c: Include <signal.h>.
29626         (main): Terminate the test after 5 seconds.
29627         * modules/acl-tests (configure.ac): Check for alarm function.
29628
29629 2009-05-04  Bruno Haible  <bruno@clisp.org>
29630
29631         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
29632         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
29633         * modules/errno (configure.ac): Drop AC_REQUIRE.
29634         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
29635         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
29636
29637 2009-05-04  Simon Josefsson  <simon@josefsson.org>
29638
29639         * modules/glob-tests: New module.
29640         * tests/test-glob.c: Add.
29641
29642 2009-05-04  Simon Josefsson  <simon@josefsson.org>
29643
29644         * modules/fnmatch-tests: New module.
29645         * tests/test-fnmatch.c: Add.
29646
29647 2009-05-04  Eric Blake  <ebb9@byu.net>
29648
29649         maint: make the new no-submodule-changes rule VPATH-safe
29650         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
29651
29652 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
29653             Bruno Haible  <bruno@clisp.org>
29654
29655         acl: Fix infinite loop on FreeBSD.
29656         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
29657         of return value from acl_get_entry.
29658         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
29659         Likewise.
29660
29661 2009-05-03  Bruno Haible  <bruno@clisp.org>
29662
29663         * lib/acl-internal.h (acl_entries): Clarify return value.
29664         * lib/acl_entries.c (acl_entries): Likewise.
29665
29666 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
29667
29668         Bug fix in acl module.
29669         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
29670
29671 2009-05-03  Bruno Haible  <bruno@clisp.org>
29672
29673         Create gperf-generated file in the source dir, not in the build dir.
29674         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
29675         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
29676         * modules/unicase/locale-language (unicase/locale-languages.h):
29677         Likewise.
29678         * modules/unicase/special-casing (unicase/special-casing-table.h):
29679         Likewise.
29680         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
29681         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
29682         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
29683         Reported by Ralf Wildenhues.
29684
29685 2009-05-03  Bruno Haible  <bruno@clisp.org>
29686
29687         * modules/fnmatch (Description, configure.ac): Taken from
29688         fnmatch-posix.
29689         * modules/fnmatch-posix: Turn into a symbolic reference to the
29690         'fnmatch' module, and deprecate.
29691         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
29692
29693 2009-05-03  Bruno Haible  <bruno@clisp.org>
29694
29695         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
29696         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
29697         Reported by Ralf Wildenhues.
29698
29699 2009-05-04  Simon Josefsson  <simon@josefsson.org>
29700
29701         * m4/fnmatch.m4: Fix fnmatch re-define.
29702
29703 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
29704
29705         priv-set: new module and tests; adapt write-any-file
29706         * lib/priv-set.c: New file.
29707         * lib/priv-set.h: New file.
29708         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
29709         * lib/write-any-file.c: Simplify by using priv-set module.
29710         * m4/priv-set.m4: New file.
29711         * modules/priv-set: New file.
29712         * modules/unlinkdir: Add dependency on priv-set module.
29713         * modules/write-any-file: Likewise.
29714
29715         Tests for module 'priv-set'.
29716         * modules/priv-set-tests: New file.
29717         * tests/test-priv-set.c: New file.
29718
29719 2009-05-03  Jim Meyering  <meyering@redhat.com>
29720             Bruno Haible  <bruno@clisp.org>
29721
29722         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
29723         use the converted UTF-8 variant of the name instead.
29724
29725 2009-05-03  Jim Meyering  <meyering@redhat.com>
29726
29727         tests: tighten some getdate tests
29728         * tests/test-getdate.c (main): Tighten tests: require equality,
29729         not just greater than.  Set TZ envvar to UTC0.
29730
29731 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
29732
29733         getdate: correctly interpret "next monday" when run on a Monday
29734         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
29735         that e.g., "next tues" (when run on a tuesday) results in a date
29736         that is one week in the future, and not today's date.
29737         I.e., add a week when the wday is the same as the current one.
29738         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
29739         and earlier by Martin Bernreuther and Jan Minář.
29740         * tests/test-getdate.c (main): Check that "next DAY" is always in
29741         the future and that "last DAY" is always in the past.
29742
29743 2009-05-02  Jim Meyering  <meyering@redhat.com>
29744
29745         build: ensure that a release build fails when a submodule is unclean
29746         * top/maint.mk (no-submodule-changes): New rule.
29747         (alpha beta major): Depend on it.
29748
29749 2009-05-02  Bruno Haible  <bruno@clisp.org>
29750
29751         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
29752         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
29753         shell variable gl_fnmatch_required to detect which variant is
29754         requested.
29755         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
29756         gl_FUNC_FNMATCH_POSIX.
29757         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
29758         exclude fnmatch-posix.
29759
29760 2009-05-02  Bruno Haible  <bruno@clisp.org>
29761
29762         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
29763         * modules/mbsrtowcs (License): Change to LGPLv2+.
29764         * modules/strnlen1 (License): Likewise.
29765         Reported by Simon Josefsson.
29766
29767 2009-05-02  Bruno Haible  <bruno@clisp.org>
29768
29769         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
29770         "cross".
29771         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
29772         gnulib-tool was called with option --source-base=lib.
29773
29774 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29775
29776         Use automake *-local hooks without commands, for extensibility.
29777         * modules/localcharset (Makefile.am): Rename install-exec-local
29778         rule to install-exec-localcharset, and make it a prerequisite of
29779         install-exec-local.  Likewise, rename the uninstall-local rule to
29780         uninstall-localcharset, and make it a prerequisite of the former.
29781
29782 2009-05-01  Bruno Haible  <bruno@clisp.org>
29783
29784         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
29785         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
29786         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
29787         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
29788         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
29789         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
29790         m4/locale-zh.m4, m4/codeset.m4.
29791
29792         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
29793         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
29794         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
29795         m4/locale-zh.m4.
29796
29797         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
29798         REPLACE_WCRTOMB if mbstate_t must be replaced.
29799         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
29800         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
29801
29802 2009-05-01  Bruno Haible  <bruno@clisp.org>
29803
29804         Avoid compiler warnings when redefining macros defined by <libintl.h>.
29805         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
29806         dngettext, dcngettext, textdomain, bindtextdomain,
29807         bind_textdomain_codeset): Undefine before redefining.
29808
29809 2009-04-30  Bruno Haible  <bruno@clisp.org>
29810
29811         Fix bug introduced on 2009-04-25.
29812         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
29813         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
29814         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
29815         is defined.
29816         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
29817         is defined.
29818         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
29819         is defined.
29820         Reported by Elbert_Pol <elbert.pol@gmail.com>.
29821
29822 2009-04-28  Bruno Haible  <bruno@clisp.org>
29823
29824         Comment tweaks.
29825         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
29826         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
29827         * lib/unicase.h (u*_casexfrm): Likewise.
29828         Reported by Paolo Bonzini.
29829
29830 2009-04-28  Bruno Haible  <bruno@clisp.org>
29831
29832         Fix a compilation error.
29833         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
29834         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
29835         Reported by Jim Meyering.
29836
29837 2009-04-27  Bruno Haible  <bruno@clisp.org>
29838
29839         New module 'libunistring'.
29840         * modules/libunistring: New file.
29841         * m4/libunistring.m4: New file.
29842         * MODULES.html.sh (Unicode string functions): Add it.
29843
29844 2009-04-27  Eric Blake  <ebb9@byu.net>
29845
29846         maint.mk: allow package-specific header to provide <config.h>
29847         * top/maint.mk (sc_require_config_h): New variable.
29848         (sc_require_config_h, sc_require_config_h_first): Use it.
29849
29850 2009-04-27  Simon Josefsson  <simon@josefsson.org>
29851
29852         * top/maint.mk (sc_avoid_if_before_free): Except
29853         useless-if-before-free script.
29854
29855 2009-04-27  Eric Blake  <ebb9@byu.net>
29856
29857         maintainer-makefile: depend on all required helper scripts
29858         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
29859         useless-if-before-free.
29860         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
29861         version, rather than assuming gnulib checkout is available.
29862         Reported by Simen Josefsson.
29863
29864 2009-04-26  Bruno Haible  <bruno@clisp.org>
29865
29866         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
29867         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
29868         "../" or "..".
29869
29870 2009-04-26  Bruno Haible  <bruno@clisp.org>
29871
29872         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
29873         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
29874         AC_LIB_HAVE_LINKFLAGS.
29875
29876 2009-04-26  Bruno Haible  <bruno@clisp.org>
29877
29878         Simplify calling convention of u*_conv_from_encoding.
29879         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
29880         u32_conv_from_encoding): Expect a resultbuf argument and return the
29881         result directly as a pointer.
29882         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
29883         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
29884         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
29885         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
29886         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
29887         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
29888         Update.
29889         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
29890         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
29891         * lib/vasnprintf.c (VASNPRINTF): Update.
29892         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
29893         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
29894         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
29895         * NEWS: Mention the change.
29896
29897 2009-04-26  Bruno Haible  <bruno@clisp.org>
29898
29899         Simplify calling convention of u*_conv_to_encoding.
29900         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
29901         u32_conv_to_encoding): Expect a resultbuf argument and return the
29902         result directly as a pointer.
29903         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
29904         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
29905         freeing scaled_offsets if mem_iconveha failed.
29906         * lib/unicase/u-casexfrm.h (FUNC): Update.
29907         * lib/uninorm/u-normxfrm.h (FUNC): Update.
29908         * lib/vasnprintf.c (VASNPRINTF): Update.
29909         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
29910         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
29911         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
29912         * NEWS: Mention the change.
29913
29914 2009-04-26  Bruno Haible  <bruno@clisp.org>
29915
29916         Avoid test failures on AIX and OSF/1.
29917         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
29918         malloc(0).
29919         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
29920         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
29921         Likewise.
29922         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
29923         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
29924         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
29925         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
29926         * doc/posix-functions/malloc.texi: Document the portability problem
29927         related to malloc(0).
29928
29929 2009-04-26  Bruno Haible  <bruno@clisp.org>
29930
29931         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
29932         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
29933         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
29934
29935 2009-04-25  Bruno Haible  <bruno@clisp.org>
29936
29937         Avoid link error when creating a namespace clean library.
29938         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
29939         as macro with arguments if already defined as an alias.
29940         * lib/signbitf.c (gl_signbitf): Don't undefine.
29941         * lib/signbitd.c (gl_signbitd): Don't undefine.
29942         * lib/signbitl.c (gl_signbitl): Don't undefine.
29943
29944 2009-04-25  Jim Meyering  <meyering@redhat.com>
29945
29946         vc-list-files: fix another quoting bug
29947         * build-aux/vc-list-files: Avoid sed backslash expansion
29948         of pathological directory names.
29949
29950 2009-04-25  Eric Blake  <ebb9@byu.net>
29951
29952         vc-list-files: fix shell quoting error
29953         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
29954         timestamp.
29955
29956 2009-04-25  Jim Meyering  <meyering@redhat.com>
29957
29958         vc-list-files: restore lost functionality with subdir argument
29959         * build-aux/vc-list-files: When given a non-"." sub-directory
29960         argument, substitute the $dir/ prefix back onto each resulting name.
29961         Otherwise, coreutils' root_tests check would fail.
29962
29963 2009-04-24  Eric Blake  <ebb9@byu.net>
29964
29965         vc-list-files: ignore git symlinks
29966         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
29967         than ls-files, to ignore git symlinks.
29968
29969         maint.mk: import improvements from m4
29970         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
29971         (move_if_change): Delete unused macro.
29972         (news-date-check, vc-diff-check): Support VPATH builds.
29973         (announcement): Likewise.  Split --bootstrap-tools list...
29974         (boostrap-tools): ...into separate list, which can be overridden
29975         in cfg.mk.
29976         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
29977         requiring dependency on useless-if-before-free module.
29978         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
29979         Support VPATH builds.
29980
29981 2009-04-24  Jim Meyering  <meyering@redhat.com>
29982
29983         maint.mk: remove coreutils-specific rules and variables
29984         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
29985         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
29986         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
29987
29988         maint.mk: remove obsolete rule
29989         * top/maint.mk (rel-check): Remove rule.
29990         (WGET, WGETFLAGS): Remove now-unused variables.
29991
29992 2009-04-24  Simon Josefsson  <simon@josefsson.org>
29993
29994         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
29995         consistency.
29996
29997         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
29998         '$(PATH_SEPARATOR)' instead of ':'.
29999
30000 2009-04-24  Simon Josefsson  <simon@josefsson.org>
30001
30002         * lib/getopt1.c (main): Use 'const' for static array.
30003
30004 2009-04-24  Simon Josefsson  <simon@josefsson.org>
30005
30006         * top/maint.mk: Sync with coreutils.
30007         * NEWS: Explain incompatibilities.
30008
30009 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
30010             Bruno Haible  <bruno@clisp.org>
30011
30012         Fix cross-compilation results.
30013         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
30014         statement, as third argument of AC_TRY_RUN.
30015         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
30016         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
30017         Likewise.
30018         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
30019         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
30020         Likewise.
30021         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
30022         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
30023         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
30024
30025 2009-04-20  Bruno Haible  <bruno@clisp.org>
30026
30027         Avoid test failure on mingw.
30028         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
30029
30030 2009-04-20  Bruno Haible  <bruno@clisp.org>
30031
30032         Avoid compilation error on mingw.
30033         * modules/localename-tests (Depends-on): Add locale.
30034
30035 2009-04-19  Bruno Haible  <bruno@clisp.org>
30036
30037         Support for building a shared library on Windows platforms.
30038         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
30039         (main): Test the presence of UNINORM_NFC here.
30040         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
30041         (main): Test the presence of UNINORM_NFD here.
30042         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
30043         (main): Test the presence of UNINORM_NFKC here.
30044         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
30045         (main): Test the presence of UNINORM_NFKD here.
30046
30047 2009-04-19  Bruno Haible  <bruno@clisp.org>
30048
30049         Avoid a compiler warning.
30050         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
30051         Change type of variable 'sequence'.
30052
30053 2009-04-19  Bruno Haible  <bruno@clisp.org>
30054
30055         * modules/configmake (Makefile.am): When the contents of configmake.h
30056         does not change, arrange to preserve its modification time.
30057
30058 2009-04-17  Simon Josefsson  <simon@josefsson.org>
30059
30060         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
30061         gettext domain.
30062
30063 2009-04-16  Jim Meyering  <meyering@redhat.com>
30064
30065         useless-if-before-free: improve conversion code
30066         * build-aux/useless-if-before-free: Adjust code-in-comment to match
30067         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
30068
30069 2009-04-14  Bruno Haible  <bruno@clisp.org>
30070
30071         * modules/fcntl (Depends-on): Add extensions.
30072         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
30073
30074 2009-04-12  Ben Pfaff  <blp@gnu.org>
30075
30076         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
30077         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
30078
30079 2009-03-20  Ben Pfaff  <blp@gnu.org>
30080
30081         Make rename replace existing destinations on Windows.
30082         * m4/rename.m4: Add test for Mingw.
30083         * lib/rename.c: Add rename replacement that uses MoveFileEx with
30084         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
30085         * doc/posix-functions/rename.texi: Document.
30086
30087 2009-04-10  Bruno Haible  <bruno@clisp.org>
30088
30089         New include file "iconveh.h".
30090         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
30091         * lib/striconveh.h: Include it.
30092         (enum iconv_ilseq_handler): Remove definition.
30093         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
30094         striconveh.h.
30095         * lib/striconveha.c: Include striconveh.h.
30096         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
30097         * modules/striconveh (Files): Add lib/iconveh.h.
30098         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
30099         lib/striconveh.h.
30100
30101 2009-04-10  Bruno Haible  <bruno@clisp.org>
30102
30103         * lib/uniconv.h: Update comment.
30104
30105 2009-04-10  Bruno Haible  <bruno@clisp.org>
30106
30107         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
30108         always.
30109         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
30110         * lib/unistr/u16-mbtouc-aux.c: Likewise.
30111         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
30112         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
30113         "unistring-notinline.h", so that the function gets defined always.
30114         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
30115         * lib/unistr/u8-uctomb.c: Likewise.
30116         * lib/unistr/u16-mbtouc.c: Likewise.
30117         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
30118         * lib/unistr/u16-uctomb.c: Likewise.
30119         * lib/unistr/u32-mbtouc.c: Likewise.
30120         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
30121         * lib/unistr/u32-uctomb.c: Likewise.
30122
30123 2009-04-10  Bruno Haible  <bruno@clisp.org>
30124
30125         Mark 'utime' obsolete.
30126         * modules/utime (Status, Notice): New sections.
30127         Suggested by Jim Meyering.
30128
30129         Fix cross-compile guess for utime test.
30130         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
30131         autoconf.
30132         * doc/posix-functions/utime.texi: Give more precisions.
30133         Reported by Jan <ipif@ymail.com>.
30134
30135 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
30136
30137         filevercmp: correct today's change
30138         * lib/filevercmp.c: Also handle coreutils' test inputs.
30139         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
30140
30141         Fix regression in 'filevercmp' module. Thanks Sven Joachim
30142         for reporting it.
30143         * lib/filevercmp.c: Special handle for "", "." and "..".
30144         * tests/test-filevercmp.c: Enlarge the set suite.
30145
30146 2009-04-07  Jim Meyering  <meyering@redhat.com>
30147
30148         useless-if-before-free: show how to remove braced useless free, too
30149         * build-aux/useless-if-before-free: still only in a comment, though.
30150
30151 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
30152
30153         maint.mk: import changes to syntax-check macros from coreutils
30154         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
30155         Use them in the relevant macros.
30156
30157 2009-04-06  Bruno Haible  <bruno@clisp.org>
30158
30159         Fix unportable use of bit-fields.
30160         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
30161         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
30162         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
30163
30164 2009-04-06  Bruno Haible  <bruno@clisp.org>
30165
30166         Avoid test failures on AIX and OSF/1.
30167         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
30168         that malloc(0) = NULL.
30169         * tests/unicase/test-u8-tolower.c (check): Likewise.
30170         * tests/unicase/test-u8-totitle.c (check): Likewise.
30171         * tests/unicase/test-u8-toupper.c (check): Likewise.
30172         * tests/unicase/test-u16-casefold.c (check): Likewise.
30173         * tests/unicase/test-u16-tolower.c (check): Likewise.
30174         * tests/unicase/test-u16-totitle.c (check): Likewise.
30175         * tests/unicase/test-u16-toupper.c (check): Likewise.
30176         * tests/unicase/test-u32-casefold.c (check): Likewise.
30177         * tests/unicase/test-u32-tolower.c (check): Likewise.
30178         * tests/unicase/test-u32-totitle.c (check): Likewise.
30179         * tests/unicase/test-u32-toupper.c (check): Likewise.
30180         * tests/uninorm/test-u8-nfc.c (check): Likewise.
30181         * tests/uninorm/test-u8-nfd.c (check): Likewise.
30182         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
30183         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
30184         * tests/uninorm/test-u16-nfc.c (check): Likewise.
30185         * tests/uninorm/test-u16-nfd.c (check): Likewise.
30186         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
30187         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
30188         * tests/uninorm/test-u32-nfc.c (check): Likewise.
30189         * tests/uninorm/test-u32-nfd.c (check): Likewise.
30190         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
30191         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
30192
30193 2009-04-05  Bruno Haible  <bruno@clisp.org>
30194
30195         Work around an autoconf limitation.
30196         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
30197         comment line if it would be longer than 3 KB.
30198
30199 2009-04-05  Bruno Haible  <bruno@clisp.org>
30200
30201         Avoid test failure with libiconv-1.13.
30202         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
30203         of the expected test results.
30204
30205 2009-04-05  Bruno Haible  <bruno@clisp.org>
30206
30207         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
30208         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
30209         that it should be installed.
30210
30211 2009-04-05  Bruno Haible  <bruno@clisp.org>
30212
30213         * gnulib-tool: New option --copy-file.
30214         (func_usage): Document it.
30215         (func_dest_tmpfilename): Moved out of func_import.
30216         (func_add_file, func_update_file): New functions, extracted from
30217         func_import.
30218         (func_import): Update.
30219
30220 2009-04-05  Karl Berry  <karl@gnu.org>
30221
30222         * README: prominently mention gnulib-tool.
30223         Rearrange sections so getting the code is near the top.
30224
30225 2009-04-05  Bruno Haible  <bruno@clisp.org>
30226
30227         * lib/unicase.h: Mention u*_cmp2.
30228         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
30229         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
30230         * lib/unicase/ulc-casecmp.c: Likewise.
30231         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
30232         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
30233         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
30234         unistr/u8-cmp.
30235         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
30236         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
30237         unistr/u16-cmp.
30238         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
30239         unistr/u32-cmp.
30240
30241         * lib/uninorm.h: Mention u*_cmp2.
30242         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
30243         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
30244         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
30245         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
30246         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
30247         unistr/u8-cmp.
30248         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
30249         unistr/u16-cmp.
30250         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
30251         unistr/u32-cmp.
30252
30253         New module 'unistr/u32-cmp2'.
30254         * lib/unistr/u32-cmp2.c: New file.
30255         * modules/unistr/u32-cmp2: New file.
30256
30257         New module 'unistr/u16-cmp2'.
30258         * lib/unistr/u16-cmp2.c: New file.
30259         * modules/unistr/u16-cmp2: New file.
30260
30261         New module 'unistr/u8-cmp2'.
30262         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
30263         * lib/unistr/u8-cmp2.c: New file.
30264         * lib/unistr/u-cmp2.h: New file.
30265         * modules/unistr/u8-cmp2: New file.
30266
30267 2009-04-05  Bruno Haible  <bruno@clisp.org>
30268
30269         * lib/unictype.h (uc_property_is_valid): New macro.
30270         * tests/unictype/test-pr_byname.c (main): Use it.
30271
30272         * lib/unistr.h: Doc fixes.
30273         * lib/uniconv.h: Doc fixes.
30274         * lib/unictype.h: Doc fixes.
30275
30276 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
30277
30278         Port coreutils 7.2 to Solaris 8.
30279
30280         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
30281         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
30282         for Solaris 8.  This is a bit of a hack, as it means it's the
30283         caller's responsibility to add -lnsl if needed, but most likely it
30284         won't be needed since only getaddrinfo uses this and getaddrinfo
30285         isn't needed on Solaris 8.
30286
30287         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
30288         problem to Solaris 8 encountered with coreutils 7.2, which
30289         resulted in a message "fnmatch.c:292: warning: passing argument 4
30290         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
30291         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
30292
30293 2009-04-03  Simon Josefsson  <simon@josefsson.org>
30294
30295         * m4/ld-version-script.m4: Add FIXME comment.
30296
30297 2009-04-02  Simon Josefsson  <simon@josefsson.org>
30298
30299         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
30300         SOVERSION variable.
30301
30302 2009-04-02  Bruno Haible  <bruno@clisp.org>
30303
30304         * Makefile (info, html, dvi, pdf): Combine the rules.
30305         Suggested by Jim Meyering.
30306
30307 2009-04-01  Bruno Haible  <bruno@clisp.org>
30308
30309         * Makefile (info, html, dvi, pdf): New targets.
30310         Reported by Reuben Thomas <rrt@sc3d.org>.
30311
30312 2009-04-01  Bruno Haible  <bruno@clisp.org>
30313
30314         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
30315         can be put into PATH.
30316         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
30317
30318 2009-04-01  Bruno Haible  <bruno@clisp.org>
30319
30320         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
30321
30322 2009-04-01  Bruno Haible  <bruno@clisp.org>
30323
30324         Rename module 'visibility'.
30325         * modules/lib-symbol-visibility: Renamed from modules/visibility.
30326         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
30327         * doc/gnulib.texi: Update.
30328         * MODULES.html.sh (Misc): Update.
30329         * NEWS: Mention the change.
30330
30331 2009-04-01  Simon Josefsson  <simon@josefsson.org>
30332
30333         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
30334         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
30335         Eric Blake <ebb9@byu.net> for review.
30336         * MODULES.html.sh: Add lib-msvc-compat.
30337         * doc/gnulib.texi: Link to new section.
30338         * m4/ld-output-def.m4: New file.
30339         * doc/ld-output-def.texi: New file.
30340
30341 2009-04-01  Simon Josefsson  <simon@josefsson.org>
30342
30343         Rename ld-version-script to lib-symbol-versions.  Suggested by
30344         Bruno Haible <bruno@clisp.org>.
30345         * modules/ld-version-script: Renamed to lib-symbol-versions.
30346         * doc/ld-version-script.texi: Fix module name.
30347         * MODULES.html.sh: Add lib-symbol-versions.
30348
30349 2009-03-31  Simon Josefsson  <simon@josefsson.org>
30350
30351         * modules/u64-tests: New file.
30352         * tests/test-u64.c: New file.
30353
30354 2009-03-04  Simon Josefsson  <simon@josefsson.org>
30355
30356         * MODULES.html.sh: Mention u64.
30357         * modules/u64: New module.
30358         * modules/crypto/sha512: Depend on u64 module instead of providing
30359         u64.h.
30360
30361 2009-03-27  Eric Blake  <ebb9@byu.net>
30362
30363         test-strerror: make debugging EAI_SYSTEM easier
30364         * modules/getaddrinfo-tests (Depends-on): Add strerror.
30365         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
30366         failure was EAI_SYSTEM.
30367
30368 2009-03-25  Bruno Haible  <bruno@clisp.org>
30369
30370         Fix a problem with --enable-relocatable on Solaris 7.
30371         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
30372         since 2008-02-24.
30373
30374 2009-03-25  Eric Blake  <ebb9@byu.net>
30375
30376         test-sockets: avoid gcc warning
30377         * tests/test-sockets.c (main): Silence compiler warning.
30378
30379 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
30380
30381         New modules nproc, pthread, contributed by Glen Lenker.
30382
30383         * MODULES.html.sh: Add pthread, nproc.
30384         * lib/nproc.c: New file.
30385         * lib/nproc.h: New file.
30386         * lib/pthread.in.h: New file.
30387         * m4/pthread.m4: New file.
30388         * modules/nproc: New file.
30389         * modules/pthread: New file.
30390
30391 2009-03-24  Simon Josefsson  <simon@josefsson.org>
30392
30393         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
30394         New variable.
30395
30396 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
30397
30398         filevercmp: handle simple~ and numbered.~3~ backup suffixes
30399         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
30400         * tests/test-filevercmp.c: Add tests for backup suffixes.
30401
30402 2009-03-24  Simon Josefsson  <simon@josefsson.org>
30403
30404         * modules/stdlib (Depends-on): Add stdint, needed when defining
30405         struct random_data on, for example, HP-UX 10.20.  Reported by
30406         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
30407
30408 2009-03-24  Simon Josefsson  <simon@josefsson.org>
30409
30410         * lib/readline.c (readline): Call fflush on stdout after printing
30411         prompt.
30412
30413 2009-03-20  Bruno Haible  <bruno@clisp.org>
30414
30415         Remove dependency from 'close' module to -lws2_32 on native Windows.
30416         * lib/close-hook.h: New file.
30417         * lib/close-hook.c: New file.
30418         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
30419         w32sock.h.
30420         (_gl_close_fd_maybe_socket): Remove function.
30421         (rpl_close): Invoke execute_all_close_hooks instead of
30422         _gl_close_fd_maybe_socket.
30423         * lib/sockets.c: Include close-hook.h, w32sock.h.
30424         (close_fd_maybe_socket): New function, essentially from lib/close.c.
30425         (close_sockets_hook): New variable.
30426         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
30427         (gl_sockets_cleanup): Unregister it.
30428         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
30429         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
30430         * modules/close-hook: New file.
30431         * modules/close (Files): Remove lib/w32sock.h.
30432         (Depends-on): Add close-hook.
30433         (Link): Remove section.
30434         * modules/sockets (Files): Add lib/w32sock.h.
30435         (Depends-on): Add close-hook.
30436         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
30437         invocation.
30438         * NEWS: Mention that LIB_CLOSE is gone.
30439
30440 2009-03-23  Eric Blake  <ebb9@byu.net>
30441
30442         signal-tests: test previous patch
30443         * tests/test-signal.c: New file.
30444         * modules/signal-tests: Likewise.
30445
30446         signal.h: always support 'volatile sig_atomic_t'
30447         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
30448         (gl_SIGNAL_H_DEFAULTS): Add a default.
30449         * modules/signal (Makefile.am): Substitute if needed.
30450         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
30451         users can blindly add volatile.
30452         * doc/posix-headers/signal.texi (signal.h): Document it.
30453         Reported by Matthew Woehlke.
30454
30455 2009-03-23  Jim Meyering  <meyering@redhat.com>
30456
30457         pathmax: PATH_MAX: use pathconf only when available
30458         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
30459         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
30460         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
30461         This avoids a link failure in a PSP cross-compilation environment
30462         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
30463
30464         * lib/vasnprintf.c (divide): Fix typo in comment.
30465
30466 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30467
30468         * gnulib-tool (func_filter_filelist): Fix comment.
30469
30470 2009-03-20  Bruno Haible  <bruno@clisp.org>
30471
30472         Make sockets.h self-contained.
30473         * lib/sockets.c: Include sockets.h first.
30474         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
30475
30476 2009-03-19  Eric Blake  <ebb9@byu.net>
30477
30478         doc: mention more functions added in cygwin 1.7.0
30479         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
30480         addition.
30481         * doc/posix-functions/log2f.texi: Likewise.
30482
30483 2009-03-19  Jim Meyering  <meyering@redhat.com>
30484
30485         fsusage: avoid syntax error due to statement-before-declaration
30486         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
30487         after all declarations.  Reported by Matthew Woehlke in
30488         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
30489
30490 2009-03-18  Eric Blake  <ebb9@byu.net>
30491
30492         build-aux/compile: sync from automake
30493         * build-aux/compile: New file, from automake.
30494         * config/srclist.txt: Mention build-aux/compile.
30495
30496 2009-03-17  Bruno Haible  <bruno@clisp.org>
30497
30498         * lib/git-merge-changelog.c: Fix typo in comment.
30499         Reported by Reuben Thomas <rrt@sc3d.org>.
30500
30501 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
30502
30503         * m4/regex.m4: update and improve help for
30504         --without-included-regex.
30505
30506 2009-03-17  Simon Josefsson  <simon@josefsson.org>
30507
30508         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
30509         failure on missing include files.
30510
30511 2009-03-17  Eric Blake  <ebb9@byu.net>
30512
30513         doc: mention more functions added in cygwin 1.7.0
30514         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
30515         addition.
30516         * doc/posix-functions/fwscanf.texi: Likewise.
30517         * doc/posix-functions/swprintf.texi: Likewise.
30518         * doc/posix-functions/swscanf.texi: Likewise.
30519         * doc/posix-functions/vfwprintf.texi: Likewise.
30520         * doc/posix-functions/vfwscanf.texi: Likewise.
30521         * doc/posix-functions/vswprintf.texi: Likewise.
30522         * doc/posix-functions/vswscanf.texi: Likewise.
30523         * doc/posix-functions/vwprintf.texi: Likewise.
30524         * doc/posix-functions/vwscanf.texi: Likewise.
30525         * doc/posix-functions/wcscasecmp.texi: Likewise.
30526         * doc/posix-functions/wcsdup.texi: Likewise.
30527         * doc/posix-functions/wcsftime.texi: Likewise.
30528         * doc/posix-functions/wcsncasecmp.texi: Likewise.
30529         * doc/posix-functions/wprintf.texi: Likewise.
30530         * doc/posix-functions/wscanf.texi: Likewise.
30531         * doc/glibc-functions/gethostbyname2.texi: Likewise.
30532
30533 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30534
30535         maint.mk: really add $(AM_MAKEFLAGS)
30536         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
30537         was inadvertently omitted in the last commit.
30538         Spotted by Bruno Haible.
30539
30540         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
30541         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
30542         $(AM_MAKEFLAGS)' rather than plain `make'.
30543
30544         gnulib-tool: execute $MAKE not make
30545         * gnulib-tool: Default $MAKE to 'make'.
30546         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
30547         than make.  Initialize $MAKE in the do-autobuild script.
30548
30549         gnulib-tool: use $MAKE not make in generated files
30550         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
30551         make, in generated files.  Initialize $MAKE in the do-autobuild
30552         script.
30553
30554         * top/GNUmakefile (_have-git-version-gen): Fix typo.
30555
30556         GNUmakefile: disable parallelism only for multiple, recursive targets
30557         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
30558         additions in the Makefile.
30559         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
30560         by Automake.
30561         (.NOTPARALLEL): Only disable parallel builds if multiple targets
30562         are listed on the command line and at least one of them is
30563         listed in $(ALL_RECURSIVE_TARGETS).
30564
30565 2009-03-14  Bruno Haible  <bruno@clisp.org>
30566
30567         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
30568         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
30569         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
30570         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
30571         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
30572         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
30573         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
30574         unistr/u8-uctomb.
30575         * modules/unistr/u8-strchr (Depends-on): Likewise.
30576         * modules/unistr/u8-strrchr (Depends-on): Likewise.
30577         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
30578         unistr/u16-uctomb.
30579         * modules/unistr/u16-strchr (Depends-on): Likewise.
30580         * modules/unistr/u16-strrchr (Depends-on): Likewise.
30581
30582 2009-03-12  Bruno Haible  <bruno@clisp.org>
30583
30584         Work around select() bug on Interix 3.5.
30585         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
30586         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
30587         * m4/select.m4: New file.
30588         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
30589         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
30590         * modules/select (Files): Add m4/select.m4.
30591         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
30592         * modules/nanosleep (Depends-on): Add select.
30593         * modules/poll (Depends-on): Likewise.
30594         * doc/posix-functions/select.texi: Mention the Interix bug.
30595         Reported by Markus Duft <mduft@gentoo.org>.
30596
30597         * lib/select.c: Renamed from lib/winsock-select.c.
30598         * modules/select (Files): Add lib/select.c, remove
30599         lib/winsock-select.c.
30600         (configure.ac): Update.
30601
30602 2009-03-12  Jim Meyering  <meyering@redhat.com>
30603
30604         avoid gcc warnings about unused macro definitions
30605         * lib/readtokens.c (STREQ): Remove unused definition.
30606         * lib/xmalloc.c (SIZE_MAX): Likewise.
30607         * lib/openat-die.c (N_): Likewise.
30608         * lib/mountlist.c (SIZE_MAX): Remove definition.
30609         Instead, include <stdint.h>.
30610         * lib/readutmp.c: Likewise.
30611         * modules/readutmp (Depends-on): Add stdint.
30612         * modules/mountlist (Depends-on): Add stdint.
30613         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
30614
30615 2009-03-10  Bruno Haible  <bruno@clisp.org>
30616
30617         Tests for module 'mbmemcasecoll'.
30618         * modules/mbmemcasecoll-tests: New file.
30619         * tests/test-mbmemcasecoll1.sh: New file.
30620         * tests/test-mbmemcasecoll2.sh: New file.
30621         * tests/test-mbmemcasecoll3.sh: New file.
30622         * tests/test-mbmemcasecoll.c: New file.
30623
30624         New module 'mbmemcasecoll'.
30625         * lib/mbmemcasecoll.h: New file.
30626         * lib/mbmemcasecoll.c: New file.
30627         * modules/mbmemcasecoll: New file.
30628
30629         * tests/test-mbmemcasecmp.h: New file, extracted from
30630         tests/test-mbmemcasecmp.c.
30631         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
30632         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
30633         (main): Update.
30634         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
30635
30636 2009-03-09  Bruno Haible  <bruno@clisp.org>
30637
30638         Tests for module 'mbmemcasecmp'.
30639         * modules/mbmemcasecmp-tests: New file.
30640         * tests/test-mbmemcasecmp1.sh: New file.
30641         * tests/test-mbmemcasecmp2.sh: New file.
30642         * tests/test-mbmemcasecmp3.sh: New file.
30643         * tests/test-mbmemcasecmp.c: New file.
30644
30645         New module 'mbmemcasecmp'.
30646         * lib/mbmemcasecmp.h: New file.
30647         * lib/mbmemcasecmp.c: New file.
30648         * modules/mbmemcasecmp: New file.
30649
30650 2009-03-09  Bruno Haible  <bruno@clisp.org>
30651
30652         Tests for module 'unicase/ulc-casecoll'.
30653         * modules/unicase/ulc-casecoll-tests: New file.
30654         * tests/unicase/test-ulc-casecoll1.sh: New file.
30655         * tests/unicase/test-ulc-casecoll2.sh: New file.
30656         * tests/unicase/test-ulc-casecoll.c: New file.
30657
30658         New module 'unicase/ulc-casecoll'.
30659         * lib/unicase.h (ulc_casecoll): New declaration.
30660         * lib/unicase/ulc-casecoll.c: New file.
30661         * modules/unicase/ulc-casecoll: New file.
30662
30663         New module 'unicase/ulc-casexfrm'.
30664         * lib/unicase.h (ulc_casexfrm): New declaration.
30665         * lib/unicase/ulc-casexfrm.c: New file.
30666         * modules/unicase/ulc-casexfrm: New file.
30667
30668 2009-03-09  Bruno Haible  <bruno@clisp.org>
30669
30670         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
30671         invocations.
30672
30673         * m4/mbscasecmp.m4: Remove file.
30674         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
30675         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
30676
30677         * m4/mbscasestr.m4: Remove file.
30678         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
30679         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
30680
30681         * m4/mbschr.m4: Remove file.
30682         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
30683         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
30684
30685         * m4/mbscspn.m4: Remove file.
30686         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
30687         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
30688
30689         * m4/mbslen.m4: Remove file.
30690         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
30691         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
30692
30693         * m4/mbsncasecmp.m4: Remove file.
30694         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
30695         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
30696
30697         * m4/mbsnlen.m4: Remove file.
30698         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
30699         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
30700
30701         * m4/mbspbrk.m4: Remove file.
30702         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
30703         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
30704
30705         * m4/mbspcasecmp.m4: Remove file.
30706         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
30707         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
30708
30709         * m4/mbsrchr.m4: Remove file.
30710         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
30711         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
30712
30713         * m4/mbssep.m4: Remove file.
30714         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
30715         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
30716
30717         * m4/mbsspn.m4: Remove file.
30718         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
30719         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
30720
30721         * m4/mbsstr.m4: Remove file.
30722         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
30723         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
30724
30725         * m4/mbstok_r.m4: Remove file.
30726         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
30727         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
30728
30729         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
30730
30731         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
30732         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
30733
30734         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
30735
30736 2009-03-08  Bruno Haible  <bruno@clisp.org>
30737
30738         Tests for module 'unicase/ulc-casecmp'.
30739         * modules/unicase/ulc-casecmp-tests: New file.
30740         * tests/unicase/test-ulc-casecmp1.sh: New file.
30741         * tests/unicase/test-ulc-casecmp2.sh: New file.
30742         * tests/unicase/test-ulc-casecmp.c: New file.
30743
30744         New module 'unicase/ulc-casecmp'.
30745         * lib/unicase.h (ulc_casecmp): New declaration.
30746         * lib/unicase/ulc-casecmp.c: New file.
30747         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
30748         'const SRC_UNIT *'.
30749         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
30750         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
30751         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
30752         * modules/unicase/ulc-casecmp: New file.
30753
30754         Tests for module 'unicase/u32-is-cased'.
30755         * modules/unicase/u32-is-cased-tests: New file.
30756         * tests/unicase/test-u32-is-cased.c: New file.
30757
30758         Tests for module 'unicase/u16-is-cased'.
30759         * modules/unicase/u16-is-cased-tests: New file.
30760         * tests/unicase/test-u16-is-cased.c: New file.
30761
30762         Tests for module 'unicase/u8-is-cased'.
30763         * modules/unicase/u8-is-cased-tests: New file.
30764         * tests/unicase/test-u8-is-cased.c: New file.
30765         * tests/unicase/test-is-cased.h: New file.
30766
30767         New module 'unicase/u32-is-cased'.
30768         * lib/unicase/u32-is-cased.c: New file.
30769         * modules/unicase/u32-is-cased: New file.
30770
30771         New module 'unicase/u16-is-cased'.
30772         * lib/unicase/u16-is-cased.c: New file.
30773         * modules/unicase/u16-is-cased: New file.
30774
30775         New module 'unicase/u8-is-cased'.
30776         * lib/unicase/u8-is-cased.c: New file.
30777         * lib/unicase/u-is-cased.h: New file.
30778         * modules/unicase/u8-is-cased: New file.
30779
30780         Tests for module 'unicase/u32-is-casefolded'.
30781         * modules/unicase/u32-is-casefolded-tests: New file.
30782         * tests/unicase/test-u32-is-casefolded.c: New file.
30783
30784         Tests for module 'unicase/u16-is-casefolded'.
30785         * modules/unicase/u16-is-casefolded-tests: New file.
30786         * tests/unicase/test-u16-is-casefolded.c: New file.
30787
30788         Tests for module 'unicase/u8-is-casefolded'.
30789         * modules/unicase/u8-is-casefolded-tests: New file.
30790         * tests/unicase/test-u8-is-casefolded.c: New file.
30791         * tests/unicase/test-is-casefolded.h: New file.
30792
30793         New module 'unicase/u32-is-casefolded'.
30794         * lib/unicase/u32-is-casefolded.c: New file.
30795         * modules/unicase/u32-is-casefolded: New file.
30796
30797         New module 'unicase/u16-is-casefolded'.
30798         * lib/unicase/u16-is-casefolded.c: New file.
30799         * modules/unicase/u16-is-casefolded: New file.
30800
30801         New module 'unicase/u8-is-casefolded'.
30802         * lib/unicase/u8-is-casefolded.c: New file.
30803         * modules/unicase/u8-is-casefolded: New file.
30804
30805         Tests for module 'unicase/u32-is-titlecase'.
30806         * modules/unicase/u32-is-titlecase-tests: New file.
30807         * tests/unicase/test-u32-is-titlecase.c: New file.
30808
30809         Tests for module 'unicase/u16-is-titlecase'.
30810         * modules/unicase/u16-is-titlecase-tests: New file.
30811         * tests/unicase/test-u16-is-titlecase.c: New file.
30812
30813         Tests for module 'unicase/u8-is-titlecase'.
30814         * modules/unicase/u8-is-titlecase-tests: New file.
30815         * tests/unicase/test-u8-is-titlecase.c: New file.
30816         * tests/unicase/test-is-titlecase.h: New file.
30817
30818         New module 'unicase/u32-is-titlecase'.
30819         * lib/unicase/u32-is-titlecase.c: New file.
30820         * modules/unicase/u32-is-titlecase: New file.
30821
30822         New module 'unicase/u16-is-titlecase'.
30823         * lib/unicase/u16-is-titlecase.c: New file.
30824         * modules/unicase/u16-is-titlecase: New file.
30825
30826         New module 'unicase/u8-is-titlecase'.
30827         * lib/unicase/u8-is-titlecase.c: New file.
30828         * modules/unicase/u8-is-titlecase: New file.
30829
30830         Tests for module 'unicase/u32-is-lowercase'.
30831         * modules/unicase/u32-is-lowercase-tests: New file.
30832         * tests/unicase/test-u32-is-lowercase.c: New file.
30833
30834         Tests for module 'unicase/u16-is-lowercase'.
30835         * modules/unicase/u16-is-lowercase-tests: New file.
30836         * tests/unicase/test-u16-is-lowercase.c: New file.
30837
30838         Tests for module 'unicase/u8-is-lowercase'.
30839         * modules/unicase/u8-is-lowercase-tests: New file.
30840         * tests/unicase/test-u8-is-lowercase.c: New file.
30841         * tests/unicase/test-is-lowercase.h: New file.
30842
30843         New module 'unicase/u32-is-lowercase'.
30844         * lib/unicase/u32-is-lowercase.c: New file.
30845         * modules/unicase/u32-is-lowercase: New file.
30846
30847         New module 'unicase/u16-is-lowercase'.
30848         * lib/unicase/u16-is-lowercase.c: New file.
30849         * modules/unicase/u16-is-lowercase: New file.
30850
30851         New module 'unicase/u8-is-lowercase'.
30852         * lib/unicase/u8-is-lowercase.c: New file.
30853         * modules/unicase/u8-is-lowercase: New file.
30854
30855         Tests for module 'unicase/u32-is-uppercase'.
30856         * modules/unicase/u32-is-uppercase-tests: New file.
30857         * tests/unicase/test-u32-is-uppercase.c: New file.
30858
30859         Tests for module 'unicase/u16-is-uppercase'.
30860         * modules/unicase/u16-is-uppercase-tests: New file.
30861         * tests/unicase/test-u16-is-uppercase.c: New file.
30862
30863         Tests for module 'unicase/u8-is-uppercase'.
30864         * modules/unicase/u8-is-uppercase-tests: New file.
30865         * tests/unicase/test-u8-is-uppercase.c: New file.
30866         * tests/unicase/test-is-uppercase.h: New file.
30867
30868         New module 'unicase/u32-is-uppercase'.
30869         * lib/unicase/u32-is-uppercase.c: New file.
30870         * modules/unicase/u32-is-uppercase: New file.
30871
30872         New module 'unicase/u16-is-uppercase'.
30873         * lib/unicase/u16-is-uppercase.c: New file.
30874         * modules/unicase/u16-is-uppercase: New file.
30875
30876         New module 'unicase/u8-is-uppercase'.
30877         * lib/unicase/u8-is-uppercase.c: New file.
30878         * modules/unicase/u8-is-uppercase: New file.
30879
30880         New module 'unicase/u32-is-invariant'.
30881         * lib/unicase/u32-is-invariant.c: New file.
30882         * modules/unicase/u32-is-invariant: New file.
30883
30884         New module 'unicase/u16-is-invariant'.
30885         * lib/unicase/u16-is-invariant.c: New file.
30886         * modules/unicase/u16-is-invariant: New file.
30887
30888         New module 'unicase/u8-is-invariant'.
30889         * lib/unicase/u8-is-invariant.c: New file.
30890         * lib/unicase/invariant.h: New file.
30891         * lib/unicase/u-is-invariant.h: New file.
30892         * modules/unicase/u8-is-invariant: New file.
30893
30894         Tests for module 'unicase/u32-casecoll'.
30895         * modules/unicase/u32-casecoll-tests: New file.
30896         * tests/unicase/test-u32-casecoll.c: New file.
30897
30898         Tests for module 'unicase/u16-casecoll'.
30899         * modules/unicase/u16-casecoll-tests: New file.
30900         * tests/unicase/test-u16-casecoll.c: New file.
30901
30902         Tests for module 'unicase/u8-casecoll'.
30903         * modules/unicase/u8-casecoll-tests: New file.
30904         * tests/unicase/test-u8-casecoll.c: New file.
30905
30906         New module 'unicase/u32-casecoll'.
30907         * lib/unicase/u32-casecoll.c: New file.
30908         * modules/unicase/u32-casecoll: New file.
30909
30910         New module 'unicase/u16-casecoll'.
30911         * lib/unicase/u16-casecoll.c: New file.
30912         * modules/unicase/u16-casecoll: New file.
30913
30914         New module 'unicase/u8-casecoll'.
30915         * lib/unicase/u8-casecoll.c: New file.
30916         * lib/unicase/u-casecoll.h: New file.
30917         * modules/unicase/u8-casecoll: New file.
30918
30919         New module 'unicase/u32-casexfrm'.
30920         * lib/unicase/u32-casexfrm.c: New file.
30921         * modules/unicase/u32-casexfrm: New file.
30922
30923         New module 'unicase/u16-casexfrm'.
30924         * lib/unicase/u16-casexfrm.c: New file.
30925         * modules/unicase/u16-casexfrm: New file.
30926
30927         New module 'unicase/u8-casexfrm'.
30928         * lib/unicase/u8-casexfrm.c: New file.
30929         * lib/unicase/u-casexfrm.h: New file.
30930         * modules/unicase/u8-casexfrm: New file.
30931
30932         Tests for module 'unicase/u32-casecmp'.
30933         * modules/unicase/u32-casecmp-tests: New file.
30934         * tests/unicase/test-u32-casecmp.c: New file.
30935
30936         Tests for module 'unicase/u16-casecmp'.
30937         * modules/unicase/u16-casecmp-tests: New file.
30938         * tests/unicase/test-u16-casecmp.c: New file.
30939
30940         Tests for module 'unicase/u8-casecmp'.
30941         * modules/unicase/u8-casecmp-tests: New file.
30942         * tests/unicase/test-u8-casecmp.c: New file.
30943         * tests/unicase/test-casecmp.h: New file.
30944
30945         New module 'unicase/u32-casecmp'.
30946         * lib/unicase/u32-casecmp.c: New file.
30947         * modules/unicase/u32-casecmp: New file.
30948
30949         New module 'unicase/u16-casecmp'.
30950         * lib/unicase/u16-casecmp.c: New file.
30951         * modules/unicase/u16-casecmp: New file.
30952
30953         New module 'unicase/u8-casecmp'.
30954         * lib/unicase/u8-casecmp.c: New file.
30955         * lib/unicase/u-casecmp.h: New file.
30956         * modules/unicase/u8-casecmp: New file.
30957
30958         Tests for module 'unicase/u32-casefold'.
30959         * modules/unicase/u32-casefold-tests: New file.
30960         * tests/unicase/test-u32-casefold.c: New file.
30961
30962         Tests for module 'unicase/u16-casefold'.
30963         * modules/unicase/u16-casefold-tests: New file.
30964         * tests/unicase/test-u16-casefold.c: New file.
30965
30966         Tests for module 'unicase/u8-casefold'.
30967         * modules/unicase/u8-casefold-tests: New file.
30968         * tests/unicase/test-u8-casefold.c: New file.
30969
30970         New module 'unicase/u32-casefold'.
30971         * lib/unicase/u32-casefold.c: New file.
30972         * modules/unicase/u32-casefold: New file.
30973
30974         New module 'unicase/u16-casefold'.
30975         * lib/unicase/u16-casefold.c: New file.
30976         * modules/unicase/u16-casefold: New file.
30977
30978         New module 'unicase/u8-casefold'.
30979         * lib/unicase/u8-casefold.c: New file.
30980         * lib/unicase/u-casefold.h: New file.
30981         * modules/unicase/u8-casefold: New file.
30982
30983         New module 'unicase/tocasefold'.
30984         * lib/unicase/casefold.h: New file.
30985         * lib/unicase/tocasefold.c: New file.
30986         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
30987         * modules/unicase/tocasefold: New file.
30988
30989         Tests for module 'unicase/u32-totitle'.
30990         * modules/unicase/u32-totitle-tests: New file.
30991         * tests/unicase/test-u32-totitle.c: New file.
30992
30993         Tests for module 'unicase/u16-totitle'.
30994         * modules/unicase/u16-totitle-tests: New file.
30995         * tests/unicase/test-u16-totitle.c: New file.
30996
30997         Tests for module 'unicase/u8-totitle'.
30998         * modules/unicase/u8-totitle-tests: New file.
30999         * tests/unicase/test-u8-totitle.c: New file.
31000
31001         New module 'unicase/u32-totitle'.
31002         * lib/unicase/u32-totitle.c: New file.
31003         * modules/unicase/u32-totitle: New file.
31004
31005         New module 'unicase/u16-totitle'.
31006         * lib/unicase/u16-totitle.c: New file.
31007         * modules/unicase/u16-totitle: New file.
31008
31009         New module 'unicase/u8-totitle'.
31010         * lib/unicase/u8-totitle.c: New file.
31011         * lib/unicase/u-totitle.h: New file.
31012         * modules/unicase/u8-totitle: New file.
31013
31014         Tests for module 'unicase/u32-tolower'.
31015         * modules/unicase/u32-tolower-tests: New file.
31016         * tests/unicase/test-u32-tolower.c: New file.
31017
31018         Tests for module 'unicase/u16-tolower'.
31019         * modules/unicase/u16-tolower-tests: New file.
31020         * tests/unicase/test-u16-tolower.c: New file.
31021
31022         Tests for module 'unicase/u8-tolower'.
31023         * modules/unicase/u8-tolower-tests: New file.
31024         * tests/unicase/test-u8-tolower.c: New file.
31025
31026         New module 'unicase/u32-tolower'.
31027         * lib/unicase/u32-tolower.c: New file.
31028         * modules/unicase/u32-tolower: New file.
31029
31030         New module 'unicase/u16-tolower'.
31031         * lib/unicase/u16-tolower.c: New file.
31032         * modules/unicase/u16-tolower: New file.
31033
31034         New module 'unicase/u8-tolower'.
31035         * lib/unicase/u8-tolower.c: New file.
31036         * modules/unicase/u8-tolower: New file.
31037
31038         Tests for module 'unicase/u32-toupper'.
31039         * modules/unicase/u32-toupper-tests: New file.
31040         * tests/unicase/test-u32-toupper.c: New file.
31041
31042         Tests for module 'unicase/u16-toupper'.
31043         * modules/unicase/u16-toupper-tests: New file.
31044         * tests/unicase/test-u16-toupper.c: New file.
31045
31046         Tests for module 'unicase/u8-toupper'.
31047         * modules/unicase/u8-toupper-tests: New file.
31048         * tests/unicase/test-u8-toupper.c: New file.
31049
31050         New module 'unicase/u32-toupper'.
31051         * lib/unicase/u32-toupper.c: New file.
31052         * modules/unicase/u32-toupper: New file.
31053
31054         New module 'unicase/u16-toupper'.
31055         * lib/unicase/u16-toupper.c: New file.
31056         * modules/unicase/u16-toupper: New file.
31057
31058         New module 'unicase/u8-toupper'.
31059         * lib/unicase/u8-toupper.c: New file.
31060         * modules/unicase/u8-toupper: New file.
31061
31062         New module 'unicase/u32-casemap'.
31063         * lib/unicase/u32-casemap.c: New file.
31064         * modules/unicase/u32-casemap: New file.
31065
31066         New module 'unicase/u16-casemap'.
31067         * lib/unicase/u16-casemap.c: New file.
31068         * modules/unicase/u16-casemap: New file.
31069
31070         New module 'unicase/u8-casemap'.
31071         * lib/unicase/unicasemap.h: New file.
31072         * lib/unicase/u8-casemap.c: New file.
31073         * lib/unicase/u-casemap.h: New file.
31074         * modules/unicase/u8-casemap: New file.
31075
31076         New module 'unicase/special-casing'.
31077         * lib/unicase/special-casing.h: New file.
31078         * lib/unicase/special-casing.c: New file.
31079         * lib/unicase/special-casing-table.gperf: New file, generated by
31080         gen-uni-tables.c.
31081         * modules/unicase/special-casing: New file.
31082
31083         Tests for module 'unicase/locale-language'.
31084         * modules/unicase/locale-language-tests: New file.
31085         * tests/unicase/test-locale-language.sh: New file.
31086         * tests/unicase/test-locale-language.c: New file.
31087
31088         New module 'unicase/locale-language'.
31089         * lib/unicase/locale-language.c: New file.
31090         * lib/unicase/locale-languages.gperf: New file.
31091         * modules/unicase/locale-language: New file.
31092
31093         Generate more tables for case conversion and case folding.
31094         * lib/gen-uni-tables.c (SCC_*): New enum items.
31095         (struct special_casing_rule): New type.
31096         (casing_rules, num_casing_rules, allocated_casing_rules): New
31097         variables.
31098         (add_casing_rule, fill_casing_rules): New functions.
31099         (struct casefold_rule): New type.
31100         (casefolding_rules, num_casefolding_rules,
31101         allocated_casefolding_rules): New variables.
31102         (fill_casefolding_rules): New function.
31103         (unicode_casefold): New variable.
31104         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
31105         sort_casing_rules, output_casing_rules): New functions.
31106         (main): Accept to more arguments: SpecialCasing.txt and
31107         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
31108         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
31109         Output mapping for casefolding.
31110
31111         * lib/unicase.h: Include stdbool.h, uninorm.h.
31112         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
31113         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
31114         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
31115         arguments.
31116         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
31117         resultp arguments.
31118         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
31119         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
31120         resultp arguments.
31121         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
31122         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
31123         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
31124         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
31125         declarations.
31126         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
31127
31128 2009-03-08  Bruno Haible  <bruno@clisp.org>
31129
31130         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
31131         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
31132         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
31133         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
31134
31135 2009-03-07  Bruno Haible  <bruno@clisp.org>
31136
31137         Adjust u*_normcmp, u*_normcoll API.
31138         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
31139         u16_normcoll, u32_normcoll): Change failure conventions.
31140         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
31141         errno and return -1.
31142         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
31143
31144 2009-03-07  Bruno Haible  <bruno@clisp.org>
31145
31146         Tests for module 'uninorm/u32-normcoll'.
31147         * modules/uninorm/u32-normcoll-tests: New file.
31148         * tests/uninorm/test-u32-normcoll.c: New file.
31149
31150         Tests for module 'uninorm/u16-normcoll'.
31151         * modules/uninorm/u16-normcoll-tests: New file.
31152         * tests/uninorm/test-u16-normcoll.c: New file.
31153
31154         Tests for module 'uninorm/u8-normcoll'.
31155         * modules/uninorm/u8-normcoll-tests: New file.
31156         * tests/uninorm/test-u8-normcoll.c: New file.
31157
31158 2009-03-07  Bruno Haible  <bruno@clisp.org>
31159
31160         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
31161         tests/uninorm/test-u32-normcmp.c.
31162         * tests/uninorm/test-u32-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/u32-normcmp-tests (Files): Add
31167         tests/uninorm/test-u32-normcmp.h.
31168         (Depends-on): Remove uninorm/u32-normcmp.
31169
31170         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
31171         tests/uninorm/test-u16-normcmp.c.
31172         * tests/uninorm/test-u16-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/u16-normcmp-tests (Files): Add
31177         tests/uninorm/test-u16-normcmp.h.
31178         (Depends-on): Remove uninorm/u16-normcmp.
31179
31180         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
31181         tests/uninorm/test-u8-normcmp.c.
31182         * tests/uninorm/test-u8-normcmp.c: Include it.
31183         (test_nonascii): New function, extracted from main. Add some more
31184         tests.
31185         (main): Invoke test_ascii and test_nonascii.
31186         * modules/uninorm/u8-normcmp-tests (Files): Add
31187         tests/uninorm/test-u8-normcmp.h.
31188         (Depends-on): Remove uninorm/u8-normcmp.
31189
31190 2009-03-07  Bruno Haible  <bruno@clisp.org>
31191
31192         New module 'uninorm/u32-normcoll'.
31193         * lib/uninorm/u32-normcoll.c: New file.
31194         * modules/uninorm/u32-normcoll: New file.
31195
31196         New module 'uninorm/u16-normcoll'.
31197         * lib/uninorm/u16-normcoll.c: New file.
31198         * modules/uninorm/u16-normcoll: New file.
31199
31200         New module 'uninorm/u8-normcoll'.
31201         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
31202         declarations.
31203         * lib/uninorm/u8-normcoll.c: New file.
31204         * lib/uninorm/u-normcoll.h: New file.
31205         * modules/uninorm/u8-normcoll: New file.
31206
31207         New module 'uninorm/u32-normxfrm'.
31208         * lib/uninorm/u32-normxfrm.c: New file.
31209         * modules/uninorm/u32-normxfrm: New file.
31210
31211         New module 'uninorm/u16-normxfrm'.
31212         * lib/uninorm/u16-normxfrm.c: New file.
31213         * modules/uninorm/u16-normxfrm: New file.
31214
31215         New module 'uninorm/u8-normxfrm'.
31216         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
31217         declarations.
31218         * lib/uninorm/u8-normxfrm.c: New file.
31219         * lib/uninorm/u-normxfrm.h: New file.
31220         * modules/uninorm/u8-normxfrm: New file.
31221
31222 2009-03-07  Bruno Haible  <bruno@clisp.org>
31223
31224         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
31225         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
31226         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
31227
31228 2009-03-07  Bruno Haible  <bruno@clisp.org>
31229
31230         New module 'memxfrm'.
31231         * lib/memxfrm.h: New file.
31232         * lib/memxfrm.c: New file.
31233         * modules/memxfrm: New file.
31234
31235 2009-03-07  Bruno Haible  <bruno@clisp.org>
31236
31237         New module 'memcmp2'.
31238         * lib/memcmp2.h: New file.
31239         * lib/memcmp2.c: New file.
31240         * modules/memcmp2: New file.
31241
31242 2009-03-07  Bruno Haible  <bruno@clisp.org>
31243
31244         Tests for module 'uninorm/decomposing-form'.
31245         * modules/uninorm/decomposing-form-tests: New file.
31246         * tests/uninorm/test-decomposing-form.c: New file.
31247
31248         New module 'uninorm/decomposing-form'.
31249         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
31250         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
31251         Add 'decomposing_variant' field.
31252         * lib/uninorm/decomposing-form.c: New file.
31253         * lib/uninorm/nfc.c (uninorm_nfc): Update.
31254         * lib/uninorm/nfd.c (uninorm_nfd): Update.
31255         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
31256         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
31257         * modules/uninorm/decomposing-form: New file.
31258         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
31259         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
31260
31261 2009-03-07  Bruno Haible  <bruno@clisp.org>
31262
31263         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
31264         strings.
31265
31266 2009-03-06  Bruno Haible  <bruno@clisp.org>
31267
31268         Tests for module 'uninorm/u32-normcmp'.
31269         * tests/uninorm/test-u32-normcmp.c: New file.
31270         * modules/uninorm/u32-normcmp-tests: New file.
31271
31272         Tests for module 'uninorm/u16-normcmp'.
31273         * tests/uninorm/test-u16-normcmp.c: New file.
31274         * modules/uninorm/u16-normcmp-tests: New file.
31275
31276         Tests for module 'uninorm/u8-normcmp'.
31277         * tests/uninorm/test-u8-normcmp.c: New file.
31278         * modules/uninorm/u8-normcmp-tests: New file.
31279
31280         New module 'uninorm/u32-normcmp'.
31281         * lib/uninorm/u32-normcmp.c: New file.
31282         * modules/uninorm/u32-normcmp: New file.
31283
31284         New module 'uninorm/u16-normcmp'.
31285         * lib/uninorm/u16-normcmp.c: New file.
31286         * modules/uninorm/u16-normcmp: New file.
31287
31288         New module 'uninorm/u8-normcmp'.
31289         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
31290         declarations.
31291         * lib/uninorm/u8-normcmp.c: New file.
31292         * lib/uninorm/u-normcmp.h: New file.
31293         * modules/uninorm/u8-normcmp: New file.
31294
31295 2009-03-06  Bruno Haible  <bruno@clisp.org>
31296
31297         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
31298         Reported by Eric Blake.
31299
31300 2009-03-06  Eric Blake  <ebb9@byu.net>
31301             Bruno Haible  <bruno@clisp.org>
31302
31303         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
31304         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
31305         condition.
31306         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
31307         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
31308         condition.
31309         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
31310
31311 2009-03-06  Eric Blake  <ebb9@byu.net>
31312
31313         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
31314         to avoid compiler warnings.
31315         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
31316
31317 2009-03-05  Bruno Haible  <bruno@clisp.org>
31318
31319         * tests/test-ftell.c (main): Disable test beyond end of file on
31320         FreeMiNT.
31321         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
31322
31323 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
31324
31325         * lib/filevercmp.c: Move hidden files up in ordering.
31326         * tests/test-filevercmp.c: Add tests for hidden files.
31327
31328 2009-03-04  Bruno Haible  <bruno@clisp.org>
31329
31330         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
31331         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
31332         AM_CFLAGS.
31333         Reported by Simon Josefsson.
31334
31335 2009-03-03  Bruno Haible  <bruno@clisp.org>
31336
31337         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
31338         Reported by Simon Josefsson.
31339
31340         * doc/ld-version-script.texi: Update node reference.
31341
31342 2009-03-03  Bruno Haible  <bruno@clisp.org>
31343
31344         * modules/visibility (License): Change to 'unlimited'.
31345         Suggested by Simon Josefsson.
31346
31347 2009-03-03  Jim Meyering  <meyering@redhat.com>
31348
31349         unlinkdir: cannot_unlink_dir may modify process state
31350         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
31351         it's neither thread-safe nor appropriate for use in a library.
31352
31353 2009-03-03  Eric Blake  <ebb9@byu.net>
31354
31355         test-closein: silence test under Darwin
31356         * tests/test-closein.sh: Ignore stderr from cat, since we don't
31357         care if it dies from EPIPE or EBADF.
31358
31359 2009-03-03  Bruno Haible  <bruno@clisp.org>
31360
31361         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
31362         earlier.
31363         * doc/visibility.texi: Fix @node and @section.
31364
31365 2009-03-03  Simon Josefsson  <simon@josefsson.org>
31366
31367         * doc/gnulib.texi: Link to sections for ld version script and
31368         visibility.
31369         * doc/visibility.texi: Add @node and @section.
31370         * modules/ld-version-script: New module.
31371         * m4/ld-version-script.m4: New file.
31372         * doc/ld-version-script.texi: New file.
31373
31374 2009-03-02  David Lutterkort  <lutter@redhat.com>
31375
31376         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
31377         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
31378
31379 2009-03-02  Bruno Haible  <bruno@clisp.org>
31380
31381         * doc/visibility.texi: Mention libtool's -export-symbols option.
31382
31383 2009-03-02  Jim Meyering  <meyering@redhat.com>
31384
31385         announce-gen: new option: --no-print-checksums
31386         * build-aux/announce-gen (usage): Describe it.
31387         (print_checksums): Print a newline here, not in the [*] footnote.
31388         (main): Honor it.
31389
31390 2009-03-01  Bruno Haible  <bruno@clisp.org>
31391
31392         Use socklen_t in the native Windows replacements prototypes.
31393         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
31394         instead of 'int'.
31395         * lib/getsockopt.c (rpl_getsockopt): Likewise.
31396         * lib/setsockopt.c (rpl_setsockopt): Likewise.
31397         * modules/getsockopt (Depends-on): Add socklen.
31398         * modules/setsockopt (Depends-on): Add socklen.
31399
31400 2009-03-01  Bruno Haible  <bruno@clisp.org>
31401
31402         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
31403         least 4.2.
31404
31405 2009-03-01  Eric Blake  <ebb9@byu.net>
31406             Bruno Haible  <bruno@clisp.org>
31407
31408         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
31409         error messages.
31410         * lib/wait-process.c (wait_subprocess): Omit error message about
31411         deadly signal sent to the child of termsigp != NULL.
31412
31413 2009-03-01  Eric Blake  <ebb9@byu.net>
31414
31415         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
31416
31417 2009-03-01  Bruno Haible  <bruno@clisp.org>
31418
31419         Avoid a gcc warning.
31420         * tests/test-sched.c (b): Make global.
31421         Reported by Eric Blake.
31422
31423 2009-01-19  Martin Lambers  <marlam@marlam.de>
31424
31425         Provide POSIX semantics for socket timeout options on W32.
31426         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
31427         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
31428         * modules/setsockopt: Depend on sys_time module for struct timeval.
31429         * modules/getsockopt: Depend on sys_time module for struct timeval.
31430
31431 2009-03-01  Simon Josefsson  <simon@josefsson.org>
31432
31433         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
31434         __USE_GNU, for consistency with netdb.in.h.
31435         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
31436
31437 2009-03-01  Bruno Haible  <bruno@clisp.org>
31438
31439         More support for FreeMiNT.
31440         * lib/fseeko.c (rpl_fseeko): Complete last commit.
31441         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
31442
31443 2009-03-01  Bruno Haible  <bruno@clisp.org>
31444
31445         More support for FreeMiNT.
31446         * lib/fpurge.c (fpurge): Correct last commit.
31447         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
31448
31449 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31450
31451         Fix unportable awk script in vc-list-files.
31452         * build-aux/vc-list-files: In the replacement awk script, use
31453         substr with a second argument of 1, not zero.
31454         Report by Simon Josefsson.
31455
31456 2009-02-28  Bruno Haible  <bruno@clisp.org>
31457
31458         More support for FreeMiNT.
31459         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
31460         to FreeMiNT today.
31461         * lib/fwriting.c (fwriting): Likewise.
31462         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
31463
31464 2009-02-28  Bruno Haible  <bruno@clisp.org>
31465
31466         * tests/test-freadseek.c (main): Disable test beyond end of file on
31467         FreeMiNT.
31468         * tests/test-ftello.c (main): Likewise.
31469         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
31470
31471 2009-02-28  Bruno Haible  <bruno@clisp.org>
31472
31473         Add tentative support for FreeMiNT.
31474         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
31475         * lib/fpurge.c (fpurge): Likewise.
31476         * lib/freadable.c (freadable): Likewise.
31477         * lib/freading.c (freading): Likewise.
31478         * lib/freadptr.c (freadptr): Likewise.
31479         * lib/freadseek.c (freadptrinc): Likewise.
31480         * lib/fseeko.c (rpl_fseeko): Likewise.
31481         * lib/fseterr.c (fseterr): Likewise.
31482         * lib/fwritable.c (fwritable): Likewise.
31483         * lib/fwriting.c (fwriting): Likewise.
31484         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
31485         Hourihane.
31486         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
31487
31488 2009-02-28  Bruno Haible  <bruno@clisp.org>
31489
31490         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
31491         SIGCHLD.
31492         Reported by Jim Meyering.
31493
31494 2009-02-28  Bruno Haible  <bruno@clisp.org>
31495
31496         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
31497         Mention the results of these tests on various platforms.
31498         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
31499         order.
31500         * doc/posix-functions/printf.texi: Likewise.
31501         * doc/posix-functions/snprintf.texi: Likewise.
31502         * doc/posix-functions/sprintf.texi: Likewise.
31503         * doc/posix-functions/vfprintf.texi: Likewise.
31504         * doc/posix-functions/vprintf.texi: Likewise.
31505         * doc/posix-functions/vsnprintf.texi: Likewise.
31506         * doc/posix-functions/vsprintf.texi: Likewise.
31507         * doc/glibc-functions/obstack_printf.texi: Likewise.
31508         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
31509
31510 2009-02-28  Bruno Haible  <bruno@clisp.org>
31511
31512         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
31513         Reported by Loïc Minier <lool@dooz.org>.
31514
31515 2009-02-27  Bruno Haible  <bruno@clisp.org>
31516
31517         * gnulib-tool (func_import): Make the sed expression used to create the
31518         sed script for updating the .gitignore file POSIX compliant.
31519         Reported by Eric Blake.
31520
31521 2009-02-27  Bruno Haible  <bruno@clisp.org>
31522
31523         * gnulib-tool (sed): Don't alias as "sed --posix".
31524         Reported by Eric Blake.
31525
31526 2009-02-27  Bruno Haible  <bruno@clisp.org>
31527
31528         Avoid test link errors.
31529         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
31530         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
31531         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
31532         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
31533         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
31534
31535 2009-02-27  Bruno Haible  <bruno@clisp.org>
31536
31537         Avoid spurious "(cached)" in configure output.
31538         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
31539         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
31540         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
31541         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
31542         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
31543         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
31544         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
31545         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
31546         Reported by Eric Blake.
31547
31548 2009-02-27  Eric Blake  <ebb9@byu.net>
31549
31550         printf: fix regression in previous patch
31551         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
31552
31553 2009-02-27  Bruno Haible  <bruno@clisp.org>
31554
31555         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
31556         value.
31557         * lib/stdint.in.h: Likewise.
31558         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
31559
31560 2009-02-27  Eric Blake  <ebb9@byu.net>
31561
31562         doc: mention more functions added in cygwin 1.7.0
31563         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
31564         addition.
31565         * doc/posix-functions/open_wmemstream.texi: Likewise.
31566         * doc/posix-functions/wcsnlen.texi: Likewise.
31567         * doc/posix-functions/wcsnrtombs.texi: Likewise.
31568         * doc/posix-functions/wcstod.texi: Likewise.
31569         * doc/posix-functions/wcstof.texi: Likewise.
31570         * doc/posix-functions/wcstoimax.texi: Likewise.
31571         * doc/posix-functions/wcstok.texi: Likewise.
31572         * doc/posix-functions/wcstoumax.texi: Likewise.
31573
31574         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
31575         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
31576         * doc/posix-functions/fprintf.texi: Update.
31577         * doc/posix-functions/printf.texi: Update.
31578         * doc/posix-functions/snprintf.texi: Update.
31579         * doc/posix-functions/sprintf.texi: Update.
31580         * doc/posix-functions/vfprintf.texi: Update.
31581         * doc/posix-functions/vprintf.texi: Update.
31582         * doc/posix-functions/vsnprintf.texi: Update.
31583         * doc/posix-functions/vsprintf.texi: Update.
31584         * doc/glibc-functions/obstack_printf.texi: Update.
31585         * doc/glibc-functions/obstack_vprintf.texi: Update.
31586
31587 2009-02-26  Eric Blake  <ebb9@byu.net>
31588
31589         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
31590         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
31591         compilation bug by using runtime conversion.
31592         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
31593         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
31594         * modules/ceill-tests (Files): Use nan.h.
31595         * modules/floorl-tests (Files): Likewise.
31596         * modules/frexpl-tests (Files): Likewise.
31597         * modules/isnanl-tests (Files): Likewise.
31598         * modules/ldexpl-tests (Files): Likewise.
31599         * modules/roundl-tests (Files): Likewise.
31600         * modules/truncl-tests (Files): Likewise.
31601         * tests/test-ceill.c (main): Use a working NaN.
31602         * tests/test-floorl.c (main): Likewise.
31603         * tests/test-frexpl.c (main): Likewise.
31604         * tests/test-isnan.c (test_long_double): Likewise.
31605         * tests/test-isnanl.h (main): Likewise.
31606         * tests/test-ldexpl.h (main): Likewise.
31607         * tests/test-roundl.h (main): Likewise.
31608         * tests/test-truncl.h (main): Likewise.
31609         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
31610
31611 2009-02-26  Eric Blake  <ebb9@byu.net>
31612             Bruno Haible  <bruno@clisp.org>
31613
31614         Work around a *printf bug with %ls on Solaris.
31615         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
31616         precision is specified, sprintf stops converting the wide string
31617         argument when the number of bytes that have been produced by this
31618         conversion equals or exceeds the precision.
31619         * doc/posix-functions/fprintf.texi: Update.
31620         * doc/posix-functions/printf.texi: Update.
31621         * doc/posix-functions/snprintf.texi: Update.
31622         * doc/posix-functions/sprintf.texi: Update.
31623         * doc/posix-functions/vfprintf.texi: Update.
31624         * doc/posix-functions/vprintf.texi: Update.
31625         * doc/posix-functions/vsnprintf.texi: Update.
31626         * doc/posix-functions/vsprintf.texi: Update.
31627         * doc/glibc-functions/obstack_printf.texi: Update.
31628         * doc/glibc-functions/obstack_vprintf.texi: Update.
31629
31630 2009-02-26  Eric Blake  <ebb9@byu.net>
31631
31632         stdlib: favor compiler check of random.h
31633         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
31634         to avoid an ObjC random.h installed by Swarm.
31635
31636 2009-02-26  Bruno Haible  <bruno@clisp.org>
31637
31638         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
31639         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
31640         Reported by Gary V. Vaughan <gary@gnu.org>.
31641
31642 2009-02-26  Bruno Haible  <bruno@clisp.org>
31643
31644         Fix *printf behaviour regarding the %ls directive.
31645         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
31646         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
31647         NEED_PRINTF_DIRECTIVE_LS.
31648         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
31649         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
31650         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
31651         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
31652         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
31653         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
31654         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
31655         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
31656         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
31657         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
31658         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
31659         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
31660         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
31661         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
31662         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
31663         * doc/posix-functions/fprintf.texi: Update.
31664         * doc/posix-functions/printf.texi: Update.
31665         * doc/posix-functions/snprintf.texi: Update.
31666         * doc/posix-functions/sprintf.texi: Update.
31667         * doc/posix-functions/vfprintf.texi: Update.
31668         * doc/posix-functions/vprintf.texi: Update.
31669         * doc/posix-functions/vsnprintf.texi: Update.
31670         * doc/posix-functions/vsprintf.texi: Update.
31671         * doc/glibc-functions/obstack_printf.texi: Update.
31672         * doc/glibc-functions/obstack_vprintf.texi: Update.
31673         Reported by Eric Blake.
31674
31675 2009-02-25  Bruno Haible  <bruno@clisp.org>
31676
31677         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
31678         with known value.
31679         Reported by Gary V. Vaughan <gary@gnu.org>.
31680
31681 2009-02-25  Bruno Haible  <bruno@clisp.org>
31682
31683         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
31684         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
31685         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
31686         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
31687         Reported by Gary V. Vaughan <gary@gnu.org>.
31688
31689 2009-02-25  Bruno Haible  <bruno@clisp.org>
31690
31691         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
31692         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
31693         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
31694         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
31695         Reported by Gary V. Vaughan <gary@gnu.org>.
31696
31697 2009-02-25  Eric Blake  <ebb9@byu.net>
31698
31699         tests: skip fseek/ftell tests if ungetc is broken
31700         * m4/ungetc.m4: New file.
31701         * modules/fseek-tests: Split test, so ungetc dependency is
31702         separate from rest of test.
31703         * modules/fseeko-tests: Likewise.
31704         * modules/ftell-tests: Likewise.
31705         * modules/ftello-tests: Likewise.
31706         * tests/test-fseek.c (main): Isolate ungetc dependency.
31707         * tests/test-fseeko.c (main): Likewise.
31708         * tests/test-ftell.c (main): Likewise.
31709         * tests/test-ftello.c (main): Likewise.
31710         * tests/test-fseek2.sh: New file.
31711         * tests/test-fseeko2.sh: Likewise.
31712         * tests/test-ftell2.sh: Likewise.
31713         * tests/test-ftello2.sh: Likewise.
31714
31715 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
31716
31717         test-getaddrinfo: fix usage of skip return code 77
31718         * tests/test-gettaddrinfo.c: Return skip code 77 only
31719         for first occurance of skip (4x77 is not 77)
31720
31721 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
31722
31723         strtod: avoid C99 decl-after-statement
31724         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
31725
31726 2009-02-24  Eric Blake  <ebb9@byu.net>
31727
31728         strtod: detect HP-UX 11.31 bug
31729         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
31730         Reported by Gary V. Vaughan.
31731
31732 2009-02-23  Bruno Haible  <bruno@clisp.org>
31733
31734         Fix invalid read past end of memory block.
31735         * lib/vasnprintf.c (DCHAR_SET): Define.
31736         (local_wcslen): Define only when needed.
31737         (local_strnlen, local_wcsnlen): New functions.
31738         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
31739         directives that involve a conversion ourselves.
31740         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
31741         wcsnlen, mbrtowc, wcrtomb.
31742         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
31743         * tests/test-vasprintf-posix.c (test_function): Likewise.
31744         * tests/test-snprintf-posix.h (test_function): Likewise.
31745         * tests/test-sprintf-posix.h (test_function): Likewise.
31746         Reported by Ben Pfaff <blp@cs.stanford.edu>.
31747
31748 2009-02-22  Bruno Haible  <bruno@clisp.org>
31749
31750         Implement new clarified decomposition of Hangul syllables.
31751         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
31752         of type LTV, return only a pairwise decomposition.
31753         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
31754         Likewise.
31755         * tests/uninorm/test-decomposition.c (main): Updated expected result.
31756         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
31757         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
31758
31759 2009-02-22  Bruno Haible  <bruno@clisp.org>
31760
31761         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
31762         zero-length results and shrink excess allocated memory.
31763         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
31764         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
31765         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
31766         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
31767         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
31768         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
31769         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
31770         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
31771         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
31772         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
31773         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
31774         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
31775
31776 2009-02-21  Bruno Haible  <bruno@clisp.org>
31777
31778         * doc/gnulib.texi: Include safe-alloc.texi earlier.
31779         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
31780         spaces after a period. Put a space between a macro name and its
31781         argument list. Trivial rewordings.
31782         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
31783         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
31784         (main): Return 0 explicitly.
31785
31786 2009-02-21  Bruno Haible  <bruno@clisp.org>
31787
31788         Tests for module 'uninorm/filter'.
31789         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
31790         * modules/uninorm/filter-tests: New file.
31791
31792         New module 'uninorm/filter'.
31793         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
31794         uninorm_filter_flush, uninorm_filter_free): New declarations.
31795         * lib/uninorm/uninorm-filter.c: New file.
31796         * modules/uninorm/filter: New file.
31797
31798 2009-02-21  Bruno Haible  <bruno@clisp.org>
31799
31800         Tests for module 'uninorm/nfkc'.
31801         * tests/uninorm/test-nfkc.c: New file.
31802         * tests/uninorm/test-u8-nfkc.c: New file.
31803         * tests/uninorm/test-u16-nfkc.c: New file.
31804         * tests/uninorm/test-u32-nfkc.c: New file.
31805         * tests/uninorm/test-u32-nfkc-big.sh: New file.
31806         * tests/uninorm/test-u32-nfkc-big.c: New file.
31807         * modules/uninorm/nfkc-tests: New file.
31808
31809         New module 'uninorm/nfkc'.
31810         * lib/uninorm/nfkc.c: New file.
31811         * modules/uninorm/nfkc: New file.
31812
31813         Tests for module 'uninorm/nfkd'.
31814         * tests/uninorm/test-nfkd.c: New file.
31815         * tests/uninorm/test-u8-nfkd.c: New file.
31816         * tests/uninorm/test-u16-nfkd.c: New file.
31817         * tests/uninorm/test-u32-nfkd.c: New file.
31818         * tests/uninorm/test-u32-nfkd-big.sh: New file.
31819         * tests/uninorm/test-u32-nfkd-big.c: New file.
31820         * modules/uninorm/nfkd-tests: New file.
31821
31822         New module 'uninorm/nfkd'.
31823         * lib/uninorm/nfkd.c: New file.
31824         * modules/uninorm/nfkd: New file.
31825
31826         Tests for module 'uninorm/nfc'.
31827         * tests/uninorm/test-nfc.c: New file.
31828         * tests/uninorm/test-u8-nfc.c: New file.
31829         * tests/uninorm/test-u16-nfc.c: New file.
31830         * tests/uninorm/test-u32-nfc.c: New file.
31831         * tests/uninorm/test-u32-nfc-big.sh: New file.
31832         * tests/uninorm/test-u32-nfc-big.c: New file.
31833         * modules/uninorm/nfc-tests: New file.
31834
31835         New module 'uninorm/nfc'.
31836         * lib/uninorm/nfc.c: New file.
31837         * modules/uninorm/nfc: New file.
31838
31839         Tests for module 'uninorm/nfd'.
31840         * tests/uninorm/test-nfd.c: New file.
31841         * tests/uninorm/test-u8-nfd.c: New file.
31842         * tests/uninorm/test-u16-nfd.c: New file.
31843         * tests/uninorm/test-u32-nfd.c: New file.
31844         * tests/uninorm/test-u32-nfd-big.sh: New file.
31845         * tests/uninorm/test-u32-nfd-big.c: New file.
31846         * tests/uninorm/test-u32-normalize-big.h: New file.
31847         * tests/uninorm/test-u32-normalize-big.c: New file.
31848         * tests/uninorm/NormalizationTest.txt: New file, created from
31849         Unicode 5.1.0 NormalizationTest.txt.
31850         * modules/uninorm/nfd-tests: New file.
31851
31852         New module 'uninorm/nfd'.
31853         * lib/uninorm/nfd.c: New file.
31854         * modules/uninorm/nfd: New file.
31855
31856         New module 'uninorm/u32-normalize'.
31857         * lib/uninorm/u32-normalize.c: New file.
31858         * modules/uninorm/u32-normalize: New file.
31859
31860         New module 'uninorm/u16-normalize'.
31861         * lib/uninorm/u16-normalize.c: New file.
31862         * modules/uninorm/u16-normalize: New file.
31863
31864         New module 'uninorm/u8-normalize'.
31865         * lib/uninorm/u8-normalize.c: New file.
31866         * lib/uninorm/normalize-internal.h: New file.
31867         * lib/uninorm/u-normalize-internal.h: New file.
31868         * modules/uninorm/u8-normalize: New file.
31869
31870         New module 'uninorm/decompose-internal'.
31871         * lib/uninorm/decompose-internal.c: New file.
31872         * modules/uninorm/decompose-internal: New file.
31873
31874         Tests for module 'uninorm/composition'.
31875         * tests/uninorm/test-composition.c: New file.
31876         * modules/uninorm/composition-tests: New file.
31877
31878         New module 'uninorm/composition'.
31879         * lib/uninorm/composition.c: New file.
31880         * lib/uninorm/composition-table.gperf: New file, generated by
31881         gen-uni-tables.
31882         * modules/uninorm/composition: New file.
31883
31884         Tests for module 'uninorm/compat-decomposition'.
31885         * tests/uninorm/test-compat-decomposition.c: New file.
31886         * modules/uninorm/compat-decomposition-tests: New file.
31887
31888         New module 'uninorm/compat-decomposition'.
31889         * lib/uninorm/decompose-internal.h: New file.
31890         * lib/uninorm/compat-decomposition.c: New file.
31891         * modules/uninorm/compat-decomposition: New file.
31892
31893         Tests for module 'uninorm/canonical-decomposition'.
31894         * tests/uninorm/test-canonical-decomposition.c: New file.
31895         * modules/uninorm/canonical-decomposition-tests: New file.
31896
31897         New module 'uninorm/canonical-decomposition'.
31898         * lib/uninorm/canonical-decomposition.c: New file.
31899         * modules/uninorm/canonical-decomposition: New file.
31900
31901         Tests for module 'uninorm/decomposition'.
31902         * tests/uninorm/test-decomposition.c: New file.
31903         * modules/uninorm/decomposition-tests: New file.
31904
31905         New module 'uninorm/decomposition'.
31906         * lib/uninorm/decomposition.c: New file.
31907         * modules/uninorm/decomposition: New file.
31908
31909         New module 'uninorm/decomposition-table'.
31910         * lib/uninorm/decomposition-table.h: New file.
31911         * lib/uninorm/decomposition-table.c: New file.
31912         * lib/uninorm/decomposition-table1.h: New file, generated by
31913         gen-uni-tables.
31914         * lib/uninorm/decomposition-table2.h: New file, generated by
31915         gen-uni-tables.
31916         * modules/uninorm/decomposition-table: New file.
31917
31918         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
31919         (UC_DECOMP_*): New enumeration items.
31920         (get_decomposition): New function.
31921         (struct decomp_table): New type.
31922         (output_decomposition, output_decomposition_tables): New functions.
31923         (unicode_composition_exclusions): New variable.
31924         (fill_composition_exclusions, debug_output_composition_tables): New
31925         functions.
31926         (main): Accept one more argument. Invoke fill_composition_exclusions.
31927         Output decomposition and composition tables.
31928
31929         New module 'uninorm/base'.
31930         * lib/uninorm.h: New file.
31931         * lib/unictype.h: Update comment.
31932         * modules/uninorm/base: New file.
31933
31934 2009-02-21  David Lutterkort  <lutter@redhat.com>
31935
31936         Tests for module 'safe-alloc'.
31937         * tests/test-safe-alloc.c: New file.
31938         * modules/safe-alloc-tests: New file.
31939
31940         New module 'safe-alloc'.
31941         * lib/safe-alloc.h: New file.
31942         * lib/safe-alloc.c: New file.
31943         * m4/safe-alloc.m4: New file.
31944         * modules/safe-alloc: New file.
31945         * doc/safe-alloc.texi: New file.
31946         * doc/gnulib.texi: Include it.
31947         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
31948         safe-alloc.
31949
31950 2009-02-18  Bruno Haible  <bruno@clisp.org>
31951
31952         Fix link error on non-glibc systems.
31953         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
31954         variable.
31955         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
31956
31957 2009-02-18  Jim Meyering  <meyering@redhat.com>
31958
31959         fts: avoid used-uninitialized error due to recent change
31960         * lib/fts.c (fts_read): Guard uses of the new member,
31961         parent->fts_n_dirs_remaining, since it's not relevant for
31962         the parent of a directory specified on the command-line.
31963
31964 2009-02-17  James Youngman  <jay@gnu.org>
31965             Bruno Haible  <bruno@clisp.org>
31966
31967         * m4/include_next.m4: Reformulate comment.
31968
31969 2009-02-16  Jim Meyering  <meyering@redhat.com>
31970
31971         fts: add #if guards so that the fts_lgpl module still builds
31972         * lib/fts.c: Guard just-added hash-table-using parts with
31973         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
31974         Reported by Simon Josefsson.
31975
31976 2009-02-15  Bruno Haible  <bruno@clisp.org>
31977
31978         * modules/array-mergesort-tests: New file.
31979         * tests/test-array-mergesort.c: New file.
31980
31981         New module 'array-mergesort'.
31982         * modules/array-mergesort: New file.
31983         * lib/array-mergesort.h: New file.
31984
31985 2009-02-15  Bruno Haible  <bruno@clisp.org>
31986
31987         Fix 2009-02-07 commit.
31988         * lib/gen-uni-tables.c (output_predicate, output_category,
31989         output_combclass, output_bidi_category, output_decimal_digit,
31990         output_digit, output_numeric, output_mirror, output_scripts,
31991         output_ident_category, output_simple_mapping): Fix format directives.
31992         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
31993
31994 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
31995
31996         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
31997         fixes are available from IBM.
31998
31999 2009-02-13  Jim Meyering  <meyering@redhat.com>
32000
32001         fts: arrange not to stat non-directories in more cases
32002         This makes GNU find (when it doesn't need to stat each file)
32003         *much* more efficient at traversing reiserfs file systems.
32004         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
32005         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
32006         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
32007         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
32008         (leaf_optimization_applies): New function.
32009         (LCO_hash, LCO_compare): New helper functions.
32010         (link_count_optimize_ok): New function.
32011         (fts_stat): Initialize new member (if dir).
32012         (fts_read): Decrement parent's fts_n_dirs_remaining count if
32013         we've just stat'ed a directory.  Skip the stat call when possible.
32014         ---
32015         Note this AFS-related exchange:
32016         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
32017         and note find's pioctl call in find/fstype.c.
32018         But that is necessary only if you want to enable the
32019         optimization for AFS, and for now, I don't.
32020
32021         fts: move a function definition "up" (no semantic change)
32022         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
32023         "up" to precede upcoming use of a related function.
32024
32025 2009-02-11  Jim Meyering  <meyering@redhat.com>
32026
32027         fts: correct internal computation of nlinks (optimization-related)
32028         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
32029         whether the current entry is a directory, so don't test it.
32030
32031 2009-02-10  Bruno Haible  <bruno@clisp.org>
32032
32033         Tests for module 'uniwbrk/ulc-wordbreaks'.
32034         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
32035         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
32036         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
32037
32038         Tests for module 'uniwbrk/u32-wordbreaks'.
32039         * modules/uniwbrk/u32-wordbreaks-tests: New file.
32040         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
32041
32042         Tests for module 'uniwbrk/u16-wordbreaks'.
32043         * modules/uniwbrk/u16-wordbreaks-tests: New file.
32044         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
32045
32046         Tests for module 'uniwbrk/u8-wordbreaks'.
32047         * modules/uniwbrk/u8-wordbreaks-tests: New file.
32048         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
32049
32050 2009-02-10  Bruno Haible  <bruno@clisp.org>
32051
32052         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
32053         property.
32054         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
32055         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
32056         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
32057
32058 2009-02-10  Simon Josefsson  <simon@josefsson.org>
32059
32060         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
32061         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
32062
32063 2009-02-10  Bruno Haible  <bruno@clisp.org>
32064
32065         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
32066         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
32067         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
32068         * lib/unilbrk/u8-possible-linebreaks.c: Update.
32069         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
32070         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
32071
32072 2009-02-09  Simon Josefsson  <simon@josefsson.org>
32073
32074         * lib/sockets.h (gl_fd_to_handle): New function.
32075
32076         * tests/test-sockets.c: Call gl_fd_to_handle.
32077
32078 2009-02-09  Bruno Haible  <bruno@clisp.org>
32079
32080         * doc/havelib.texi: Document the conventions on bi-arch systems.
32081
32082 2009-02-08  Bruno Haible  <bruno@clisp.org>
32083
32084         Document the AC_LIB_LINKFLAGS macro.
32085         * doc/havelib.texi: New file, mostly written on 2005-05-24.
32086         * doc/gnulib.texi: Include it.
32087
32088 2009-02-08  Bruno Haible  <bruno@clisp.org>
32089
32090         Fix wrong order of sections, compared to TOC.
32091         * doc/gnulib.texi: Include relocatable-maint.texi after the
32092         "Regular expressions" node, not before.
32093
32094 2009-02-08  Bruno Haible  <bruno@clisp.org>
32095
32096         Tests for module 'unicase/totitle'.
32097         * modules/unicase/totitle-tests: New file.
32098
32099         Tests for module 'unicase/tolower'.
32100         * modules/unicase/tolower-tests: New file.
32101
32102         Tests for module 'unicase/toupper'.
32103         * modules/unicase/toupper-tests: New file.
32104         * tests/unicase/test-mapping-part1.h: New file.
32105         * tests/unicase/test-mapping-part2.h: New file.
32106
32107         New module 'unicase/totitle'.
32108         * modules/unicase/totitle: New file.
32109         * lib/unicase/totitle.c: New file.
32110
32111         New module 'unicase/tolower'.
32112         * modules/unicase/tolower: New file.
32113         * lib/unicase/tolower.c: New file.
32114
32115         New module 'unicase/toupper'.
32116         * modules/unicase/toupper: New file.
32117         * lib/unicase/toupper.c: New file.
32118         * lib/unicase/simple-mapping.h: New file.
32119
32120         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
32121         (mapping_table): New structure.
32122         (output_simple_mapping): New function.
32123         (main): Invoke output_simple_mapping_test and output_simple_mapping.
32124         * modules/gen-uni-tables (Description): Update.
32125         * lib/unicase/toupper.h: New file, automatically generated by
32126         gen-uni-tables.
32127         * lib/unicase/tolower.h: New file, automatically generated by
32128         gen-uni-tables.
32129         * lib/unicase/totitle.h: New file, automatically generated by
32130         gen-uni-tables.
32131         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
32132         gen-uni-tables.
32133         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
32134         gen-uni-tables.
32135         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
32136         gen-uni-tables.
32137
32138         New module 'unicase/base'.
32139         * modules/unicase/base: New file.
32140         * lib/unicase.h: New file.
32141
32142 2009-02-08  Bruno Haible  <bruno@clisp.org>
32143
32144         New module 'uniwbrk/ulc-wordbreaks'.
32145         * modules/uniwbrk/ulc-wordbreaks: New file.
32146         * lib/uniwbrk/ulc-wordbreaks.c: New file.
32147
32148         New module 'uniwbrk/u32-wordbreaks'.
32149         * modules/uniwbrk/u32-wordbreaks: New file.
32150         * lib/uniwbrk/u32-wordbreaks.c: New file.
32151
32152         New module 'uniwbrk/u16-wordbreaks'.
32153         * modules/uniwbrk/u16-wordbreaks: New file.
32154         * lib/uniwbrk/u16-wordbreaks.c: New file.
32155
32156         New module 'uniwbrk/u8-wordbreaks'.
32157         * modules/uniwbrk/u8-wordbreaks: New file.
32158         * lib/uniwbrk/u8-wordbreaks.c: New file.
32159         * lib/uniwbrk/u-wordbreaks.h: New file.
32160
32161         New module 'uniwbrk/table'.
32162         * modules/uniwbrk/table: New file.
32163         * lib/uniwbrk/wbrktable.h: New file.
32164         * lib/uniwbrk/wbrktable.c: New file.
32165
32166         New module 'uniwbrk/wordbreak-property'.
32167         * modules/uniwbrk/wordbreak-property: New file.
32168         * lib/uniwbrk/wordbreak-property.c: New file.
32169
32170         * lib/gen-uni-tables.c (WBP_*): New enum items.
32171         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
32172         (unicode_org_wbp): New variable.
32173         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
32174         New functions.
32175         (wbp_table): New structure.
32176         (output_wbp, output_wbrk_tables): New functions.
32177         (main): Accept additional argument. Invoke fill_org_wbp,
32178         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
32179         output_wbrk_tables.
32180         * modules/gen-uni-tables (Description): Update.
32181         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
32182         gen-uni-tables.
32183
32184         New module 'uniwbrk/base'.
32185         * modules/uniwbrk/base: New file.
32186         * lib/uniwbrk.h: New file.
32187
32188 2009-02-08  Bruno Haible  <bruno@clisp.org>
32189
32190         Update to Unicode 5.1.0.
32191         * lib/gen-uni-tables.c (is_property_alphabetic): Include
32192         U+2185..U+2188.
32193         (is_property_default_ignorable_code_point): Don't include characters
32194         of category Cc or Cs and not-a-characters.
32195         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
32196         U+0D79, U+109E, U+109F, U+A60C.
32197         * lib/unictype/bidi_of.h: Regenerated.
32198         * lib/unictype/blocks.h: Regenerated.
32199         * lib/unictype/categ_C.h: Regenerated.
32200         * lib/unictype/categ_Cf.h: Regenerated.
32201         * lib/unictype/categ_Cn.h: Regenerated.
32202         * lib/unictype/categ_L.h: Regenerated.
32203         * lib/unictype/categ_Ll.h: Regenerated.
32204         * lib/unictype/categ_Lm.h: Regenerated.
32205         * lib/unictype/categ_Lo.h: Regenerated.
32206         * lib/unictype/categ_Lu.h: Regenerated.
32207         * lib/unictype/categ_M.h: Regenerated.
32208         * lib/unictype/categ_Mc.h: Regenerated.
32209         * lib/unictype/categ_Me.h: Regenerated.
32210         * lib/unictype/categ_Mn.h: Regenerated.
32211         * lib/unictype/categ_N.h: Regenerated.
32212         * lib/unictype/categ_Nd.h: Regenerated.
32213         * lib/unictype/categ_Nl.h: Regenerated.
32214         * lib/unictype/categ_No.h: Regenerated.
32215         * lib/unictype/categ_P.h: Regenerated.
32216         * lib/unictype/categ_Pd.h: Regenerated.
32217         * lib/unictype/categ_Pe.h: Regenerated.
32218         * lib/unictype/categ_Pf.h: Regenerated.
32219         * lib/unictype/categ_Pi.h: Regenerated.
32220         * lib/unictype/categ_Po.h: Regenerated.
32221         * lib/unictype/categ_Ps.h: Regenerated.
32222         * lib/unictype/categ_S.h: Regenerated.
32223         * lib/unictype/categ_Sk.h: Regenerated.
32224         * lib/unictype/categ_Sm.h: Regenerated.
32225         * lib/unictype/categ_So.h: Regenerated.
32226         * lib/unictype/categ_of.h: Regenerated.
32227         * lib/unictype/combining.h: Regenerated.
32228         * lib/unictype/ctype_alnum.h: Regenerated.
32229         * lib/unictype/ctype_alpha.h: Regenerated.
32230         * lib/unictype/ctype_graph.h: Regenerated.
32231         * lib/unictype/ctype_lower.h: Regenerated.
32232         * lib/unictype/ctype_print.h: Regenerated.
32233         * lib/unictype/ctype_punct.h: Regenerated.
32234         * lib/unictype/ctype_upper.h: Regenerated.
32235         * lib/unictype/decdigit.h: Regenerated.
32236         * lib/unictype/digit.h: Regenerated.
32237         * lib/unictype/mirror.h: Regenerated.
32238         * lib/unictype/numeric.h: Regenerated.
32239         * lib/unictype/pr_alphabetic.h: Regenerated.
32240         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
32241         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
32242         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
32243         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
32244         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
32245         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
32246         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
32247         * lib/unictype/pr_combining.h: Regenerated.
32248         * lib/unictype/pr_dash.h: Regenerated.
32249         * lib/unictype/pr_decimal_digit.h: Regenerated.
32250         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
32251         * lib/unictype/pr_deprecated.h: Regenerated.
32252         * lib/unictype/pr_diacritic.h: Regenerated.
32253         * lib/unictype/pr_extender.h: Regenerated.
32254         * lib/unictype/pr_format_control.h: Regenerated.
32255         * lib/unictype/pr_grapheme_base.h: Regenerated.
32256         * lib/unictype/pr_grapheme_extend.h: Regenerated.
32257         * lib/unictype/pr_grapheme_link.h: Regenerated.
32258         * lib/unictype/pr_id_continue.h: Regenerated.
32259         * lib/unictype/pr_id_start.h: Regenerated.
32260         * lib/unictype/pr_ideographic.h: Regenerated.
32261         * lib/unictype/pr_ignorable_control.h: Regenerated.
32262         * lib/unictype/pr_lowercase.h: Regenerated.
32263         * lib/unictype/pr_math.h: Regenerated.
32264         * lib/unictype/pr_numeric.h: Regenerated.
32265         * lib/unictype/pr_other_alphabetic.h: Regenerated.
32266         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
32267         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
32268         * lib/unictype/pr_other_id_continue.h: Regenerated.
32269         * lib/unictype/pr_other_lowercase.h: Regenerated.
32270         * lib/unictype/pr_other_math.h: Regenerated.
32271         * lib/unictype/pr_punctuation.h: Regenerated.
32272         * lib/unictype/pr_sentence_terminal.h: Regenerated.
32273         * lib/unictype/pr_soft_dotted.h: Regenerated.
32274         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
32275         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
32276         * lib/unictype/pr_unified_ideograph.h: Regenerated.
32277         * lib/unictype/pr_uppercase.h: Regenerated.
32278         * lib/unictype/pr_xid_continue.h: Regenerated.
32279         * lib/unictype/pr_xid_start.h: Regenerated.
32280         * lib/unictype/pr_zero_width.h: Regenerated.
32281         * lib/unictype/scripts.h: Regenerated.
32282         * lib/unictype/scripts_byname.gperf: Regenerated.
32283         * lib/unictype/sy_java_ident.h: Regenerated.
32284         * lib/unilbrk/lbrkprop1.h: Regenerated.
32285         * lib/unilbrk/lbrkprop2.h: Regenerated.
32286         * tests/unictype/test-categ_C.c: Regenerated.
32287         * tests/unictype/test-categ_Cf.c: Regenerated.
32288         * tests/unictype/test-categ_Cn.c: Regenerated.
32289         * tests/unictype/test-categ_L.c: Regenerated.
32290         * tests/unictype/test-categ_Ll.c: Regenerated.
32291         * tests/unictype/test-categ_Lm.c: Regenerated.
32292         * tests/unictype/test-categ_Lo.c: Regenerated.
32293         * tests/unictype/test-categ_Lu.c: Regenerated.
32294         * tests/unictype/test-categ_M.c: Regenerated.
32295         * tests/unictype/test-categ_Mc.c: Regenerated.
32296         * tests/unictype/test-categ_Me.c: Regenerated.
32297         * tests/unictype/test-categ_Mn.c: Regenerated.
32298         * tests/unictype/test-categ_N.c: Regenerated.
32299         * tests/unictype/test-categ_Nd.c: Regenerated.
32300         * tests/unictype/test-categ_Nl.c: Regenerated.
32301         * tests/unictype/test-categ_No.c: Regenerated.
32302         * tests/unictype/test-categ_P.c: Regenerated.
32303         * tests/unictype/test-categ_Pd.c: Regenerated.
32304         * tests/unictype/test-categ_Pe.c: Regenerated.
32305         * tests/unictype/test-categ_Pf.c: Regenerated.
32306         * tests/unictype/test-categ_Pi.c: Regenerated.
32307         * tests/unictype/test-categ_Po.c: Regenerated.
32308         * tests/unictype/test-categ_Ps.c: Regenerated.
32309         * tests/unictype/test-categ_S.c: Regenerated.
32310         * tests/unictype/test-categ_Sk.c: Regenerated.
32311         * tests/unictype/test-categ_Sm.c: Regenerated.
32312         * tests/unictype/test-categ_So.c: Regenerated.
32313         * tests/unictype/test-ctype_alnum.c: Regenerated.
32314         * tests/unictype/test-ctype_alpha.c: Regenerated.
32315         * tests/unictype/test-ctype_graph.c: Regenerated.
32316         * tests/unictype/test-ctype_lower.c: Regenerated.
32317         * tests/unictype/test-ctype_print.c: Regenerated.
32318         * tests/unictype/test-ctype_punct.c: Regenerated.
32319         * tests/unictype/test-ctype_upper.c: Regenerated.
32320         * tests/unictype/test-decdigit.h: Regenerated.
32321         * tests/unictype/test-digit.h: Regenerated.
32322         * tests/unictype/test-numeric.h: Regenerated.
32323         * tests/unictype/test-pr_alphabetic.c: Regenerated.
32324         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
32325         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
32326         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
32327         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
32328         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
32329         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
32330         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
32331         * tests/unictype/test-pr_combining.c: Regenerated.
32332         * tests/unictype/test-pr_dash.c: Regenerated.
32333         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
32334         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
32335         * tests/unictype/test-pr_deprecated.c: Regenerated.
32336         * tests/unictype/test-pr_diacritic.c: Regenerated.
32337         * tests/unictype/test-pr_extender.c: Regenerated.
32338         * tests/unictype/test-pr_format_control.c: Regenerated.
32339         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
32340         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
32341         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
32342         * tests/unictype/test-pr_id_continue.c: Regenerated.
32343         * tests/unictype/test-pr_id_start.c: Regenerated.
32344         * tests/unictype/test-pr_ideographic.c: Regenerated.
32345         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
32346         * tests/unictype/test-pr_lowercase.c: Regenerated.
32347         * tests/unictype/test-pr_math.c: Regenerated.
32348         * tests/unictype/test-pr_numeric.c: Regenerated.
32349         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
32350         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
32351         Regenerated.
32352         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
32353         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
32354         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
32355         * tests/unictype/test-pr_other_math.c: Regenerated.
32356         * tests/unictype/test-pr_punctuation.c: Regenerated.
32357         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
32358         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
32359         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
32360         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
32361         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
32362         * tests/unictype/test-pr_uppercase.c: Regenerated.
32363         * tests/unictype/test-pr_xid_continue.c: Regenerated.
32364         * tests/unictype/test-pr_xid_start.c: Regenerated.
32365         * tests/unictype/test-pr_zero_width.c: Regenerated.
32366
32367         Update to Unicode 5.1.0.
32368         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
32369         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
32370         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
32371         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
32372         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
32373         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
32374         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
32375         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
32376         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
32377         (nonspacing_table_ind): Update.
32378         * tests/uniwidth/test-uc_width2.sh: Update expected result.
32379
32380         Update to Unicode 5.1.0.
32381         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
32382         code transform.
32383         * lib/uniname/uniname.c (unicode_character_name,
32384         unicode_name_character): Add the range 0x1Fxxx to the code transform.
32385         * lib/uniname/uninames.h: Regenerated.
32386         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
32387
32388 2009-02-07  Bruno Haible  <bruno@clisp.org>
32389
32390         Merge gen-ctype and gen-lbrk into a single program.
32391         * lib/gen-uni-tables.c: New file, incorporating
32392         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
32393         Add directory prefixes to the names of the generated files.
32394         * lib/unictype/gen-ctype.c: Remove file.
32395         * lib/unilbrk/gen-lbrk.c: Remove file.
32396         * modules/gen-uni-tables: New file.
32397         * modules/unictype/gen-ctype: Remove file.
32398         * modules/unilbrk/gen-lbrk: Remove file.
32399
32400 2009-02-07  Bruno Haible  <bruno@clisp.org>
32401
32402         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
32403
32404         New module 'unistr/u32-strcoll'.
32405         * modules/unistr/u32-strcoll: New file.
32406         * lib/unistr/u32-strcoll.c: New file.
32407
32408         New module 'unistr/u16-strcoll'.
32409         * modules/unistr/u16-strcoll: New file.
32410         * lib/unistr/u16-strcoll.c: New file.
32411
32412         New module 'unistr/u8-strcoll'.
32413         * modules/unistr/u8-strcoll: New file.
32414         * lib/unistr/u8-strcoll.c: New file.
32415         * lib/unistr/u-strcoll.h: New file.
32416
32417 2009-02-07  Bruno Haible  <bruno@clisp.org>
32418
32419         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
32420         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
32421         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
32422         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
32423         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
32424         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
32425
32426 2009-02-07  Bruno Haible  <bruno@clisp.org>
32427
32428         Make 64-bit clean.
32429         * lib/unictype/gen-ctype.c (output_predicate, output_category,
32430         output_combclass, output_bidi_category, output_decimal_digit,
32431         output_digit, output_numeric, output_mirror, output_scripts,
32432         output_ident_category): Use proper width specifier in format strings.
32433
32434 2009-02-07  Bruno Haible  <bruno@clisp.org>
32435
32436         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
32437         failure behaviour.
32438
32439 2009-02-07  Jim Meyering  <meyering@redhat.com>
32440
32441         regex: avoid compilation failure with upcoming gcc-4.4
32442         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
32443         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
32444         "... error: integer overflow in preprocessor expression".
32445
32446 2009-02-05  Ben Pfaff  <blp@gnu.org>
32447
32448         Fix link errors on Windows when close module is used.
32449         * modules/close: Add $(LIB_CLOSE) to Link section.
32450         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
32451         $(LIB_CLOSE) on Windows.
32452
32453 2009-02-05  Jim Meyering  <meyering@redhat.com>
32454
32455         still avoid unused-parameter warnings, but do it cleanly
32456         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
32457         (get_fs_usage): Cast to void instead.
32458         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
32459         (dev_from_mount_options, read_file_system_list): Cast to void.
32460         Prompted by Bruno Haible.
32461
32462 2009-02-04  Jim Meyering  <meyering@redhat.com>
32463
32464         fsusage.c: correct copyright year
32465         * lib/fsusage.c: Reflect year in which the change is pushed into
32466
32467         avoid misc. warnings
32468         * lib/fsusage.c (UNUSED_PARAM): Define.
32469         (get_fs_usage): Mark parameter "disk" as unused.
32470         * lib/getugroups.c (getgrent): Use "void" in prototype.
32471         * lib/mountlist.c: Mark unused parameters.
32472         (read_file_system_list): Declare a local with "const".
32473         * lib/nanosleep.c (getnow): Declare static.
32474         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
32475
32476         dirfd: set errno upon failure
32477         * lib/dirfd.c: Include <errno.h>.
32478         Set errno to ENOTSUP when returning -1.
32479         * modules/dirfd (Depends-on): Add errno.
32480         Suggested by John Kodis <kodis@comcast.net>.
32481
32482 2009-02-01  Bruno Haible  <bruno@clisp.org>
32483
32484         Don't assume sizeof (long) >= sizeof (void *).
32485         * lib/memcmp.c: Include stdint.h.
32486         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
32487         srcp2 to 'const byte *'.
32488         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
32489         types to uintptr_t.
32490         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
32491         * modules/memcmp (Depends-on): Add stdint.
32492         Reported by Ozkan Sezer <sezeroz@gmail.com>.
32493
32494 2009-01-30  Eric Blake  <ebb9@byu.net>
32495
32496         fix more require-before-expand issues
32497         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
32498         expand, AC_PROG_AWK.
32499         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
32500
32501 2009-01-28  Eric Blake  <ebb9@byu.net>
32502
32503         version-etc: use consistent URL formatting
32504         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
32505         Improve formatting.  Use fputs for string without %.
32506
32507 2009-01-28  Jim Meyering  <meyering@redhat.com>
32508
32509         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
32510         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
32511         "underquoted definition of NAME" from autoconf-2.59.
32512
32513 2009-01-28  Bruno Haible  <bruno@clisp.org>
32514
32515         * doc/gnulib.texi: Add "Obsolete modules" to index.
32516
32517 2009-01-28  Jim Meyering  <meyering@redhat.com>
32518
32519         useless-if-before-free: recognize more variants
32520         * build-aux/useless-if-before-free: Also recognize e.g.,
32521         if (NULL != p) free (p);
32522
32523 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
32524
32525         test-getaddrinfo: skip (don't fail) this test when there's no network
32526         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
32527         on the presumption that it means you lack network access.
32528
32529 2009-01-26  Jim Meyering  <meyering@redhat.com>
32530
32531         fflush: avoid warnings on modern systems
32532         * lib/fflush.c (rpl_fflush): Move declarations of locals,
32533         pos and result, into scopes where they're used.
32534
32535 2009-01-26  Eric Blake  <ebb9@byu.net>
32536
32537         Silence warning reintroduced by recent extensions patch.
32538         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
32539         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
32540         autoconf.
32541
32542         Backport improved autoconf semantics of AC_DEFUN_ONCE.
32543         * m4/00gnulib.m4: New file.
32544         * gnulib-tool (func_get_filelist): Always use it.
32545         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
32546         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
32547
32548 2009-01-25  Bruno Haible  <bruno@clisp.org>
32549
32550         Make test-quotearg work on MacOS X and AIX.
32551         * tests/test-quotearg.sh: New file.
32552         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
32553         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
32554         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
32555         include <libintl.h>.
32556         (fake_locale): Remove variable.
32557         (gettext, dgettext, dcgettext): Remove functions.
32558         (main): Instead of setting a fake locale, set a real locale. Call
32559         textdomain and bindtextdomain.
32560         * modules/quotearg-tests (Files): Add the new files.
32561         (Depends-on): Add gettext, setenv, unsetenv.
32562         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
32563         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
32564         Augment TESTS_ENVIRONMENT.
32565
32566 2009-01-25  Bruno Haible  <bruno@clisp.org>
32567
32568         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
32569         fr_FR.ISO8859-1 locale on MacOS X.
32570         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
32571         ja_JP.eucJP locale on MacOS X.
32572         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
32573         zh_CN.GB18030 locale on MacOS X.
32574
32575 2009-01-25  Bruno Haible  <bruno@clisp.org>
32576
32577         Avoid link errors on MacOS X 10.3.
32578         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
32579         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
32580
32581 2009-01-25  Bruno Haible  <bruno@clisp.org>
32582
32583         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
32584         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
32585         * modules/pipe (Files): Remove m4/posix_spawn.m4.
32586         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
32587         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
32588         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
32589         posix_spawnattr_init, posix_spawnattr_setsigmask,
32590         posix_spawnattr_setflags, posix_spawnattr_destroy.
32591
32592         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
32593         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
32594         * modules/execute (Files): Remove m4/posix_spawn.m4.
32595         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
32596         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
32597         posix_spawnattr_init, posix_spawnattr_setsigmask,
32598         posix_spawnattr_setflags, posix_spawnattr_destroy.
32599
32600 2009-01-25  Bruno Haible  <bruno@clisp.org>
32601
32602         * lib/glthread/threadlib.c: Include <stdlib.h>.
32603
32604 2009-01-25  Bruno Haible  <bruno@clisp.org>
32605
32606         * lib/glthread/threadlib.c (dummy): New declaration.
32607
32608 2009-01-25  Bruno Haible  <bruno@clisp.org>
32609
32610         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
32611         multibyte characters also for the GB18030 encoding. Don't crash when
32612         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
32613
32614 2009-01-25  Bruno Haible  <bruno@clisp.org>
32615
32616         Avoid redefining 'struct random_data' on OSF/1 5.1.
32617         * lib/stdlib.in.h: Include <random.h> if it exists.
32618         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
32619         HAVE_RANDOM_H. Include <random.h> when testing whether
32620         'struct random_data' exists.
32621         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
32622
32623 2009-01-25  Bruno Haible  <bruno@clisp.org>
32624
32625         Don't install charset.alias on MacOS X >= 10.3.
32626         * lib/localcharset.c (DARWIN7): New macro.
32627         (get_charset_aliases): Hardcode the result for Darwin7.
32628         * modules/localcharset (install-exec-local): Don't install
32629         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
32630
32631 2009-01-25  Bruno Haible  <bruno@clisp.org>
32632
32633         Don't install charset.alias on mingw and Cygwin.
32634         * modules/localcharset (install-exec-local): Don't install
32635         charset.alias on mingw and Cygwin, if the file does not yet exist.
32636         The result for these platforms is hardcoded in localcharset.c.
32637
32638 2009-01-25  Bruno Haible  <bruno@clisp.org>
32639
32640         Make it possible again to use AC_GNU_SOURCE together with gnulib.
32641         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
32642         before requiring AC_USE_SYSTEM_EXTENSIONS.
32643
32644 2009-01-25  Jim Meyering  <meyering@redhat.com>
32645
32646         c-strtod: avoid warnings
32647         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
32648         "assignment discards qualifiers from pointer target type" warnings.
32649
32650 2009-01-24  Bruno Haible  <bruno@clisp.org>
32651
32652         Add support for non-UTF-8 locales on MacOS X.
32653         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
32654         canonical encodings. For Darwin 7 and newer, don't map traditional
32655         encodings to UTF-8.
32656         Reported by Vincent Lefevre <vincent@vinc17.org>
32657         at <http://savannah.gnu.org/bugs/?25235>.
32658
32659 2009-01-24  Bruno Haible  <bruno@clisp.org>
32660
32661         * doc/gnulib.texi (Obsolete modules): New section.
32662         Reported by Mike Frysinger <vapier@gentoo.org>.
32663
32664 2009-01-24  Bruno Haible  <bruno@clisp.org>
32665
32666         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
32667         (%.dvi): New rule.
32668
32669 2009-01-24  Bruno Haible  <bruno@clisp.org>
32670
32671         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
32672         Reported by Eric Blake.
32673
32674 2009-01-24  Bruno Haible  <bruno@clisp.org>
32675
32676         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
32677         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
32678         Reported by Gary V. Vaughan <gary@gnu.org>.
32679
32680 2009-01-24  Bruno Haible  <bruno@clisp.org>
32681
32682         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
32683
32684 2009-01-23  Bruno Haible  <bruno@clisp.org>
32685
32686         Make c-strtod, c-strtold usable in libraries.
32687         * lib/c-strtod.c: Include string.h instead of xalloc.h.
32688         (C_STRTOD): Call strdup instead of xstrdup.
32689         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
32690         * modules/c-strtold (Depends-on): Likewise.
32691         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
32692         * NEWS: Mention the change.
32693         Reported by Michael Gold <mgold@ncf.ca>.
32694
32695 2009-01-23  Jim Meyering  <meyering@redhat.com>
32696
32697         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
32698         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
32699         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
32700
32701 2009-01-23  Simon Josefsson  <simon@josefsson.org>
32702
32703         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
32704         GNU CoreUtils.
32705         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
32706         * modules/version-etc (Description): Update.
32707
32708 2009-01-22  Bruno Haible  <bruno@clisp.org>
32709
32710         Cache the C locale object.
32711         * lib/c-strtod.c (c_locale_cache): New variable.
32712         (c_locale): New function.
32713         (C_STRTOD): Use it, and don't call freelocale.
32714         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
32715         Suggested by Paolo Bonzini.
32716
32717 2009-01-21  Bruno Haible  <bruno@clisp.org>
32718
32719         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
32720         conditions other than overflow.
32721
32722 2009-01-21  Bruno Haible  <bruno@clisp.org>
32723
32724         * lib/c-strtod.c: Include errno.h.
32725         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
32726         value from STRTOD_L and STRTOD.
32727
32728 2009-01-21  Bruno Haible  <bruno@clisp.org>
32729         and Jim Meyering  <meyering@redhat.com>
32730
32731         nanosleep: skip configure test (fail it) for apple universal builds
32732         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
32733         universal builds, assume that nanosleep does not work.
32734         * modules/nanosleep (Depends-on): Add multiarch.
32735
32736         mktime: skip configure test (fail it) for apple universal builds
32737         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
32738         universal builds, assume that mktime does not work.
32739         * modules/mktime (Depends-on): Add multiarch.
32740
32741 2009-01-21  Eric Blake  <ebb9@byu.net>
32742
32743         multiarch: avoid expand-before-require warning
32744         * modules/multiarch (configure.ac): Require, rather than expand,
32745         gl_MULTIARCH.
32746         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
32747         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
32748         enforce that all clients require it.  Partial reversion of
32749         2008-12-29 patch.
32750
32751         error: avoid expand-before-require warning
32752         * modules/errno (configure.ac): Require, rather than expand,
32753         gl_HEADER_ERRNO_H.
32754         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
32755         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
32756         enforce that all clients require it.
32757
32758         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
32759         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
32760         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
32761         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
32762
32763 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
32764
32765         Revert:
32766         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
32767
32768         regex: do not depend on obsolete modules.
32769         * modules/regex: Remove memcmp and memmove.
32770
32771 2009-01-20  Bruno Haible  <bruno@clisp.org>
32772
32773         Make the 'link' module link on Windows NT 4.
32774         * lib/link.c (_WIN32_WINNT): Don't define.
32775         (CreateHardLinkFuncType): New type.
32776         (CreateHardLinkFunc, initialized): New variables.
32777         (initialize): New function.
32778         (link): Invoke CreateHardLink indirectly through the function pointer.
32779
32780 2009-01-20  Bruno Haible  <bruno@clisp.org>
32781
32782         Fix compilation failure on mingw.
32783         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
32784
32785 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
32786
32787         * doc/c-strtod.texi: Mention a couple of restrictions.
32788
32789 2009-01-20  Jim Meyering  <meyering@redhat.com>
32790
32791         gettimeofday: move more declarations out of functions
32792         * lib/gettimeofday.c: Move extern declarations of tzset and
32793         gmtime out of containing functions.  Prompted by Bruno Haible.
32794
32795 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
32796
32797         regex: do not depend on obsolete modules.
32798         * modules/regex: Remove memcmp and memmove.
32799
32800 2009-01-19  Bruno Haible  <bruno@clisp.org>
32801
32802         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
32803         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
32804         gl_BIGENDIAN, not AC_C_BIGENDIAN.
32805         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
32806         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
32807
32808 2009-01-19  Bruno Haible  <bruno@clisp.org>
32809
32810         * tests/test-link.c: Include <errno.h>.
32811         (main): Exit with code 77 when a hard link cannot be created due to
32812         the file system.
32813         * tests/test-link.sh: Skip test when a hard link cannot be created due
32814         to the file system.
32815         Suggested by Eric Blake.
32816
32817 2009-01-19  Martin Lambers  <marlam@marlam.de>
32818
32819         * modules/link-tests: New file.
32820         * tests/test-link.sh: New file.
32821         * tests/test-link.c: New file.
32822
32823 2009-01-19  Eric Blake  <ebb9@byu.net>
32824
32825         doc: mention another function added in cygwin 1.7.0
32826         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
32827         Another new function in cygwin 1.7.
32828
32829 2009-01-19  Bruno Haible  <bruno@clisp.org>
32830
32831         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
32832         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
32833         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
32834         gl_BIGENDIAN, not AC_C_BIGENDIAN.
32835         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
32836         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
32837         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
32838         * m4/md4.m4 (gl_MD4): Likewise.
32839         * m4/md5.m4 (gl_MD5): Likewise.
32840         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
32841         * m4/sha1.m4 (gl_SHA1): Likewise.
32842         * m4/sha256.m4 (gl_SHA256): Likewise.
32843         * m4/sha512.m4 (gl_SHA512): Likewise.
32844
32845 2009-01-19  Bruno Haible  <bruno@clisp.org>
32846
32847         * modules/uniname/uniname-tests (Depends-on): Add progname.
32848         * tests/uniname/test-uninames.c: Include progname.h.
32849         (main): Call set_program_name.
32850
32851         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
32852         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
32853         (main): Call set_program_name.
32854
32855         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
32856         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
32857         (main): Call set_program_name.
32858
32859         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
32860         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
32861         (main): Call set_program_name.
32862
32863         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
32864         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
32865         (main): Call set_program_name.
32866
32867         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
32868         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
32869         (main): Call set_program_name.
32870
32871         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
32872         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
32873         (main): Call set_program_name.
32874
32875         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
32876         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
32877         (main): Call set_program_name.
32878
32879         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
32880         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
32881         (main): Call set_program_name.
32882
32883 2009-01-19  Eric Blake  <ebb9@byu.net>
32884
32885         test-unistd: test previous patch
32886         * tests/test-unistd.c: Test *_FILENO macros.
32887
32888         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
32889         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
32890         Guarantee a definition.
32891         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
32892         * modules/unistd-safer (Depends-on): Add dependency on unistd.
32893         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
32894         * lib/dup-safer.c (STDERR_FILENO): Likewise.
32895         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
32896         Likewise.
32897         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
32898         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
32899         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
32900         Likewise.
32901         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
32902         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
32903         (STDERR_FILENO): Likewise.
32904         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
32905         (STDERR_FILENO): Likewise.
32906         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
32907         (STDERR_FILENO): Likewise.
32908         Reported by Elbert Pol.
32909
32910 2009-01-19  Eric Blake  <ebb9@byu.net>
32911
32912         doc: mention more functions added in cygwin 1.7.0
32913         * doc/posix-functions/abort.texi (abort): Update wording related
32914         to cygwin.
32915         * doc/posix-functions/daylight.texi (daylight): Likewise.
32916         * doc/posix-functions/optarg.texi (optarg): Likewise.
32917         * doc/posix-functions/optarg.texi (opterr): Likewise.
32918         * doc/posix-functions/optarg.texi (optind): Likewise.
32919         * doc/posix-functions/optarg.texi (optopt): Likewise.
32920         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
32921         worked in 1.5.x, and was withdrawn in 1.7.
32922         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
32923         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
32924         cygwin versions.
32925         * doc/posix-functions/perror.texi (perror): Likewise.
32926         * doc/posix-functions/printf.texi (printf): Likewise.
32927         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
32928         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
32929         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
32930         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
32931         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
32932         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
32933         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
32934         Likewise.
32935         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
32936         Likewise.
32937         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
32938         this function.
32939         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
32940         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
32941         Likewise.
32942         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
32943         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
32944         * doc/posix-functions/confstr.texi (confstr): Likewise.
32945         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
32946         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
32947         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
32948         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
32949         * doc/posix-functions/fputws.texi (fputws): Likewise.
32950         * doc/posix-functions/fwide.texi (fwide): Likewise.
32951         * doc/posix-functions/getwc.texi (getwc): Likewise.
32952         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
32953         * doc/posix-functions/putwc.texi (putwc): Likewise.
32954         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
32955         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
32956         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
32957         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
32958         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
32959         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
32960         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
32961         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
32962         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
32963         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
32964         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
32965
32966 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
32967
32968         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
32969         * lib/ioctl.c: Include <sys/ioctl.h>.
32970
32971 2009-01-19  Simon Josefsson  <simon@josefsson.org>
32972
32973         * modules/getdate-tests (Depends-on): Add progname.
32974         * tests/test-getdate.c: Use progname module, to avoid link errors
32975         on non-glibc systems.
32976
32977 2009-01-18  Simon Josefsson  <simon@josefsson.org>
32978
32979         * modules/filenamecat-tests (Depends-on): Add progname.
32980         * modules/fstrcmp-tests (Depends-on): Likewise.
32981
32982         * tests/test-filenamecat.c: Use progname module, to avoid link
32983         errors on non-glibc systems.
32984         * tests/test-fstrcmp.c: Likewise.
32985
32986 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
32987
32988         gettimeofday: avoid warning: nested extern declaration of 'localtime'
32989         * lib/gettimeofday.c: Move extern declaration out of function.
32990
32991 2009-01-18  Bruno Haible  <bruno@clisp.org>
32992
32993         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
32994         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
32995         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
32996
32997 2009-01-18  Bruno Haible  <bruno@clisp.org>
32998
32999         * lib/strftime.c (MEMPCPY): Remove unused macro.
33000         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
33001
33002 2009-01-18  Martin Lambers  <marlam@marlam.de>
33003
33004         New module 'link'.
33005         * lib/unistd.in.h (link): New declaration.
33006         * lib/link.c: New file.
33007         * m4/link.m4: New file.
33008         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
33009         HAVE_LINK.
33010         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
33011         * modules/link: New file.
33012         * doc/posix-functions/link.texi: Mention the new module.
33013
33014 2009-01-18  Bruno Haible  <bruno@clisp.org>
33015
33016         * tests/test-avltree_list.c (main): Call set_program_name.
33017         * tests/test-avltree_oset.c (main): Likewise.
33018         * tests/test-obstack-printf.c: Include progname.h.
33019         (main): Call set_program_name.
33020         * tests/test-quotearg.c: Include progname.h.
33021         (main): Call set_program_name.
33022         * tests/test-xmemdup0.c: Include progname.h.
33023         (main): Call set_program_name.
33024
33025 2009-01-18  Bruno Haible  <bruno@clisp.org>
33026
33027         New module 'alphasort'.
33028         * lib/dirent.in.h (alphasort): New declaration.
33029         * lib/alphasort.c: New file, from glibc with modifications.
33030         * m4/alphasort.m4: New file.
33031         * modules/alphasort: New file.
33032         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
33033         HAVE_ALPHASORT.
33034         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
33035         HAVE_ALPHASORT.
33036         * doc/posix-functions/alphasort.texi: Mention the new module and the
33037         portability problems.
33038
33039 2009-01-18  Bruno Haible  <bruno@clisp.org>
33040
33041         New module 'scandir'.
33042         * lib/dirent.in.h (scandir): New declaration.
33043         * lib/scandir.c: New file, from glibc with modifications.
33044         * m4/scandir.m4: New file.
33045         * modules/scandir: New file.
33046         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
33047         HAVE_SCANDIR.
33048         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
33049         HAVE_SCANDIR.
33050         * doc/posix-functions/scandir.texi: Mention the new module and the
33051         portability problems.
33052
33053 2009-01-17  Bruno Haible  <bruno@clisp.org>
33054
33055         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
33056         Update documentation.
33057         (func_remove_suffix): Escape all dots in the suffix. Update
33058         documentation.
33059         (func_filter_filelist): Update documentation.
33060         Reported by Ralf Wildenhues.
33061
33062 2009-01-17  Bruno Haible  <bruno@clisp.org>
33063
33064         * modules/dprintf-posix-tests: New file.
33065         * tests/test-dprintf-posix.sh: New file.
33066         * tests/test-dprintf-posix.c: New file.
33067
33068         New modules 'dprintf', 'dprintf-posix'.
33069         * lib/stdio.in.h (dprintf): New declaration.
33070         * lib/dprintf.c: New file.
33071         * m4/dprintf.m4: New file.
33072         * m4/dprintf-posix.m4: New file.
33073         * modules/dprintf: New file.
33074         * modules/dprintf-posix: New file.
33075         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
33076         HAVE_DPRINTF, REPLACE_DPRINTF.
33077         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
33078         HAVE_DPRINTF, REPLACE_DPRINTF.
33079         * doc/posix-functions/dprintf.texi: Mention the new modules.
33080
33081 2009-01-17  Bruno Haible  <bruno@clisp.org>
33082
33083         * modules/vdprintf-posix-tests: New file.
33084         * tests/test-vdprintf-posix.sh: New file.
33085         * tests/test-vdprintf-posix.c: New file.
33086
33087         New modules 'vdprintf', 'vdprintf-posix'.
33088         * lib/stdio.in.h (vdprintf): New declaration.
33089         * lib/vdprintf.c: New file.
33090         * m4/vdprintf.m4: New file.
33091         * m4/vdprintf-posix.m4: New file.
33092         * modules/vdprintf: New file.
33093         * modules/vdprintf-posix: New file.
33094         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
33095         HAVE_VDPRINTF, REPLACE_VDPRINTF.
33096         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
33097         HAVE_VDPRINTF, REPLACE_VDPRINTF.
33098         * doc/posix-functions/vdprintf.texi: Mention the new modules.
33099
33100 2009-01-17  Bruno Haible  <bruno@clisp.org>
33101
33102         Fix replacement of fopen on mingw.
33103         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
33104         mingw.
33105
33106 2009-01-17  Bruno Haible  <bruno@clisp.org>
33107
33108         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
33109         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
33110
33111 2009-01-17  Bruno Haible  <bruno@clisp.org>
33112
33113         Avoid test-fflush2.sh failure on mingw.
33114         * tests/test-fflush2.c: Include binary-io.h.
33115         (main): Put standard input into binary mode.
33116         * modules/fflush-tests (Depends-on): Add binary-io.
33117
33118 2009-01-17  Bruno Haible  <bruno@clisp.org>
33119
33120         * lib/wchar.in.h: In another particular situation, include only the
33121         system's <wchar.h> file.
33122         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
33123         Reported by Albert Chin-A-Young <china@thewrittenword.com>
33124         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
33125
33126 2009-01-17  Bruno Haible  <bruno@clisp.org>
33127
33128         Support for stripping executables in --enable-relocatable.
33129         * build-aux/install-reloc: Expect one more argument, or an environment
33130         variable RELOC_STRIP_PROG. If set, strip the destination program and
33131         its wrapper.
33132         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
33133         RELOC_STRIP_PROG.
33134         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
33135         to set RELOCATABLE_STRIP.
33136         * NEWS: Mention the new Makefile requirement.
33137
33138 2009-01-17  Bruno Haible  <bruno@clisp.org>
33139
33140         * build-aux/install-reloc: Remove debugging information left over by
33141         C compiler on MacOS X.
33142
33143 2009-01-17  Bruno Haible  <bruno@clisp.org>
33144
33145         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
33146         * lib/progreloc.c (find_executable): Fix type of pointer passed to
33147         _NSGetExecutablePath.
33148
33149 2009-01-16  Jim Meyering  <meyering@redhat.com>
33150
33151         strerror: avoid warnings about discarding "const"
33152         * lib/strerror.c (rpl_strerror): Instead of returning a const
33153         string from each and every "case", use a variable, and add a single
33154         cast after the switch.
33155
33156 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
33157
33158         * lib/arpa_inet.in.h: Add extern "C" block for C++.
33159
33160 2009-01-16  Bruno Haible  <bruno@clisp.org>
33161
33162         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
33163         array initializer syntax that also works in C++ mode.
33164         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
33165
33166 2009-01-16  Jim Meyering  <meyering@redhat.com>
33167
33168         poll: suppress a warning
33169         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
33170         to ignore "...unsigned expression < 0 is always false" warnings.
33171
33172 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
33173
33174         poll: remove declarations of unused variables
33175         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
33176         sockbuf and optlen.
33177
33178 2009-01-15  Bruno Haible  <bruno@clisp.org>
33179
33180         Make fflush-after-ungetc POSIX compliant on BSD systems.
33181         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
33182         (clear_ungetc_buffer): Implement also for other systems.
33183         (rpl_fflush): On glibc systems, invoke
33184         clear_ungetc_buffer_preserving_position. Otherwise, invoke
33185         clear_ungetc_buffer after fetching the stream's position, not before.
33186
33187 2009-01-15  Bruno Haible  <bruno@clisp.org>
33188
33189         Make fflush-after-ungetc POSIX compliant on glibc systems.
33190         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
33191         after ungetc.
33192         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
33193         (rpl_fflush): On glibc systems, simply call the system's fflush
33194         function after clearing the ungetc buffer.
33195         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
33196         Instead, lseek only to the end of file, then use the system's fseeko
33197         for the rest. On glibc systems, reset the EOF indicator bit.
33198
33199 2009-01-15  Jim Meyering  <meyering@redhat.com>
33200
33201         openmp.m4: revert quote-adding change, for portability to older autoconf
33202         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
33203         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
33204         Simon Josefsson noticed the problem when using autoconf-2.61.
33205
33206 2009-01-15  Bruno Haible  <bruno@clisp.org>
33207
33208         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
33209         * tests/test-fflush2.c (ASSERT): Always fail.
33210         (main): Add two tests for fflush() after ungetc(), taking into account
33211         the Austin Group's clarification.
33212         Suggested by Eric Blake.
33213
33214 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
33215
33216         mktime.m4: remove K&R-style function prototypes
33217         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
33218         for the Sun C++ compiler.
33219
33220 2009-01-14  Bruno Haible  <bruno@clisp.org>
33221
33222         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
33223         while including <wchar.h>.
33224         * lib/wchar.in.h: In two particular situations on HP-UX, include only
33225         the system's <wchar.h> file.
33226         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
33227
33228 2009-01-14  Bruno Haible  <bruno@clisp.org>
33229
33230         * m4/csharp.m4: Don't mention gettext on the serial number line.
33231         * m4/csharpexec.m4: Likewise.
33232         * m4/eaccess.m4: Likewise.
33233         * m4/javaexec.m4: Likewise.
33234         * m4/sig_atomic_t.m4: Likewise.
33235         * m4/tmpdir.m4: Likewise.
33236         * m4/intldir.m4: Bump gettext version.
33237         * m4/lib-ld.m4: Likewise.
33238
33239 2009-01-14  Bruno Haible  <bruno@clisp.org>
33240
33241         * lib/progname.c (set_program_name): Add more comments.
33242         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
33243
33244 2009-01-14  Simon Josefsson  <simon@josefsson.org>
33245
33246         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
33247         were sys/stat.h does not define it.
33248
33249 2009-01-14  Jim Meyering  <meyering@redhat.com>
33250
33251         many *.m4 files: improve m4 quoting
33252         99% of this change was performed by running the following commands:
33253         git ls-files | grep '\.m4$' | xargs perl -pi \
33254           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
33255           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
33256           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
33257           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
33258         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
33259         The remainder were to add Copyright dates, increment serial numbers,
33260         undo some changes in comments, exclude m4/intl.m4, and add quotes
33261         around the "1" in ",1" where the unusual spacing prohibited the
33262         above regexps from doing the job.  For more details, see
33263         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
33264         * m4/acl.m4: Modified.
33265         * m4/afs.m4: Likewise.
33266         * m4/alloca.m4: Likewise.
33267         * m4/argp.m4: Likewise.
33268         * m4/argz.m4: Likewise.
33269         * m4/atexit.m4: Likewise.
33270         * m4/bison-i18n.m4: Likewise.
33271         * m4/bison.m4: Likewise.
33272         * m4/byteswap.m4: Likewise.
33273         * m4/c-stack.m4: Likewise.
33274         * m4/c-strtod.m4: Likewise.
33275         * m4/calloc.m4: Likewise.
33276         * m4/canonicalize-lgpl.m4: Likewise.
33277         * m4/chown.m4: Likewise.
33278         * m4/clock_time.m4: Likewise.
33279         * m4/codeset.m4: Likewise.
33280         * m4/copy-file.m4: Likewise.
33281         * m4/csharp.m4: Likewise.
33282         * m4/csharpcomp.m4: Likewise.
33283         * m4/csharpexec.m4: Likewise.
33284         * m4/d-ino.m4: Likewise.
33285         * m4/d-type.m4: Likewise.
33286         * m4/dirfd.m4: Likewise.
33287         * m4/double-slash-root.m4: Likewise.
33288         * m4/eaccess.m4: Likewise.
33289         * m4/eealloc.m4: Likewise.
33290         * m4/environ.m4: Likewise.
33291         * m4/errno_h.m4: Likewise.
33292         * m4/euidaccess.m4: Likewise.
33293         * m4/execute.m4: Likewise.
33294         * m4/fatal-signal.m4: Likewise.
33295         * m4/fchdir.m4: Likewise.
33296         * m4/fcntl_h.m4: Likewise.
33297         * m4/fileblocks.m4: Likewise.
33298         * m4/filenamecat.m4: Likewise.
33299         * m4/findprog.m4: Likewise.
33300         * m4/flexmember.m4: Likewise.
33301         * m4/fnmatch.m4: Likewise.
33302         * m4/fopen.m4: Likewise.
33303         * m4/fpending.m4: Likewise.
33304         * m4/fprintf-posix.m4: Likewise.
33305         * m4/free.m4: Likewise.
33306         * m4/frexp.m4: Likewise.
33307         * m4/frexpl.m4: Likewise.
33308         * m4/fsusage.m4: Likewise.
33309         * m4/ftruncate.m4: Likewise.
33310         * m4/gc-camellia.m4: Likewise.
33311         * m4/gc-random.m4: Likewise.
33312         * m4/gc.m4: Likewise.
33313         * m4/getaddrinfo.m4: Likewise.
33314         * m4/getcwd-abort-bug.m4: Likewise.
33315         * m4/getcwd-path-max.m4: Likewise.
33316         * m4/getdate.m4: Likewise.
33317         * m4/getdomainname.m4: Likewise.
33318         * m4/getgroups.m4: Likewise.
33319         * m4/gethostname.m4: Likewise.
33320         * m4/gethrxtime.m4: Likewise.
33321         * m4/getline.m4: Likewise.
33322         * m4/getloadavg.m4: Likewise.
33323         * m4/getndelim2.m4: Likewise.
33324         * m4/getpass.m4: Likewise.
33325         * m4/gettext.m4: Likewise.
33326         * m4/gettime.m4: Likewise.
33327         * m4/gettimeofday.m4: Likewise.
33328         * m4/gnulib-common.m4: Likewise.
33329         * m4/group-member.m4: Likewise.
33330         * m4/host-os.m4: Likewise.
33331         * m4/iconv.m4: Likewise.
33332         * m4/iconv_open.m4: Likewise.
33333         * m4/inet_ntop.m4: Likewise.
33334         * m4/inet_pton.m4: Likewise.
33335         * m4/inline.m4: Likewise.
33336         * m4/intldir.m4: Likewise.
33337         * m4/intlmacosx.m4: Likewise.
33338         * m4/intmax.m4: Likewise.
33339         * m4/intmax_t.m4: Likewise.
33340         * m4/inttypes.m4: Likewise.
33341         * m4/inttypes_h.m4: Likewise.
33342         * m4/inttypes-pri.m4: Likewise.
33343         * m4/isapipe.m4: Likewise.
33344         * m4/isnand.m4: Likewise.
33345         * m4/isnanf.m4: Likewise.
33346         * m4/isnanl.m4: Likewise.
33347         * m4/javacomp.m4: Likewise.
33348         * m4/javaexec.m4: Likewise.
33349         * m4/jm-winsz1.m4: Likewise.
33350         * m4/jm-winsz2.m4: Likewise.
33351         * m4/lchown.m4: Likewise.
33352         * m4/lcmessage.m4: Likewise.
33353         * m4/ldexpl.m4: Likewise.
33354         * m4/lib-ld.m4: Likewise.
33355         * m4/lib-link.m4: Likewise.
33356         * m4/libsigsegv.m4: Likewise.
33357         * m4/link-follow.m4: Likewise.
33358         * m4/localcharset.m4: Likewise.
33359         * m4/locale-fr.m4: Likewise.
33360         * m4/locale-ja.m4: Likewise.
33361         * m4/locale-tr.m4: Likewise.
33362         * m4/locale-zh.m4: Likewise.
33363         * m4/lock.m4: Likewise.
33364         * m4/longlong.m4: Likewise.
33365         * m4/ls-mntd-fs.m4: Likewise.
33366         * m4/lstat.m4: Likewise.
33367         * m4/malloc.m4: Likewise.
33368         * m4/mathl.m4: Likewise.
33369         * m4/mbrtowc.m4: Likewise.
33370         * m4/mbstate_t.m4: Likewise.
33371         * m4/mbswidth.m4: Likewise.
33372         * m4/memchr.m4: Likewise.
33373         * m4/memcmp.m4: Likewise.
33374         * m4/memcpy.m4: Likewise.
33375         * m4/memmem.m4: Likewise.
33376         * m4/memmove.m4: Likewise.
33377         * m4/mempcpy.m4: Likewise.
33378         * m4/memrchr.m4: Likewise.
33379         * m4/memset.m4: Likewise.
33380         * m4/minmax.m4: Likewise.
33381         * m4/mkdir-slash.m4: Likewise.
33382         * m4/mkdtemp.m4: Likewise.
33383         * m4/mktime.m4: Likewise.
33384         * m4/mmap-anon.m4: Likewise.
33385         * m4/mountlist.m4: Likewise.
33386         * m4/nanosleep.m4: Likewise.
33387         * m4/nls.m4: Likewise.
33388         * m4/nocrash.m4: Likewise.
33389         * m4/open.m4: Likewise.
33390         * m4/openat.m4: Likewise.
33391         * m4/openmp.m4: Likewise.
33392         * m4/pathmax.m4: Likewise.
33393         * m4/perl.m4: Likewise.
33394         * m4/physmem.m4: Likewise.
33395         * m4/pipe.m4: Likewise.
33396         * m4/po.m4: Likewise.
33397         * m4/poll.m4: Likewise.
33398         * m4/posixtm.m4: Likewise.
33399         * m4/posixver.m4: Likewise.
33400         * m4/printf-frexp.m4: Likewise.
33401         * m4/printf-frexpl.m4: Likewise.
33402         * m4/printf-posix.m4: Likewise.
33403         * m4/printf-posix-rpl.m4: Likewise.
33404         * m4/printf.m4: Likewise.
33405         * m4/progtest.m4: Likewise.
33406         * m4/putenv.m4: Likewise.
33407         * m4/readline.m4: Likewise.
33408         * m4/readlink.m4: Likewise.
33409         * m4/readutmp.m4: Likewise.
33410         * m4/realloc.m4: Likewise.
33411         * m4/regex.m4: Likewise.
33412         * m4/relocatable.m4: Likewise.
33413         * m4/relocatable-lib.m4: Likewise.
33414         * m4/rename-dest-slash.m4: Likewise.
33415         * m4/rename.m4: Likewise.
33416         * m4/rmdir-errno.m4: Likewise.
33417         * m4/rmdir.m4: Likewise.
33418         * m4/roundf.m4: Likewise.
33419         * m4/roundl.m4: Likewise.
33420         * m4/rpmatch.m4: Likewise.
33421         * m4/save-cwd.m4: Likewise.
33422         * m4/selinux-selinux-h.m4: Likewise.
33423         * m4/setenv.m4: Likewise.
33424         * m4/settime.m4: Likewise.
33425         * m4/sig2str.m4: Likewise.
33426         * m4/sig_atomic_t.m4: Likewise.
33427         * m4/signalblocking.m4: Likewise.
33428         * m4/signbit.m4: Likewise.
33429         * m4/sigpipe.m4: Likewise.
33430         * m4/sockets.m4: Likewise.
33431         * m4/sockpfaf.m4: Likewise.
33432         * m4/st_dm_mode.m4: Likewise.
33433         * m4/stat-time.m4: Likewise.
33434         * m4/stdbool.m4: Likewise.
33435         * m4/stdint.m4: Likewise.
33436         * m4/stdint_h.m4: Likewise.
33437         * m4/stpcpy.m4: Likewise.
33438         * m4/stpncpy.m4: Likewise.
33439         * m4/strcase.m4: Likewise.
33440         * m4/strchrnul.m4: Likewise.
33441         * m4/strcspn.m4: Likewise.
33442         * m4/strdup.m4: Likewise.
33443         * m4/strftime.m4: Likewise.
33444         * m4/strndup.m4: Likewise.
33445         * m4/strnlen.m4: Likewise.
33446         * m4/strpbrk.m4: Likewise.
33447         * m4/strptime.m4: Likewise.
33448         * m4/strsep.m4: Likewise.
33449         * m4/strtod.m4: Likewise.
33450         * m4/strtoimax.m4: Likewise.
33451         * m4/strtok_r.m4: Likewise.
33452         * m4/strtol.m4: Likewise.
33453         * m4/strtoll.m4: Likewise.
33454         * m4/strtoul.m4: Likewise.
33455         * m4/strtoull.m4: Likewise.
33456         * m4/strtoumax.m4: Likewise.
33457         * m4/strverscmp.m4: Likewise.
33458         * m4/threadlib.m4: Likewise.
33459         * m4/timegm.m4: Likewise.
33460         * m4/tm_gmtoff.m4: Likewise.
33461         * m4/tmpdir.m4: Likewise.
33462         * m4/tmpfile.m4: Likewise.
33463         * m4/tzset.m4: Likewise.
33464         * m4/uintmax_t.m4: Likewise.
33465         * m4/unlinkdir.m4: Likewise.
33466         * m4/unlocked-io.m4: Likewise.
33467         * m4/uptime.m4: Likewise.
33468         * m4/userspec.m4: Likewise.
33469         * m4/utimbuf.m4: Likewise.
33470         * m4/utime.m4: Likewise.
33471         * m4/utimes-null.m4: Likewise.
33472         * m4/utimes.m4: Likewise.
33473         * m4/vararrays.m4: Likewise.
33474         * m4/vasnprintf.m4: Likewise.
33475         * m4/vfprintf-posix.m4: Likewise.
33476         * m4/vprintf-posix.m4: Likewise.
33477         * m4/wait-process.m4: Likewise.
33478         * m4/wchar_t.m4: Likewise.
33479         * m4/wint_t.m4: Likewise.
33480         * m4/write-any-file.m4: Likewise.
33481         * m4/yield.m4: Likewise.
33482
33483 2009-01-13  Bruno Haible  <bruno@clisp.org>
33484
33485         Avoid test-copy-file.sh failures when ACL support insufficient.
33486         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
33487         TESTS_ENVIRONMENT.
33488         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
33489         Reported by Jim Meyering.
33490
33491 2009-01-13  Bruno Haible  <bruno@clisp.org>
33492
33493         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
33494         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
33495         * modules/unistdio/u8-printf-parse (Files): Likewise.
33496         * modules/unistdio/u32-printf-parse (Files): Likewise.
33497         * modules/unistdio/ulc-printf-parse (Files): Likewise.
33498
33499 2009-01-13  Simon Josefsson  <simon@josefsson.org>
33500
33501         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
33502         and m4/inttypes_h.m4 too.
33503
33504 2009-01-12  Eric Blake  <ebb9@byu.net>
33505
33506         tests: IRIX 6.2 cc can't compile -0.0 into .data
33507         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
33508         rather than at compile-time.
33509         * tests/test-floorl.c (minus_zero): Likewise.
33510         * tests/test-frexpl.c (minus_zero): Likewise.
33511         * tests/test-isnan.c (minus_zerol): Likewise.
33512         * tests/test-isnanl.h (minus_zero): Likewise.
33513         * tests/test-ldexpl.c (minus_zero): Likewise.
33514         * tests/test-roundl.c (minus_zero): Likewise.
33515         * tests/test-signbit.c (minus_zerol): Likewise.
33516         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
33517         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
33518         * tests/test-truncl.c (minus_zero): Likewise.
33519         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
33520         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
33521         Reported by Tom G. Christensen and Nelson H. F. Beebe.
33522
33523 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
33524
33525         regex: fix glibc bug 9697
33526         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
33527         handling.
33528
33529 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
33530
33531         regex: fix glibc bug 697
33532         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
33533         being NULL also if there are no backreferences.
33534
33535 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
33536
33537         regex: merge glibc changes
33538         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
33539         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
33540         re_string_skip_chars, re_string_reconstruct): Likewise.
33541         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
33542
33543 2009-01-07  Jim Meyering  <meyering@redhat.com>
33544
33545         poll: filter through cppi
33546         * lib/poll.c: Indent cpp directives to reflect nesting.
33547
33548 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
33549
33550         poll: don't return uninitialized
33551         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
33552
33553 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
33554
33555         avoid compile failure on AIX 6.1
33556         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
33557         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
33558
33559 2009-01-04  Jim Meyering  <meyering@redhat.com>
33560
33561         remove duplicate inclusion of <stdio.h>
33562         * tests/test-fprintf-posix.c: Likewise.
33563         * tests/test-printf-posix.c: Likewise.
33564         * tests/test-snprintf-posix.c: Likewise.
33565         * tests/test-sprintf-posix.c: Likewise.
33566         * tests/test-vasprintf-posix.c: Likewise.
33567         * tests/test-vfprintf-posix.c: Likewise.
33568         * tests/test-vprintf-posix.c: Likewise.
33569         * tests/test-vsnprintf-posix.c: Likewise.
33570         * tests/test-vsprintf-posix.c: Likewise.
33571
33572 2009-01-03  Jim Meyering  <meyering@redhat.com>
33573
33574         gnulib-tool: fix sed-based filtering
33575         * gnulib-tool (func_filter_filelist): Remove extra backslash
33576         in sed_fff_filter definition.
33577
33578 2009-01-02  Jim Meyering  <meyering@redhat.com>
33579
33580         strftime: avoid compilation failure on Solaris 2.6
33581         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
33582         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
33583         Don't #define mbrlen or mbsinit, since now they're guaranteed to
33584         be available.  Reported by Tom G. Christensen.  Details in
33585         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
33586
33587 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33588             Bruno Haible  <bruno@clisp.org>
33589
33590         Speed up gnulib-tool by doing more string processing through shell
33591         built-ins.
33592         * gnulib-tool (fast_func_append): New variable.
33593         (func_remove_prefix, func_remove_suffix): New functions.
33594         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
33595         (func_filter_filelist): New function.
33596         (func_get_dependencies): Use func_remove_suffix instead of sed.
33597         (func_get_automake_snippet): Use func_filter_filelist instead of a
33598         subshell and sed invocation.
33599
33600 2009-01-01  Bruno Haible  <bruno@clisp.org>
33601
33602         Fix a security bug.
33603         * gnulib-tool (func_import, import, update): Don't allow the characters
33604         '"', '$', '`', '\' in macro arguments that become part of commands that
33605         are evaluated.
33606
33607 2009-01-01  Bruno Haible  <bruno@clisp.org>
33608
33609         * gnulib-tool (func_reset_sigpipe): Add more comments.
33610
33611 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33612
33613         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
33614         func_emit_tests_Makefile_am, func_import): Abort loops early if we
33615         already know the answer.
33616
33617 2009-01-01  Jim Meyering  <meyering@redhat.com>
33618
33619         * lib/version-etc.c (version_etc_va): Update copyright year.
33620
33621 2008-12-30  Bruno Haible  <bruno@clisp.org>
33622
33623         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
33624         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
33625         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
33626
33627 2008-12-29  Eric Blake  <ebb9@byu.net>
33628
33629         multiarch: avoid autoconf AC_REQUIRE bug
33630         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
33631         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
33632         2.63 and older.
33633         Reported by Bruno Haible, and analyzed in
33634         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
33635
33636 2008-12-29  Bruno Haible  <bruno@clisp.org>
33637
33638         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
33639         files in subdirectories correctly.
33640         Reported by Ralf Wildenhues.
33641
33642 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33643
33644         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
33645         rather than 'join FILE -', for Solaris join.
33646
33647 2008-12-29  Bruno Haible  <bruno@clisp.org>
33648
33649         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
33650         quoting.
33651         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
33652         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
33653         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
33654         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
33655         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
33656         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
33657         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
33658         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
33659         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
33660         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
33661         * m4/nls.m4 (AM_NLS): Likewise.
33662         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
33663         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
33664         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
33665         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
33666         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
33667         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
33668         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
33669         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
33670         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
33671         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
33672         * m4/xsize.m4 (gl_XSIZE): Likewise.
33673         Suggested by Jim Meyering.
33674
33675 2008-11-17  Bruce Korb  <bkorb@gnu.org>
33676
33677         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
33678         * lib/parse-duration.c: use a switch instead of cascading if's.
33679
33680 2008-12-29  Eric Blake  <ebb9@byu.net>
33681
33682         wchar.h: supply WEOF on Irix 5.3
33683         * lib/wchar.in.h (wint_t): Also supply WEOF.
33684         * lib/wctype.in.h (wint_t): Likewise.
33685         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
33686         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
33687         Reported by Tom G. Christensen.
33688
33689 2008-12-26  Bruno Haible  <bruno@clisp.org>
33690
33691         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
33692         i486, i586, i686.
33693
33694 2008-12-26  Bruno Haible  <bruno@clisp.org>
33695
33696         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
33697
33698 2008-12-26  Bruno Haible  <bruno@clisp.org>
33699
33700         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
33701         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
33702         not __STDC_CONSTANT_MACROS.
33703         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
33704
33705 2008-12-25  Bruno Haible  <bruno@clisp.org>
33706
33707         Add support for universal builds to vasnprintf.
33708         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
33709         universal builds, guess no.
33710         * modules/vasnprintf-posix (Depends-on): Add multiarch.
33711         * modules/vasprintf-posix (Depends-on): Likewise.
33712         * modules/fprintf-posix (Depends-on): Likewise.
33713         * modules/vfprintf-posix (Depends-on): Likewise.
33714         * modules/snprintf-posix (Depends-on): Likewise.
33715         * modules/vsnprintf-posix (Depends-on): Likewise.
33716         * modules/sprintf-posix (Depends-on): Likewise.
33717         * modules/vsprintf-posix (Depends-on): Likewise.
33718         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
33719         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
33720         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
33721         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
33722         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
33723         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
33724         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
33725
33726         Add support for universal builds to <inttypes.h>.
33727         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
33728         _SCNu64_PREFIX): In Apple
33729         universal builds, define directly, using _LP64.
33730         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
33731         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
33732         * modules/inttypes (Depends-on): Add multiarch.
33733         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
33734
33735         Add support for universal builds to <stdint.h>.
33736         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
33737         universal builds, define directly, using _LP64.
33738         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
33739         Apple universal builds, don't test for the size and suffix of ptrdiff_t
33740         and size_t.
33741         * modules/stdint (Depends-on): Add multiarch.
33742         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
33743
33744         New module 'multiarch'.
33745         * modules/multiarch: New file.
33746         * m4/multiarch.m4: New file.
33747
33748 2008-12-25  Bruno Haible  <bruno@clisp.org>
33749
33750         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
33751
33752 2008-12-25  Bruno Haible  <bruno@clisp.org>
33753
33754         * modules/btowc (License): Relicense under LGPLv2+.
33755         * modules/mbsinit (License): Likewise.
33756         * modules/mbrtowc (License): Likewise.
33757         * modules/wcrtomb (License): Likewise.
33758         * modules/streq (License): Likewise.
33759         Reported by David Lutterkort <lutter@redhat.com>.
33760
33761 2008-12-23  Bruno Haible  <bruno@clisp.org>
33762
33763         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
33764
33765 2008-12-23  Bruno Haible  <bruno@clisp.org>
33766
33767         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
33768         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
33769         GETADDRINFO_LIB, not in LIBS.
33770         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
33771         * modules/canon-host (Link): Likewise.
33772         * NEWS: Mention the change.
33773         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
33774         GETADDRINFO_LIB.
33775
33776 2008-12-22  Bruno Haible  <bruno@clisp.org>
33777
33778         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
33779         * doc/posix-functions/iswalpha_l.texi: Likewise.
33780         * doc/posix-functions/iswblank_l.texi: Likewise.
33781         * doc/posix-functions/iswcntrl_l.texi: Likewise.
33782         * doc/posix-functions/iswctype_l.texi: Likewise.
33783         * doc/posix-functions/iswdigit_l.texi: Likewise.
33784         * doc/posix-functions/iswgraph_l.texi: Likewise.
33785         * doc/posix-functions/iswlower_l.texi: Likewise.
33786         * doc/posix-functions/iswprint_l.texi: Likewise.
33787         * doc/posix-functions/iswpunct_l.texi: Likewise.
33788         * doc/posix-functions/iswspace_l.texi: Likewise.
33789         * doc/posix-functions/iswupper_l.texi: Likewise.
33790         * doc/posix-functions/iswxdigit_l.texi: Likewise.
33791         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
33792         * doc/posix-functions/open_wmemstream.texi: Likewise.
33793         * doc/posix-functions/swscanf.texi: Likewise.
33794         * doc/posix-functions/towctrans_l.texi: Likewise.
33795         * doc/posix-functions/towlower.texi: Likewise.
33796         * doc/posix-functions/towlower_l.texi: Likewise.
33797         * doc/posix-functions/towupper.texi: Likewise.
33798         * doc/posix-functions/towupper_l.texi: Likewise.
33799         * doc/posix-functions/vfwprintf.texi: Likewise.
33800         * doc/posix-functions/vfwscanf.texi: Likewise.
33801         * doc/posix-functions/vswscanf.texi: Likewise.
33802         * doc/posix-functions/vwprintf.texi: Likewise.
33803         * doc/posix-functions/vwscanf.texi: Likewise.
33804         * doc/posix-functions/wcpcpy.texi: Likewise.
33805         * doc/posix-functions/wcpncpy.texi: Likewise.
33806         * doc/posix-functions/wcscasecmp.texi: Likewise.
33807         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
33808         * doc/posix-functions/wcscoll_l.texi: Likewise.
33809         * doc/posix-functions/wcsdup.texi: Likewise.
33810         * doc/posix-functions/wcsncasecmp.texi: Likewise.
33811         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
33812         * doc/posix-functions/wcsnlen.texi: Likewise.
33813         * doc/posix-functions/wcsnrtombs.texi: Likewise.
33814         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
33815         * doc/posix-functions/wctrans_l.texi: Likewise.
33816         * doc/posix-functions/wctype_l.texi: Likewise.
33817         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
33818         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
33819         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
33820         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
33821         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
33822         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
33823         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
33824         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
33825         * doc/glibc-functions/wcschrnul.texi: Likewise.
33826         * doc/glibc-functions/wcsftime_l.texi: Likewise.
33827         * doc/glibc-functions/wcstod_l.texi: Likewise.
33828         * doc/glibc-functions/wcstof_l.texi: Likewise.
33829         * doc/glibc-functions/wcstol_l.texi: Likewise.
33830         * doc/glibc-functions/wcstold_l.texi: Likewise.
33831         * doc/glibc-functions/wcstoll_l.texi: Likewise.
33832         * doc/glibc-functions/wcstoq.texi: Likewise.
33833         * doc/glibc-functions/wcstoul_l.texi: Likewise.
33834         * doc/glibc-functions/wcstoull_l.texi: Likewise.
33835         * doc/glibc-functions/wcstouq.texi: Likewise.
33836         * doc/glibc-functions/wmempcpy.texi: Likewise.
33837
33838 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
33839             Eric Blake  <ebb9@byu.net>
33840             Paolo Bonzini  <bonzini@gnu.org>
33841             Bruno Haible  <bruno@clisp.org>
33842
33843         Make c-stack work on Haiku.
33844         * lib/c-stack.c (SA_ONSTACK): Define fallback.
33845         (c_stack_action): Use SA_ONSTACK flag.
33846
33847 2008-12-22  Bruno Haible  <bruno@clisp.org>
33848
33849         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
33850
33851 2008-12-22  Bruno Haible  <bruno@clisp.org>
33852
33853         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
33854         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
33855         being overridden.
33856         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
33857         New macros.
33858         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
33859         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
33860         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
33861         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
33862
33863 2008-12-22  Bruno Haible  <bruno@clisp.org>
33864
33865         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
33866         from test code.
33867
33868 2008-12-22  Eric Blake  <ebb9@byu.net>
33869
33870         Avoid gcc warnings on cygwin.
33871         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
33872         Avoid unused variable.
33873         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
33874         Likewise.
33875
33876 2008-12-22  Bruno Haible  <bruno@clisp.org>
33877
33878         Remove HAVE_MBRTOWC conditionals.
33879         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
33880         (mbscasecmp): Assume mbrtowc function.
33881         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
33882         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
33883         * lib/mbschr.c: Include mbuiter.h unconditionally.
33884         (mbschr): Assume mbrtowc function.
33885         * lib/mbscspn.c: Include mbuiter.h unconditionally.
33886         (mbscspn): Assume mbrtowc function.
33887         * lib/mbslen.c: Include mbuiter.h unconditionally.
33888         (mbslen): Assume mbrtowc function.
33889         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
33890         (mbsncasecmp): Assume mbrtowc function.
33891         * lib/mbsnlen.c: Include mbiter.h unconditionally.
33892         (mbsnlen): Assume mbrtowc function.
33893         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
33894         (mbspbrk): Assume mbrtowc function.
33895         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
33896         (mbspcasecmp): Assume mbrtowc function.
33897         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
33898         (mbsrchr): Assume mbrtowc function.
33899         * lib/mbssep.c: Include mbuiter.h unconditionally.
33900         (mbssep): Assume mbrtowc function.
33901         * lib/mbsspn.c: Include mbuiter.h unconditionally.
33902         (mbsspn): Assume mbrtowc function.
33903         * lib/mbsstr.c: Include mbuiter.h unconditionally.
33904         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
33905         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
33906         (mbstok_r): Assume mbrtowc function.
33907         * lib/propername.c: Include mbuiter.h unconditionally.
33908         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
33909         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
33910         (trim2): Assume mbrtowc function.
33911         * lib/mbswidth.c (mbsinit): Remove fallback definition.
33912         (mbsnwidth): Assume mbrtowc function.
33913         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
33914         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
33915         fallback definitions.
33916         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
33917
33918 2008-12-22  Bruno Haible  <bruno@clisp.org>
33919
33920         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
33921
33922 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
33923
33924         * modules/regex: Request emulations for the mb*/wc* functions we need.
33925         * m4/regex.m4: Don't look for those functions here.
33926         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
33927
33928 2008-12-22  Bruno Haible  <bruno@clisp.org>
33929
33930         * modules/fnmatch (Depends-on): Remove duplicated dependency.
33931
33932 2008-12-21  Bruno Haible  <bruno@clisp.org>
33933
33934         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
33935         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
33936         (Include): Remove conditionalization.
33937         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
33938         (Include): Remove conditionalization.
33939         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
33940         (Include): Remove conditionalization.
33941         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
33942         * m4/mbfile.m4 (gl_MBFILE): Likewise.
33943         * NEWS: Mention the change.
33944         Reported by Alan Hourihane <alanh@fairlite.co.uk>
33945         via Sergey Poznyakoff <gray@gnu.org.ua>.
33946
33947 2008-12-21  Bruno Haible  <bruno@clisp.org>
33948
33949         * MODULES.html.sh (Extended multibyte and wide character utilities
33950         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
33951         wcrtomb, wcsrtombs.
33952         (Support for systems lacking POSIX:2008): Add accept, bind, close,
33953         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
33954         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
33955         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
33956
33957 2008-12-21  Bruno Haible  <bruno@clisp.org>
33958
33959         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
33960
33961 2008-12-21  Bruno Haible  <bruno@clisp.org>
33962
33963         * modules/wcsnrtombs-tests: New file.
33964         * tests/test-wcsnrtombs1.sh: New file.
33965         * tests/test-wcsnrtombs2.sh: New file.
33966         * tests/test-wcsnrtombs3.sh: New file.
33967         * tests/test-wcsnrtombs4.sh: New file.
33968         * tests/test-wcsnrtombs.c: New file.
33969
33970         New module 'wcsnrtombs'.
33971         * lib/wchar.in.h (wcsnrtombs): New declaration.
33972         * lib/wcsnrtombs.c: New file.
33973         * lib/wcsrtombs-state.c: New file.
33974         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
33975         (internal_state): Remove variable.
33976         * m4/wcsnrtombs.m4: New file.
33977         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
33978         compilation units.
33979         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
33980         HAVE_WCSNRTOMBS.
33981         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
33982         HAVE_WCSNRTOMBS.
33983         * modules/wcsnrtombs: New file.
33984         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
33985         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
33986
33987 2008-12-21  Bruno Haible  <bruno@clisp.org>
33988
33989         * modules/wcsrtombs-tests: New file.
33990         * tests/test-wcsrtombs1.sh: New file.
33991         * tests/test-wcsrtombs2.sh: New file.
33992         * tests/test-wcsrtombs3.sh: New file.
33993         * tests/test-wcsrtombs4.sh: New file.
33994         * tests/test-wcsrtombs.c: New file.
33995
33996         New module 'wcsrtombs'.
33997         * lib/wchar.in.h (wcsrtombs): New declaration.
33998         * lib/wcsrtombs.c: New file.
33999         * m4/wcsrtombs.m4: New file.
34000         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
34001         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
34002         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
34003         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
34004         * modules/wcsrtombs: New file.
34005         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
34006         bugs.
34007
34008 2008-12-21  Bruno Haible  <bruno@clisp.org>
34009
34010         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
34011         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
34012         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
34013         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
34014         if not correct.
34015         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
34016         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
34017         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
34018         m4/locale-zh.m4, m4/codeset.m4.
34019         * doc/posix-functions/wcrtomb.texi: Document the bug.
34020
34021 2008-12-21  Bruno Haible  <bruno@clisp.org>
34022
34023         Work around a btowc() bug on IRIX 6.5.
34024         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
34025         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
34026         REPLACE_WTOBC if not.
34027         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
34028         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
34029         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
34030
34031 2008-12-21  Bruno Haible  <bruno@clisp.org>
34032
34033         * modules/wcrtomb-tests: New file.
34034         * tests/test-wcrtomb.sh: New file.
34035         * tests/test-wcrtomb.c: New file.
34036
34037         New module 'wcrtomb'.
34038         * lib/wchar.in.h (wcrtomb): New declaration.
34039         * lib/wcrtomb.c: New file.
34040         * m4/wcrtomb.m4: New file.
34041         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
34042         HAVE_WCRTOMB.
34043         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
34044         HAVE_WCRTOMB.
34045         * modules/wcrtomb: New file.
34046         * doc/posix-functions/wcrtomb.texi: Mention the new module.
34047
34048 2008-12-21  Bruno Haible  <bruno@clisp.org>
34049
34050         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
34051         * modules/mbsrtowcs (Files): Likewise.
34052         * modules/wctob (Files): Likewise.
34053         * modules/c-strcase-tests (Files): Likewise.
34054         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
34055         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
34056         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
34057         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
34058         * modules/vasnprintf-posix-tests (Files): Likewise.
34059
34060 2008-12-21  William Pursell  <bill.pursell@gmail.com>
34061
34062         gitlog-to-changelog: pass all command-line arguments to git-log
34063         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
34064         it is sometimes convenient to filter the commits in various ways.
34065         gitlog-to-changelog only allows --since to specify a start date,
34066         but git-log itself supports many other filtering mechanisms.
34067         At the moment, I want to filter by branch name.  Rather than
34068         adding a --branch option to gitlog-to-changelog, it seems more
34069         flexible to simply pass all options directly to git-log and let
34070         git do the work.  Notice that this effectively makes --since a
34071         redundant option for gitlog-to-changelog, but removing it would
34072         require current usage to change since calls would then require
34073         an additional '--'.
34074
34075 2008-12-21  Bruno Haible  <bruno@clisp.org>
34076
34077         * modules/mbsnrtowcs-tests: New file.
34078         * tests/test-mbsnrtowcs1.sh: New file.
34079         * tests/test-mbsnrtowcs2.sh: New file.
34080         * tests/test-mbsnrtowcs3.sh: New file.
34081         * tests/test-mbsnrtowcs4.sh: New file.
34082         * tests/test-mbsnrtowcs.c: New file.
34083
34084         New module 'mbsnrtowcs'.
34085         * lib/wchar.in.h (mbsnrtowcs): New declaration.
34086         * lib/mbsnrtowcs.c: New file.
34087         * lib/mbsrtowcs-state.c: New file.
34088         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
34089         (internal_state): Remove variable.
34090         * m4/mbsnrtowcs.m4: New file.
34091         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
34092         compilation units.
34093         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
34094         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
34095         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
34096         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
34097         * modules/mbsnrtowcs: New file.
34098         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
34099         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
34100         portability problem.
34101
34102 2008-12-21  Bruno Haible  <bruno@clisp.org>
34103
34104         Work around mbsrtowcs bug.
34105         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
34106         (gl_FUNC_MBSRTOWCS): Invoke it.
34107         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
34108         m4/locale-zh.m4.
34109         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
34110
34111 2008-12-21  Bruno Haible  <bruno@clisp.org>
34112
34113         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
34114
34115 2008-12-21  Bruno Haible  <bruno@clisp.org>
34116
34117         Update doc for AIX.
34118         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
34119         16-bit wchar_t type.
34120         * doc/posix-functions/btowc.texi: Likewise.
34121         * doc/posix-functions/fgetwc.texi: Likewise.
34122         * doc/posix-functions/fgetws.texi: Likewise.
34123         * doc/posix-functions/fputwc.texi: Likewise.
34124         * doc/posix-functions/fputws.texi: Likewise.
34125         * doc/posix-functions/fwide.texi: Likewise.
34126         * doc/posix-functions/fwprintf.texi: Likewise.
34127         * doc/posix-functions/fwscanf.texi: Likewise.
34128         * doc/posix-functions/getwchar.texi: Likewise.
34129         * doc/posix-functions/getwc.texi: Likewise.
34130         * doc/posix-functions/iswalnum.texi: Likewise.
34131         * doc/posix-functions/iswalpha.texi: Likewise.
34132         * doc/posix-functions/iswblank.texi: Likewise.
34133         * doc/posix-functions/iswcntrl.texi: Likewise.
34134         * doc/posix-functions/iswctype.texi: Likewise.
34135         * doc/posix-functions/iswdigit.texi: Likewise.
34136         * doc/posix-functions/iswgraph.texi: Likewise.
34137         * doc/posix-functions/iswlower.texi: Likewise.
34138         * doc/posix-functions/iswprint.texi: Likewise.
34139         * doc/posix-functions/iswpunct.texi: Likewise.
34140         * doc/posix-functions/iswspace.texi: Likewise.
34141         * doc/posix-functions/iswupper.texi: Likewise.
34142         * doc/posix-functions/iswxdigit.texi: Likewise.
34143         * doc/posix-functions/mbrtowc.texi: Likewise.
34144         * doc/posix-functions/mbsrtowcs.texi: Likewise.
34145         * doc/posix-functions/mbstowcs.texi: Likewise.
34146         * doc/posix-functions/mbtowc.texi: Likewise.
34147         * doc/posix-functions/putwchar.texi: Likewise.
34148         * doc/posix-functions/putwc.texi: Likewise.
34149         * doc/posix-functions/swprintf.texi: Likewise.
34150         * doc/posix-functions/tolower.texi: Likewise.
34151         * doc/posix-functions/toupper.texi: Likewise.
34152         * doc/posix-functions/towctrans.texi: Likewise.
34153         * doc/posix-functions/ungetwc.texi: Likewise.
34154         * doc/posix-functions/vswprintf.texi: Likewise.
34155         * doc/posix-functions/wcrtomb.texi: Likewise.
34156         * doc/posix-functions/wcscat.texi: Likewise.
34157         * doc/posix-functions/wcschr.texi: Likewise.
34158         * doc/posix-functions/wcscmp.texi: Likewise.
34159         * doc/posix-functions/wcscoll.texi: Likewise.
34160         * doc/posix-functions/wcscpy.texi: Likewise.
34161         * doc/posix-functions/wcscspn.texi: Likewise.
34162         * doc/posix-functions/wcsftime.texi: Likewise.
34163         * doc/posix-functions/wcslen.texi: Likewise.
34164         * doc/posix-functions/wcsncat.texi: Likewise.
34165         * doc/posix-functions/wcsncmp.texi: Likewise.
34166         * doc/posix-functions/wcsncpy.texi: Likewise.
34167         * doc/posix-functions/wcspbrk.texi: Likewise.
34168         * doc/posix-functions/wcsrchr.texi: Likewise.
34169         * doc/posix-functions/wcsrtombs.texi: Likewise.
34170         * doc/posix-functions/wcsspn.texi: Likewise.
34171         * doc/posix-functions/wcsstr.texi: Likewise.
34172         * doc/posix-functions/wcstod.texi: Likewise.
34173         * doc/posix-functions/wcstof.texi: Likewise.
34174         * doc/posix-functions/wcstoimax.texi: Likewise.
34175         * doc/posix-functions/wcstok.texi: Likewise.
34176         * doc/posix-functions/wcstold.texi: Likewise.
34177         * doc/posix-functions/wcstoll.texi: Likewise.
34178         * doc/posix-functions/wcstol.texi: Likewise.
34179         * doc/posix-functions/wcstombs.texi: Likewise.
34180         * doc/posix-functions/wcstoull.texi: Likewise.
34181         * doc/posix-functions/wcstoul.texi: Likewise.
34182         * doc/posix-functions/wcstoumax.texi: Likewise.
34183         * doc/posix-functions/wcswidth.texi: Likewise.
34184         * doc/posix-functions/wcsxfrm.texi: Likewise.
34185         * doc/posix-functions/wctob.texi: Likewise.
34186         * doc/posix-functions/wctomb.texi: Likewise.
34187         * doc/posix-functions/wctrans.texi: Likewise.
34188         * doc/posix-functions/wctype.texi: Likewise.
34189         * doc/posix-functions/wcwidth.texi: Likewise.
34190         * doc/posix-functions/wmemchr.texi: Likewise.
34191         * doc/posix-functions/wmemcmp.texi: Likewise.
34192         * doc/posix-functions/wmemcpy.texi: Likewise.
34193         * doc/posix-functions/wmemmove.texi: Likewise.
34194         * doc/posix-functions/wmemset.texi: Likewise.
34195         * doc/posix-functions/wprintf.texi: Likewise.
34196         * doc/posix-functions/wscanf.texi: Likewise.
34197
34198 2008-12-21  Bruno Haible  <bruno@clisp.org>
34199
34200         Update doc for HP-UX 11.11.
34201         * doc/posix-functions/btowc.texi: Clarify that the function is missing
34202         in HP-UX version 11.00, not in all versions of HP-UX 11.
34203         * doc/posix-functions/fwide.texi: Likewise.
34204         * doc/posix-functions/fwprintf.texi: Likewise.
34205         * doc/posix-functions/fwscanf.texi: Likewise.
34206         * doc/posix-functions/inet_ntop.texi: Likewise.
34207         * doc/posix-functions/inet_pton.texi: Likewise.
34208         * doc/posix-functions/mbrlen.texi: Likewise.
34209         * doc/posix-functions/mbrtowc.texi: Likewise.
34210         * doc/posix-functions/mbsinit.texi: Likewise.
34211         * doc/posix-functions/mbsrtowcs.texi: Likewise.
34212         * doc/posix-functions/swprintf.texi: Likewise.
34213         * doc/posix-functions/swscanf.texi: Likewise.
34214         * doc/posix-functions/towctrans.texi: Likewise.
34215         * doc/posix-functions/vfwprintf.texi: Likewise.
34216         * doc/posix-functions/vswprintf.texi: Likewise.
34217         * doc/posix-functions/vwprintf.texi: Likewise.
34218         * doc/posix-functions/wcrtomb.texi: Likewise.
34219         * doc/posix-functions/wcsrtombs.texi: Likewise.
34220         * doc/posix-functions/wcsstr.texi: Likewise.
34221         * doc/posix-functions/wctob.texi: Likewise.
34222         * doc/posix-functions/wctrans.texi: Likewise.
34223         * doc/posix-functions/wmemchr.texi: Likewise.
34224         * doc/posix-functions/wmemcmp.texi: Likewise.
34225         * doc/posix-functions/wmemcpy.texi: Likewise.
34226         * doc/posix-functions/wmemmove.texi: Likewise.
34227         * doc/posix-functions/wmemset.texi: Likewise.
34228         * doc/posix-functions/wprintf.texi: Likewise.
34229         * doc/posix-functions/wscanf.texi: Likewise.
34230
34231 2008-12-21  Bruno Haible  <bruno@clisp.org>
34232
34233         Work around a portability problem.
34234         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
34235         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
34236
34237 2008-12-20  Bruno Haible  <bruno@clisp.org>
34238
34239         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
34240         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
34241         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
34242         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
34243         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
34244
34245         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
34246         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
34247         set.
34248         (GNULIB_defined_mbstate_t): New macro.
34249         (mbsinit): Redefine if REPLACE_MBSINIT is set.
34250         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
34251         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
34252         reuses the system's mbrtowc function but works around the bugs.
34253         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
34254         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
34255         macros.
34256         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
34257         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
34258         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
34259         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
34260         REPLACE_MBSINIT if mbsinit needs to be overridden.
34261         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
34262         REPLACE_MBSINIT, REPLACE_MBRTOWC.
34263         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
34264         REPLACE_MBSINIT, REPLACE_MBRTOWC.
34265         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
34266         m4/locale-zh.m4.
34267         (Depends): Add mbsinit.
34268         * modules/mbsinit (Depends): Add mbrtowc.
34269         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
34270
34271 2008-12-20  Bruno Haible  <bruno@clisp.org>
34272
34273         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
34274         so that there are no conversion errors on AIX.
34275         * tests/test-mbsrtowcs.c (main): LIkewise.
34276
34277 2008-12-20  Bruno Haible  <bruno@clisp.org>
34278
34279         Work around wctob bug on Solaris <= 9.
34280         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
34281         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
34282         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
34283         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
34284         * modules/wctob (Files): Add m4/locale-fr.m4.
34285         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
34286
34287 2008-12-20  Bruno Haible  <bruno@clisp.org>
34288
34289         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
34290         /dev/null.
34291         * tests/test-select-in.sh: Likewise.
34292         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
34293
34294 2008-12-20  Bruno Haible  <bruno@clisp.org>
34295
34296         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
34297         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
34298         Cygwin 1.5.x.
34299
34300 2008-12-20  Bruno Haible  <bruno@clisp.org>
34301
34302         Ensure mbstate_t is defined on HP-UX 11.11.
34303         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
34304         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
34305         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
34306         AC_USE_SYSTEM_EXTENSIONS.
34307         * modules/fnmatch (Depends-on): Add extensions.
34308         * modules/mbrlen (Depends-on): Likewise.
34309         * modules/mbrtowc (Depends-on): Likewise.
34310         * modules/mbsinit (Depends-on): Likewise.
34311         * modules/mbsrtowcs (Depends-on): Likewise.
34312         * modules/mbswidth (Depends-on): Likewise.
34313         * modules/quotearg (Depends-on): Likewise.
34314         * modules/strftime (Depends-on): Likewise.
34315
34316 2008-12-20  Bruno Haible  <bruno@clisp.org>
34317
34318         Ensure wctob is declared on IRIX 6.5.
34319         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
34320         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
34321         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
34322         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
34323         of HAVE_WCTOB.
34324         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
34325         HAVE_WCTOB.
34326         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
34327
34328 2008-12-19  Bruno Haible  <bruno@clisp.org>
34329
34330         * modules/mbsrtowcs-tests: New file.
34331         * tests/test-mbsrtowcs1.sh: New file.
34332         * tests/test-mbsrtowcs2.sh: New file.
34333         * tests/test-mbsrtowcs3.sh: New file.
34334         * tests/test-mbsrtowcs4.sh: New file.
34335         * tests/test-mbsrtowcs.c: New file.
34336
34337         New module 'mbsrtowcs'.
34338         * lib/wchar.in.h (mbsrtowcs): New declaration.
34339         * lib/mbsrtowcs.c: New file.
34340         * m4/mbsrtowcs.m4: New file.
34341         * modules/mbsrtowcs: New file.
34342         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
34343         HAVE_MBSRTOWCS.
34344         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
34345         HAVE_MBSRTOWCS.
34346         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
34347
34348 2008-12-19  Bruno Haible  <bruno@clisp.org>
34349
34350         New module 'mbrlen'.
34351         * lib/wchar.in.h (mbrlen): New declaration.
34352         * lib/mbrlen.c: New file.
34353         * m4/mbrlen.m4: New file.
34354         * modules/mbrlen: New file.
34355         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
34356         HAVE_MBRLEN.
34357         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
34358         HAVE_MBRLEN.
34359         * doc/posix-functions/mbrlen.texi: Document the new module.
34360
34361 2008-12-19  Bruno Haible  <bruno@clisp.org>
34362
34363         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
34364         * modules/mbrtowc (Depends-on): Add verify.
34365         Suggested by Paul Eggert.
34366
34367 2008-12-18  Bruno Haible  <bruno@clisp.org>
34368
34369         * modules/mbsinit-tests: New file.
34370         * tests/test-mbsinit.sh: New file.
34371         * tests/test-mbsinit.c: New file.
34372
34373 2008-12-18  Bruno Haible  <bruno@clisp.org>
34374
34375         * modules/mbrtowc-tests: New file.
34376         * tests/test-mbrtowc1.sh: New file.
34377         * tests/test-mbrtowc2.sh: New file.
34378         * tests/test-mbrtowc3.sh: New file.
34379         * tests/test-mbrtowc4.sh: New file.
34380         * tests/test-mbrtowc.c: New file.
34381
34382         New module 'mbrtowc'.
34383         * lib/wchar.in.h (mbstate_t): Override when the system does not have
34384         mbsinit and mbrtowc.
34385         (mbrtowc): New declaration.
34386         * lib/mbrtowc.c: New file.
34387         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
34388         * modules/mbrtowc: New file.
34389         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
34390         HAVE_MBRTOWC.
34391         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
34392         HAVE_MBRTOWC.
34393         * doc/posix-functions/mbrtowc.texi: Document the new module.
34394
34395 2008-12-18  Bruno Haible  <bruno@clisp.org>
34396
34397         New module 'wctob'.
34398         * lib/wchar.in.h (wctob): New declaration.
34399         * lib/wctob.c: New file.
34400         * m4/wctob.m4: New file.
34401         * modules/wctob: New file.
34402         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
34403         HAVE_WCTOB.
34404         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
34405         * doc/posix-functions/wctob.texi: Document the new module.
34406
34407 2008-12-18  Bruno Haible  <bruno@clisp.org>
34408
34409         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
34410         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
34411
34412 2008-12-18  Simon Josefsson  <simon@josefsson.org>
34413
34414         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
34415         G. Christensen" <tgc@jupiterrise.com>.
34416
34417         * lib/flock.c: Need to include errno.h.  Reported by "Tom
34418         G. Christensen" <tgc@jupiterrise.com>.
34419
34420         * lib/flock.c: Need to include string.h.  Reported by "Tom
34421         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
34422         <ebb9@byu.net>.
34423
34424 2008-12-18  Bruno Haible  <bruno@clisp.org>
34425
34426         * m4/locale-ja.m4: New file, from GNU gettext.
34427
34428 2008-12-17  Bruno Haible  <bruno@clisp.org>
34429
34430         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
34431         Suggested by Eric Blake.
34432
34433 2008-12-17  Bruno Haible  <bruno@clisp.org>
34434
34435         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
34436
34437 2008-12-17  Bruno Haible  <bruno@clisp.org>
34438
34439         * lib/mbsinit.c: Include verify.h. Verify an assumption.
34440         * modules/mbsinit (Depends-on): Add verify.
34441         Suggested by Paul Eggert.
34442
34443 2008-12-17  Bruno Haible  <bruno@clisp.org>
34444
34445         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
34446         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
34447         gl_FUNC_MBRTOWC.
34448         * m4/mbiter.m4 (gl_MBITER): LIkewise.
34449         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
34450         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
34451         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
34452         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
34453         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
34454         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
34455         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
34456         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
34457         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
34458         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
34459         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
34460         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
34461         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
34462         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
34463         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
34464         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
34465         * modules/trim (configure.ac): Likewise.
34466
34467 2008-12-17  Bruno Haible  <bruno@clisp.org>
34468
34469         * modules/btowc-tests: New file.
34470         * tests/test-btowc1.sh: New file.
34471         * tests/test-btowc2.sh: New file.
34472         * tests/test-btowc.c: New file.
34473
34474         New module 'btowc'.
34475         * lib/wchar.in.h (btowc): New declaration.
34476         * lib/btowc.c: New file.
34477         * m4/btowc.m4: New file.
34478         * modules/btowc: New file.
34479         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
34480         HAVE_BTOWC.
34481         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
34482         * doc/posix-functions/btowc.texi: Document the new module.
34483
34484 2008-12-17  Bruno Haible  <bruno@clisp.org>
34485
34486         New module 'mbsinit'.
34487         * lib/wchar.in.h (mbsinit): New declaration.
34488         * lib/mbsinit.c: New file.
34489         * m4/mbsinit.m4: New file.
34490         * modules/mbsinit: New file.
34491         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
34492         HAVE_MBSINIT.
34493         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
34494         HAVE_MBSINIT.
34495         * doc/posix-functions/mbsinit.texi: Document the new module.
34496
34497 2008-12-16  Bruno Haible  <bruno@clisp.org>
34498
34499         * lib/unistd.in.h: Add comment.
34500         * tests/test-environ.c: Don't include <stdlib.h>.
34501
34502 2008-12-16  Bruno Haible  <bruno@clisp.org>
34503
34504         * lib/parse-duration.h (parse_duration): Document return value
34505         convention.
34506         * lib/parse-duration.c: Include specification header first. Add
34507         comments.
34508         (_): Remove macro.
34509         (parse_year_month_day, parse_hour_minute_second): Move side effects
34510         outside of strchr call.
34511         (parse_non_iso8601): Move side effects outside of isspace call.
34512         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
34513         call.
34514
34515 2008-12-16  Bruno Haible  <bruno@clisp.org>
34516
34517         * tests/test-parse-duration.sh: Produce no output when the test
34518         succeeds.
34519
34520 2008-12-16  Bruno Haible  <bruno@clisp.org>
34521
34522         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
34523         expressions.
34524
34525 2008-12-15  Bruno Haible  <bruno@clisp.org>
34526
34527         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
34528         * doc/glibc-functions/flistxattr.texi: Likewise.
34529         * doc/glibc-functions/fopencookie.texi: Likewise.
34530         * doc/glibc-functions/fremovexattr.texi: Likewise.
34531         * doc/glibc-functions/fsetxattr.texi: Likewise.
34532         * doc/glibc-functions/getxattr.texi: Likewise.
34533         * doc/glibc-functions/lgetxattr.texi: Likewise.
34534         * doc/glibc-functions/listxattr.texi: Likewise.
34535         * doc/glibc-functions/llistxattr.texi: Likewise.
34536         * doc/glibc-functions/lremovexattr.texi: Likewise.
34537         * doc/glibc-functions/lsetxattr.texi: Likewise.
34538         * doc/glibc-functions/removexattr.texi: Likewise.
34539         * doc/glibc-functions/setxattr.texi: Likewise.
34540         * doc/posix-functions/open_memstream.texi: Likewise.
34541
34542 2008-12-15  Eric Blake  <ebb9@byu.net>
34543
34544         Update doc for cygwin 1.7.
34545         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
34546         functions.
34547         * doc/posix-functions/fchmodat.texi: Likewise.
34548         * doc/posix-functions/fchownat.texi: Likewise.
34549         * doc/posix-functions/fdopendir.texi: Likewise.
34550         * doc/posix-functions/fmemopen.texi: Likewise.
34551         * doc/posix-functions/freeaddrinfo.texi: Likewise.
34552         * doc/posix-functions/fstatat.texi: Likewise.
34553         * doc/posix-functions/futimens.texi: Likewise.
34554         * doc/posix-functions/gai_strerror.texi: Likewise.
34555         * doc/posix-functions/getaddrinfo.texi: Likewise.
34556         * doc/posix-functions/getnameinfo.texi: Likewise.
34557         * doc/posix-functions/if_freenameindex.texi: Likewise.
34558         * doc/posix-functions/if_indextoname.texi: Likewise.
34559         * doc/posix-functions/if_nameindex.texi: Likewise.
34560         * doc/posix-functions/if_nametoindex.texi: Likewise.
34561         * doc/posix-functions/insque.texi: Likewise.
34562         * doc/posix-functions/linkat.texi: Likewise.
34563         * doc/posix-functions/llrint.texi: Likewise.
34564         * doc/posix-functions/llrintf.texi: Likewise.
34565         * doc/posix-functions/llrintl.texi: Likewise.
34566         * doc/posix-functions/lockf.texi: Likewise.
34567         * doc/posix-functions/lrintl.texi: Likewise.
34568         * doc/posix-functions/mkdirat.texi: Likewise.
34569         * doc/posix-functions/mkfifoat.texi: Likewise.
34570         * doc/posix-functions/mknodat.texi: Likewise.
34571         * doc/posix-functions/mq_close.texi: Likewise.
34572         * doc/posix-functions/mq_getattr.texi: Likewise.
34573         * doc/posix-functions/mq_notify.texi: Likewise.
34574         * doc/posix-functions/mq_open.texi: Likewise.
34575         * doc/posix-functions/mq_receive.texi: Likewise.
34576         * doc/posix-functions/mq_send.texi: Likewise.
34577         * doc/posix-functions/mq_setattr.texi: Likewise.
34578         * doc/posix-functions/mq_timedreceive.texi: Likewise.
34579         * doc/posix-functions/mq_timedsend.texi: Likewise.
34580         * doc/posix-functions/mq_unlink.texi: Likewise.
34581         * doc/posix-functions/open_memstream.texi: Likewise.
34582         * doc/posix-functions/openat.texi: Likewise.
34583         * doc/posix-functions/posix_fadvise.texi: Likewise.
34584         * doc/posix-functions/posix_fallocate.texi: Likewise.
34585         * doc/posix-functions/posix_madvise.texi: Likewise.
34586         * doc/posix-functions/posix_memalign.texi: Likewise.
34587         * doc/posix-functions/posix_openpt.texi: Likewise.
34588         * doc/posix-functions/readlinkat.texi: Likewise.
34589         * doc/posix-functions/remque.texi: Likewise.
34590         * doc/posix-functions/renameat.texi: Likewise.
34591         * doc/posix-functions/rintl.texi: Likewise.
34592         * doc/posix-functions/sem_unlink.texi: Likewise.
34593         * doc/posix-functions/shm_open.texi: Likewise.
34594         * doc/posix-functions/shm_unlink.texi: Likewise.
34595         * doc/posix-functions/signgam.texi: Likewise.
34596         * doc/posix-functions/sigset.texi: Likewise.
34597         * doc/posix-functions/stpcpy.texi: Likewise.
34598         * doc/posix-functions/stpncpy.texi: Likewise.
34599         * doc/posix-functions/strerror.texi: Likewise.
34600         * doc/posix-functions/strtod.texi: Likewise.
34601         * doc/posix-functions/symlinkat.texi: Likewise.
34602         * doc/posix-functions/unlinkat.texi: Likewise.
34603         * doc/posix-functions/utimensat.texi: Likewise.
34604         * doc/glibc-functions/bindresvport.texi: Likewise.
34605         * doc/glibc-functions/dn_expand.texi: Likewise.
34606         * doc/glibc-functions/exp10.texi: Likewise.
34607         * doc/glibc-functions/exp10f.texi: Likewise.
34608         * doc/glibc-functions/fgetxattr.texi: Likewise.
34609         * doc/glibc-functions/flistxattr.texi: Likewise.
34610         * doc/glibc-functions/fopencookie.texi: Likewise.
34611         * doc/glibc-functions/freeifaddrs.texi: Likewise.
34612         * doc/glibc-functions/fremovexattr.texi: Likewise.
34613         * doc/glibc-functions/fsetxattr.texi: Likewise.
34614         * doc/glibc-functions/getifaddrs.texi: Likewise.
34615         * doc/glibc-functions/getxattr.texi: Likewise.
34616         * doc/glibc-functions/lgetxattr.texi: Likewise.
34617         * doc/glibc-functions/listxattr.texi: Likewise.
34618         * doc/glibc-functions/llistxattr.texi: Likewise.
34619         * doc/glibc-functions/lremovexattr.texi: Likewise.
34620         * doc/glibc-functions/lsetxattr.texi: Likewise.
34621         * doc/glibc-functions/pow10.texi: Likewise.
34622         * doc/glibc-functions/pow10f.texi: Likewise.
34623         * doc/glibc-functions/rcmd_af.texi: Likewise.
34624         * doc/glibc-functions/removexattr.texi: Likewise.
34625         * doc/glibc-functions/res_init.texi: Likewise.
34626         * doc/glibc-functions/res_mkquery.texi: Likewise.
34627         * doc/glibc-functions/res_query.texi: Likewise.
34628         * doc/glibc-functions/res_querydomain.texi: Likewise.
34629         * doc/glibc-functions/res_send.texi: Likewise.
34630         * doc/glibc-functions/rresvport_af.texi: Likewise.
34631         * doc/glibc-functions/setxattr.texi: Likewise.
34632         * doc/glibc-functions/strcasestr.texi: Likewise.
34633
34634 2008-12-15  Bruno Haible  <bruno@clisp.org>
34635
34636         Fix compilation error on OSF/1 4.0.
34637         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
34638         <sys/time.h>, simply delegate to the system header.
34639         Reported by Daniel Richard G. <oss@teragram.com>.
34640
34641 2008-12-15  Bruno Haible  <bruno@clisp.org>
34642
34643         * doc/posix-functions/openat.texi: Mention the 'openat' module.
34644         * doc/posix-functions/fchmodat.texi: Likewise.
34645         * doc/posix-functions/fchownat.texi: Likewise.
34646         * doc/posix-functions/fdopendir.texi: Likewise.
34647         * doc/posix-functions/fstatat.texi: Likewise.
34648         * doc/posix-functions/mkdirat.texi: Likewise.
34649         * doc/posix-functions/unlinkat.texi: Likewise.
34650
34651 2008-12-14  Bruno Haible  <bruno@clisp.org>
34652
34653         Update doc for POSIX:2008.
34654         * doc/posix-functions/faccessat.texi: New file.
34655         * doc/posix-functions/fchmodat.texi: New file.
34656         * doc/posix-functions/fchownat.texi: New file.
34657         * doc/posix-functions/fdopendir.texi: New file.
34658         * doc/posix-functions/fstatat.texi: New file.
34659         * doc/posix-functions/futimens.texi: New file.
34660         * doc/posix-functions/linkat.texi: New file.
34661         * doc/posix-functions/mkdirat.texi: New file.
34662         * doc/posix-functions/mkfifoat.texi: New file.
34663         * doc/posix-functions/mknodat.texi: New file.
34664         * doc/posix-functions/open_wmemstream.texi: New file.
34665         * doc/posix-functions/openat.texi: New file.
34666         * doc/posix-functions/psiginfo.texi: New file.
34667         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
34668         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
34669         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
34670         * doc/posix-functions/readlinkat.texi: New file.
34671         * doc/posix-functions/renameat.texi: New file.
34672         * doc/posix-functions/strerror_l.texi: New file.
34673         * doc/posix-functions/symlinkat.texi: New file.
34674         * doc/posix-functions/unlinkat.texi: New file.
34675         * doc/posix-functions/utimensat.texi: New file.
34676         * doc/gnulib.texi (Function Substitutes): Add these subsections.
34677
34678 2008-12-14  Bruno Haible  <bruno@clisp.org>
34679
34680         Update doc for POSIX:2008.
34681         * doc/posix-functions/alphasort.texi: Renamed from
34682         doc/glibc-functions/alphasort.texi.
34683         * doc/posix-functions/dirfd.texi: Renamed from
34684         doc/glibc-functions/dirfd.texi.
34685         * doc/posix-functions/dprintf.texi: Renamed from
34686         doc/glibc-functions/dprintf.texi.
34687         * doc/posix-functions/duplocale.texi: Renamed from
34688         doc/glibc-functions/duplocale.texi.
34689         * doc/posix-functions/fexecve.texi: Renamed from
34690         doc/glibc-functions/fexecve.texi.
34691         * doc/posix-functions/fmemopen.texi: Renamed from
34692         doc/glibc-functions/fmemopen.texi.
34693         * doc/posix-functions/freelocale.texi: Renamed from
34694         doc/glibc-functions/freelocale.texi.
34695         * doc/posix-functions/getdate_err.texi: Renamed from
34696         doc/glibc-functions/getdate_err.texi.
34697         * doc/posix-functions/isalnum_l.texi: Renamed from
34698         doc/glibc-functions/isalnum_l.texi.
34699         * doc/posix-functions/isalpha_l.texi: Renamed from
34700         doc/glibc-functions/isalpha_l.texi.
34701         * doc/posix-functions/isblank_l.texi: Renamed from
34702         doc/glibc-functions/isblank_l.texi.
34703         * doc/posix-functions/iscntrl_l.texi: Renamed from
34704         doc/glibc-functions/iscntrl_l.texi.
34705         * doc/posix-functions/isdigit_l.texi: Renamed from
34706         doc/glibc-functions/isdigit_l.texi.
34707         * doc/posix-functions/isgraph_l.texi: Renamed from
34708         doc/glibc-functions/isgraph_l.texi.
34709         * doc/posix-functions/islower_l.texi: Renamed from
34710         doc/glibc-functions/islower_l.texi.
34711         * doc/posix-functions/isprint_l.texi: Renamed from
34712         doc/glibc-functions/isprint_l.texi.
34713         * doc/posix-functions/ispunct_l.texi: Renamed from
34714         doc/glibc-functions/ispunct_l.texi.
34715         * doc/posix-functions/isspace_l.texi: Renamed from
34716         doc/glibc-functions/isspace_l.texi.
34717         * doc/posix-functions/isupper_l.texi: Renamed from
34718         doc/glibc-functions/isupper_l.texi.
34719         * doc/posix-functions/iswalnum_l.texi: Renamed from
34720         doc/glibc-functions/iswalnum_l.texi.
34721         * doc/posix-functions/iswalpha_l.texi: Renamed from
34722         doc/glibc-functions/iswalpha_l.texi.
34723         * doc/posix-functions/iswblank_l.texi: Renamed from
34724         doc/glibc-functions/iswblank_l.texi.
34725         * doc/posix-functions/iswcntrl_l.texi: Renamed from
34726         doc/glibc-functions/iswcntrl_l.texi.
34727         * doc/posix-functions/iswctype_l.texi: Renamed from
34728         doc/glibc-functions/iswctype_l.texi.
34729         * doc/posix-functions/iswdigit_l.texi: Renamed from
34730         doc/glibc-functions/iswdigit_l.texi.
34731         * doc/posix-functions/iswgraph_l.texi: Renamed from
34732         doc/glibc-functions/iswgraph_l.texi.
34733         * doc/posix-functions/iswlower_l.texi: Renamed from
34734         doc/glibc-functions/iswlower_l.texi.
34735         * doc/posix-functions/iswprint_l.texi: Renamed from
34736         doc/glibc-functions/iswprint_l.texi.
34737         * doc/posix-functions/iswpunct_l.texi: Renamed from
34738         doc/glibc-functions/iswpunct_l.texi.
34739         * doc/posix-functions/iswspace_l.texi: Renamed from
34740         doc/glibc-functions/iswspace_l.texi.
34741         * doc/posix-functions/iswupper_l.texi: Renamed from
34742         doc/glibc-functions/iswupper_l.texi.
34743         * doc/posix-functions/iswxdigit_l.texi: Renamed from
34744         doc/glibc-functions/iswxdigit_l.texi.
34745         * doc/posix-functions/isxdigit_l.texi: Renamed from
34746         doc/glibc-functions/isxdigit_l.texi.
34747         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
34748         doc/glibc-functions/mbsnrtowcs.texi.
34749         * doc/posix-functions/mkdtemp.texi: Renamed from
34750         doc/glibc-functions/mkdtemp.texi.
34751         * doc/posix-functions/newlocale.texi: Renamed from
34752         doc/glibc-functions/newlocale.texi.
34753         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
34754         doc/glibc-functions/nl_langinfo_l.texi.
34755         * doc/posix-functions/open_memstream.texi: Renamed from
34756         doc/glibc-functions/open_memstream.texi.
34757         * doc/posix-functions/opterr.texi: Renamed from
34758         doc/glibc-functions/opterr.texi.
34759         * doc/posix-functions/optind.texi: Renamed from
34760         doc/glibc-functions/optind.texi.
34761         * doc/posix-functions/optopt.texi: Renamed from
34762         doc/glibc-functions/optopt.texi.
34763         * doc/posix-functions/psignal.texi: Renamed from
34764         doc/glibc-functions/psignal.texi.
34765         * doc/posix-functions/scandir.texi: Renamed from
34766         doc/glibc-functions/scandir.texi.
34767         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
34768         doc/glibc-functions/sched_get_priority_min.texi.
34769         * doc/posix-functions/signgam.texi: Renamed from
34770         doc/glibc-functions/signgam.texi.
34771         * doc/posix-functions/stpcpy.texi: Renamed from
34772         doc/glibc-functions/stpcpy.texi.
34773         * doc/posix-functions/stpncpy.texi: Renamed from
34774         doc/glibc-functions/stpncpy.texi.
34775         * doc/posix-functions/strcasecmp_l.texi: Renamed from
34776         doc/glibc-functions/strcasecmp_l.texi.
34777         * doc/posix-functions/strcoll_l.texi: Renamed from
34778         doc/glibc-functions/strcoll_l.texi.
34779         * doc/posix-functions/strfmon_l.texi: Renamed from
34780         doc/glibc-functions/strfmon_l.texi.
34781         * doc/posix-functions/strftime_l.texi: Renamed from
34782         doc/glibc-functions/strftime_l.texi.
34783         * doc/posix-functions/strncasecmp_l.texi: Renamed from
34784         doc/glibc-functions/strncasecmp_l.texi.
34785         * doc/posix-functions/strndup.texi: Renamed from
34786         doc/glibc-functions/strndup.texi.
34787         * doc/posix-functions/strnlen.texi: Renamed from
34788         doc/glibc-functions/strnlen.texi.
34789         * doc/posix-functions/strsignal.texi: Renamed from
34790         doc/glibc-functions/strsignal.texi.
34791         * doc/posix-functions/strxfrm_l.texi: Renamed from
34792         doc/glibc-functions/strxfrm_l.texi.
34793         * doc/posix-functions/timer_gettime.texi: Renamed from
34794         doc/glibc-functions/timer_gettime.texi.
34795         * doc/posix-functions/tolower_l.texi: Renamed from
34796         doc/glibc-functions/tolower_l.texi.
34797         * doc/posix-functions/toupper_l.texi: Renamed from
34798         doc/glibc-functions/toupper_l.texi.
34799         * doc/posix-functions/towctrans_l.texi: Renamed from
34800         doc/glibc-functions/towctrans_l.texi.
34801         * doc/posix-functions/towlower_l.texi: Renamed from
34802         doc/glibc-functions/towlower_l.texi.
34803         * doc/posix-functions/towupper_l.texi: Renamed from
34804         doc/glibc-functions/towupper_l.texi.
34805         * doc/posix-functions/uselocale.texi: Renamed from
34806         doc/glibc-functions/uselocale.texi.
34807         * doc/posix-functions/vdprintf.texi: Renamed from
34808         doc/glibc-functions/vdprintf.texi.
34809         * doc/posix-functions/wcpcpy.texi:
34810         Renamed from doc/glibc-functions/wcpcpy.texi.
34811         * doc/posix-functions/wcpncpy.texi: Renamed from
34812         doc/glibc-functions/wcpncpy.texi.
34813         * doc/posix-functions/wcscasecmp.texi: Renamed from
34814         doc/glibc-functions/wcscasecmp.texi.
34815         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
34816         doc/glibc-functions/wcscasecmp_l.texi.
34817         * doc/posix-functions/wcscoll_l.texi: Renamed from
34818         doc/glibc-functions/wcscoll_l.texi.
34819         * doc/posix-functions/wcsdup.texi: Renamed from
34820         doc/glibc-functions/wcsdup.texi.
34821         * doc/posix-functions/wcsncasecmp.texi: Renamed from
34822         doc/glibc-functions/wcsncasecmp.texi.
34823         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
34824         doc/glibc-functions/wcsncasecmp_l.texi.
34825         * doc/posix-functions/wcsnlen.texi: Renamed from
34826         doc/glibc-functions/wcsnlen.texi.
34827         * doc/posix-functions/wcsnrtombs.texi: Renamed from
34828         doc/glibc-functions/wcsnrtombs.texi.
34829         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
34830         doc/glibc-functions/wcsxfrm_l.texi.
34831         * doc/posix-functions/wctrans_l.texi: Renamed from
34832         doc/glibc-functions/wctrans_l.texi.
34833         * doc/posix-functions/wctype_l.texi: Renamed from
34834         doc/glibc-functions/wctype_l.texi.
34835         * doc/gnulib.texi (Function Substitutes): Add these subsections.
34836         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
34837         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
34838         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
34839         these subsections.
34840         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
34841         Remove sections.
34842
34843 2008-12-14  Bruno Haible  <bruno@clisp.org>
34844
34845         Update doc for POSIX:2008.
34846         * doc/posix-functions/*.texi: Update URL of POSIX specification.
34847
34848 2008-12-14  Bruno Haible  <bruno@clisp.org>
34849
34850         Update doc for POSIX:2008.
34851         * doc/pastposix-functions/bcmp.texi: Renamed from
34852         doc/posix-functions/bcmp.texi.
34853         * doc/pastposix-functions/bcopy.texi: Renamed from
34854         doc/posix-functions/bcopy.texi.
34855         * doc/pastposix-functions/bsd_signal.texi: Renamed from
34856         doc/posix-functions/bsd_signal.texi.
34857         * doc/pastposix-functions/bzero.texi: Renamed from
34858         doc/posix-functions/bzero.texi.
34859         * doc/pastposix-functions/ecvt.texi: Renamed from
34860         doc/posix-functions/ecvt.texi.
34861         * doc/pastposix-functions/fcvt.texi: Renamed from
34862         doc/posix-functions/fcvt.texi.
34863         * doc/pastposix-functions/ftime.texi: Renamed from
34864         doc/posix-functions/ftime.texi.
34865         * doc/pastposix-functions/gcvt.texi: Renamed from
34866         doc/posix-functions/gcvt.texi.
34867         * doc/pastposix-functions/getcontext.texi: Renamed from
34868         doc/posix-functions/getcontext.texi.
34869         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
34870         doc/posix-functions/gethostbyaddr.texi.
34871         * doc/pastposix-functions/gethostbyname.texi: Renamed from
34872         doc/posix-functions/gethostbyname.texi.
34873         * doc/pastposix-functions/getwd.texi: Renamed from
34874         doc/posix-functions/getwd.texi.
34875         * doc/pastposix-functions/h_errno.texi: Renamed from
34876         doc/posix-functions/h_errno.texi.
34877         * doc/pastposix-functions/index.texi: Renamed from
34878         doc/posix-functions/index.texi.
34879         * doc/pastposix-functions/makecontext.texi: Renamed from
34880         doc/posix-functions/makecontext.texi.
34881         * doc/pastposix-functions/mktemp.texi: Renamed from
34882         doc/posix-functions/mktemp.texi.
34883         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
34884         doc/posix-functions/pthread_attr_getstackaddr.texi.
34885         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
34886         doc/posix-functions/pthread_attr_setstackaddr.texi.
34887         * doc/pastposix-functions/rindex.texi: Renamed from
34888         doc/posix-functions/rindex.texi.
34889         * doc/pastposix-functions/scalb.texi: Renamed from
34890         doc/posix-functions/scalb.texi.
34891         * doc/pastposix-functions/setcontext.texi: Renamed from
34892         doc/posix-functions/setcontext.texi.
34893         * doc/pastposix-functions/swapcontext.texi: Renamed from
34894         doc/posix-functions/swapcontext.texi.
34895         * doc/pastposix-functions/ualarm.texi: Renamed from
34896         doc/posix-functions/ualarm.texi.
34897         * doc/pastposix-functions/usleep.texi: Renamed from
34898         doc/posix-functions/usleep.texi.
34899         * doc/pastposix-functions/vfork.texi: Renamed from
34900         doc/posix-functions/vfork.texi.
34901         * doc/pastposix-functions/wcswcs.texi: Renamed from
34902         doc/posix-functions/wcswcs.texi.
34903         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
34904         (Function Substitutes): Update.
34905
34906 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34907
34908         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
34909         m4/strerror.m4.
34910
34911 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34912             Bruno Haible  <bruno@clisp.org>
34913
34914         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
34915
34916 2008-12-13  Bruno Haible  <bruno@clisp.org>
34917
34918         * modules/strtoull (Depends-on): Remove unistd.
34919
34920 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34921
34922         * modules/strtoull (Depends-on): Add stdlib.
34923
34924 2008-12-11  Simon Josefsson  <simon@josefsson.org>
34925
34926         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
34927
34928 2008-12-10  Jim Meyering  <meyering@redhat.com>
34929
34930         gl_ASSERT: don't say assertions are disabled when they're not
34931         * m4/assert.m4 (gl_ASSERT): Do not make configure report
34932         "checking whether to enable assertions... no", when they are in
34933         fact enabled.  This is solely a bug in the output of configure.
34934         In spite of saying "no", NDEBUG was not defined in that case.
34935         Also, as noted by Eric Blake, leave assertions enabled upon
34936         --enable-assert=INVALID.
34937
34938 2008-12-10  Bruno Haible  <bruno@clisp.org>
34939
34940         Change MODULES.html to refer to POSIX:2008 where possible.
34941         * MODULES.html.sh (POSIX2008_URL): New variable.
34942         (posix_headers): Remove sys/timeb, ucontext.
34943         (posix2001_headers): New variable.
34944         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
34945         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
34946         index, makecontext, mktemp, pthread_attr_getstackaddr,
34947         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
34948         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
34949         (posix2001_functions): New variable.
34950         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
34951         otherwise.
34952
34953 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34954
34955         add missing include to parse-duration.c
34956         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
34957         * modules/parse-duration (Depends-on): Add xalloc.
34958
34959         fix sed script reading maint.mk
34960         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
34961         (syntax-check-rules): Use it.
34962
34963 2008-12-09  Bruno Haible  <bruno@clisp.org>
34964
34965         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
34966         MacOS X 10.4/PowerPC.
34967         Reported by Simon Josefsson.
34968
34969 2008-12-08  Jim Meyering  <meyering@redhat.com>
34970
34971         work around mingw's lack of some S_IF definitions
34972         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
34973         Reported by Simon Josefsson.
34974
34975 2008-12-08  Bruno Haible  <bruno@clisp.org>
34976
34977         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
34978         applied to variables. Needed on MacOS X 10.4/PowerPC.
34979         Reported by Simon Josefsson.
34980
34981 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
34982         and Eric Blake  <ebb9@byu.net>
34983
34984         assert: honor --enable-assert
34985         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
34986         order to honor --enable-assert, rather than treating it as a
34987         synonym for --disable-assert.
34988
34989 2008-12-08  Jim Meyering  <meyering@redhat.com>
34990
34991         * lib/posixtm.c: Remove now-useless declaration of mktime.
34992
34993         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
34994
34995 2008-12-07  Bruno Haible  <bruno@clisp.org>
34996
34997         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
34998         test_once): Mark functions as static.
34999         * tests/test-tls.c (test_tls): Likewise.
35000
35001 2008-12-07  Bruno Haible  <bruno@clisp.org>
35002
35003         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
35004         iconv_register_autodetect.
35005
35006 2008-12-07  Jim Meyering  <meyering@redhat.com>
35007
35008         posixtm.c: avoid a warning
35009         * lib/posixtm.c (posixtime): Don't initialize tm0.
35010         It's no longer needed to placate gcc4's -Wuninitialized,
35011         and the attempt to placate would elicit a new warning.
35012
35013         unicodeio.c: mark unused parameters
35014         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
35015         (fallback_failure_callback): Likewise.
35016
35017 2008-12-07  Bruno Haible  <bruno@clisp.org>
35018
35019         * gnulib-tool (func_create_testdir): When building the tests
35020         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
35021         Reported by Simon Josefsson.
35022
35023 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35024
35025         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
35026
35027 2008-12-06  Bruno Haible  <bruno@clisp.org>
35028
35029         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
35030         Suggested by Eric Blake.
35031
35032 2008-12-06  Bruno Haible  <bruno@clisp.org>
35033
35034         Fix a c-stack test failure on MacOS X.
35035         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
35036         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
35037         handler for SIGBUS as well.
35038         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
35039         install a signal handler for SIGBUS as well.
35040         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
35041
35042 2008-12-06  Bruno Haible  <bruno@clisp.org>
35043
35044         Advocacy documentation.
35045         * doc/gnulib-intro.texi (Benefits): New section.
35046         * doc/gnulib.texi: Update.
35047
35048 2008-12-06  Bruno Haible  <bruno@clisp.org>
35049
35050         Document the 'manywarnings' module.
35051         * doc/manywarnings.texi: New file.
35052         * doc/gnulib.texi: Include it.
35053
35054 2008-12-05  Eric Blake  <ebb9@byu.net>
35055
35056         tests: silence some gcc warnings
35057         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
35058         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
35059         type mismatches.
35060
35061 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35062             Bruno Haible  <bruno@clisp.org>
35063
35064         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
35065
35066 2008-11-29  Jim Meyering  <meyering@redhat.com>
35067
35068         unicodeio.c: mark unused parameters
35069         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
35070         (fallback_failure_callback): Likewise.
35071
35072         fts: fix a thinko
35073         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
35074         (set_stat_type): Return S_IF*-valued "type" directly.
35075         Prompted by James Youngman's spotting a related bug.
35076         Confirmed by further testing through find.
35077
35078         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
35079         * lib/fts.c (D_TYPE): Define.
35080         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
35081         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
35082         (s_ifmt_shift_bits): New function.
35083         (set_stat_type): New function.
35084         (fts_build): When not calling fts_stat, call set_stat_type
35085         to propagate dirent.d_type info to fts_read caller.
35086         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
35087         fts_statp->st_mode type information may be valid.
35088
35089 2008-11-28  Simon Josefsson  <simon@josefsson.org>
35090
35091         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
35092         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
35093         <sds@gnu.org>.
35094
35095 2008-11-20  Bruno Haible  <bruno@clisp.org>
35096
35097         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
35098         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
35099         INCLUDE_NEXT.
35100         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
35101         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
35102         * modules/math (Makefile.am): Substitute
35103         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
35104         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
35105
35106 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
35107             Bruno Haible  <bruno@clisp.org>
35108
35109         * lib/stdint.in.h: Define all type macros so that their expansion is
35110         a single typedef'ed token. Fixes a compilation failure in Boost which
35111         does "using ::int8_t;".
35112
35113 2008-11-18  Simon Josefsson  <simon@josefsson.org>
35114
35115         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
35116         gl_MANYWARN_ALL_GCC.
35117         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
35118         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
35119         * modules/manywarnings: New file.
35120         * MODULES.html.sh: Mention manywarnings module.
35121
35122 2008-11-18  Bruno Haible  <bruno@clisp.org>
35123
35124         * doc/gnulib-tool.texi (Unit tests): New section.
35125
35126 2008-11-18  Simon Josefsson  <simon@josefsson.org>
35127
35128         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
35129         paths like 'lib/po/foo.po'.
35130
35131 2008-11-17  Simon Josefsson  <simon@josefsson.org>
35132
35133         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
35134         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
35135
35136 2008-11-17  Simon Josefsson  <simon@josefsson.org>
35137
35138         * m4/warnings.m4: Use CPPFLAGS to really check whether the
35139         parameter works.
35140
35141 2008-11-17  Simon Josefsson  <simon@josefsson.org>
35142
35143         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
35144
35145 2008-11-17  Bruce Korb  <bkorb@gnu.org>
35146
35147         * modules/parse-duration-tests: New file.
35148         * tests/test-parse-duration.sh: New file.
35149         * tests/test-parse-duration.c: New file.
35150
35151         New module 'parse-duration'.
35152         * lib/parse-duration.h: New file.
35153         * lib/parse-duration.c: New file.
35154         * modules/parse-duration: New file.
35155
35156 2008-11-17  Bruno Haible  <bruno@clisp.org>
35157
35158         * tests/test-select-out.sh: Comment out the first pipe test.
35159         Reported by Simon Josefsson.
35160
35161 2008-11-17  Bruno Haible  <bruno@clisp.org>
35162
35163         * modules/getaddrinfo (Depends-on): Add servent, hostent.
35164         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
35165         gl_HOSTENT.
35166
35167 2008-11-17  Bruno Haible  <bruno@clisp.org>
35168
35169         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
35170         -lnetwork and -lnet. Needed for Haiku and BeOS.
35171
35172 2008-11-16  Bruno Haible  <bruno@clisp.org>
35173
35174         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
35175
35176 2008-11-16  Bruno Haible  <bruno@clisp.org>
35177
35178         Avoid test failure on Haiku.
35179         * tests/test-fsync.c: Include <errno.h>.
35180         (main): Don't require that fsync (0) fails.
35181
35182 2008-11-15  Bruno Haible  <bruno@clisp.org>
35183
35184         New module 'hostent'.
35185         * modules/hostent: New file.
35186         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
35187
35188 2008-11-15  Bruno Haible  <bruno@clisp.org>
35189
35190         New module 'servent'.
35191         * modules/servent: New file.
35192         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
35193
35194 2008-11-15  Bruno Haible  <bruno@clisp.org>
35195
35196         Avoid generating same test program with two different rules.
35197         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
35198         test-frexp to test-frexp-nolibm.
35199         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
35200         test-frexpl to test-frexpl-nolibm.
35201
35202 2008-11-15  Bruno Haible  <bruno@clisp.org>
35203
35204         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
35205         $(FREXPL_LIBM).
35206
35207 2008-11-15  Bruno Haible  <bruno@clisp.org>
35208
35209         * lib/netdb.in.h: Activate the definitions also when the system's
35210         <netdb.h> has 'struct addrinfo'.
35211         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
35212         EAI_OVERFLOW or AI_NUMERICSERV.
35213         * doc/posix-headers/netdb.texi: Document the problem.
35214
35215 2008-11-15  Bruno Haible  <bruno@clisp.org>
35216
35217         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
35218
35219         Make the 'sched' module work on platforms where <sched.h> exists but
35220         is incomplete (such as Haiku).
35221         * lib/sched.in.h; Include the system's <sched.h> if it exists.
35222         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
35223         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
35224         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
35225         HAVE_STRUCT_SCHED_PARAM.
35226         * modules/sched (Depends-on): Add include_next.
35227         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
35228         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
35229         * doc/posix-headers/sched.texi: Document the issue.
35230
35231 2008-11-13  Jim Meyering  <meyering@redhat.com>
35232
35233         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
35234         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
35235         test would fail due to the difference in the Report bugs to ...
35236         line.  The expected address is empty, "<>", while the actual
35237         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
35238
35239 2008-11-12  Bruno Haible  <bruno@clisp.org>
35240
35241         lstat: don't compile lstat.c on systems lacking lstat
35242         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
35243         which don't have lstat; this is handled by lib/sys_stat.in.h already.
35244         Reported by Daniel P. Berrange via Jim Meyering.
35245
35246 2008-11-12  Jim Meyering  <meyering@redhat.com>
35247
35248         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
35249
35250 2008-11-12  Simon Josefsson  <simon@josefsson.org>
35251
35252         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
35253         instead.
35254
35255 2008-11-12  Bruno Haible  <bruno@clisp.org>
35256
35257         * lib/unicodeio.c: Include unistr.h.
35258         (utf8_wctomb): Remove function.
35259         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
35260
35261 2008-11-12  Simon Josefsson  <simon@josefsson.org>
35262
35263         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
35264         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
35265         <bruno@clisp.org>.
35266         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
35267
35268 2008-11-12  Simon Josefsson  <simon@josefsson.org>
35269
35270         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
35271         * doc/gnulib.texi: Add section for warnings.
35272
35273 2008-11-11  Bruno Haible  <bruno@clisp.org>
35274
35275         * lib/sockets.h: Add a comment.
35276
35277 2008-11-11  Karl Berry  <karl@gnu.org>
35278
35279         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
35280
35281 2008-11-11  Eric Blake  <ebb9@byu.net>
35282
35283         fdl.texi: avoid git symlinks
35284         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
35285
35286 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
35287
35288         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
35289
35290 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
35291
35292         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
35293         (gl_WARN_ADD): Substitute $2 if literal.
35294
35295 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
35296
35297         * m4/warning.m4: Remove.
35298
35299 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
35300
35301         * m4/warnings.m4: Almost complete rewrite. :-)
35302
35303 2008-11-10  Simon Josefsson  <simon@josefsson.org>
35304
35305         * modules/warnings: New module.
35306         * m4/warnings.m4: New file.
35307         * MODULES.html.sh: Mention warnings module.
35308         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
35309         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
35310
35311 2008-11-10  Eric Blake  <ebb9@byu.net>
35312
35313         fdl.texi: make a symlink to the latest version
35314         * doc/standards.texi: Revert today's earlier change.
35315         * doc/fdl-1.2.texi: Rename from old fdl.texi...
35316         * doc/fdl.texi: ...and replace this with a symlink to the newer
35317         fdl-1.3.texi.
35318
35319 2008-11-10  Bruno Haible  <bruno@clisp.org>
35320
35321         * tests/test-select-fd.c (main): Accept the result file name as fourth
35322         argument.
35323         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
35324         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
35325
35326 2008-11-10  Bruno Haible  <bruno@clisp.org>
35327
35328         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
35329         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
35330         as autoconf-substituted macros.
35331         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
35332         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
35333         gl_NETDB_H_DEFAULTS. Set these variables.
35334         * modules/netdb (Makefile.am): Substitute these variables.
35335
35336 2008-11-10  Eric Blake  <ebb9@byu.net>
35337
35338         standards.texi: include correct file for FDL 1.3
35339         * doc/standards.texi (GNU Free Documentation License): Change
35340         include file to pull in FDL 1.3, not 1.2.
35341
35342         fdl.texi: revert accidental change to license
35343         * doc/fdl.texi: This is FDL 1.2, not 1.3.
35344
35345 2008-11-10  Bruno Haible  <bruno@clisp.org>
35346
35347         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
35348         cross-compiling guesses also when the native compile gives no result.
35349
35350 2008-11-10  Bruno Haible  <bruno@clisp.org>
35351
35352         * lib/spawni.c (__spawni): Force variable into the stack.
35353
35354 2008-11-10  Bruno Haible  <bruno@clisp.org>
35355
35356         Add support for Haiku.
35357         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
35358         glibc and BeOS, but also on Haiku.
35359         * lib/fpurge.c (fpurge): Likewise.
35360         * lib/freadable.c (freadable): Likewise.
35361         * lib/freadahead.c (freadahead): Likewise.
35362         * lib/freading.c (freading): Likewise.
35363         * lib/freadptr.c (freadptr): Likewise.
35364         * lib/freadseek.c (freadptrinc): Likewise.
35365         * lib/fseeko.c (rpl_fseeko): Likewise.
35366         * lib/fseterr.c (fseterr): Likewise.
35367         * lib/fwritable.c (fwritable): Likewise.
35368         * lib/fwriting.c (fwriting): Likewise.
35369         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
35370
35371 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
35372
35373         * lib/config.charset: Treat Haiku like BeOS.
35374
35375 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
35376
35377         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
35378         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
35379
35380 2008-11-08  Bruno Haible  <bruno@clisp.org>
35381
35382         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
35383         AC_CACHE_CHECK.
35384
35385 2008-11-08  Bruno Haible  <bruno@clisp.org>
35386
35387         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
35388
35389 2008-11-08  Bruno Haible  <bruno@clisp.org>
35390
35391         * tests/test-select-fd.c: New file.
35392         * tests/test-select-in.sh: New file.
35393         * tests/test-select-out.sh: New file.
35394         * tests/test-select-stdin.c: New file.
35395         * modules/select-tests (Files): Add the new files.
35396         (Depends-on): Add gettimeofday.
35397         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
35398         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
35399         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
35400
35401 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
35402             Bruno Haible  <bruno@clisp.org>
35403
35404         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
35405
35406 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
35407
35408         * build-aux/pmccabe2html: Added support for C++ source files.
35409
35410 2008-11-05  Ben Pfaff  <blp@gnu.org>
35411
35412         Fix lib/close.c build on Windows.
35413         * modules/close (Files): Add lib/w32sock.h.
35414
35415 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
35416
35417         Accept Bison's NEWS format.
35418         * build-aux/announce-gen (print_news_deltas): Tweak
35419         $re_prefix.
35420
35421 2008-11-04  Bruno Haible  <bruno@clisp.org>
35422
35423         * modules/random_r (Maintainer): Add glibc.
35424
35425 2008-11-04  Simon Josefsson  <simon@josefsson.org>
35426
35427         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
35428         by karl@freefriends.org (Karl Berry).
35429         * doc/alloca.texi: Likewise.
35430         * doc/c-ctype.texi: Likewise.
35431         * doc/c-strcase.texi: Likewise.
35432         * doc/c-strcaseeq.texi: Likewise.
35433         * doc/c-strcasestr.texi: Likewise.
35434         * doc/c-strstr.texi: Likewise.
35435         * doc/c-strtod.texi: Likewise.
35436         * doc/c-strtold.texi: Likewise.
35437         * doc/ctime.texi: Likewise.
35438         * doc/error.texi: Likewise.
35439         * doc/fdl.texi: Likewise.
35440         * doc/gcd.texi: Likewise.
35441         * doc/getdate.texi: Likewise.
35442         * doc/gnulib-intro.texi: Likewise.
35443         * doc/gnulib-tool.texi: Likewise.
35444         * doc/gnulib.texi: Likewise.
35445         * doc/inet_ntoa.texi: Likewise.
35446         * doc/maintain.texi: Likewise.
35447         * doc/make-stds.texi: Likewise.
35448         * doc/quote.texi: Likewise.
35449         * doc/regexprops-generic.texi: Likewise.
35450         * doc/standards.texi: Likewise.
35451         * doc/verify.texi: Likewise.
35452         * doc/visibility.texi: Likewise.
35453         * doc/gnulib.texi (GNU Free Documentation License): Include
35454         fdl-1.3.texi instead of fdl.texi.
35455
35456 2008-11-04  Simon Josefsson  <simon@josefsson.org>
35457
35458         * doc/fdl-1.3.texi: New file, from
35459         <http://www.gnu.org/licenses/fdl-1.3.texi>.
35460         * modules/fdl-1.3: Add.
35461         * MODULES.html.sh: Add fdl-1.3.
35462
35463 2008-11-03  Bruno Haible  <bruno@clisp.org>
35464
35465         Make determination of absolute name of header file work with AIX xlc.
35466         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
35467         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
35468         preprocessing.
35469         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
35470         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
35471
35472 2008-11-03  Simon Josefsson  <simon@josefsson.org>
35473
35474         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
35475         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
35476         <ludo@gnu.org>.
35477
35478 2008-11-02  Bruno Haible  <bruno@clisp.org>
35479
35480         Mark 'strpbrk' obsolete.
35481         * modules/strpbrk (Status, Notice): New sections.
35482         * modules/strtok_r (Depends-on): Add strpbrk.
35483
35484 2008-11-02  Bruno Haible  <bruno@clisp.org>
35485
35486         Mark 'strdup' obsolete.
35487         * modules/strdup (Status, Notice): New sections.
35488         * modules/findprog (Depends-on): Add strdup.
35489         * modules/getaddrinfo (Depends-on): Likewise.
35490         * modules/localename (Depends-on): Likewise.
35491         * modules/relocatable-lib (Depends-on): Likewise.
35492         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
35493         * modules/relocatable-prog (Depends-on): Likewise.
35494         * modules/trim (Depends-on): Likewise.
35495         * modules/unictype/gen-ctype (Depends-on): Likewise.
35496         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
35497
35498 2008-11-02  Bruno Haible  <bruno@clisp.org>
35499
35500         Mark 'strcspn' obsolete.
35501         * modules/strcspn (Status, Notice): New sections.
35502
35503 2008-11-02  Bruno Haible  <bruno@clisp.org>
35504
35505         Mark 'rmdir' obsolete.
35506         * modules/rmdir (Status, Notice): New sections.
35507         * modules/clean-temp (Depends-on): Add rmdir.
35508         * modules/openat (Depends-on): Likewise.
35509
35510 2008-11-02  Bruno Haible  <bruno@clisp.org>
35511
35512         Mark 'raise' obsolete.
35513         * modules/raise (Status, Notice): New sections.
35514         (Include): Specify <signal.h>.
35515         * modules/stdio (Depends-on): Add raise.
35516         * modules/write (Depends-on): Likewise.
35517
35518 2008-11-02  Bruno Haible  <bruno@clisp.org>
35519
35520         Mark 'memset' obsolete.
35521         * modules/memset (Status, Notice): New sections.
35522
35523 2008-11-02  Bruno Haible  <bruno@clisp.org>
35524
35525         Mark 'memmove' obsolete.
35526         * modules/memmove (Status, Notice): New sections.
35527         * modules/argp (Depends-on): Add memmove.
35528         * modules/argz (Depends-on): Likewise.
35529         * modules/canonicalize (Depends-on): Likewise.
35530         * modules/canonicalize-lgpl (Depends-on): Likewise.
35531         * modules/fts (Depends-on): Likewise.
35532         * modules/getcwd (Depends-on): Likewise.
35533         * modules/human (Depends-on): Likewise.
35534         * modules/regex (Depends-on): Likewise.
35535         * modules/striconveh (Depends-on): Likewise.
35536         * modules/trim (Depends-on): Likewise.
35537         * modules/unistr/u8-move (Depends-on): Likewise.
35538         * modules/unistr/u16-move (Depends-on): Likewise.
35539         * modules/unistr/u32-move (Depends-on): Likewise.
35540
35541 2008-11-02  Bruno Haible  <bruno@clisp.org>
35542
35543         Mark 'memcpy' obsolete.
35544         * modules/memcpy (Status, Notice): New sections.
35545
35546 2008-11-02  Bruno Haible  <bruno@clisp.org>
35547
35548         Mark 'memcmp' obsolete.
35549         * modules/memcmp (Status, Notice): New sections.
35550         * modules/argmatch (Depends-on): Add memchr.
35551         * modules/backupfile (Depends-on): Likewise.
35552         * modules/c-strcasestr (Depends-on): Likewise.
35553         * modules/crypto/des (Depends-on): Likewise.
35554         * modules/csharpcomp (Depends-on): Likewise.
35555         * modules/fnmatch (Depends-on): Likewise.
35556         * modules/git-merge-changelog (Depends-on): Likewise.
35557         * modules/isnand (Depends-on): Likewise.
35558         * modules/isnand-nolibm (Depends-on): Likewise.
35559         * modules/isnanf (Depends-on): Likewise.
35560         * modules/isnanf-nolibm (Depends-on): Likewise.
35561         * modules/isnanl (Depends-on): Likewise.
35562         * modules/isnanl-nolibm (Depends-on): Likewise.
35563         * modules/mbchar (Depends-on): Likewise.
35564         * modules/memcoll (Depends-on): Likewise.
35565         * modules/quotearg (Depends-on): Likewise.
35566         * modules/regex (Depends-on): Likewise.
35567         * modules/relocatable-prog (Depends-on): Likewise.
35568         * modules/same (Depends-on): Likewise.
35569         * modules/signbit (Depends-on): Likewise.
35570         * modules/strcasestr-simple (Depends-on): Likewise.
35571         * modules/unictype/gen-ctype (Depends-on): Likewise.
35572         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
35573         * modules/uniname/uniname (Depends-on): Likewise.
35574         * modules/unistr/u8-cmp (Depends-on): Likewise.
35575
35576 2008-11-02  Bruno Haible  <bruno@clisp.org>
35577
35578         Mark 'memchr' obsolete.
35579         * modules/memchr (Status, Notice): New sections.
35580         * modules/argp (Depends-on): Add memchr.
35581         * modules/base64 (Depends-on): Likewise.
35582         * modules/c-strcasestr (Depends-on): Likewise.
35583         * modules/chdir-long (Depends-on): Likewise.
35584         * modules/fnmatch (Depends-on): Likewise.
35585         * modules/getsubopt (Depends-on): Likewise.
35586         * modules/git-merge-changelog (Depends-on): Likewise.
35587         * modules/glob (Depends-on): Likewise.
35588         * modules/strcasestr-simple (Depends-on): Likewise.
35589         * modules/strnlen (Depends-on): Likewise.
35590
35591 2008-11-02  Bruno Haible  <bruno@clisp.org>
35592
35593         Mark 'atexit' obsolete.
35594         * modules/atexit (Status, Notice): New sections.
35595         * modules/chdir-long (Depends-on): Add atexit.
35596         * modules/wait-process (Depends-on): Likewise.
35597
35598 2008-11-02  Bruno Haible  <bruno@clisp.org>
35599
35600         * gnulib-tool: New option --with-obsolete.
35601         (func_usage): Document it.
35602         (func_modules_transitive_closure): Drop obsolete dependencies if
35603         incobsolete is not true.
35604         (func_import): Read and save the incobsolete variable to the cache.
35605
35606 2008-11-02  Bruno Haible  <bruno@clisp.org>
35607
35608         * modules/TEMPLATE-EXTENDED: New field 'Status'.
35609         * gnulib-tool: New option --extract-status.
35610         (func_usage): Document it.
35611         (sed_extract_prog): Recognize it.
35612         (func_get_status): New function.
35613
35614 2008-10-30  Simon Josefsson  <simon@josefsson.org>
35615
35616         * modules/sockets (License): Change from LGPL to LGPLv2+.
35617
35618 2008-10-28  Simon Josefsson  <simon@josefsson.org>
35619
35620         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
35621
35622 2008-10-28  Simon Josefsson  <simon@josefsson.org>
35623
35624         * MODULES.html.sh (Support for systems lacking POSIX:2001):
35625         Mention times and sys_times.
35626         * modules/sys_times, modules/sys_times-tests: New modules.
35627         * modules/times, modules/times-tests: Likewise
35628         * m4/sys_times_h.m4: New file.
35629         * lib/sys_times.in.h: Likewise
35630         * lib/times.c: Likewise.
35631         * tests/test-sys_times.c: Likewise.
35632         * tests/test-times.c: Likewise.
35633         * doc/posix-headers/sys_times.texi: Update.
35634         * doc/posix-functions/times.texi: Update.
35635
35636 2008-10-28  Jim Meyering  <meyering@redhat.com>
35637
35638         * modules/tempname (Depends-on): Add lstat.
35639
35640         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
35641
35642 2008-10-28  Simon Josefsson  <simon@josefsson.org>
35643
35644         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
35645         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
35646         using idiom used elsewhere in gnulib.
35647
35648 2008-10-27  Jim Meyering  <meyering@redhat.com>
35649
35650         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
35651
35652 2008-10-27  Simon Josefsson  <simon@josefsson.org>
35653
35654         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
35655         TESTS_ENVIRONMENT, for shell scripts that needs to call built
35656         programs.
35657         * tests/test-argp-2.sh: Use $EXEEXT when needed.
35658
35659 2008-10-27  Simon Josefsson  <simon@josefsson.org>
35660
35661         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
35662
35663 2008-10-27  Bruno Haible  <bruno@clisp.org>
35664
35665         * tests/test-lstat.c: Include <stdio.h>.
35666
35667 2008-10-27  Simon Josefsson  <simon@josefsson.org>
35668
35669         * modules/lstat-tests: New module.
35670         * tests/test-lstat.c: New file.
35671
35672 2008-10-26  Jim Meyering  <meyering@redhat.com>
35673
35674         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
35675
35676 2008-10-26  Simon Josefsson  <simon@josefsson.org>
35677             Bruno Haible  <bruno@clisp.org>
35678
35679         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
35680         * modules/configmake (Include): Add a note that the include must come
35681         after all system headers.
35682         * lib/javaversion.c: Include configmake.h after all other includes.
35683
35684 2008-10-26  Bruno Haible  <bruno@clisp.org>
35685
35686         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
35687         HAVE_STRUCT_RANDOM_DATA to 1.
35688         (gl_STDLIB_H): Simplify.
35689
35690 2008-10-26  Simon Josefsson  <simon@josefsson.org>
35691
35692         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
35693         substitute HAVE_STRUCT_RANDOM_DATA.
35694         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
35695         random_data.
35696         * modules/stdlib (Makefile.am): Substitute
35697         HAVE_STRUCT_RANDOM_DATA.
35698
35699 2008-10-26  Simon Josefsson  <simon@josefsson.org>
35700
35701         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
35702         * doc/gnulib-intro.texi (Copyright): Likewise.
35703
35704 2008-10-26  Simon Josefsson  <simon@josefsson.org>
35705
35706         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
35707         findings.
35708
35709 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
35710             Bruno Haible  <bruno@clisp.org>
35711
35712         * lib/unistd.in.h: Include <winsock2.h>.
35713         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
35714         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
35715         Provide dummy declarations.
35716         (gethostname): Override.
35717         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
35718         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
35719         gl_PREREQ_SYS_H_WINSOCK2.
35720         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
35721         * doc/posix-functions/gethostname.texi: More details.
35722
35723 2008-10-25  Bruno Haible  <bruno@clisp.org>
35724
35725         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
35726         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
35727         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
35728
35729         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
35730         here ...
35731         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
35732         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
35733         gl_UNISTD_H_DEFAULTS.
35734
35735 2008-10-25  Eric Blake  <ebb9@byu.net>
35736
35737         signbit: avoid spurious compiler failure
35738         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
35739         declarations inside function.
35740
35741 2008-10-24  Simon Josefsson  <simon@josefsson.org>
35742             Bruno Haible  <bruno@clisp.org>
35743
35744         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
35745         * modules/random_r (Depends-on): Add stdint.
35746
35747 2008-10-24  Bruno Haible  <bruno@clisp.org>
35748
35749         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
35750         Eggert.
35751         * modules/strerror (License): Likewise.
35752
35753 2008-10-24  Jim Meyering  <meyering@redhat.com>
35754
35755         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
35756         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
35757
35758 2008-10-24  Eric Blake  <ebb9@byu.net>
35759
35760         getgroups: fix compilation when getgroups is available
35761         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
35762         but with <config.h> override of getgroups disabled.
35763
35764 2008-10-24  Simon Josefsson  <simon@josefsson.org>
35765
35766         * doc/gnulib.texi (Header files): Add note about C++ problems.
35767         Explained by Bruno Haible <bruno@clisp.org>.
35768
35769 2008-10-23  Bruno Haible  <bruno@clisp.org>
35770
35771         Define a dummy SA_NODEFER macro on Interix.
35772         * lib/signal.in.h (SA_NODEFER): Define fallback.
35773         Reported by Aleksey Cheusov <cheusov@tut.by> via
35774         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
35775
35776 2008-10-23  Bruno Haible  <bruno@clisp.org>
35777
35778         * modules/freadahead (License): Change to LGPLv2+.
35779         Suggested by Simon Josefsson.
35780
35781 2008-10-23  Jim Meyering  <meyering@redhat.com>
35782
35783         random_r: new module
35784         * modules/random_r: New file.
35785         * m4/random_r.m4: New file.
35786         * lib/random_r.c: New file, from glibc.
35787         * modules/random_r-tests: New file.
35788         * tests/test-random_r.c: New file.
35789         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
35790          Declare.
35791         (RAND_MAX): Define.
35792         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
35793         * modules/stdlib: Substitute them, too.
35794         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
35795         * doc/glibc-functions/initstate_r.texi: Mention the new module.
35796         * doc/glibc-functions/random_r.texi: Likewise.
35797         * doc/glibc-functions/setstate_r.texi: Likewise.
35798         * doc/glibc-functions/srandom_r.texi: Likewise.
35799         * config/srclist.txt: Mention it.
35800
35801 2008-10-23  David Lutterkort  <lutter@redhat.com>
35802
35803         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
35804         link requirement
35805
35806 2008-10-23  Jim Meyering  <meyering@redhat.com>
35807
35808         selinux-h: mark parameters of stub functions as intentionally unused
35809         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
35810         * lib/se-context.in.h: Likewise.
35811
35812 2008-10-22  Simon Josefsson  <simon@josefsson.org>
35813
35814         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
35815
35816 2008-10-22  Simon Josefsson  <simon@josefsson.org>
35817
35818         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
35819
35820 2008-10-22  Eric Blake  <ebb9@byu.net>
35821
35822         glthread/thread: avoid compiler warning
35823         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
35824         Add unreachable abort to silence compiler.
35825
35826 2008-10-22  Eric Blake  <ebb9@byu.net>
35827
35828         netdb: also supply struct addrinfo for cygwin 1.5.x
35829         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
35830         older cygwin.
35831         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
35832         cygwin.
35833         * doc/posix-headers/netdb.texi (netdb.h): Document this.
35834
35835 2008-10-22  Bruno Haible  <bruno@clisp.org>
35836
35837         * users.txt: Update entry about pspp.
35838
35839 2008-10-21  Bruno Haible  <bruno@clisp.org>
35840
35841         Simplification.
35842         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
35843         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
35844
35845         Simplification.
35846         * lib/ioctl.c (ioctl): Don't undefine.
35847         * lib/socket.c (socket): Don't undefine.
35848
35849         Remove unused module indicator macros.
35850         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
35851         GNULIB_$1 as a C macro.
35852
35853         * doc/posix-functions/close.texi: Undo last change.
35854         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
35855         Windows platforms.
35856
35857 2008-10-21  Bruno Haible  <bruno@clisp.org>
35858
35859         Add gethostname() declaration to <unistd.h>.
35860         * lib/unistd.in.h (gethostname): New declaration.
35861         * lib/gethostname.c: Include <unistd.h>.
35862         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
35863         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
35864         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
35865         and HAVE_GETHOSTNAME.
35866         * modules/gethostname (Depends-on): Add unistd.
35867         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
35868         (Include): Specify <unistd.h>.
35869         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
35870         HAVE_GETHOSTNAME.
35871         * tests/test-gethostname.c: Include <unistd.h> first.
35872
35873 2008-10-21  Bruno Haible  <bruno@clisp.org>
35874
35875         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
35876         * modules/select-tests (Depends-on): Likewise.
35877         Reported by Simon Josefsson.
35878
35879 2008-10-21  Simon Josefsson  <simon@josefsson.org>
35880
35881         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
35882         * lib/accept.c: New file, based on winsock.c.
35883         * lib/bind.c: New file, based on winsock.c.
35884         * lib/connect.c: New file, based on winsock.c.
35885         * lib/getpeername.c: New file, based on winsock.c.
35886         * lib/getsockname.c: New file, based on winsock.c.
35887         * lib/getsockopt.c: New file, based on winsock.c.
35888         * lib/ioctl.c: New file, based on winsock.c.
35889         * lib/listen.c: New file, based on winsock.c.
35890         * lib/recv.c: New file, based on winsock.c.
35891         * lib/recvfrom.c: New file, based on winsock.c.
35892         * lib/send.c: New file, based on winsock.c.
35893         * lib/sendto.c: New file, based on winsock.c.
35894         * lib/setsockopt.c: New file, based on winsock.c.
35895         * lib/shutdown.c: New file, based on winsock.c.
35896         * lib/socket.c: New file, based on winsock.c.
35897         * lib/w32sock.h: New file, based on winsock.c.
35898         * lib/winsock.c: Remove file.
35899         * modules/accept: Likewise.
35900         * modules/bind: Likewise.
35901         * modules/connect: Likewise.
35902         * modules/getpeername: Likewise.
35903         * modules/getsockname: Likewise.
35904         * modules/getsockopt: Likewise.
35905         * modules/ioctl: Likewise.
35906         * modules/listen: Likewise.
35907         * modules/recv: Likewise.
35908         * modules/recvfrom: Likewise.
35909         * modules/send: Likewise.
35910         * modules/sendto: Likewise.
35911         * modules/setsockopt: Likewise.
35912         * modules/shutdown: Likewise.
35913         * modules/socket: Use socket.c instead of winsock.c.
35914         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
35915         * doc/posix-functions/accept.texi: Doc fix.
35916         * doc/posix-functions/bind.texi: Doc fix.
35917         * doc/posix-functions/close.texi: Doc fix.
35918         * doc/posix-functions/connect.texi: Doc fix.
35919         * doc/posix-functions/getpeername.texi: Doc fix.
35920         * doc/posix-functions/getsockname.texi: Doc fix.
35921         * doc/posix-functions/getsockopt.texi: Doc fix.
35922         * doc/posix-functions/ioctl.texi: Doc fix.
35923         * doc/posix-functions/listen.texi: Doc fix.
35924         * doc/posix-functions/recv.texi: Doc fix.
35925         * doc/posix-functions/recvfrom.texi: Doc fix.
35926         * doc/posix-functions/send.texi: Doc fix.
35927         * doc/posix-functions/sendto.texi: Doc fix.
35928         * doc/posix-functions/setsockopt.texi: Doc fix.
35929         * doc/posix-functions/shutdown.texi: Doc fix.
35930         * doc/posix-functions/socket.texi: Doc fix.
35931
35932 2008-10-20  Bruno Haible  <bruno@clisp.org>
35933
35934         Take into account the role of SIGABRT_COMPAT on Windows 2008.
35935         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
35936         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
35937         as an alias for SIGABRT.
35938         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
35939         (sigaction): Map it to SIGABRT.
35940         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
35941
35942 2008-10-20  Bruno Haible  <bruno@clisp.org>
35943
35944         * lib/fts.c: Don't include lstat.h.
35945         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
35946
35947         Move the lstat() declaration to <sys/stat.h>.
35948         * lib/lstat.h: Remove file.
35949         * lib/sys_stat.in.h: Add special invocation convention.
35950         (lstat): New declaration.
35951         * lib/lstat.c (orig_lstat): New function.
35952         (rpl_lstat): Use orig_lstat instead of lstat.
35953         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
35954         AC_C_INLINE. Set REPLACE_LSTAT.
35955         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
35956         and REPLACE_LSTAT.
35957         * modules/lstat (Files): Remove lib/lstat.h.
35958         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
35959         (Include): Specify <sys/stat.h> instead of lstat.h.
35960         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
35961         REPLACE_LSTAT.
35962         * NEWS: Mention the change.
35963
35964 2008-10-20  Bruno Haible  <bruno@clisp.org>
35965
35966         * modules/posix_spawn-tests: New file.
35967         * tests/test-posix_spawn3.c: New file.
35968
35969 2008-10-20  Bruno Haible  <bruno@clisp.org>
35970
35971         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
35972         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
35973         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
35974         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
35975         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
35976
35977 2008-10-20  Bruno Haible  <bruno@clisp.org>
35978
35979         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
35980         of posix_spawn on AIX 5.3.
35981
35982 2008-10-20  Bruno Haible  <bruno@clisp.org>
35983
35984         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
35985
35986 2008-10-20  Bruno Haible  <bruno@clisp.org>
35987
35988         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
35989         of AC_LANG_PROGRAM.
35990
35991 2008-10-20  Simon Josefsson  <simon@josefsson.org>
35992
35993         * lib/netdb.in.h: Don't define GNU specific constants until they
35994         are supported or needed.  Reported by Bruno Haible
35995         <bruno@clisp.org>.
35996
35997 2008-10-20  Simon Josefsson  <simon@josefsson.org>
35998
35999         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
36000
36001 2008-10-20  Simon Josefsson  <simon@josefsson.org>
36002
36003         * lib/getaddrinfo.h: Remove file.
36004         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
36005         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
36006         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
36007         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
36008         * modules/netdb: Substitute GNULIB_GETADDRINFO.
36009         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
36010         * tests/test-getaddrinfo.c: Likewise.
36011         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
36012         * NEWS: Mention change.
36013
36014 2008-10-19  Bruno Haible  <bruno@clisp.org>
36015
36016         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
36017
36018 2008-10-19  Bruno Haible  <bruno@clisp.org>
36019
36020         * lib/wait-process.c: Include simply <sys/wait.h>.
36021         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
36022         WIFSTOPPED): Remove fallback definitions.
36023         * modules/wait-process (Depends-on): Add sys_wait.
36024
36025         New module 'sys_wait'.
36026         * modules/sys_wait: New file.
36027         * lib/sys_wait.in.h: New file, partially copied from
36028         lib/wait-process.c.
36029         * m4/sys_wait_h.m4: New file.
36030         * doc/posix-headers/sys_wait.texi: Mention the new module.
36031
36032 2008-10-19  Bruno Haible  <bruno@clisp.org>
36033
36034         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
36035
36036 2008-10-19  Bruno Haible  <bruno@clisp.org>
36037
36038         Assume that waitpid() fills an 'int' status, not a 'union wait'.
36039         * lib/wait-process.c (WAIT_T): Remove type.
36040         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
36041         (wait_subprocess): Update.
36042
36043 2008-10-19  Bruno Haible  <bruno@clisp.org>
36044
36045         New module 'atoll'.
36046         * modules/atoll: New file.
36047         * lib/stdlib.in.h (atoll): New declaration.
36048         * lib/atoll.c: New file, from glibc with modifications.
36049         * m4/atoll.m4: New file.
36050         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
36051         HAVE_ATOLL.
36052         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
36053         * doc/posix-functions/atoll.texi: Mention the new module.
36054
36055 2008-10-19  Bruno Haible  <bruno@clisp.org>
36056
36057         Add strtoull() declaration to <stdlib.h>.
36058         * lib/stdlib.in.h (strtoull): New declaration.
36059         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
36060         Set HAVE_STRTOULL.
36061         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
36062         HAVE_STRTOULL.
36063         * modules/strtoull (Depends-on): Add stdlib.
36064         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
36065         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
36066         HAVE_STRTOULL.
36067
36068 2008-10-19  Bruno Haible  <bruno@clisp.org>
36069
36070         Add strtoll() declaration to <stdlib.h>.
36071         * lib/stdlib.in.h (strtoll): New declaration.
36072         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
36073         Set HAVE_STRTOLL.
36074         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
36075         HAVE_STRTOLL.
36076         * modules/strtoll (Depends-on): Add stdlib.
36077         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
36078         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
36079
36080 2008-10-19  Bruno Haible  <bruno@clisp.org>
36081
36082         * modules/bcopy (Depends-on): Add strings.
36083         (Include): Specify <strings.h>.
36084
36085 2008-10-19  Bruno Haible  <bruno@clisp.org>
36086
36087         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
36088
36089 2008-10-19  Bruno Haible  <bruno@clisp.org>
36090
36091         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
36092         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
36093         mingw.
36094
36095 2008-10-19  Bruno Haible  <bruno@clisp.org>
36096
36097         * lib/atanl.c: Don't include isnanl.h.
36098         * lib/cosl.c: Likewise.
36099         * lib/ldexpl.c: Likewise.
36100         * lib/logl.c: Likewise.
36101         * lib/sinl.c: Likewise.
36102         * lib/sqrtl.c: Likewise.
36103         * lib/tanl.c: Likewise.
36104
36105         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
36106         * lib/isnanf.h: Remove file.
36107         * lib/isnand.h: Remove file.
36108         * lib/isnanl.h: Remove file.
36109         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
36110         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
36111         macros.
36112         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
36113         HAVE_ISNANF, don't define it as a C macro.
36114         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
36115         HAVE_ISNAND, don't define it as a C macro.
36116         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
36117         HAVE_ISNANL, don't define it as a C macro.
36118         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
36119         HAVE_ISNAN[FDL].
36120         * modules/isnanf (Files): Remove lib/isnanf.h.
36121         (Depends-on): Add math.
36122         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
36123         (Include): Specify <math.h> instead of isnanf.h.
36124         * modules/isnand (Files): Remove lib/isnand.h.
36125         (Depends-on): Add math.
36126         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
36127         (Include): Specify <math.h> instead of isnand.h.
36128         * modules/isnanl (Files): Remove lib/isnanl.h.
36129         (Depends-on): Add math.
36130         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
36131         (Include): Specify <math.h> instead of isnanl.h.
36132         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
36133         HAVE_ISNAN[FDL].
36134         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
36135         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
36136         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
36137         * NEWS: Mention the change.
36138
36139 2008-10-18  Bruno Haible  <bruno@clisp.org>
36140
36141         Add getusershell(), setusershell(), endusershell() declarations to
36142         <unistd.h>.
36143         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
36144         declarations.
36145         * lib/getusershell.c: Include unistd.h.
36146         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
36147         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
36148         HAVE_GETUSERSHELL.
36149         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
36150         and HAVE_GETUSERSHELL.
36151         * modules/getusershell (Depends-on): Add unistd, extensions.
36152         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
36153         (Include): Specify <unistd.h>.
36154         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
36155         HAVE_GETUSERSHELL.
36156
36157 2008-10-18  Bruno Haible  <bruno@clisp.org>
36158
36159         Add a getloadavg() declaration to <stdlib.h>.
36160         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
36161         getloadavg declaration.
36162         (getloadavg): New declaration.
36163         * lib/getloadavg.c: Include <stdlib.h> first.
36164         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
36165         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
36166         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
36167         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
36168         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
36169         * modules/getloadavg (Depends-on): Add stdlib, extensions.
36170         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
36171         (Include): Specify <stdlib.h>.
36172         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
36173         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
36174
36175 2008-10-18  Bruno Haible  <bruno@clisp.org>
36176
36177         * lib/dirchownmod.c: Don't include lchmod.h.
36178
36179         Move the lchmod() declaration to <sys/stat.h>.
36180         * lib/lchmod.h: Remove file.
36181         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
36182         (lchmod): New declaration, moved here from lib/lchown.h.
36183         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
36184         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
36185         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
36186         and HAVE_LCHMOD.
36187         * modules/lchmod (Files): Remove lib/lchmod.h.
36188         (Depends-on): Add sys_stat, extensions.
36189         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
36190         (Include): Specify <sys/stat.h> instead of lchmod.h.
36191         * modules/sys_stat (Depends-on): Add link-warning.
36192         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
36193         definition of GL_LINK_WARNING.
36194         * NEWS: Mention the change.
36195
36196 2008-10-18  Bruno Haible  <bruno@clisp.org>
36197
36198         * lib/fchdir.c: Don't include dirfd.h.
36199         * lib/fts.c: Likewise.
36200         * lib/getcwd.c: Likewise.
36201         * lib/glob.c: Likewise.
36202
36203         Move the dirfd() declaration to <dirent.h>.
36204         * lib/dirfd.h: Remove file.
36205         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
36206         (dirfd): New declaration.
36207         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
36208         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
36209         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
36210         HAVE_DECL_DIRFD.
36211         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
36212         HAVE_DECL_DIRFD.
36213         * modules/dirfd (Files): Remove lib/dirfd.h.
36214         (Depends-on): Add dirent, extensions.
36215         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
36216         (Include): Specify <dirent.h> instead of dirfd.h.
36217         * modules/dirent (Depends-on): Add link-warning.
36218         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
36219         definition of GL_LINK_WARNING.
36220         * NEWS: Mention the change.
36221
36222 2008-10-18  Bruno Haible  <bruno@clisp.org>
36223
36224         Move the euidaccess() declaration to <unistd.h>.
36225         * lib/euidaccess.h: Remove file.
36226         * lib/unistd.in.h (euidaccess): New declaration.
36227         * lib/euidaccess.c: Don't include euidaccess.h.
36228         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
36229         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
36230         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
36231         and HAVE_EUIDACCESS.
36232         * modules/euidaccess (Files): Remove lib/euidaccess.h.
36233         (Depends-on): Add unistd.
36234         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
36235         (Include): Specify <unistd.h> instead of euidaccess.h.
36236         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
36237         HAVE_EUIDACCESS.
36238         * NEWS: Mention the change.
36239
36240 2008-10-18  Bruno Haible  <bruno@clisp.org>
36241
36242         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
36243
36244         Move the getdomainname() declaration to <unistd.h>.
36245         * lib/getdomainname.h: Remove file.
36246         * lib/unistd.in.h (getdomainname): New declaration.
36247         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
36248         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
36249         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
36250         HAVE_GETDOMAINNAME.
36251         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
36252         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
36253         * modules/getdomainname (Files): Remove lib/getdomainname.h.
36254         (Depends-on): Add unistd, extensions.
36255         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
36256         (Includes): Specify <unistd.h> instead of getdomainname.h.
36257         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
36258         HAVE_GETDOMAINNAME.
36259         * NEWS: Mention the change.
36260
36261 2008-10-18  Bruno Haible  <bruno@clisp.org>
36262
36263         * modules/dirent: New file.
36264         * m4/dirent_h.m4: New file.
36265         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
36266         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
36267         * modules/fchdir (Files): Remove lib/dirent.in.h.
36268         (Depends-on): Add dirent.
36269         (Makefile.am): Move rules to modules/dirent.
36270         * doc/posix-headers/dirent.texi: Mention the new module.
36271
36272 2008-10-18  Bruno Haible  <bruno@clisp.org>
36273
36274         Avoid -Wunused-parameter warnings in public gnulib header files.
36275         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
36276         macro.
36277         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
36278
36279 2008-10-18  Bruno Haible  <bruno@clisp.org>
36280
36281         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
36282         * doc/glibc-functions/error.texi: Mention the module 'error'.
36283         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
36284         * doc/glibc-functions/getdomainname.texi: Mention the module
36285         'getdomainname'.
36286         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
36287         * doc/glibc-functions/getpagesize.texi: Mention the module
36288         'getpagesize'.
36289         * doc/glibc-functions/getusershell.texi: Mention the module
36290         'getusershell'.
36291         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
36292         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
36293         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
36294         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
36295         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
36296         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
36297         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
36298         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
36299         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
36300         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
36301         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
36302         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
36303         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
36304         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
36305
36306 2008-10-17  Bruno Haible  <bruno@clisp.org>
36307
36308         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
36309         HP-UX and IRIX, use -0.0L.
36310         * tests/test-ceill.c (minus_zero): Likewise.
36311         * tests/test-floorl.c (minus_zero): Likewise.
36312         * tests/test-frexpl.c (minus_zero): Likewise.
36313         * tests/test-isnan.c (minus_zerol): Likewise.
36314         * tests/test-isnanl.h (minus_zero): Likewise.
36315         * tests/test-ldexpl.c (minus_zero): Likewise.
36316         * tests/test-roundl.c (minus_zero): Likewise.
36317         * tests/test-signbit.c (minus_zerol): Likewise.
36318         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
36319         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
36320         * tests/test-truncl.c (minus_zero): Likewise.
36321         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
36322         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
36323         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
36324         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
36325
36326 2008-10-17  Bruno Haible  <bruno@clisp.org>
36327
36328         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
36329         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
36330         that it gets activated only for gcc >= 3.0.
36331         * lib/dirent.in.h: Likewise.
36332         * lib/errno.in.h: Likewise.
36333         * lib/fcntl.in.h: Likewise.
36334         * lib/float.in.h: Likewise.
36335         * lib/iconv.in.h: Likewise.
36336         * lib/inttypes.in.h: Likewise.
36337         * lib/locale.in.h: Likewise.
36338         * lib/math.in.h: Likewise.
36339         * lib/netdb.in.h: Likewise.
36340         * lib/netinet_in.in.h: Likewise.
36341         * lib/search.in.h: Likewise.
36342         * lib/signal.in.h: Likewise.
36343         * lib/spawn.in.h: Likewise.
36344         * lib/stdarg.in.h: Likewise.
36345         * lib/stdint.in.h: Likewise.
36346         * lib/stdio.in.h: Likewise.
36347         * lib/stdlib.in.h: Likewise.
36348         * lib/string.in.h: Likewise.
36349         * lib/strings.in.h: Likewise.
36350         * lib/sys_file.in.h: Likewise.
36351         * lib/sys_ioctl.in.h: Likewise.
36352         * lib/sys_select.in.h: Likewise.
36353         * lib/sys_socket.in.h: Likewise.
36354         * lib/sys_stat.in.h: Likewise.
36355         * lib/sys_time.in.h: Likewise.
36356         * lib/sysexits.in.h: Likewise.
36357         * lib/time.in.h: Likewise.
36358         * lib/unistd.in.h: Likewise.
36359         * lib/wchar.in.h: Likewise.
36360         * lib/wctype.in.h: Likewise.
36361         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
36362
36363 2008-10-17  Jim Meyering  <meyering@redhat.com>
36364
36365         ignore-value: don't depend on inline module
36366         * modules/ignore-value (Depends-on): Remove 'inline'.
36367         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
36368         Suggestion from Bruno Haible.
36369
36370 2008-10-17  Bruno Haible  <bruno@clisp.org>
36371
36372         New implementation of condition variables for Win32.
36373         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
36374         (gl_linked_waitqueue_t): New type.
36375         (gl_cond_t): Use it.
36376         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
36377         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
36378         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
36379         (glthread_cond_init_func, glthread_cond_wait_func,
36380         glthread_cond_timedwait_func, glthread_cond_signal_func,
36381         glthread_cond_broadcast_func, glthread_cond_destroy_func):
36382         Reimplemented on the basis of gl_linked_waitqueue_t.
36383         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
36384         gl_waitqueue_t.
36385         (gl_rwlock_t): Update.
36386         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
36387
36388 2008-10-17  Simon Josefsson  <simon@josefsson.org>
36389
36390         * modules/recvfrom (Depends-on): Add dependency on getpeername.
36391         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
36392
36393 2008-10-17  Jim Meyering  <meyering@redhat.com>
36394
36395         ignore-value: new module
36396         * modules/ignore-value: New file.
36397         * lib/ignore-value.h: New file.
36398         * MODULES.html.sh (Compiler warning management): New section,
36399         just for this module.  More to come.
36400
36401 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
36402
36403         open-safer.c: avoid 'signed and unsigned in conditional...' warning
36404         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
36405         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
36406
36407 2008-10-16  Jim Meyering  <meyering@redhat.com>
36408
36409         openat-die.c: avoid 'no previous prototype' warning
36410         * lib/openat-die.c: Include "openat.h".
36411         Reported by Reuben Thomas <rrt@sc3d.org>.
36412
36413 2008-10-16  Simon Josefsson  <simon@josefsson.org>
36414
36415         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
36416         * lib/netdb.in.h: Fix typo.
36417         Reported by Bruno Haible  <bruno@clisp.org>
36418
36419         * lib/netdb.in.h: Include sys/socket.h for platforms without
36420         netdb.h, to get structures like hostent on MinGW.
36421         * modules/netdb (Depends-on): Add sys_socket.
36422
36423 2008-10-15  Simon Josefsson  <simon@josefsson.org>
36424
36425         * modules/netdb, modules/netdb-tests: New file.
36426         * m4/netdb_h.m4: New file.
36427         * lib/netdb.in.h: Add, currently just an empty file pending
36428         definitions.
36429         * tests/test-netdb.c: New file.
36430         * doc/posix-headers/netdb.texi: Mention that we replace it if
36431         needed.
36432         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
36433         netdb.
36434
36435 2008-10-15  Simon Josefsson  <simon@josefsson.org>
36436
36437         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
36438         with code.
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): Add a comment.
36444
36445 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
36446
36447         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
36448         * tests/test-select.c: Likewise,
36449
36450 2008-10-13  Bruno Haible  <bruno@clisp.org>
36451
36452         * lib/glthread/cond.c (glthread_cond_wait_func,
36453         glthread_cond_timedwait_func): Fix variable name.
36454         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
36455
36456 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
36457
36458         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
36459         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
36460         struct sockaddr.sa_len.
36461         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
36462
36463 2008-10-13  Simon Josefsson  <simon@josefsson.org>
36464
36465         * build-aux/pmccabe2html: Add css and css_url parameters.
36466
36467 2008-10-12  Bruno Haible  <bruno@clisp.org>
36468
36469         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
36470         calling aclx_get.
36471         Reported by Rainer Tammer <tammer@tammer.net>.
36472
36473 2008-10-12  Bruno Haible  <bruno@clisp.org>
36474
36475         Use msvcrt aware primitives for creation/termination of Win32 threads.
36476         * lib/glthread/thread.c: Include <process.h>.
36477         (glthread_create_func): Use _beginthreadex instead of CreateThread.
36478         (wrapper_func): Update signature.
36479         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
36480
36481 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
36482             Bruno Haible  <bruno@clisp.org>
36483
36484         Provide a Win32 implementation of the 'cond' module.
36485         * lib/glthread/cond.h [USE_WIN32]: New implementation.
36486         * lib/glthread/cond.c (glthread_cond_init_func,
36487         glthread_cond_wait_func, glthread_cond_timedwait_func,
36488         glthread_cond_signal_func, glthread_cond_broadcast_func,
36489         glthread_cond_destroy_func) [USE_WIN32]: New functions.
36490         * modules/cond (Dependencies): Add gettimeofday.
36491
36492 2008-10-11  Bruno Haible  <bruno@clisp.org>
36493
36494         Make sleep work on older versions of mingw.
36495         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
36496         only whether it exists.
36497         * doc/posix-functions/sleep.texi: Mention the problem with older
36498         versions of mingw.
36499
36500 2008-10-11  Bruno Haible  <bruno@clisp.org>
36501
36502         New module 'shutdown'.
36503         * modules/shutdown: New file.
36504         * lib/sys_socket.in.h (shutdown): New declaration.
36505         * lib/winsock.c (shutdown): New function.
36506         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
36507         GNULIB_SHUTDOWN.
36508         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
36509         * doc/posix-functions/shutdown.texi: Document the new module.
36510
36511 2008-10-11  Jim Meyering  <meyering@redhat.com>
36512
36513         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
36514
36515 2008-10-11  Bruno Haible  <bruno@clisp.org>
36516
36517         New module 'fclose'.
36518         * modules/fclose: New file.
36519         * lib/stdio.in.h (fclose): New declaration.
36520         * lib/fclose.c: New file.
36521         * m4/fclose.m4: New file.
36522         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
36523         REPLACE_FCLOSE.
36524         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
36525         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
36526         REPLACE_FCLOSE.
36527         * modules/close (Depends-on): fclose.
36528         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
36529
36530 2008-10-11  Bruno Haible  <bruno@clisp.org>
36531
36532         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
36533         set errno and don't call _close.
36534
36535 2008-10-10  Bruno Haible  <bruno@clisp.org>
36536
36537         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
36538         ACL, not afterwards. Fixes test failure on Cygwin.
36539
36540 2008-10-09  Ben Pfaff  <blp@gnu.org>
36541
36542         * build-aux/announce-gen: Fix gnulib version related part of usage
36543         message.  Die with a useful error message if no tarballs are
36544         found.
36545
36546 2008-10-10  Jim Meyering  <meyering@redhat.com>
36547
36548         bootstrap: use git's --depth=N option only if it's supported
36549         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
36550         recognize the --depth option.  Reported by Pádraig Brady.
36551
36552 2008-10-09  Bruno Haible  <bruno@clisp.org>
36553
36554         New module 'ioctl'.
36555         * modules/ioctl: New file.
36556         * lib/sys_socket.in.h (ioctl): Remove declaration.
36557         * lib/winsock.c: Include <sys/ioctl.h>.
36558         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
36559         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
36560         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
36561         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
36562         * doc/posix-functions/ioctl.texi: Mention the new module.
36563
36564 2008-10-09  Bruno Haible  <bruno@clisp.org>
36565
36566         New module 'sys_ioctl'.
36567         * lib/sys_ioctl.in.h: New file.
36568         * m4/sys_ioctl_h.m4: New file.
36569         * modules/sys_ioctl: New file.
36570         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
36571
36572 2008-10-09  Bruno Haible  <bruno@clisp.org>
36573
36574         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
36575         * lib/winsock.c: Include <stdarg.h>.
36576         (rpl_ioctl): Change to second argument 'int' and then varargs.
36577
36578 2008-10-09  Bruno Haible  <bruno@clisp.org>
36579
36580         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
36581         when the sys_socket module is present and the system has <winsock2.h>.
36582
36583 2008-10-09  Bruno Haible  <bruno@clisp.org>
36584
36585         * doc/posix-functions/close.texi: Mention module 'close' instead of
36586         module 'sys_socket'.
36587
36588 2008-10-09  Bruno Haible  <bruno@clisp.org>
36589
36590         * doc/glibc-headers/sys_ioctl.texi: New file.
36591         * doc/gnulib.texi: Include it.
36592
36593 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
36594             Bruno Haible  <bruno@clisp.org>
36595
36596         Combine the two replacements of 'close'.
36597         * lib/sys_socket.in.h (close): Define to a reminder to include
36598         <unistd.h>.
36599         (_gl_close_fd_maybe_socket): New declaration.
36600         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
36601         * lib/winsock.c (close): Remove undefinition.
36602         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
36603         needed for the gnulib module 'close'.
36604         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
36605         define to an error symbol or to a warning, if suitable.
36606         * lib/close.c: Include <sys/socket.h>.
36607         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
36608         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
36609         UNISTD_H_HAVE_WINSOCK2_H.
36610         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
36611         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
36612         UNISTD_H_HAVE_WINSOCK2_H.
36613         * modules/sys_socket (Files): Add m4/unistd_h.m4.
36614         (configure.ac): Set a module indicator.
36615         (Makefile.am): Substitute GNULIB_CLOSE.
36616         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
36617         * modules/poll-tests (Depends-on): Add close.
36618         * modules/select-tests (Depends-on): Likewise.
36619
36620 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
36621             Bruno Haible  <bruno@clisp.org>
36622
36623         New module 'close'.
36624         * modules/close: New file.
36625         * lib/unistd.in.h (close): Move declaration out of the
36626         FCHDIR_REPLACEMENT scope.
36627         (_gl_unregister_fd): New declaration.
36628         * lib/close.c: New file.
36629         * lib/fchdir.c (rpl_close): Remove function.
36630         * m4/close.m4: New file.
36631         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
36632         close.
36633         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
36634         REPLACE_CLOSE.
36635         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
36636         REPLACE_CLOSE.
36637         * modules/fchdir (Depends-on): Add close.
36638
36639 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
36640             Bruno Haible  <bruno@clisp.org>
36641
36642         * lib/fcntl.in.h (open): Simplify conditionals.
36643         (_gl_register_fd): New declaration.
36644         * lib/fchdir.c (rpl_open): Remove function.
36645         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
36646         also.
36647         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
36648         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
36649         open.
36650
36651 2008-10-09  Jim Meyering  <meyering@redhat.com>
36652
36653         GNUmakefile: use the more name-space-friendly "_version"
36654         * top/GNUmakefile (_dummy): Update.
36655         (_version): Rename from "version".
36656
36657 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
36658             Bruno Haible  <bruno@clisp.org>
36659
36660         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
36661         rpl_close.
36662         (_gl_register_fd): New function, extracted from rpl_open.
36663         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
36664         (rpl_open, rpl_opendir): Use _gl_register_fd.
36665
36666 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
36667
36668         Fix organization of 'open' replacement.
36669         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
36670         (gl_FUNC_OPEN): Use it.
36671         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
36672
36673 2008-10-08  Bruno Haible  <bruno@clisp.org>
36674
36675         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
36676
36677 2008-10-08  Simon Josefsson  <simon@josefsson.org>
36678
36679         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
36680         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
36681         listen).
36682
36683 2008-10-08  Eric Blake  <ebb9@byu.net>
36684
36685         GNUmakefile: add 'make version' target
36686         * top/GNUmakefile (_curr-ver): Split version update rules...
36687         (version): ...into a target.
36688
36689 2008-10-07  Bruno Haible  <bruno@clisp.org>
36690
36691         Use a more portable replacement expression for -0.0L.
36692         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
36693         instead of -0.0L. Fix m4 quotation.
36694
36695         * tests/test-signbit.c: Include <float.h>.
36696         (minus_zero): New variable.
36697         (test_signbitl): Use minus_zero instead of -zero.
36698         * modules/signbit-tests (Depends-on): Add float.
36699
36700         * tests/test-ceill.c: Include <float.h>.
36701         (zero): Remove variable.
36702         (minus_zero): New variable.
36703         (main): Use minus_zero instead of -zero.
36704         * modules/ceill-tests (Depends-on): Add float.
36705
36706         * tests/test-floorl.c: Include <float.h>.
36707         (zero): Remove variable.
36708         (minus_zero): New variable.
36709         (main): Use minus_zero instead of -zero.
36710         * modules/floorl-tests (Depends-on): Add float.
36711
36712         * tests/test-roundl.c: Include <float.h>.
36713         (zero): Remove variable.
36714         (minus_zero): New variable.
36715         (main): Use minus_zero instead of -zero.
36716         * modules/roundl-tests (Depends-on): Add float.
36717
36718         * tests/test-truncl.c: Include <float.h>.
36719         (zero): Remove variable.
36720         (minus_zero): New variable.
36721         (main): Use minus_zero instead of -zero.
36722         * modules/truncl-tests (Depends-on): Add float.
36723
36724         * tests/test-frexpl.c (zero): Remove variable.
36725         (minus_zero): New variable.
36726         (main): Use minus_zero instead of -zero.
36727         * modules/frexpl-tests (Depends-on): Add float.
36728
36729         * tests/test-isnan.c (zerol): Remove variable.
36730         (minus_zerol): New variable.
36731         (test_long_double): Use minus_zerol instead of -zerol.
36732         * modules/isnan-tests (Depends-on): Add float.
36733
36734         * tests/test-isnanl.h (zero): Remove variable.
36735         (minus_zero): New variable.
36736         (main): Use minus_zero instead of -zero.
36737         * modules/isnanl-nolibm-tests (Depends-on): Add float.
36738         * modules/isnanl-tests (Depends-on): Add float.
36739
36740         * tests/test-ldexpl.c (zero): Remove variable.
36741         (minus_zero): New variable.
36742         (main): Use minus_zero instead of -zero.
36743         * modules/ldexpl-tests (Depends-on): Add float.
36744
36745         * tests/test-snprintf-posix.h (zerol): Remove variable.
36746         (minus_zerol): New variable.
36747         (test_function): Use minus_zerol instead of -zerol.
36748         * modules/snprintf-posix-tests (Depends-on): Add float.
36749         * modules/vsnprintf-posix-tests (Depends-on): Add float.
36750
36751         * tests/test-sprintf-posix.h (zerol): Remove variable.
36752         (minus_zerol): New variable.
36753         (test_function): Use minus_zerol instead of -zerol.
36754         * modules/sprintf-posix-tests (Depends-on): Add float.
36755         * modules/vsprintf-posix-tests (Depends-on): Add float.
36756
36757         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
36758         (minus_zerol): New variable.
36759         (test_function): Use minus_zerol instead of -zerol.
36760         * modules/vasnprintf-posix-tests (Depends-on): Add float.
36761
36762         * tests/test-vasprintf-posix.c (zerol): Remove variable.
36763         (minus_zerol): New variable.
36764         (test_function): Use minus_zerol instead of -zerol.
36765         * modules/vasprintf-posix-tests (Depends-on): Add float.
36766
36767 2008-10-07  Simon Josefsson  <simon@josefsson.org>
36768
36769         * MODULES.html.sh (Support for building documentation): Mention
36770         pmccabe2html.  Sort entries.
36771
36772         Add pmccabe2html module, from gnupdf.
36773         * build-aux/pmccabe.css: New file.
36774         * build-aux/pmccabe2html: New file.
36775         * m4/pmccabe2html.m4: New file.
36776         * modules/pmccabe2html: New file.
36777
36778 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
36779
36780         flock: new module
36781         * MODULES.html.sh: Add to list of modules.
36782         * lib/flock.c: flock implementation for Windows and Unix systems
36783         which have fcntl.
36784         * doc/glibc-functions/flock.texi: Update documentation.
36785         * lib/sys_file.in.h: <sys/file.h> header file.
36786         * m4/flock.m4: M4 macros.
36787         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
36788         * modules/flock: flock module.
36789         * modules/flock-tests: flock tests module.
36790         * modules/sys_file: sys/file.h module.
36791         * tests/test-flock.c: test suite for flock.
36792
36793 2008-10-06  Jim Meyering  <meyering@redhat.com>
36794
36795         bootstrap: check for LT_INIT more portably still ;-)
36796         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
36797         Spotted by Bruno Haible.
36798
36799 2008-10-06  Eric Blake  <ebb9@byu.net>
36800
36801         test-signbit: avoid tripping Irix cc bug on -0.0L
36802         * tests/test-signbit.c (minus_zerol): Delete, and replace with
36803         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
36804         entire testsuite consistent and avoids an Irix 6.2 bug.
36805
36806 2008-10-05  Bruno Haible  <bruno@clisp.org>
36807             Jim Meyering  <jim@meyering.net>
36808
36809         Add an option for ignoring EPIPE during close_stdout.
36810         * lib/closeout.h: Include <stdbool.h>.
36811         (close_stdout_set_ignore_EPIPE): New declaration.
36812         * lib/closeout.c: Include <stdbool.h>.
36813         (ignore_EPIPE): New variable.
36814         (close_stdout_set_ignore_EPIPE): New function.
36815         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
36816         * lib/close-stream.c (close_stream): Mention the possible EPIPE
36817         failure.
36818         * modules/closeout (Depends-on): Add stdbool.
36819
36820 2008-10-05  Bruno Haible  <bruno@clisp.org>
36821
36822         * modules/accept: New file.
36823         * modules/bind: New file.
36824         * modules/connect: New file.
36825         * modules/getpeername: New file.
36826         * modules/getsockname: New file.
36827         * modules/getsockopt: New file.
36828         * modules/listen: New file.
36829         * modules/recv: New file.
36830         * modules/recvfrom: New file.
36831         * modules/send: New file.
36832         * modules/sendto: New file.
36833         * modules/setsockopt: New file.
36834         * modules/socket: New file.
36835         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
36836         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
36837         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
36838         the particular module is requested. Add a link warning when the
36839         particular module is not requested.
36840         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
36841         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
36842         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
36843         the particular module is requested.
36844         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
36845         gl_SYS_SOCKET_H_DEFAULTS): New macros.
36846         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
36847         * modules/sys_socket (Depends-on): Add link-warning.
36848         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
36849         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
36850         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
36851         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
36852         GL_LINK_WARNING.
36853         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
36854         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
36855         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
36856         * doc/posix-functions/getpeername.texi: Mention the new module
36857         'getpeername'.
36858         * doc/posix-functions/getsockname.texi: Mention the new module
36859         'getsockname'.
36860         * doc/posix-functions/getsockopt.texi: Mention the new module
36861         'getsockopt'.
36862         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
36863         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
36864         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
36865         * doc/posix-functions/send.texi: Mention the new module 'send'.
36866         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
36867         * doc/posix-functions/setsockopt.texi: Mention the new module
36868         'setsockopt'.
36869         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
36870         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
36871         listen, connect, accept.
36872         * modules/select-tests (Depends-on): Likewise.
36873
36874 2008-10-05  Bruno Haible  <bruno@clisp.org>
36875
36876         * lib/winsock.c (strerror): Remove unused #undef.
36877         (rpl_close): Remove unused local variable.
36878
36879         * modules/sys_socket (Depends-on); Add errno.
36880
36881 2008-10-05  Bruno Haible  <bruno@clisp.org>
36882
36883         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
36884         (select): Add a link warning when the 'select' module is not used.
36885         * modules/sys_select (Depends-on): Add link-warning.
36886         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
36887         Suggested by Paolo Bonzini.
36888
36889 2008-10-05  Jim Meyering  <meyering@redhat.com>
36890
36891         bootstrap: check for LT_INIT more portably
36892         * build-aux/bootstrap: Avoid using grep -E, since it's not
36893         portable enough.  Suggestion from Bruno Haible.
36894
36895 2008-10-05  Bruno Haible  <bruno@clisp.org>
36896
36897         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
36898         as being fixed by gnulib.
36899
36900 2008-10-05  Bruno Haible  <bruno@clisp.org>
36901
36902         * modules/select-tests: New file, mostly copied from
36903         modules/sys_select-tests.
36904         * tests/test-select.c: New file, mostly copied from
36905         tests/test-sys_select.c.
36906         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
36907         * modules/sys_select-tests (Depends-on): Remove all dependencies.
36908         (Makefile.am): Remove test_sys_select_LDADD.
36909
36910         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
36911         to an undefined symbol, for an error message.
36912         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
36913         (gl_SYS_SELECT_H_DEFAULTS): New macro.
36914         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
36915         winsock-select.c here.
36916         * modules/sys_select (Files): Remove lib/winsock-select.c.
36917         (Depends-on): Remove alloca.
36918         (Makefile.am): Substitute GNULIB_SELECT.
36919         * modules/select: New file.
36920         * doc/posix-functions/select.texi: Update.
36921
36922 2008-10-05  Bruno Haible  <bruno@clisp.org>
36923
36924         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
36925         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
36926         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
36927         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
36928         getdtablesize.
36929         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
36930         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
36931
36932 2008-10-05  Bruno Haible  <bruno@clisp.org>
36933
36934         * modules/getdtablesize-tests: New file.
36935         * tests/test-getdtablesize.c: New file.
36936
36937         New module 'getdtablesize'.
36938         * lib/unistd.in.h (getdtablesize): New declaration.
36939         * lib/getdtablesize.c: New file.
36940         * m4/getdtablesize.m4: New file.
36941         * modules/getdtablesize: New file.
36942         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
36943         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
36944         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
36945         HAVE_GETDTABLESIZE.
36946         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
36947
36948 2008-10-05  Bruno Haible  <bruno@clisp.org>
36949
36950         * modules/sched (Makefile.am): Fix typo.
36951         Reported by Simon Josefsson.
36952
36953 2008-10-05  Jim Meyering  <meyering@redhat.com>
36954
36955         bootstrap: check for LT_INIT, too
36956         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
36957         are deprecated.  Suggestion from Ralf Wildenhues.
36958
36959 2008-10-05  Bruno Haible  <bruno@clisp.org>
36960
36961         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
36962         overriding them by ours.
36963         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
36964
36965 2008-10-05  Jim Meyering  <meyering@redhat.com>
36966
36967         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
36968         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
36969         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
36970
36971 2008-10-04  Bruno Haible  <bruno@clisp.org>
36972
36973         * modules/dup2 (License): Change to LGPLv2+.
36974         * modules/sleep (License): Likewise.
36975         * modules/perror (License): Likewise.
36976         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
36977         Blake.
36978         * modules/signal (License): Likewise.
36979         * modules/sigprocmask (License): Likewise.
36980         * modules/raise (License): Change to LGPLv2+, with approval by Jim
36981         Meyering.
36982
36983 2008-10-04  Bruno Haible  <bruno@clisp.org>
36984
36985         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
36986         Reported by Rainer Tammer <tammer@tammer.net>.
36987
36988 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
36989             Bruno Haible  <bruno@clisp.org>
36990
36991         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
36992         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
36993         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
36994
36995 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
36996
36997         filevercmp: new module
36998         * lib/filevercmp.h: New function filevercmp comparing version strings.
36999         * lib/filevercmp.c: Implementation of filevercmp function.
37000         * modules/filevercmp: Module metadata.
37001         * tests/test-filevercmp.c: Unit test for new module.
37002         * modules/filevercmp-tests: Unit test metadata.
37003         * MODULES.html.sh: Add filevercmp module.
37004
37005 2008-10-03  Bruno Haible  <bruno@clisp.org>
37006
37007         * lib/c-ctype.h: Add comment.
37008         Reported by Jim Meyering.
37009
37010 2008-10-02  Bruno Haible  <bruno@clisp.org>
37011
37012         * modules/posix_spawn-internal (Depends-on): Add 'open'.
37013
37014 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
37015
37016         * build-aux/bootstrap: Allow renaming bootstrap, and change the
37017         name of bootstrap.conf accordingly.
37018
37019 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
37020
37021         * build-aux/bootstrap: Install git-merge-changelog configuration
37022         items into .gitconfig if needed.
37023
37024 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
37025
37026         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
37027         git repository, and initialize/update it accordingly.
37028
37029 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
37030
37031         * modules/fsync-tests: New file.
37032         * tests/test-fsync.c: New file.
37033
37034         New module 'fsync'.
37035         * lib/fsync.c: New file.
37036         * m4/fsync.m4: New file.
37037         * modules/fsync: New file.
37038         * lib/unistd.in.h (fsync): New declaration.
37039         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
37040         GNULIB_FSYNC and HAVE_FSYNC.
37041         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
37042         * MODULES.html.sh (posix_functions): Add fsync.
37043         * doc/posix-functions/fsync.texi: Mention the new module.
37044
37045 2008-10-02  Jim Meyering  <meyering@redhat.com>
37046
37047         fts.c: sync with similar code from coreutils' remove.c
37048         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
37049         Guard also with "#if defined __linux__", since for now at least,
37050         this code is Linux-kernel-specific.
37051
37052 2008-10-02  Jim Meyering  <meyering@redhat.com>
37053
37054         fts: bug fixes
37055         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
37056         Include <sys/vfs.h>, not <sys/statfs.h>.
37057
37058         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
37059         Include <sys/vfs.h>, not <sys/statfs.h>.
37060
37061 2008-10-01  Bruno Haible  <bruno@clisp.org>
37062
37063         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
37064         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
37065         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
37066         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
37067         * doc/posix-functions/posix_spawnp.texi: Likewise.
37068         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
37069         whether posix_spawn actually works.
37070         * m4/pipe.m4 (gl_PIPE): Likewise.
37071         * modules/execute (Files): Add m4/posix_spawn.m4.
37072         * modules/pipe (Files): Add m4/posix_spawn.m4.
37073         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
37074
37075 2008-10-01  Jim Meyering  <meyering@redhat.com>
37076
37077         remove trailing spaces
37078         * NEWS: Likewise.
37079         * lib/poll.c (poll): Likewise.
37080         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
37081         * lib/winsock.c (rpl_close): Likewise.
37082         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
37083         * modules/yield: Likewise.
37084         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
37085         * tests/test-sys_select.c (connect_to_socket): Likewise.
37086
37087         fts.c: adjust a new interface to be more generally useful
37088         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
37089         (fts_build): Adjust caller.
37090
37091 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
37092
37093         * modules/cond-tests: New file.
37094         * tests/test-cond.c: New file.
37095
37096 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
37097             Bruno Haible  <bruno@clisp.org>
37098
37099         * modules/cond (Dependencies): Add errno, time.
37100         * lib/glthread/cond.h: Include <time.h>.
37101         (gl_cond_define, gl_cond_define_initialized): Use the same definition
37102         across platforms.
37103
37104 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
37105             Bruno Haible  <bruno@clisp.org>
37106
37107         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
37108
37109 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
37110             Bruno Haible  <bruno@clisp.org>
37111
37112         * modules/tls-tests (Depends-on): Add thread, yield.
37113         (configure.ac): Remove all checks.
37114         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
37115         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
37116         gl_thread_self): Remove definitions. Include glthread/thread.h and
37117         glthread/yield.h instead.
37118         (test_tls): Pass an additional NULL argument to gl_thread_join.
37119
37120 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
37121             Bruno Haible  <bruno@clisp.org>
37122
37123         * modules/lock-tests (Depends-on): Add thread, yield.
37124         (configure.ac): Remove all checks.
37125         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
37126         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
37127         gl_thread_self): Remove definitions. Include glthread/thread.h and
37128         glthread/yield.h instead.
37129         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
37130         additional NULL argument to gl_thread_join.
37131
37132 2008-09-30  Bruno Haible  <bruno@clisp.org>
37133
37134         Fix the Win32 implementation of the 'thread' module.
37135         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
37136         pointer type.
37137         (gl_thread_self): Invoke gl_thread_self_func.
37138         (gl_thread_self_func): New declaration.
37139         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
37140         (do_init_self_key, init_self_key): New functions.
37141         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
37142         Remove some fields.
37143         (running_threads, running_lock): Remove variables.
37144         (get_current_thread_handle): New function.
37145         (gl_thread_self_func, wrapper_func, glthread_create_func,
37146         glthread_join_func, gl_thread_exit_func): Largely rewritten and
37147         simplified.
37148
37149 2008-09-30  Bruno Haible  <bruno@clisp.org>
37150
37151         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
37152         files.
37153
37154 2008-09-30  Jim Meyering  <meyering@redhat.com>
37155
37156         fts.m4: correct the test for statfs.f_type
37157         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
37158         when checking for statfs.f_type.
37159
37160 2008-09-15  Simon Josefsson  <simon@josefsson.org>
37161
37162         tests: avoid some compiler warnings
37163         * tests/test-memchr.c (main): Pass NULL indirectly.
37164         * tests/test-getdate.c (main): Remove unused variable 'ret'.
37165
37166 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
37167
37168         getdate.y: disallow countable dayshifts like "4 yesterday ago"
37169         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
37170         exactly specified dayshifts.
37171         (dayshift): New rule.
37172         (rel): Add dayshift.
37173         (relative_time_table) [tomorrow, yesterday, today, now]:
37174         Use tDAY_SHIFT in place of tDAY_UNIT.
37175         * tests/test-getdate.c: Add tests for now-disallowed countable
37176         dayshifts, e.g., "4 yesterday ago".
37177
37178 2008-09-29  Bruno Haible  <bruno@clisp.org>
37179
37180         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
37181         * tests/test-posix_spawn1.in.sh: Renamed from
37182         tests/test-posix_spawn.in.sh.
37183         * tests/test-posix_spawn2.c: New file.
37184         * tests/test-posix_spawn2.in.sh: New file.
37185         * modules/posix_spawnp-tests (Files): Update.
37186         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
37187
37188 2008-09-29  Bruno Haible  <bruno@clisp.org>
37189
37190         Propagate effects of putenv/setenv/unsetenv to child processes.
37191         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
37192         * lib/pipe.c (create_pipe): Likewise.
37193
37194 2008-09-29  Bruno Haible  <bruno@clisp.org>
37195
37196         Enable use of shell scripts as executables in mingw.
37197         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
37198         run the program as a shell script.
37199         * lib/pipe.c (create_pipe): Likewise.
37200         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
37201         resulting array.
37202
37203 2008-09-29  Eric Blake  <ebb9@byu.net>
37204
37205         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
37206
37207 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
37208
37209         * doc/posix-functions/accept.texi: Update mingw problems.
37210         * doc/posix-functions/bind.texi: Update mingw problems.
37211         * doc/posix-functions/close.texi: Update mingw problems.
37212         * doc/posix-functions/connect.texi: Update mingw problems.
37213         * doc/posix-functions/getpeername.texi: Update mingw problems.
37214         * doc/posix-functions/getsockname.texi: Update mingw problems.
37215         * doc/posix-functions/getsockopt.texi: Update mingw problems.
37216         * doc/posix-functions/ioctl.texi: Update mingw problems.
37217         * doc/posix-functions/listen.texi: Update mingw problems.
37218         * doc/posix-functions/recv.texi: Update mingw problems.
37219         * doc/posix-functions/recvfrom.texi: Update mingw problems.
37220         * doc/posix-functions/select.texi: Update mingw problems.
37221         * doc/posix-functions/send.texi: Update mingw problems.
37222         * doc/posix-functions/sendto.texi: Update mingw problems.
37223         * doc/posix-functions/setsockopt.texi: Update mingw problems.
37224         * doc/posix-functions/socket.texi: Update mingw problems.
37225
37226 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
37227             Bruno Haible  <bruno@clisp.org>
37228
37229         * lib/sys_select.in.h: Include sys/time.h.
37230         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
37231         * modules/sys_select: Depend on sys_time.
37232         * tests/test-sys_select.c: Test that sys/select.h defines struct
37233         timeval fully.
37234
37235 2008-09-29  Bruno Haible  <bruno@clisp.org>
37236
37237         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
37238         * lib/sys_select.in.h: Likewise.
37239
37240 2008-09-29  Bruno Haible  <bruno@clisp.org>
37241
37242         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
37243
37244 2008-09-29  Bruno Haible  <bruno@clisp.org>
37245
37246         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
37247         Set LIBSOCKET instead of augmenting LIBS.
37248         * modules/sockets (Link): New section.
37249         * modules/sockets-tests (test_sockets_LDADD): New variable.
37250         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
37251         * modules/poll-tests (test_poll_LDADD): New variable.
37252         * NEWS: Document the change.
37253
37254 2008-09-29  Bruno Haible  <bruno@clisp.org>
37255
37256         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
37257         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
37258         ARPA_INET_H directly.
37259         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
37260
37261 2008-09-28  Bruno Haible  <bruno@clisp.org>
37262
37263         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
37264         from gl_HEADER_SYS_SOCKET.
37265         (gl_HEADER_SYS_SOCKET): Invoke it.
37266         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
37267
37268 2008-09-28  Bruno Haible  <bruno@clisp.org>
37269
37270         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
37271         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
37272         Needed on OSF/1 4.0.
37273
37274 2008-09-28  Bruno Haible  <bruno@clisp.org>
37275
37276         Override open more carefully.
37277         * lib/open.c (orig_open): New function.
37278         (rpl_open): Use orig_open instead of open.
37279         * lib/fcntl.in.h: Add special invocation convention.
37280         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
37281         (gl_FUNC_OPEN): Invoke it.
37282
37283         Override freopen more carefully.
37284         * lib/freopen.c (orig_freopen): New function.
37285         (rpl_freopen): Use orig_freopen instead of freopen.
37286         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
37287         (gl_FUNC_FREOPEN): Invoke it.
37288
37289         Override fopen more carefully.
37290         * lib/fopen.c (orig_fopen): New function.
37291         (rpl_fopen): Use orig_fopen instead of fopen.
37292         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
37293         (gl_FUNC_FOPEN): Invoke it.
37294         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
37295
37296 2008-09-28  Bruno Haible  <bruno@clisp.org>
37297
37298         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
37299         SIGPIPE.
37300
37301 2008-09-28  Bruno Haible  <bruno@clisp.org>
37302
37303         * tests/test-sigaction.c (handler, main): Disable the check whether
37304         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
37305         glibc systems with LinuxThreads.
37306
37307 2008-09-28  Bruno Haible  <bruno@clisp.org>
37308
37309         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
37310
37311         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
37312         with AIX xlc.
37313         * lib/fcntl.in.h (open): Likewise.
37314         Reported by Rainer Tammer <tammer@tammer.net>.
37315
37316 2008-09-28  Bruno Haible  <bruno@clisp.org>
37317
37318         * modules/posix_spawnp-tests: New file.
37319         * tests/test-posix_spawn.c: New file.
37320         * tests/test-posix_spawn.in.sh: New file.
37321
37322         New module 'posix_spawnp'.
37323         * modules/posix_spawnp: New file.
37324         * lib/spawnp.c: New file, from GNU libc with modifications.
37325         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
37326
37327         New module 'posix_spawn'.
37328         * modules/posix_spawn: New file.
37329         * lib/spawn.c: New file, from GNU libc with modifications.
37330         * doc/posix-functions/posix_spawn.texi: Mention the new module.
37331
37332         New module 'posix_spawnattr_destroy'.
37333         * modules/posix_spawnattr_destroy: New file.
37334         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
37335         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
37336         module.
37337
37338         New module 'posix_spawnattr_setsigmask'.
37339         * modules/posix_spawnattr_setsigmask: New file.
37340         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
37341         modifications.
37342         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
37343         new module.
37344
37345         New module 'posix_spawnattr_getsigmask'.
37346         * modules/posix_spawnattr_getsigmask: New file.
37347         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
37348         modifications.
37349         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
37350         new module.
37351
37352         New module 'posix_spawnattr_setsigdefault'.
37353         * modules/posix_spawnattr_setsigdefault: New file.
37354         * lib/spawnattr_setdefault.c: New file, from GNU libc with
37355         modifications.
37356         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
37357         new module.
37358
37359         New module 'posix_spawnattr_getsigdefault'.
37360         * modules/posix_spawnattr_getsigdefault: New file.
37361         * lib/spawnattr_getdefault.c: New file, from GNU libc with
37362         modifications.
37363         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
37364         new module.
37365
37366         New module 'posix_spawnattr_setschedpolicy'.
37367         * modules/posix_spawnattr_setschedpolicy: New file.
37368         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
37369         modifications.
37370         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
37371         new module.
37372
37373         New module 'posix_spawnattr_getschedpolicy'.
37374         * modules/posix_spawnattr_getschedpolicy: New file.
37375         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
37376         modifications.
37377         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
37378         new module.
37379
37380         New module 'posix_spawnattr_setschedparam'.
37381         * modules/posix_spawnattr_setschedparam: New file.
37382         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
37383         modifications.
37384         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
37385         new module.
37386
37387         New module 'posix_spawnattr_getschedparam'.
37388         * modules/posix_spawnattr_getschedparam: New file.
37389         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
37390         modifications.
37391         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
37392         new module.
37393
37394         New module 'posix_spawnattr_setpgroup'.
37395         * modules/posix_spawnattr_setpgroup: New file.
37396         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
37397         modifications.
37398         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
37399         module.
37400
37401         New module 'posix_spawnattr_getpgroup'.
37402         * modules/posix_spawnattr_getpgroup: New file.
37403         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
37404         modifications.
37405         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
37406         module.
37407
37408         New module 'posix_spawnattr_setflags'.
37409         * modules/posix_spawnattr_setflags: New file.
37410         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
37411         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
37412         module.
37413
37414         New module 'posix_spawnattr_getflags'.
37415         * modules/posix_spawnattr_getflags: New file.
37416         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
37417         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
37418         module.
37419
37420         New module 'posix_spawnattr_init'.
37421         * modules/posix_spawnattr_init: New file.
37422         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
37423         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
37424         module.
37425
37426         New module 'posix_spawn_file_actions_destroy'.
37427         * modules/posix_spawn_file_actions_destroy: New file.
37428         * lib/spawn_faction_destroy.c: New file, from GNU libc with
37429         modifications.
37430         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
37431         the new module.
37432
37433         New module 'posix_spawn_file_actions_addopen'.
37434         * modules/posix_spawn_file_actions_addopen: New file.
37435         * lib/spawn_faction_addopen.c: New file, from GNU libc with
37436         modifications.
37437         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
37438         the new module.
37439
37440         New module 'posix_spawn_file_actions_adddup2'.
37441         * modules/posix_spawn_file_actions_adddup2: New file.
37442         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
37443         modifications.
37444         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
37445         the new module.
37446
37447         New module 'posix_spawn_file_actions_addclose'.
37448         * modules/posix_spawn_file_actions_addclose: New file.
37449         * lib/spawn_faction_addclose.c: New file, from GNU libc with
37450         modifications.
37451         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
37452         the new module.
37453
37454         New module 'posix_spawn_file_actions_init'.
37455         * modules/posix_spawn_file_actions_init: New file.
37456         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
37457         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
37458         new module.
37459
37460         New module 'posix_spawn-internal'.
37461         * modules/posix_spawn-internal: New file.
37462         * lib/spawn_int.h: New file, from GNU libc with modifications.
37463         * lib/spawni.c: New file, from GNU libc with modifications.
37464         * m4/posix_spawn.m4: New file.
37465
37466         New module 'spawn'.
37467         * modules/spawn: New file.
37468         * lib/spawn.in.h: New file, from GNU libc with modifications.
37469         * m4/spawn_h.m4: New file.
37470         * doc/posix-headers/spawn.texi: Mention the new module.
37471
37472 2008-09-28  Bruno Haible  <bruno@clisp.org>
37473
37474         * modules/sched-tests: New file.
37475         * tests/test-sched.c: New file.
37476
37477         New module 'sched'.
37478         * modules/sched: New file.
37479         * lib/sched.in.h: New file.
37480         * m4/sched_h.m4: New file.
37481         * doc/posix-headers/sched.texi: Mention the new module.
37482
37483 2008-09-27  Eric Blake  <ebb9@byu.net>
37484
37485         Fix previous patch, and tweak references to $0.
37486         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
37487         (func_version, func_gnulib_dir): Don't call this program
37488         gnulib-tool.
37489         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
37490         with using $0 in function.
37491         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
37492         (func_fatal_error): Reuse the name the user invoked us with.
37493
37494 2008-09-27  Bruno Haible  <bruno@clisp.org>
37495
37496         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
37497         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
37498         (gl_ICONV_H): Not here.
37499         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
37500         instead of assigning ICONV_H directly.
37501
37502         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
37503         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
37504         WCHAR_H directly.
37505
37506 2008-09-27  Bruno Haible  <bruno@clisp.org>
37507
37508         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
37509         * modules/arpa_inet (Depends-on): Add link-warning.
37510         (Makefile.am): Insert the definition of GL_LINK-WARNING.
37511         * modules/unistd (Makefile.am): Likewise.
37512
37513 2008-09-26  Bruno Haible  <bruno@clisp.org>
37514
37515         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
37516         variables.
37517         (func_version): Essentially copied from gnulib-tool.
37518         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
37519         func_readlink): Copied from gnulib-tool.
37520
37521 2008-09-26  Bruno Haible  <bruno@clisp.org>
37522
37523         * gnulib-tool (func_version): Change directory to $gnulib_dir before
37524         invoking git-version-gen.
37525
37526 2008-09-26  Bruno Haible  <bruno@clisp.org>
37527
37528         * posix-modules: Update to directory names changed on 2008-01-19.
37529         Remove commas in output before splitting into words. No more need to
37530         avoid 'ftruncate' since 2007-02-19.
37531
37532 2008-09-26  Bruno Haible  <bruno@clisp.org>
37533
37534         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
37535
37536 2008-09-26  Bruno Haible  <bruno@clisp.org>
37537
37538         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
37539         * modules/fwriteerror (Depends-on): Add errno.
37540
37541 2008-09-26  Bruno Haible  <bruno@clisp.org>
37542
37543         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
37544         * tests/test-vc-list-files-cvs.sh: Likewise.
37545
37546 2008-09-26  Bruno Haible  <bruno@clisp.org>
37547
37548         * doc/posix-headers/sys_resource.texi: Reorder items.
37549
37550 2008-09-26  Jim Meyering  <meyering@redhat.com>
37551
37552         fts: tweak inode comparison function
37553         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
37554         inode numbers, as documented.
37555
37556         fts: sort dirent entries on inode number before traversing
37557         This avoids a quadratic, seek-related performance penalty when
37558         operating on a directory containing many entries (measurable at 10k;
37559         3.5 hours at 2 million entries with a cold cache) on certain types
37560         of file systems, including ext3 and ext4, but not tmpfs.
37561         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
37562         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
37563         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
37564         (fs_handles_readdir_ordered_dirents_efficiently): New function.
37565         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
37566         (fts_build): Set the stat.st_ino member from D_INO.
37567         If it is likely to be useful, sort dirent entries on inode number.
37568
37569         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
37570         and the struct statfs.f_type member.
37571         * modules/fts (Depends-on): Add d-ino.
37572
37573 2008-09-26  Bruno Haible  <bruno@clisp.org>
37574
37575         * modules/sigpipe-die (Depends-on): Add sigpipe.
37576
37577         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
37578         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
37579         and GNULIB_STDIO_H_SIGPIPE are set.
37580         * lib/stdio-write.c: New file.
37581         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
37582         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
37583         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
37584         REPLACE_STDIO_WRITE_FUNCS.
37585         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
37586         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
37587         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
37588         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
37589         * modules/stdio (Files): Add lib/stdio-write.c.
37590         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
37591         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
37592         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
37593         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
37594         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
37595         REPLACE_FPRINTF_POSIX.
37596         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
37597         REPLACE_PRINTF_POSIX.
37598         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
37599         REPLACE_VFPRINTF_POSIX.
37600         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
37601         REPLACE_VPRINTF_POSIX.
37602         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
37603         SIGPIPE issue.
37604         * doc/posix-functions/fputc.texi: Likewise.
37605         * doc/posix-functions/fputs.texi: Likewise.
37606         * doc/posix-functions/fwrite.texi: Likewise.
37607         * doc/posix-functions/printf.texi: Likewise.
37608         * doc/posix-functions/putc.texi: Likewise.
37609         * doc/posix-functions/putchar.texi: Likewise.
37610         * doc/posix-functions/puts.texi: Likewise.
37611         * doc/posix-functions/vfprintf.texi: Likewise.
37612         * doc/posix-functions/vprintf.texi: Likewise.
37613
37614         * modules/safe-write (Depends-on): Add write.
37615
37616         * modules/sigpipe-tests: New file.
37617         * tests/test-sigpipe.c: New file.
37618         * tests/test-sigpipe.sh: New file.
37619
37620         * modules/write: New file.
37621         * lib/unistd.in.h: Include <sys/types.h>.
37622         (write): New declaration.
37623         * lib/write.c: New file.
37624         * m4/write.m4: New file.
37625         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
37626         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
37627         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
37628         GNULIB_WRITE, REPLACE_WRITE.
37629         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
37630         and the SIGPIPE issue.
37631
37632         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
37633         (raise): New declaration.
37634         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
37635         (ext_signal): New function.
37636         (rpl_raise): New function.
37637         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
37638         GNULIB_SIGNAL_H_SIGPIPE.
37639         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
37640         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
37641
37642         * modules/sigpipe: New file.
37643         * m4/sigpipe.m4: New file.
37644
37645 2008-09-25  Derek Price  <derek@ximbiot.com>
37646             Bruno Haible  <bruno@clisp.org>
37647
37648         * gnulib-tool (func_import): Report all license incompatibilities, not
37649         just the first one.
37650
37651 2008-09-25  Bruno Haible  <bruno@clisp.org>
37652
37653         * gnulib-tool (func_import): When computing the edits, consider not
37654         only the Makefile.ams that exist but also those that will be generated.
37655
37656 2008-09-25  Simon Josefsson  <simon@josefsson.org>
37657
37658         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
37659         fixes gnulib-tool --test warning about duplicate dependency.
37660
37661 2008-09-25  Bruno Haible  <bruno@clisp.org>
37662
37663         * gnulib-tool: Don't ask the user to perform edits in the generated
37664         Makefile.ams.
37665         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
37666         apply to the Makefile.am being generated.
37667         (func_emit_tests_Makefile_am): Execute edits that apply to the
37668         Makefile.am being generated.
37669         (func_import): Setup list of Makefile.am edits before emitting the
37670         Makefile.ams, not at the end.
37671         (func_create_testdir): Update.
37672         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
37673
37674 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
37675
37676         * gnulib-tool (func_import): Store the --tests-base option in the
37677         comment in gnulib-cache.m4.
37678
37679 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
37680
37681         * NEWS: Document increased portability that sys_select now provides.
37682
37683         * lib/sys_select.in.h: Install select wrapper.
37684         * lib/sys_socket.in.h: Use more descriptive name when there is no
37685         select wrapper.
37686         * lib/winsock-select.c: New.
37687         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
37688         Require gl_HEADER_SYS_SOCKET.
37689         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
37690         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
37691         * tests/test-sys_select.c: Add functional tests.
37692
37693 2008-09-24  Eric Blake  <ebb9@byu.net>
37694
37695         open, fopen: close fd leak in last patch
37696         * lib/open.c (rpl_open): Close fd before returning error.
37697         * lib/fopen.c (rpl_fopen): Close fd before returning error.
37698         * doc/posix-functions/open.texi (open): Document that Irix also
37699         has the bug.
37700         * doc/posix-functions/fopen.texi (fopen): Likewise.
37701         Reported by Paolo Bonzini.
37702
37703 2008-09-24  Bruno Haible  <bruno@clisp.org>
37704
37705         Ensure that a filename ending in a slash cannot be used to access a
37706         non-directory.
37707         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
37708         to check whether it's really a directory.
37709         * lib/fopen.c: Include fcntl.h, unistd.h.
37710         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
37711         and fdopen().
37712         * modules/fopen (Depends-on): Add unistd.
37713         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
37714         * tests/test-fopen.c (main): Likewise.
37715         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
37716         * doc/posix-functions/fopen.texi: Likewise.
37717         Reported by Eric Blake.
37718
37719 2008-09-23  Eric Blake  <ebb9@byu.net>
37720
37721         c-stack: avoid compiler optimizations when provoking overflow
37722         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
37723         recursion harder to optimize, to ensure a stack overflow occurs.
37724         * tests/test-c-stack.c (recurse): Likewise.
37725         Borrowed from libsigsegv.
37726
37727         c-stack: work around Irix sigaltstack bug
37728         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
37729         whether sigaltstack uses wrong end of stack_t (copied in part from
37730         libsigsegv).
37731         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
37732         Irix bug, without requiring an over-allocation.
37733         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
37734         bug.
37735
37736         fopen: document mingw bug on directories
37737         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
37738         not allowing a stream visiting a directory, even though reading
37739         from such a stream is not portable.
37740
37741 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
37742
37743         * lib/poll.c: Rewrite.
37744         * modules/poll: Depend on alloca.
37745
37746 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
37747
37748         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
37749         instead define prototypes for a full set of wrappers.  Ensure
37750         that Cygwin does not use the compatibility code, which is only
37751         for MinGW.
37752         * lib/winsock.c: New.
37753         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
37754         * modules/sys_socket: Add lib/winsock.c.
37755
37756         * modules/poll-tests: Add errno and perror.
37757         * tests/test-poll.c: Use ioctl, not ioctlsocket.
37758
37759 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
37760
37761         * tests/test-poll.c: Downgrade minimum needed Winsock version.
37762
37763 2008-09-23  Bruno Haible  <bruno@clisp.org>
37764
37765         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
37766         * doc/glibc-functions/*: Likewise.
37767
37768 2008-09-23  Simon Josefsson  <simon@josefsson.org>
37769
37770         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
37771         success.
37772
37773 2008-09-22  Eric Blake  <ebb9@byu.net>
37774             Bruno Haible  <bruno@clisp.org>
37775
37776         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
37777         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
37778         supply %A but mishandle pseudo-NaN.
37779         Reported by Simon Josefsson.
37780
37781 2008-09-21  Bruno Haible  <bruno@clisp.org>
37782
37783         * tests/test-lock.c (main): Tweak skip message.
37784         * tests/test-tls.c (main): Likewise.
37785
37786 2008-09-21  Bruno Haible  <bruno@clisp.org>
37787
37788         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
37789         whether 'struct sigaction' has sa_sigaction here...
37790         (gl_PREREQ_SIG_HANDLER_H): ... not here.
37791         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
37792
37793 2008-09-21  Bruno Haible  <bruno@clisp.org>
37794
37795         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
37796         section.
37797         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
37798         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
37799         the new section.
37800         (Support for obsolete systems lacking POSIX:2001): New section.
37801         (String handling <string.h>): Move strdup to the new section.
37802         Suggested by Simon Josefsson and Paolo Bonzini.
37803
37804 2008-09-21  Bruno Haible  <bruno@clisp.org>
37805
37806         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
37807         exponents in %e and %g results on 'long double'. Needed for mingw's
37808         improved *printf functions.
37809         * tests/test-vasprintf-posix.c (test_function): Likewise.
37810         * tests/test-snprintf-posix.h (test_function): Likewise.
37811         * tests/test-sprintf-posix.h (test_function): Likewise.
37812         Reported by Eric Blake.
37813
37814 2008-09-21  Bruno Haible  <bruno@clisp.org>
37815
37816         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
37817         * tests/test-sprintf-posix.h (test_function): Likewise.
37818
37819 2008-09-21  Bruno Haible  <bruno@clisp.org>
37820
37821         * modules/getpass (Depends-on): Add strdup-posix.
37822
37823         New module 'strdup-posix'.
37824         * modules/strdup-posix: New file.
37825         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
37826         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
37827         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
37828         REPLACE_STRDUP.
37829         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
37830         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
37831         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
37832         strdup-posix.
37833
37834         * modules/strdup (Depends-on): Remove malloc-posix.
37835
37836 2008-09-20  Bruno Haible  <bruno@clisp.org>
37837
37838         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
37839         Wildenhues.
37840
37841 2008-09-20  Bruno Haible  <bruno@clisp.org>
37842
37843         Ensure that wint_t gets defined on IRIX 5.3.
37844         * lib/wchar.in.h (wint_t): Define if not defined by the system.
37845         * lib/wctype.in.h (wint_t): Likewise.
37846         (__wctype_wint_t): Remove type.
37847         (isw*): Use wint_t instead of __wctype_wint_t.
37848         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
37849         * modules/wchar (Files): Add m4/wint_t.m4.
37850         (Makefile.am): Substitute HAVE_WINT_T.
37851         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
37852         * tests/test-wctype.c: Check that wint_t is defined.
37853         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
37854         * doc/posix-headers/wctype.texi: Likewise.
37855         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
37856
37857 2008-09-18  Bruno Haible  <bruno@clisp.org>
37858
37859         * gnulib-tool (func_exit): Update comment.
37860
37861 2008-09-18  Simon Josefsson  <simon@josefsson.org>
37862
37863         * modules/getaddrinfo (Depends-on): Remove strdup, this module
37864         assumes strdup exists and does not depend on strdup to return
37865         ENOMEM on out of memory conditions.
37866
37867 2008-09-18  Bruno Haible  <bruno@clisp.org>
37868
37869         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
37870         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
37871         digits for the exponent.
37872
37873 2008-09-18  Jim Meyering  <meyering@redhat.com>
37874             Bruno Haible  <bruno@clisp.org>
37875
37876         * lib/vasnprintf.c (decimal_point_char): Define also if
37877         NEED_PRINTF_INFINITE_LONG_DOUBLE.
37878
37879 2008-09-16  Bruno Haible  <bruno@clisp.org>
37880         and Eric Blake  <ebb9@byu.net>
37881
37882         vasnprintf: support Irix 5.3
37883         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
37884         that mishandle long double infinity.
37885         Reported by Tom G. Christensen.
37886
37887 2008-09-16  Bruno Haible  <bruno@clisp.org>
37888
37889         * doc/glibc-functions/scandir.texi: Mention the function is missing on
37890         Solaris 9.
37891         * doc/glibc-functions/alphasort.texi: Likewise.
37892         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
37893
37894 2008-09-16  Jim Meyering  <meyering@redhat.com>
37895
37896         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
37897         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
37898         a umask modification leak out of a subshell.  Otherwise, the
37899         opensolaris /bin/sh would be accepted and thus cause unwarranted
37900         failures in the coreutils test suite.
37901
37902 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
37903
37904         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
37905         to succeed.
37906
37907 2008-09-16  Jim Meyering  <meyering@redhat.com>
37908
37909         avoid spurious test failure when library is built without ACL support
37910         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
37911         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
37912         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
37913         * tests/test-copy-acl.sh: Likewise.
37914
37915 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37916
37917         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
37918         based on character occurrence counts.
37919
37920 2008-09-15  Eric Blake  <ebb9@byu.net>
37921
37922         tests: avoid some compiler warnings
37923         * tests/test-memchr.c (main): Pass NULL indirectly.
37924         * tests/test-closein.c (main): Avoid unused variable.
37925
37926 2008-09-15  Bruno Haible  <bruno@clisp.org>
37927
37928         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
37929         are missing on OpenBSD 4.0 individually.
37930         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
37931
37932 2008-09-15  Bruno Haible  <bruno@clisp.org>
37933
37934         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
37935         * doc/posix-functions/strerror.texi: Mention also Cygwin.
37936         * doc/posix-functions/perror.texi: Likewise.
37937         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
37938         is missing.
37939         Reported by Eric Blake.
37940
37941         * lib/errno.in.h: Use replacement values >= 2000.
37942         Reported by Eric Blake.
37943
37944 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37945
37946         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
37947         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
37948         limit.
37949         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
37950         compareseq was aborted.
37951
37952 2008-09-14  Bruno Haible  <bruno@clisp.org>
37953
37954         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
37955         yvec_edit_count.
37956         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
37957         (fstrcmp_bounded): Simplify result computation accordingly.
37958
37959 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37960
37961         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
37962         (fstrcmp): Define in terms of fstrcmp_bounded.
37963         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
37964         lower_bound argument.
37965         Return quickly if the result is certainly < lower_bound.
37966         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
37967
37968 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37969
37970         * lib/diffseq.h (EARLY_ABORT): New macro.
37971         (compareseq): Change return type to bool. Return true when EARLY_ABORT
37972         evaluates to true.
37973
37974 2008-09-14  Bruno Haible  <bruno@clisp.org>
37975
37976         * modules/perror-tests: New file.
37977         * tests/test-perror.sh: New file.
37978         * tests/test-perror.c: New file.
37979
37980         New module 'perror'.
37981         * lib/stdio.in.h (perror): New declaration.
37982         * lib/perror.c: New file.
37983         * m4/perror.m4: New file.
37984         * modules/perror: New file.
37985         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
37986         * doc/posix-functions/perror.texi: Mention the perror module.
37987         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
37988         REPLACE_PERROR.
37989         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
37990         REPLACE_PERROR.
37991
37992 2008-09-14  Bruno Haible  <bruno@clisp.org>
37993
37994         * modules/stdio (Makefile.am): Reorder to match the order in
37995         lib/stdio.in.h.
37996         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
37997
37998 2008-09-13  Bruno Haible  <bruno@clisp.org>
37999
38000         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
38001
38002 2008-09-13  Bruno Haible  <bruno@clisp.org>
38003
38004         Extend strerror to cover the added errno values.
38005         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
38006         (rpl_strerror): Provide error messages for the added errno values and
38007         for the WSA* values.
38008         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
38009         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
38010         strerror.
38011         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
38012         * modules/strerror (Depends-on): Add errno.
38013         * doc/posix-functions/strerror.texi: Document the change.
38014         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
38015         and EOVERFLOW.
38016
38017 2008-09-13  Bruno Haible  <bruno@clisp.org>
38018
38019         * modules/EOVERFLOW: Remove file.
38020         * m4/eoverflow.m4: Remove file.
38021         * modules/EOVERFLOW-tests: Remove file.
38022         * tests/test-EOVERFLOW.c: Remove file.
38023         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
38024         * modules/ftell (Depends-on): Likewise.
38025         * modules/getdelim (Depends-on): Likewise.
38026         * modules/getugroups (Depends-on): Likewise.
38027         * modules/poll (Depends-on): Likewise.
38028         * modules/snprintf (Depends-on): Likewise.
38029         * modules/sprintf-posix (Depends-on): Likewise.
38030         * modules/vasnprintf (Depends-on): Likewise.
38031         * modules/vasprintf (Depends-on): Likewise.
38032         * modules/vfprintf-posix (Depends-on): Likewise.
38033         * modules/vsnprintf (Depends-on): Likewise.
38034         * modules/vsprintf-posix (Depends-on): Likewise.
38035         * modules/xvasprintf (Depends-on): Likewise.
38036         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
38037         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
38038         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
38039         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
38040         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
38041         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
38042         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
38043         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
38044         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
38045         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
38046         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
38047         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
38048         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
38049         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
38050         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
38051         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
38052         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
38053         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
38054         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
38055         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
38056         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
38057         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
38058         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
38059         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
38060         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
38061         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
38062         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
38063         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
38064         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
38065         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
38066         * MODULES.html.sh: Remove EOVERFLOW.
38067         * NEWS: Mention the change.
38068
38069 2008-09-13  Bruno Haible  <bruno@clisp.org>
38070
38071         * modules/errno-tests: New file.
38072         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
38073
38074         * lib/errno.in.h: New file.
38075         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
38076         * modules/errno: New file.
38077         * doc/posix-headers/errno.texi: Update documentation.
38078         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
38079
38080 2008-09-13  Bruno Haible  <bruno@clisp.org>
38081
38082         * tests/test-poll.c: Use #if for native Windows, rather than testing
38083         __MSVCRT__.
38084
38085 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
38086             Bruno Haible  <bruno@clisp.org>
38087
38088         * lib/glob.c: Don't include <pwd.h> on native Windows.
38089         (WINDOWS32): New macro.
38090         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
38091
38092 2008-09-13  Bruno Haible  <bruno@clisp.org>
38093
38094         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
38095         (ETIMEDOUT): Remove macro.
38096         (glthread_cond_timedwait_multithreaded): New declaration.
38097         (glthread_cond_timedwait): Use it.
38098         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
38099         (glthread_cond_timedwait_multithreaded): New function.
38100
38101 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
38102
38103         * modules/poll-tests: Do not check for io.h.
38104         * tests/test-poll.c: Check for __MSVCRT__ instead.
38105
38106 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
38107
38108         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
38109         * modules/poll-tests: Add inet_pton, stdbool, sockets.
38110         * tests/test-poll.c: Use them.  Use _pipe on Windows.
38111
38112 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
38113
38114         * modules/poll-tests: New.
38115         * tests/test-poll.c: New.
38116
38117 2008-09-12  Eric Blake  <ebb9@byu.net>
38118
38119         frexp: test for NetBSD failure on -0.0
38120         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
38121         not all, bugs from NetBSD 3.0 have been fixed.
38122         * doc/posix-functions/frexp.texi (frexp): Document bug.
38123         Reported by Thomas Klausner.
38124
38125         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
38126         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
38127         literal -0.0.
38128         Reported by Jonathan C. Patschke <jp@centtech.com>.
38129
38130 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
38131
38132         * lib/glthread/cond.h: Use dummy implementation also if
38133         USE_WIN32_THREADS.
38134
38135 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
38136
38137         * modules/fnmatch-posix (License): Change to LGPLv2+.
38138         * modules/fnmatch-gnu (License): Likewise.
38139
38140 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
38141
38142         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
38143
38144 2008-09-11  Jim Meyering  <meyering@redhat.com>
38145
38146         * users.txt: Add gtk-vnc.
38147
38148 2008-09-08  Simon Josefsson  <simon@josefsson.org>
38149
38150         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
38151         rotate amounts.
38152
38153         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
38154         required for 16-bit and 8-bit rotates.
38155         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
38156         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
38157         UINT8_MAX instead of hard-coded constants.
38158         Suggested by Paul Eggert.
38159
38160 2008-09-07  Bruno Haible  <bruno@clisp.org>
38161
38162         * tests/test-striconveh.c (main): Check behaviour when converting from
38163         UTF-7.
38164
38165         Make striconveh work better with stateful encodings.
38166         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
38167         that iconv does not increment the inptr when returning -1/EINVAL.
38168
38169 2008-09-07  Bruno Haible  <bruno@clisp.org>
38170
38171         * build-aux/config.rpath: Update according to libtool-2.2.6.
38172         * build-aux/config.libpath: Likewise.
38173
38174 2008-09-06  Bruno Haible  <bruno@clisp.org>
38175
38176         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
38177         * lib/freadptr.c (freadptr): Likewise.
38178         * lib/freadseek.c (freadptrinc): Likewise.
38179         Reported by Simon Josefsson.
38180
38181 2008-09-06  Bruno Haible  <bruno@clisp.org>
38182
38183         * modules/freadptr (License): Change to LGPLv2+.
38184         * modules/freadseek (License): Likewise.
38185         Suggested by Eric Blake.
38186
38187         * modules/memchr2 (License): Change to LGPLv2+.
38188         Approved by Eric Blake.
38189
38190 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38191             Bruno Haible  <bruno@clisp.org>
38192
38193         Make gnulib-tool work with native 'sed' on AIX.
38194         * gnulib-tool (sed_noop): New variable.
38195         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
38196         func_add_or_update, func_create_testdir): Use it to initialize sed
38197         script variables.
38198         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
38199
38200 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
38201             Bruno Haible  <bruno@clisp.org>
38202
38203         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
38204         also works after #include directives.
38205
38206 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
38207
38208         getdate.y: reject an out-of-range timezone value
38209         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
38210         the range [-24...+24].  When specified with only one or two digits,
38211         * tests/test-getdate.c: Tests for the fix.
38212         * doc/getdate.texi: Document this change.
38213
38214 2008-09-03  Bruno Haible  <bruno@clisp.org>
38215
38216         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
38217
38218 2008-09-02  Simon Josefsson  <simon@josefsson.org>
38219
38220         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
38221         <bruce.korb@gmail.com> with ideas from Ben Pfaff
38222         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
38223         Blake <ebb9@byu.net>.
38224
38225         * tests/test-bitrotate.c: Add more test vectors.
38226
38227 2008-09-02  Eric Blake  <ebb9@byu.net>
38228
38229         vasnprintf-posix: handle large precision via %.*d
38230         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
38231         when handling it ourselves.
38232         * tests/test-vasnprintf-posix.c (test_function): Add test.
38233         * tests/test-snprintf-posix.h (test_function): Likewise.
38234         * tests/test-sprintf-posix.h (test_function): Likewise.
38235         * tests/test-vasprintf-posix.c (test_function): Likewise.
38236         Reported by Alain Guibert.
38237
38238 2008-09-01  Eric Blake  <ebb9@byu.net>
38239
38240         c-stack: make configure-time check more robust
38241         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
38242         successful sigaction call.
38243         Reported by Tom G. Christensen.
38244
38245 2008-09-01  Bruno Haible  <bruno@clisp.org>
38246
38247         New module 'findprog-lgpl'.
38248         * modules/findprog-lgpl: New file.
38249         * lib/findprog-lgpl.c: New file.
38250         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
38251         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
38252         to decide whether to use strdup or xstrdup, concatenated_filename or
38253         xconcatenated_filename.
38254
38255 2008-09-01  Bruno Haible  <bruno@clisp.org>
38256
38257         Split module 'concat-filename' into 'concat-filename' (LGPL) and
38258         'xconcat-filename' (GPL).
38259         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
38260         (License): Change to LGPLv2+.
38261         * modules/xconcat-filename: New file.
38262         * lib/concat-filename.h (concatenated_filename): Change specification.
38263         (xconcatenated_filename): New declaration.
38264         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
38265         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
38266         memory situations.
38267         * lib/xconcat-filename.c: New file.
38268         * NEWS: Mention the change.
38269         * lib/findprog.c: Include concat-filename.h, not filename.h.
38270         (find_in_path): Use xconcatenated_filename instead of
38271         concatenated_filename.
38272         * lib/javacomp.c: Include concat-filename.h, not filename.h.
38273         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
38274         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
38275         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
38276         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
38277         instead of concatenated_filename.
38278         * lib/javaexec.c: Include concat-filename.h, not filename.h.
38279         (execute_java_class): Use xconcatenated_filename instead of
38280         concatenated_filename.
38281         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
38282         * modules/javacomp (Depends-on): Likewise.
38283         * modules/javaexec (Depends-on): Likewise.
38284
38285 2008-09-01  Bruno Haible  <bruno@clisp.org>
38286
38287         Split module 'filename' into 'filename' and 'concat-filename'.
38288         * modules/filename: Keep only lib/filename.h.
38289         (License): Change to LGPLv2+.
38290         * modules/concat-filename: New file, extracted from modules/filename.
38291         * lib/filename.h (concatenated_filename): Remove declaration.
38292         * lib/concat-filename.h: New file, extracted from lib/filename.h.
38293         * lib/concat-filename.c: Include concat-filename.h.
38294         * NEWS: Mention the change.
38295
38296 2008-09-01  Simon Josefsson  <simon@josefsson.org>
38297
38298         * lib/bitrotate.h (rotl8, rotr8): Add.
38299
38300         * modules/bitrotate (configure.ac): Need
38301         AC_REQUIRE([AC_C_INLINE]).
38302         (Description): Mention stdint.h.  Reported by Bruno Haible
38303         <bruno@clisp.org>.
38304
38305         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
38306         Paolo Bonzini <bonzini@gnu.org>.
38307
38308 2008-08-31  Bruno Haible  <bruno@clisp.org>
38309
38310         Assume Solaris specific bi-arch conventions on Solaris systems.
38311         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
38312         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
38313         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
38314         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
38315         like acl_libdirstem.
38316         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
38317         acl_libdirstem.
38318         * NEWS: Mention the change.
38319         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
38320
38321 2008-08-31  Jim Meyering  <meyering@redhat.com>
38322
38323         * lib/strftime.h: Add comments describing the two added arguments.
38324
38325         remove duplicate #include directives
38326         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
38327         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
38328
38329 2008-08-31  Bruno Haible  <bruno@clisp.org>
38330
38331         New module 'sigpipe-die'.
38332         * modules/sigpipe-die: New file.
38333         * lib/sigpipe-die.h: New file.
38334         * lib/sigpipe-die.c: New file.
38335         * MODULES.html.sh (Signal handling): Add sigpipe-die.
38336
38337 2008-08-31  Bruno Haible  <bruno@clisp.org>
38338
38339         Don't override previously installed signal handlers.
38340         * lib/fatal-signal.c (saved_sigactions): New variable.
38341         (uninstall_handlers): Reset the signal to the saved handler, not
38342         to SIG_DFL (except when ignored).
38343         (install_handlers): Save the previous handlers.
38344
38345 2008-08-30  Bruno Haible  <bruno@clisp.org>
38346
38347         * gnulib-tool (func_reset_sigpipe): New function.
38348         (func_get_automake_snippet, func_modules_transitive_closure,
38349         func_import): Invoke it before a join command that reads from stdin,
38350         to avoid "echo: write error: Broken pipe" error messages on stderr.
38351         Reported by Sam Steingold <sds@gnu.org>.
38352
38353 2008-08-30  Bruno Haible  <bruno@clisp.org>
38354
38355         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
38356         Code copied from m4/open.m4.
38357         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
38358         access and the filename ends in a slash. Code copied from lib/open.c.
38359         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
38360         * tests/test-fopen.c (main): Check against bug with trailing slash.
38361
38362 2008-08-29  Bruno Haible  <bruno@clisp.org>
38363
38364         Avoid some "gcc -pedantic" warnings.
38365         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
38366         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
38367         * lib/dirent.in.h: Likewise.
38368         * lib/fcntl.in.h: Likewise.
38369         * lib/float.in.h: Likewise.
38370         * lib/iconv.in.h: Likewise.
38371         * lib/inttypes.in.h: Likewise.
38372         * lib/locale.in.h: Likewise.
38373         * lib/math.in.h: Likewise.
38374         * lib/netinet_in.in.h: Likewise.
38375         * lib/search.in.h: Likewise.
38376         * lib/signal.in.h: Likewise.
38377         * lib/stdarg.in.h: Likewise.
38378         * lib/stdint.in.h: Likewise.
38379         * lib/stdio.in.h: Likewise.
38380         * lib/stdlib.in.h: Likewise.
38381         * lib/string.in.h: Likewise.
38382         * lib/strings.in.h: Likewise.
38383         * lib/sys_select.in.h: Likewise.
38384         * lib/sys_socket.in.h: Likewise.
38385         * lib/sys_stat.in.h: Likewise.
38386         * lib/sys_time.in.h: Likewise.
38387         * lib/sysexits.in.h: Likewise.
38388         * lib/time.in.h: Likewise.
38389         * lib/unistd.in.h: Likewise.
38390         * lib/wchar.in.h: Likewise.
38391         * lib/wctype.in.h: Likewise.
38392         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
38393         * modules/fchdir (Makefile.am): Likewise.
38394         * modules/fcntl (Makefile.am): Likewise.
38395         * modules/float (Makefile.am): Likewise.
38396         * modules/iconv_open (Makefile.am): Likewise.
38397         * modules/inttypes (Makefile.am): Likewise.
38398         * modules/locale (Makefile.am): Likewise.
38399         * modules/math (Makefile.am): Likewise.
38400         * modules/netinet_in (Makefile.am): Likewise.
38401         * modules/search (Makefile.am): Likewise.
38402         * modules/signal (Makefile.am): Likewise.
38403         * modules/stdarg (Makefile.am): Likewise.
38404         * modules/stdint (Makefile.am): Likewise.
38405         * modules/stdio (Makefile.am): Likewise.
38406         * modules/stdlib (Makefile.am): Likewise.
38407         * modules/string (Makefile.am): Likewise.
38408         * modules/strings (Makefile.am): Likewise.
38409         * modules/sys_select (Makefile.am): Likewise.
38410         * modules/sys_socket (Makefile.am): Likewise.
38411         * modules/sys_stat (Makefile.am): Likewise.
38412         * modules/sys_time (Makefile.am): Likewise.
38413         * modules/sysexits (Makefile.am): Likewise.
38414         * modules/time (Makefile.am): Likewise.
38415         * modules/unistd (Makefile.am): Likewise.
38416         * modules/wchar (Makefile.am): Likewise.
38417         * modules/wctype (Makefile.am): Likewise.
38418         Reported by Reuben Thomas <rrt@sc3d.org>.
38419
38420 2008-08-29  Bruno Haible  <bruno@clisp.org>
38421
38422         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
38423         any more.
38424
38425 2008-08-29  Simon Josefsson  <simon@josefsson.org>
38426
38427         * MODULES.html.sh (Misc): Add bitrotate.
38428
38429         * modules/bitrotate: New file.
38430
38431         * lib/bitrotate.h: New file.
38432
38433         * modules/bitrotate-tests: New file.
38434
38435         * tests/test-bitrotate.c: New file.
38436
38437         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
38438         on the bitrotate module.
38439
38440         * lib/arctwo.c: Use new bitrotate module.
38441
38442 2008-08-29  Jim Meyering  <meyering@redhat.com>
38443
38444         bootstrap: merge changes from coreutils
38445         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
38446         of copied files.  Remove a kludge, now that this is fixed.
38447         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
38448         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
38449         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
38450
38451 2008-08-29  Bruno Haible  <bruno@clisp.org>
38452
38453         * MODULES.html.sh: Remove --cvs-urls option.
38454
38455 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
38456
38457         maint.mk: adjust to file name change
38458         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
38459
38460 2008-08-28  Jim Meyering  <meyering@redhat.com>
38461
38462         * modules/getndelim2 (License): Relicense to LGPLv2+.
38463         Approved by Richard Stallman for the version of 1995, and by
38464         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
38465
38466 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
38467
38468         * lib/getdelim.c (flockfile, funlockfile): Make all of them
38469         dummy if one is not available.  Do not touch them if
38470         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
38471         (getc_maybe_unlocked): New.
38472         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
38473
38474 2008-08-26  Eric Blake  <ebb9@byu.net>
38475
38476         doc/INSTALL: resync from autoconf
38477         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
38478         (INSTALL_PRELUDE): Delete; this is done more efficiently by
38479         moving...
38480         * install.texi [!autoconf]: ...here.  Resync from autoconf.
38481         * INSTALL: Regenerate.
38482         * INSTALL.ISO: New file.
38483         * INSTALL.UTF-8: Likewise.
38484
38485 2008-08-26  Jim Meyering  <meyering@redhat.com>
38486
38487         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
38488         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
38489         these definitions conditional, so that they may be overridden, too.
38490
38491 2008-08-26  Bruno Haible  <bruno@clisp.org>
38492
38493         Generate INSTALL file variants with prettier quotes.
38494         * doc/Makefile (INSTALL_PRELUDE): New macro.
38495         (INSTALL): Use it.
38496         (INSTALL.ISO, INSTALL.UTF-8): New rules.
38497
38498 2008-08-26  Bruno Haible  <bruno@clisp.org>
38499
38500         Run makeinfo in an English locale.
38501         * doc/Makefile (MAKEINFO): New variable.
38502
38503 2008-08-26  Bruno Haible  <bruno@clisp.org>
38504
38505         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
38506         Suggested by Eric Blake.
38507
38508 2008-08-25  Bruno Haible  <bruno@clisp.org>
38509
38510         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
38511
38512 2008-08-25  Eric Blake  <ebb9@byu.net>
38513
38514         c-stack: test that stack overflow can be caught
38515         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
38516         that platform allows handling stack overflow; at least OS/2 EMX
38517         has sigaltstack, but crashes before transferring control to
38518         handler on stack overflow.
38519         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
38520         check for HAVE_STACK_OVERFLOW_HANDLING.
38521         Reported by Elbert Pol.
38522
38523 2008-08-25  Bruno Haible  <bruno@clisp.org>
38524
38525         * doc/posix-functions/strftime.texi: Fix description of strftime
38526         module.
38527
38528 2008-08-24  Bruno Haible  <bruno@clisp.org>
38529
38530         * tests/uniwidth/test-uc_width2.c: New file.
38531         * tests/uniwidth/test-uc_width2.sh: New file.
38532         * modules/uniwidth/width-tests (Files): Add the new files.
38533         (TESTS): Add uniwidth/test-uc_width2.sh.
38534         (TESTS_ENVIRONMENT): New variable.
38535         (check_PROGRAMS): Add test-uc_width2.
38536         (test_uc_width2_SOURCES): New variable.
38537
38538         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
38539         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
38540         not 0x00AB.
38541         Reported by Alexander V. Lukyanov <lav@netis.ru>.
38542
38543 2008-08-22  Eric Blake  <ebb9@byu.net>
38544
38545         test-lock, test-tls: mention why a test is skipped
38546         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
38547         skipped.
38548         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
38549
38550         count-one-bits: relax license
38551         * modules/count-one-bits (License): Relicense to LGPLv2+.
38552         Suggested by Ludovic Courtès, approved by Ben Pfaff.
38553
38554 2008-08-22  Andreas Schwab  <schwab@suse.de>
38555
38556         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
38557         Remove spurious space in assignment.
38558
38559 2008-08-21  Simon Josefsson  <simon@josefsson.org>
38560
38561         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
38562         Paul Eggert <eggert@CS.UCLA.EDU>.
38563
38564 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
38565
38566         * modules/gettext: Add m4/threadlib.m4.
38567
38568 2008-08-19  Eric Blake  <ebb9@byu.net>
38569
38570         test-c-stack: fix compilation failure on FreeBSD 5.0
38571         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
38572         headers before <sys/resource.h>.
38573         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
38574         the bug.
38575         Reported by Nelson H. F. Beebe.
38576
38577         strverscmp: migrate from "strverscmp.h" to <string.h>
38578         * modules/string (Makefile.am): Add new hooks.
38579         * modules/strverscmp (Files): Remove strverscmp.h.
38580         (Depends-on): Add string.
38581         (configure.ac): Add indicator.
38582         (Include): Mention new header.
38583         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
38584         defaults.
38585         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
38586         results.
38587         * lib/strverscmp.h: Delete.
38588         * lib/string.in.h (strverscmp): Provide declaration, when needed.
38589         * tests/test-strverscmp.c (includes): Adjust client.
38590         * lib/check-version.c (includes): Likewise.
38591         * NEWS: Document the change.
38592
38593         strverscmp: add unit test
38594         * modules/strverscmp-tests: New file.
38595         * tests/test-strverscmp.c: Likewise.
38596
38597 2008-08-19  Simon Josefsson  <simon@josefsson.org>
38598
38599         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
38600         regarding Windows crypto stuff, from Mono.
38601
38602 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
38603
38604         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
38605         if present, for intel RND.  Return error on failures.
38606
38607 2008-08-18  Ben Pfaff  <blp@gnu.org>
38608
38609         gitlog-to-changelog: give better diagnostic for failed pipe-open
38610         * build-aux/gitlog-to-changelog: Improve error message: suggest
38611         that the version of Git may be too old.
38612
38613 2008-08-18  Simon Josefsson  <simon@josefsson.org>
38614
38615         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
38616         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
38617
38618 2008-08-18  Bruno Haible  <bruno@clisp.org>
38619
38620         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
38621         pthread_in_use().
38622
38623 2008-08-18  Bruno Haible  <bruno@clisp.org>
38624
38625         * lib/glthread/threadlib.c: Include <pthread.h>.
38626
38627 2008-08-18  Bruno Haible  <bruno@clisp.org>
38628
38629         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
38630         glthread_recursive_lock_* macros.
38631         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
38632         Fix syntax error.
38633
38634 2008-08-18  Bruno Haible  <bruno@clisp.org>
38635
38636         * lib/glthread/thread.c: Avoid forcing a context switch right after
38637         thread creation.
38638
38639 2008-08-17  Bruno Haible  <bruno@clisp.org>
38640
38641         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
38642         * lib/glthread/thread.h: Provide Win32 specific implementation.
38643         * modules/thread (Files): Add lib/glthread/thread.c.
38644         (Depends-on): Add lock.
38645         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
38646
38647 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
38648
38649         New module 'yield'.
38650         * modules/yield: New file.
38651         * lib/glthread/yield.h: New file.
38652         * m4/yield.m4: New file.
38653         * MODULES.html.sh (Multithreading): Add yield.
38654
38655 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
38656
38657         New module 'thread'.
38658         * modules/thread: New file.
38659         * lib/glthread/thread.h: New file.
38660         * m4/thread.m4: New file.
38661         * MODULES.html.sh (Multithreading): Add thread.
38662
38663 2008-08-17  Bruno Haible  <bruno@clisp.org>
38664
38665         * lib/glthread/lock.h: Include <stdlib.h> always.
38666         * lib/glthread/tls.h: Likewise.
38667         * lib/glthread/cond.h: Likewise.
38668
38669 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
38670
38671         New module 'cond'.
38672         * modules/cond: New file.
38673         * lib/glthread/cond.h: New file.
38674         * lib/glthread/cond.c: New file.
38675         * m4/cond.m4: New file.
38676         * MODULES.html.sh (Multithreading): Add cond.
38677
38678 2008-08-16  Eric Blake  <ebb9@byu.net>
38679
38680         c-stack: fix regression on Irix 5.3 from 2008-06-21
38681         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
38682         sa_sigaction...
38683         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
38684         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
38685         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
38686         * modules/signal (Makefile.am): Use the value.
38687         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
38688         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
38689         * doc/posix-headers/signal.texi (signal.h): Document this
38690         portability issue.
38691         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
38692         Reported by Tom G. Christensen.
38693
38694 2008-08-17  Bruno Haible  <bruno@clisp.org>
38695
38696         New module 'threadlib'.
38697         * modules/threadlib: New file.
38698         * lib/glthread/threadlib.c: New file, extracted from
38699         lib/glthread/lock.c.
38700         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
38701         functions.
38702         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
38703         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
38704         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
38705         macros.
38706         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
38707         (gl_DISABLE_THREADS): Remove macro.
38708         * modules/lock (Files): Remove build-aux/config.rpath.
38709         (Depends-on): Remove havelib. Add threadlib.
38710         (configure.ac-early): Remove section.
38711         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
38712         * modules/tls (Depends-on): Remove lock. Add threadlib.
38713         (Link): New section, copied from threadlib.
38714         * MODULES.html.sh (Multithreading): Add threadlib.
38715
38716 2008-08-14  Bruno Haible  <bruno@clisp.org>
38717
38718         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
38719         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
38720         glthread_rwlock_unlock, glthread_rwlock_destroy,
38721         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
38722         glthread_recursive_lock_destroy): Define as macros always.
38723         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
38724         glthread_lock_lock.
38725         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
38726         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
38727         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
38728         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
38729         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
38730         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
38731         (glthread_recursive_lock_lock_func): Renamed from
38732         glthread_recursive_lock_lock.
38733         (glthread_recursive_lock_unlock_func): Renamed from
38734         glthread_recursive_lock_unlock.
38735         (glthread_recursive_lock_destroy_func): Renamed from
38736         glthread_recursive_lock_destroy.
38737
38738 2008-08-14  Bruno Haible  <bruno@clisp.org>
38739
38740         * lib/glthread/lock.h: Renamed from lib/lock.h.
38741         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
38742         * lib/glthread/tls.h: Renamed from lib/tls.h.
38743         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
38744         * lib/fstrcmp.c: Update includes.
38745         * lib/strsignal.c: Update includes.
38746         * modules/lock (Files, Makefile.am): Update.
38747         (Include): Change to "glthread/lock.h".
38748         * modules/tls (Files, Makefile.am): Update.
38749         (Include): Change to "glthread/tls.h".
38750         * tests/test-lock.c: Update includes.
38751         * tests/test-tls.c: Update includes.
38752         * NEWS: Mention the renamed header files.
38753
38754 2008-08-11  Jim Meyering  <meyering@redhat.com>
38755
38756         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
38757
38758 2008-08-11  Eric Blake  <ebb9@byu.net>
38759
38760         test-c-stack: avoid C99-ism
38761         * tests/test-c-stack.c (main): Fix whitespace, move declaration
38762         before statement.
38763         Reported by Alain Guibert.
38764
38765 2008-08-10  Jim Meyering  <meyering@redhat.com>
38766
38767         ensure that return value of uinttostr et al are not ignored
38768         * lib/inttostr.h (__GNUC_PREREQ): Define.
38769         (__attribute_warn_unused_result__): Define.
38770         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
38771
38772 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
38773
38774         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
38775         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
38776
38777 2008-08-07  Jim Meyering  <meyering@redhat.com>
38778
38779         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
38780
38781         * modules/mkstemp (License): Relicense under LGPLv2+.
38782         * modules/tempname (License): Likewise.
38783
38784 2008-08-06  Bruno Haible  <bruno@clisp.org>
38785
38786         * lib/poll.c (poll): Further micro-optimization.
38787
38788 2008-08-06  Jim Meyering  <meyering@redhat.com>
38789
38790         inet_pton.c: use locale-independent tolower
38791         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
38792         (inet_pton6): Use c_tolower rather than tolower.
38793         * modules/inet_pton (Depends-on): Add c-ctype.
38794
38795 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
38796
38797         * lib/poll.c (poll): Avoid division when timeout is 0, cache
38798         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
38799
38800 2008-08-06  Jim Meyering  <meyering@redhat.com>
38801
38802         * modules/inet_pton (License): Relicense under LGPLv2+.
38803
38804 2008-08-03  Bruno Haible  <bruno@clisp.org>
38805
38806         Additional non-aborting API for lock and tls.
38807         * lib/lock.h: Include <errno.h>.
38808         (glthread_lock_init): New macro/function.
38809         (gl_lock_init): Define as wrapper around glthread_lock_init.
38810         (glthread_lock_lock): New macro/function.
38811         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
38812         (glthread_lock_unlock): New macro/function.
38813         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
38814         (glthread_lock_destroy): New macro/function.
38815         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
38816         (glthread_rwlock_init): New macro/function.
38817         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
38818         (glthread_rwlock_rdlock): New macro/function.
38819         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
38820         (glthread_rwlock_wrlock): New macro/function.
38821         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
38822         (glthread_rwlock_unlock): New macro/function.
38823         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
38824         (glthread_rwlock_destroy): New macro/function.
38825         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
38826         (glthread_recursive_lock_init): New macro/function.
38827         (gl_recursive_lock_init): Define as wrapper around
38828         glthread_recursive_lock_init.
38829         (glthread_recursive_lock_lock): New macro/function.
38830         (gl_recursive_lock_lock): Define as wrapper around
38831         glthread_recursive_lock_lock.
38832         (glthread_recursive_lock_unlock): New macro/function.
38833         (gl_recursive_lock_unlock): Define as wrapper around
38834         glthread_recursive_lock_unlock.
38835         (glthread_recursive_lock_destroy): New macro/function.
38836         (gl_recursive_lock_destroy): Define as wrapper around
38837         glthread_recursive_lock_destroy.
38838         (glthread_once): New macro/function.
38839         (gl_once): Define as wrapper around glthread_once.
38840         Update function declarations.
38841         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
38842         glthread_rwlock_init. Return error code.
38843         (glthread_rwlock_rdlock_multithreaded): Renamed from
38844         glthread_rwlock_rdlock. Return error code.
38845         (glthread_rwlock_wrlock_multithreaded): Renamed from
38846         glthread_rwlock_wrlock. Return error code.
38847         (glthread_rwlock_unlock_multithreaded): Renamed from
38848         glthread_rwlock_unlock. Return error code.
38849         (glthread_rwlock_destroy_multithreaded): Renamed from
38850         glthread_rwlock_destroy. Return error code.
38851         (glthread_recursive_lock_init_multithreaded): Renamed from
38852         glthread_recursive_lock_init. Return error code.
38853         (glthread_recursive_lock_lock_multithreaded): Renamed from
38854         glthread_recursive_lock_lock. Return error code.
38855         (glthread_recursive_lock_unlock_multithreaded): Renamed from
38856         glthread_recursive_lock_unlock. Return error code.
38857         (glthread_recursive_lock_destroy_multithreaded): Renamed from
38858         glthread_recursive_lock_destroy. Return error code.
38859         (glthread_once_call): Make static.
38860         (glthread_once_multithreaded): Renamed from glthread_once.
38861         * lib/tls.h: Include <errno.h>.
38862         (glthread_tls_key_init): New macro/function.
38863         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
38864         (glthread_tls_set): New macro/function.
38865         (gl_tls_set): Define as wrapper around glthread_tls_set.
38866         (glthread_tls_key_destroy): New macro/function.
38867         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
38868         Update function declarations.
38869         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
38870         glthread_tls_get.
38871         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
38872
38873 2008-08-04  Eric Blake  <ebb9@byu.net>
38874
38875         gnumakefile: use space, not TAB, outside of targets
38876         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
38877
38878 2008-08-02  Jim Meyering  <meyering@redhat.com>
38879
38880         getdate.y: avoid locale-dependent date parsing failure
38881         In Turkish locales, getdate would fail to recognize keywords
38882         containing a lowercase "i".  The solution is not to rely on
38883         locale-sensitive case-conversion.
38884         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
38885         (lookup_word): Use c_toupper in place of toupper.
38886         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
38887         Reported by Vefa Bicakci <bicave@superonline.com> in
38888         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
38889         * modules/getdate (Depends-on): Add c-ctype.
38890
38891 2008-08-02  Bruno Haible  <bruno@clisp.org>
38892
38893         * gnulib-tool (func_import): When updating or creating a .gitignore
38894         file, prepend each added line with a slash, and ignore leading slashes
38895         from the existing lines.
38896         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
38897
38898 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38899
38900         Portability fix for GNU make 3.79.1.
38901         * top/GNUmakefile: Avoid 'else COND', which older GNU make
38902         versions do not understand.
38903
38904 2008-08-01  Bruno Haible  <bruno@clisp.org>
38905
38906         Work around bug of HP-UX 10.20 cc with -0.0 literal.
38907         * tests/test-isnanf.h (zero): New variable.
38908         (main): Avoid literal -0.0f.
38909         * tests/test-isnand.h (zero): New variable.
38910         (main): Avoid literal -0.0.
38911         * tests/test-isnanl.h (zero): New variable.
38912         (main): Avoid literal -0.0L.
38913         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
38914         (test_float, test_double, test_long_double): Avoid literals -0.0f,
38915         -0.0, -0.0L.
38916         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
38917         (test_signbitd): Avoid literal -0.0.
38918         (test_signbitl): Avoid literal -0.0L.
38919         * tests/test-ceilf1.c (zero): New variable.
38920         (main): Avoid literal -0.0f.
38921         * tests/test-ceill.c (zero): New variable.
38922         (main): Avoid literal -0.0L.
38923         * tests/test-floorf1.c (zero): New variable.
38924         (main): Avoid literal -0.0f.
38925         * tests/test-floorl.c (zero): New variable.
38926         (main): Avoid literal -0.0L.
38927         * tests/test-roundf1.c (zero): New variable.
38928         (main): Avoid literal -0.0f.
38929         * tests/test-round1.c (zero): New variable.
38930         (main): Avoid literal -0.0.
38931         * tests/test-roundl.c (zero): New variable.
38932         (main): Avoid literal -0.0L.
38933         * tests/test-truncf1.c (zero): New variable.
38934         (main): Avoid literal -0.0f.
38935         * tests/test-trunc1.c (zero): New variable.
38936         (main): Avoid literal -0.0.
38937         * tests/test-truncl.c (zero): New variable.
38938         (main): Avoid literal -0.0L.
38939         * tests/test-frexp.c (zero): New variable.
38940         (main): Avoid literal -0.0.
38941         * tests/test-frexpl.c (zero): New variable.
38942         (main): Avoid literal -0.0L.
38943         * tests/test-ldexpl.c (zero): New variable.
38944         (main): Avoid literal -0.0L.
38945         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
38946         (zerod, zerol): New variables.
38947         (test_function): Avoid literals -0.0, -0.0L.
38948         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
38949         (zerod, zerol): New variables.
38950         (test_function): Avoid literals -0.0, -0.0L.
38951         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
38952         (zerod, zerol): New variables.
38953         (test_function): Avoid literals -0.0, -0.0L.
38954         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
38955         (zerod, zerol): New variables.
38956         (test_function): Avoid literals -0.0, -0.0L.
38957         * tests/test-strtod.c (zero): New variable.
38958         (main): Avoid literal -0.0.
38959         Reported by Jonathan C. Patschke <jp@centtech.com>.
38960
38961 2008-07-31  Jim Meyering  <meyering@redhat.com>
38962
38963         sha256.h: correct definition of SHA224_DIGEST_SIZE
38964         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
38965         Reported by Paulie Pena IV <paulie4@gmail.com>.
38966         Define as 224 / 8, rather than as a literal.
38967         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
38968         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
38969         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
38970
38971 2008-07-31  Bruno Haible  <bruno@clisp.org>
38972
38973         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
38974         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
38975         Reported by Jonathan Patschke <jp@centtech.com>.
38976
38977 2008-07-31  Bruno Haible  <bruno@clisp.org>
38978
38979         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
38980         Reported by Paolo Bonzini <bonzini@gnu.org>.
38981
38982 2008-07-30  Eric Blake  <ebb9@byu.net>
38983
38984         test-strtod: allow compilation without -lm
38985         * tests/test-strtod.c (main): Avoid link dependence on fabs.
38986         Reported by Dennis Clarke <blastwave@gmail.com>.
38987
38988 2008-07-28  Jim Meyering  <meyering@redhat.com>
38989
38990         bootstrap: work also when there are no .po files in po/
38991         * build-aux/bootstrap (update_po_files): Complete the change
38992         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
38993
38994 2008-07-27  Jim Meyering  <meyering@redhat.com>
38995
38996         * users.txt: Add zile.
38997
38998 2008-07-26  Ben Pfaff  <blp@gnu.org>
38999
39000         Add missing dependencies on new m4/exponent[fdl].m4 files.
39001         * modules/isnanf-nolibm: Add m4/exponentf.m4.
39002         * modules/isnand-nolibm: Add m4/exponentd.m4.
39003         * modules/isnanl-nolibm: Add m4/exponentl.m4.
39004         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
39005         m4/isnan[fdl].m4, because the macros actually used moved.
39006         Reported by Jim Meyering.
39007
39008 2008-07-14  Ben Pfaff  <blp@gnu.org>
39009
39010         Add isinf module.
39011         * lib/isinf.c: New file.
39012         * lib/math.in.h: Define isinf macro if we have decided to replace
39013         it.
39014         * m4/isinf.m4: New file.
39015         * m4/math_h.m4: Initialize and substitute variables for isinf
39016         module.
39017         * modules/isinf: New file.
39018         * modules/isinf-tests: New file.
39019         * modules/math: Add substitutions for new module.
39020         * tests/test-isinf.c: New file.
39021         * doc/posix-functions/isinf.texi: Mention new module.
39022         * MODULES.html.sh: Mention new module.
39023
39024 2008-07-14  Ben Pfaff  <blp@gnu.org>
39025
39026         Factor out some macros for use by additional modules.
39027         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
39028         exponentf.m4.
39029         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
39030         exponentd.m4.
39031         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
39032         file exponentl.m4.
39033         * m4/exponentf.m4: New file.
39034         * m4/exponentd.m4: New file.
39035         * m4/exponentl.m4: New file.
39036         * modules/isnanf: Use new file m4/exponentf.m4.
39037         * modules/isnand: Use new file m4/exponentd.m4.
39038         * modules/isnanl: Use new file m4/exponentl.m4.
39039
39040 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
39041
39042         mktime.c: normalize tp->tm_isdst value to -1/0/1.
39043         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
39044         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
39045         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
39046
39047         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
39048         readlink on platforms without PATH_MAX.
39049
39050 2008-07-21  Eric Blake  <ebb9@byu.net>
39051
39052         Warn, not fail, on stale version.
39053         * top/GNUmakefile (_curr-ver): Tone down previous patch.
39054
39055         Don't allow installation with stale devel version number.
39056         * top/GNUmakefile (_is-install-target): New macro.
39057         (_curr-ver): Forbid installation with stale version number.
39058
39059 2008-07-20  Bruno Haible  <bruno@clisp.org>
39060
39061         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
39062         TESTS_ENVIRONMENT.
39063         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
39064
39065 2008-07-20  Bruno Haible  <bruno@clisp.org>
39066
39067         * lib/c-stack.h (c_stack_action): Add documentation.
39068         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
39069
39070 2008-07-20  Bruno Haible  <bruno@clisp.org>
39071
39072         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
39073         * modules/readlink (License): Likewise.
39074
39075 2008-07-17  Eric Blake  <ebb9@byu.net>
39076
39077         * modules/c-stack (Link): Fix typo.
39078
39079         Make c-stack use libsigsegv, when available.
39080         * modules/c-stack (Depends-on): Add libsigsegv.
39081         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
39082         needed.
39083         * lib/c-stack.c (SIGSTKSZ): Define fallback.
39084         (segv_handler, overflow_handler, c_stack_action)
39085         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
39086         implementation when libsigsegv is available, but only when using
39087         the library is necessary.
39088         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
39089         comment, explaining why XSI check fails on Linux.
39090         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
39091         * tests/test-c-stack2.sh: Tweak skip message.
39092         * NEWS: Document new link-time requirements.
39093
39094 2008-07-16  Eric Blake  <ebb9@byu.net>
39095
39096         c-stack: Expose false positives when not using libsigsegv.
39097         * modules/c-stack-tests (Files): Expand test.
39098         * tests/test-c-stack.c (main): Add means to conditionally trigger
39099         non-overflow SIGSEGV.
39100         * tests/test-c-stack2.sh: New file.
39101
39102 2008-07-14  Bruno Haible  <bruno@clisp.org>
39103
39104         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
39105         Reported by Eric Blake.
39106
39107 2008-07-14  Sam Steingold  <sds@gnu.org>
39108             Bruno Haible  <bruno@clisp.org>
39109
39110         New module libsigsegv.
39111         * modules/libsigsegv: New file.
39112         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
39113         modifications.
39114         * MODULES.html.sh (Signal handling): New section.
39115
39116 2008-07-14  Bruno Haible  <bruno@clisp.org>
39117
39118         * modules/unictype/ctype-* (Description): Add the word "function".
39119         Improves the resulting doc in MODULES.html.
39120
39121 2008-07-12  Ben Pfaff  <blp@gnu.org>
39122
39123         Add longlong module.
39124         * modules/longlong: New file.
39125
39126 2008-07-12  Bruno Haible  <bruno@clisp.org>
39127
39128         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
39129         to empty.
39130
39131 2008-07-10  Ben Pfaff  <blp@gnu.org>
39132
39133         Add isnan module.
39134         * doc/posix-functions/isnan.texi: Mention new module.
39135         * lib/math.in.h: Define isnan macro if we have decided to replace
39136         it.
39137         * m4/isnan.m4: New file.
39138         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
39139         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
39140         also.
39141         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
39142         redundancy.
39143         * m4/math_h.m4: Initialize and substitute variables for isnan
39144         module.
39145         * modules/isnan: New file.
39146         * modules/isnan-tests: New file.
39147         * modules/math: Add substitutions for new module.
39148         * tests/test-isnan.c: New file.
39149         * MODULES.html.sh: Mention new module.
39150
39151 2008-07-10  Ben Pfaff  <blp@gnu.org>
39152
39153         Add isnanf module.
39154         * lib/isnanf.m4: New file.
39155         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
39156         (gl_HAVE_ISNANF_IN_LIBM): New macro.
39157         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
39158         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
39159         * modules/isnanf: New file.
39160         * modules/isnanf-tests: New file.
39161         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
39162         files.
39163         * tests/test-isnanf-nolibm.c: factored most of its contents into
39164         new file tests/test-isnanf.h.
39165         * tests/test-isnanf.h: New file.
39166         * tests/test-isnanf.c: New file.
39167         * MODULES.html.sh: Mention new module.
39168         * doc/glibc-functions/isnanf.texi: Mention new module.
39169
39170 2008-07-10  Ben Pfaff  <blp@gnu.org>
39171
39172         Add isnand module.
39173         * lib/isnand.h: New file.
39174         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
39175         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
39176         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
39177         functionality also.
39178         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
39179         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
39180         (gl_HAVE_ISNAND_IN_LIBM): New macro.
39181         * modules/isnand: New file.
39182         * modules/isnand-tests: New file.
39183         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
39184         files.
39185         * tests/test-isnand-nolibm.c: factored most of its contents into
39186         new file tests/test-isnand.h.
39187         * tests/test-isnand.h: New file.
39188         * tests/test-isnand.c: New file.
39189         * MODULES.html.sh: Mention new module.
39190
39191 2008-07-10  Ben Pfaff  <blp@gnu.org>
39192
39193         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
39194         * lib/isnand.h: Rename lib/isnand-nolibm.h.
39195         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
39196         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
39197         * modules/isnanf-nolibm: Update references to renamed files.
39198         * modules/isnand-nolibm: Likewise.
39199         * modules/isnanf-nolibm-tests: Likewise.
39200         * modules/isnand-nolibm-tests: Likewise.
39201         * lib/frexp.c: Likewise.
39202         * lib/isfinite.c: Likewise.
39203         * lib/signbitd.c: Likewise.
39204         * lib/signbitf.c: Likewise.
39205         * lib/vasnprintf.c: Likewise.
39206         * tests/test-ceilf1.c: Likewise.
39207         * tests/test-ceilf2.c: Likewise.
39208         * tests/test-floorf1.c: Likewise.
39209         * tests/test-floorf2.c: Likewise.
39210         * tests/test-frexp.c: Likewise.
39211         * tests/test-round1.c: Likewise.
39212         * tests/test-round2.c: Likewise.
39213         * tests/test-roundf1.c: Likewise.
39214         * tests/test-strtod.c: Likewise.
39215         * tests/test-trunc1.c: Likewise.
39216         * tests/test-trunc2.c: Likewise.
39217         * tests/test-truncf1.c: Likewise.
39218         * tests/test-truncf2.c: Likewise.
39219         * NEWS: Mention the renamed header files.
39220
39221 2008-07-11  Jim Meyering  <meyering@redhat.com>
39222
39223         vc-list-files: make the last-resort awk code more portable
39224         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
39225         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
39226         does not support it.
39227
39228 2008-07-10  Eric Blake  <ebb9@byu.net>
39229
39230         Work with tar's bootstrap.
39231         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
39232         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
39233         an m4 comment.
39234
39235 2008-07-09  Jim Meyering  <meyering@redhat.com>
39236
39237         posix-shell.m4: fix typo that made this test malfunction
39238         * m4/posix-shell.m4: Remove capitalization in variable name.
39239
39240 2008-07-08  Bruno Haible  <bruno@clisp.org>
39241
39242         * m4/onceonly.m4: Update comments.
39243         Reported by Ben Pfaff <blp@cs.stanford.edu>.
39244
39245 2008-07-04  Jim Meyering  <meyering@redhat.com>
39246
39247         * users.txt: Add vc-dwim.
39248         (bison, coreutils): Use the gitweb URL.
39249
39250 2008-07-03  Jim Meyering  <meyering@redhat.com>
39251
39252         * users.txt: Add libffcall.  From Sam Steingold.
39253
39254 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
39255
39256         getdate.y: do not ignore TZ with relative day, month or year offset
39257         * lib/getdate.y (get_date): Move the tz-handling block to follow the
39258         relative-date-handling, since otherwise, the latter would clobber the
39259         sole output (an updated Start value) of the tz-handling block.
39260         * tests/test-getdate.c: Tests for the fix
39261
39262 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39263
39264         Recognize 'foo_LIBRARIES += libgnu.a'.
39265         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
39266         makefile snippet has already specified an installation location,
39267         also using '+='.
39268
39269 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
39270
39271         getdate.y: factor out common actions
39272         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
39273         Use them in place of open-coded actions.
39274
39275 2008-07-01  Simon Josefsson  <simon@josefsson.org>
39276
39277         Add self-test for getdate module.
39278         * modules/getdate-tests: New file.
39279         * tests/test-getdate.c: New file.
39280
39281 2008-06-29  Bruno Haible  <bruno@clisp.org>
39282
39283         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
39284         .gitignore.
39285         Reported by Sylvain Beucler <beuc@beuc.net>.
39286
39287 2008-06-29  Bruno Haible  <bruno@clisp.org>
39288
39289         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
39290         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
39291
39292 2008-06-29  Bruno Haible  <bruno@clisp.org>
39293
39294         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
39295         EXTRA_DIST.
39296         Reported by Sylvain Beucler <beuc@beuc.net>.
39297
39298 2008-06-26  Jim Meyering  <meyering@redhat.com>
39299
39300         make several modules depend on the "open" module
39301         This provides slightly increased consistency when opening-for-write
39302         the name of a non-directory spelled with a trailing slash.
39303         * modules/chdir-safer: Likewise.
39304         * modules/chown: Likewise.
39305         * modules/clean-temp: Likewise.
39306         * modules/copy-file: Likewise.
39307         * modules/fchdir: Likewise.
39308         * modules/fcntl-safer: Likewise.
39309         * modules/pipe: Likewise.
39310         * modules/utime: Likewise.
39311         Prompted by Eric Blake and Bruno Haible.
39312
39313 2008-06-24  Andreas Schwab  <schwab@suse.de>
39314
39315         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
39316         literals can be used as initializers for global variables.
39317
39318 2008-06-23  Eric Blake  <ebb9@byu.net>
39319
39320         Make gnulib-cache.m4 easier to diff.
39321         * gnulib-tool (func_import): Allow newlines when reading cached
39322         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
39323
39324 2008-06-23  Bruno Haible  <bruno@clisp.org>
39325
39326         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
39327         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
39328         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
39329         m4/signalblocking.m4.
39330         (gl_PREREQ_SIGACTION): Don't invoke it.
39331         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
39332         gl_PREREQ_SIG_HANDLER_H.
39333         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
39334         Don't check for sigaction here.
39335
39336 2008-06-23  Bruno Haible  <bruno@clisp.org>
39337
39338         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
39339         (install_handlers): Don't set the SA_RESETHAND flag.
39340
39341 2008-06-23  Bruno Haible  <bruno@clisp.org>
39342
39343         * m4/sigaction.m4: Comment fixes.
39344         * lib/signal.in.h: Likewise.
39345
39346 2008-06-23  Eric Blake  <ebb9@byu.net>
39347
39348         Fix typo.
39349         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
39350
39351         Avoid SA_ namespace.
39352         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
39353         Reported by Ralf Wildenhues.
39354
39355         Avoid test failure due to SA_RESTORER.
39356         * tests/test-sigaction.c (SA_MASK): New macro.
39357         (main): Avoid failing due to extension flags being set.
39358         Reported by Jim Meyering.
39359
39360         Revert use of sig-handler.h in sigprocmask.c.
39361         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
39362         it requires the existence of struct sigaction.
39363         * lib/sigprocmask.c (handler_t): Restore typedef.
39364         (rpl_signal, old_handlers): Use local type.
39365
39366 2008-06-22  Bruno Haible  <bruno@clisp.org>
39367
39368         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
39369         conditionally.
39370         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
39371
39372 2008-06-22  Bruno Haible  <bruno@clisp.org>
39373
39374         * doc/posix-functions/siginterrupt.texi: Move note.
39375
39376         * lib/signal.in.h (SA_RESTART): New macro.
39377         * lib/sigaction.c: Update comment.
39378
39379         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
39380
39381         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
39382         (gl_PREREQ_SIGPROCMASK): Invoke it.
39383         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
39384
39385         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
39386
39387         * lib/sigprocmask.c: Update a comment.
39388
39389 2008-06-21  Eric Blake  <ebb9@byu.net>
39390
39391         Use sigaction module rather than signal().
39392         * modules/c-stack (Depends-on): Add sigaction.
39393         * modules/fatal-signal (Depends-on): Likewise.
39394         * modules/nanosleep (Depends-on): Likewise.
39395         * modules/sigprocmask (Files): Add sig-handler.h.
39396         * modules/sigaction (Files): Likewise.
39397         * lib/sig-handler.h (get_handler): New file, suggested by Paul
39398         Eggert.
39399         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
39400         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
39401         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
39402         (init_fatal_signals): Likewise.
39403         * lib/nanosleep.c (rpl_nanosleep): Likewise.
39404         (siginterrupt): Delete fallback.
39405         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
39406         instead.
39407         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
39408         siginterrupt.
39409
39410         New module sigaction, for mingw.
39411         * modules/sigaction: New module...
39412         * modules/sigaction-tests: ...and its test.
39413         * m4/sigaction.m4: New file.
39414         * lib/sigaction.c: Likewise.
39415         * tests/test-sigaction.c: Likewise.
39416         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
39417         * modules/signal (Makefile.am): Likewise.
39418         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
39419         needed.
39420         * doc/posix-headers/signal.texi (signal.h): Mention provided
39421         types.
39422         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
39423         that sigaction is preferable.
39424         * doc/posix-functions/sigaction.texi (sigaction): Mention new
39425         module.
39426         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
39427         sigaction.
39428
39429         Improve robustness of sigprocmask by overriding signal.
39430         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
39431         is in use.
39432         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
39433         (SIGKILL, SIGSTOP): Provide fallbacks.
39434         (rpl_signal): Implement.
39435         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
39436         signal can be called inside handlers.
39437
39438         Fix nanosleep module on mingw.
39439         * modules/nanosleep (Depends-on): Add sys_select.
39440         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
39441
39442         Fix licensing of sigprocmask.
39443         * modules/raise (License): Relicense as LGPL.
39444
39445 2008-06-21  Bruno Haible  <bruno@clisp.org>
39446
39447         * lib/propername.c (proper_name_utf8): Don't use the transliterated
39448         result if it contains question marks.
39449         Reported by Michael Geng <linux@michaelgeng.de>.
39450
39451 2008-06-19  Bruno Haible  <bruno@clisp.org>
39452
39453         Fix CVS-ism.
39454         * doc/gnulib.texi: Include updated-stamp.texi.
39455         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
39456         (updated-stamp.texi): New rule.
39457         (gnulib.info): Depend on it.
39458         * doc/.gitignore: Add updated-stamp.texi.
39459         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
39460
39461 2008-06-19  Bruno Haible  <bruno@clisp.org>
39462
39463         * doc/Makefile (gnulib.info): Update and simplify dependencies.
39464         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
39465
39466 2008-06-19  Eric Blake  <ebb9@byu.net>
39467
39468         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
39469         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
39470         Reported by Stepan Kasal.
39471
39472 2008-06-18  Bruno Haible  <bruno@clisp.org>
39473
39474         * lib/fatal-signal.c (init_fatal_signals): Add comment.
39475         Reported by Eric Blake.
39476
39477 2008-06-18  Eric Blake  <ebb9@byu.net>
39478
39479         Work around cygwin 1.5.25 strsignal bug.
39480         * tests/test-strsignal.c: Allow for const char *.
39481         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
39482
39483 2008-06-18  Simon Josefsson  <simon@josefsson.org>
39484
39485         * users.txt: Update URL to article and add author/date
39486         information.
39487
39488 2008-06-17  Bruno Haible  <bruno@clisp.org>
39489
39490         New macro gl_DISABLE_THREADS.
39491         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
39492         if the user did not pass --enable-threads or --disable-threads option.
39493         (gl_DISABLE_THREADS): New macro.
39494         Reported by Eric Blake <ebb9@byu.net>.
39495
39496 2008-06-17  Bruno Haible  <bruno@clisp.org>
39497
39498         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
39499         when the macro ignores it.
39500         Based on a patch by Eric Blake <ebb9@byu.net>.
39501
39502 2008-06-17  Bruno Haible  <bruno@clisp.org>
39503
39504         * modules/tls (License): Change to LGPLv2+.
39505         Reported by Eric Blake.
39506
39507 2008-06-17  Eric Blake  <ebb9@byu.net>
39508
39509         Simplify c-stack prerequisites.
39510         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
39511         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
39512         no longer requires <ucontext.h> to exist.  Optimize setrlimit
39513         check.
39514         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
39515         <sys/resource.h>.
39516
39517         Move c-stack test into testsuite.
39518         * modules/c-stack-tests: New file.
39519         * lib/c-stack.c [DEBUG]: Move test program...
39520         * tests/test-c-stack.c: ...into this new file.  Skip rather than
39521         fail test if sigaltstack is lacking.
39522         * tests/test-c-stack.sh: New driver file.
39523
39524 2008-06-16  Eric Blake  <ebb9@byu.net>
39525
39526         Use raise module consistently.
39527         * modules/fatal-signal (Depends-on): Add raise.
39528         * modules/sigprocmask (Depends-on): Likewise.
39529         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
39530         * lib/sigprocmask.c (sigprocmask): Likewise.
39531         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
39532         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
39533
39534         Fix compliance bug in sigpending.
39535         * lib/sigprocmask.c (sigpending): Return pending array via
39536         parameter, not return value.
39537
39538 2008-06-14  Eric Blake  <ebb9@byu.net>
39539
39540         Improve obstack-printf test code.
39541         * tests/test-obstack-printf.c (test_function): Fix comment, and
39542         simplify usage of obstack_* in macros.  Add a test for coverage.
39543         Reported by Bruno Haible.
39544
39545 2008-06-14  Bruno Haible  <bruno@clisp.org>
39546
39547         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
39548         array size as a constant, not as a const variable.
39549         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
39550         AC_USE_SYSTEM_EXTENSIONS.
39551         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
39552         Test whether the obstack_printf function actually exists.
39553         * modules/obstack-printf (Depends-on): Add extensions.
39554         (Include): Remove obstack.h.
39555         * modules/obstack-printf-posix (Depends-on): Add extensions.
39556         (Include): Remove obstack.h.
39557
39558 2008-06-13  Eric Blake  <ebb9@byu.net>
39559
39560         Add obstack-printf and obstack-printf-posix modules.
39561         * modules/obstack-printf: New file.
39562         * modules/obstack-printf-posix: Likewise.
39563         * MODULES.html.sh (Misc): Mention them.
39564         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
39565         Likewise.
39566         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
39567         Likewise.
39568         * modules/stdio (Makefile.am): Accomodate new modules.
39569         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
39570         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
39571         Declare.
39572         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
39573         functions.
39574         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
39575         (gl_REPLACE_OBSTACK_PRINTF): New macros
39576         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
39577         * tests/test-obstack-printf.c: New file.
39578         * modules/obstack-printf-tests: Likewise.
39579         * modules/obstack-printf-posix-tests: Likewise.
39580
39581 2008-06-11  Bruno Haible  <bruno@clisp.org>
39582
39583         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
39584         * lib/open.c: Include errno.h.
39585         (open): Fail when attempting to write to a file that has a trailing
39586         slash.
39587         * tests/test-open.c (main): Test against trailing slash bug.
39588         * doc/posix-functions/open.texi: Mention the trailing slash bug.
39589
39590 2008-06-10  Bruno Haible  <bruno@clisp.org>
39591
39592         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
39593         for $? to work inside the trap command, with various /bin/sh-s.
39594         * tests/test-vc-list-files-cvs.sh: Likewise.
39595
39596 2008-06-10  Bruno Haible  <bruno@clisp.org>
39597
39598         * lib/acl-internal.h: Don't include gettext.h here.
39599         * lib/set-mode-acl.c: Include gettext.h here.
39600         * lib/copy-acl.c: Likewise.
39601
39602 2008-06-10  Bruno Haible  <bruno@clisp.org>
39603
39604         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
39605         * lib/wait-process.c (wait_subprocess): Likewise.
39606         * lib/execute.h (execute): Add termsigp argument.
39607         * lib/execute.c (execute): Likewise.
39608         * lib/csharpcomp.c (compile_csharp_using_pnet,
39609         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
39610         * lib/csharpexec.c (execute_csharp_using_pnet,
39611         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
39612         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
39613         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
39614         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
39615         is_jikes_present): Update.
39616         * lib/javaexec.c (execute_java_class): Update.
39617         * lib/javaversion.c (execute_and_read_line): Update.
39618         * NEWS: Document the changes.
39619         Reported by Eric Blake.
39620
39621 2008-06-10  Eric Blake  <ebb9@byu.net>
39622
39623         Add missing include.
39624         * tests/test-strstr.c (includes): Add <signal.h>.
39625         * tests/test-strcasestr.c (includes): Likewise.
39626         * tests/test-memmem.c (includes): Likewise.
39627
39628 2008-06-10  Bruno Haible  <bruno@clisp.org>
39629
39630         * lib/wait-process.c (wait_subprocess): Add an assertion.
39631
39632 2008-06-10  Bruno Haible  <bruno@clisp.org>
39633
39634         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
39635
39636 2008-06-10  Bruno Haible  <bruno@clisp.org>
39637
39638         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
39639         using alarm().
39640         * tests/test-strcasestr.c (main): Likewise.
39641         * tests/test-strstr.c (main): Likewise.
39642
39643 2008-06-09  Bruno Haible  <bruno@clisp.org>
39644
39645         Work around the Solaris 10 ACE ACLs ABI change.
39646         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
39647         declare if ACL_NO_TRIVIAL is present.
39648         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
39649         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
39650         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
39651         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
39652         define if ACL_NO_TRIVIAL is present.
39653         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
39654         and use the current ABI.
39655         (file_has_acl): Use same #if condition as elsewhere.
39656         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
39657         in use, and use the current ABI.
39658         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
39659         Reported by Jim Meyering.
39660
39661 2008-06-09  Eric Blake  <ebb9@byu.net>
39662
39663         Work around environments that (stupidly) ignore SIGALRM.
39664         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
39665         before using alarm().
39666         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
39667         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
39668         Reported by Ian Beckwith <ianb@erislabs.net>.
39669
39670         Produce autobuild blurb earlier in log.
39671         * modules/autobuild (configure.ac-early): Move AB_INIT here.
39672
39673 2008-06-09  Jim Meyering  <meyering@redhat.com>
39674         and OndÅ™ej Vašík  <ovasik@redhat.com>
39675
39676         utimens.c: correct kernel bug work-around
39677         OndÅ™ej Vašík found that the invalid return value of 280 indicates
39678         failure, not success, and the kernel bug we're trying to work
39679         around affects not just the utimensat call, but also the fallback
39680         futimens call.
39681         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
39682         not success.
39683         [HAVE_FUTIMENS]: Use the same work-around, here.
39684
39685 2008-06-09  Jim Meyering  <meyering@redhat.com>
39686
39687         add more guards around definition of ACE_-related code
39688         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
39689         ALLOW and ACE_OWNER are also defined.
39690
39691 2008-06-08  Bruno Haible  <bruno@clisp.org>
39692
39693         * lib/acl-internal.h: Add me as co-author.
39694         * lib/file-has-acl.c: Likewise.
39695         * lib/set-mode-acl.c: Likewise.
39696         * lib/copy-acl.c: Likewise.
39697
39698 2008-06-08  Bruno Haible  <bruno@clisp.org>
39699
39700         Add support for AIX ACLs.
39701         * lib/acl-internal.h (acl_nontrivial): New declaration.
39702         * lib/file-has-acl.c (acl_nontrivial): New function.
39703         (file_has_acl): Add implementation using AIX 4 ACL API.
39704         * lib/set-mode-acl.c (qset_acl): Likewise.
39705         * lib/copy-acl.c (qcopy_acl): Likewise.
39706
39707 2008-06-08  Bruno Haible  <bruno@clisp.org>
39708
39709         Add support for HP-UX ACLs.
39710         * lib/acl-internal.h (acl_nontrivial): New declaration.
39711         * lib/file-has-acl.c (acl_nontrivial): New function.
39712         (file_has_acl): Add implementation using HP-UX 11 ACL API.
39713         * lib/set-mode-acl.c (qset_acl): Likewise.
39714         * lib/copy-acl.c (qcopy_acl): Likewise.
39715
39716 2008-06-08  Bruno Haible  <bruno@clisp.org>
39717
39718         Add support for Cygwin ACLs.
39719         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
39720         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
39721         the chmod_or_fchmod call.
39722         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
39723
39724 2008-06-08  Bruno Haible  <bruno@clisp.org>
39725
39726         Fix bug with setuid modes in Solaris 10+ code.
39727         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
39728         succeeded, when the mode contains some special bits.
39729
39730 2008-06-08  Bruno Haible  <bruno@clisp.org>
39731
39732         Add support for Solaris 7..10 ACLs.
39733         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
39734         declarations.
39735         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
39736         functions.
39737         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
39738         * lib/set-mode-acl.c (qset_acl): Likewise.
39739         * lib/copy-acl.c (qcopy_acl): Likewise.
39740
39741 2008-06-08  Bruno Haible  <bruno@clisp.org>
39742
39743         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
39744         declaration.
39745         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
39746         (acl_access_nontrivial): Remove MacOS X case.
39747         (file_has_acl): Use acl_extended_nontrivial.
39748         * lib/copy-acl.c (qcopy_acl): Likewise.
39749
39750 2008-06-08  Bruno Haible  <bruno@clisp.org>
39751
39752         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
39753
39754 2008-06-08  Jim Meyering  <meyering@redhat.com>
39755
39756         * modules/acl (Maintainer): Add Bruno Haible.
39757
39758 2008-06-07  Bruno Haible  <bruno@clisp.org>
39759
39760         Improve support for Tru64 ACLs.
39761         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
39762         ACL on OSF/1.
39763
39764 2008-06-07  Bruno Haible  <bruno@clisp.org>
39765
39766         Add support for MacOS X ACLs.
39767         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
39768         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
39769         * lib/set-mode-acl.c (qset_acl): Likewise.
39770         * lib/copy-acl.c (qcopy_acl): Likewise.
39771
39772 2008-06-07  Bruno Haible  <bruno@clisp.org>
39773
39774         Fix memory leak introduced on 2008-05-22.
39775         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
39776         use.
39777
39778 2008-06-07  Bruno Haible  <bruno@clisp.org>
39779
39780         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
39781         to construct an empty ACL.
39782
39783 2008-06-07  Bruno Haible  <bruno@clisp.org>
39784
39785         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
39786         precisely.
39787         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
39788
39789 2008-06-07  Bruno Haible  <bruno@clisp.org>
39790
39791         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
39792         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
39793
39794 2008-06-07  Bruno Haible  <bruno@clisp.org>
39795
39796         * doc/posix-functions/_setjmp.texi: Explain the use of this function
39797         regardless of POSIX.
39798         * doc/posix-functions/_longjmp.texi: Likewise.
39799         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
39800         SystemV platform in this case.
39801
39802 2008-06-06  Eric Blake  <ebb9@byu.net>
39803
39804         Document abort() bugs.
39805         * doc/posix-functions/abort.texi (abort): Mention anomalies.
39806
39807         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
39808         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
39809         sigsetjmp.
39810         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
39811         siglongjmp, but only as a macro.
39812         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
39813         is obsolete.
39814         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
39815
39816         Tweak documentation to cover cygwin argz bugs.
39817         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
39818         argz bug fix; no code change needed since no cygwin releases
39819         occurred between the last fix and the bug being tested.
39820         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
39821         module and recently fixed cygwin bugs.
39822         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
39823         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
39824         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
39825         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
39826         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
39827         Likewise.
39828         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
39829         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
39830         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
39831         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
39832         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
39833         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
39834         Likewise.
39835
39836         Avoid gcc warning on cygwin.
39837         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
39838         !ACL_NO_TRIVIAL]: Avoid unused variable.
39839
39840 2008-06-05  Eric Blake  <ebb9@byu.net>
39841
39842         Be tolerant of UNKNOWN version in gnulib-tool test dir.
39843         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
39844         git-version-gen fails to come up with a version.
39845         Reported by Simon Josefsson.
39846
39847 2008-06-05  Jim Meyering  <meyering@redhat.com>
39848             Paul Eggert  <eggert@cs.ucla.edu>
39849
39850         utimens.c: work around a probable Linux kernel bug
39851         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
39852         appears to be a kernel bug that causes utimensat to return 280
39853         instead of 0, indicating success.
39854
39855 2008-06-04  Bruno Haible  <bruno@clisp.org>
39856
39857         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
39858         2008-06-01 commit.
39859
39860 2008-06-04  Bruno Haible  <bruno@clisp.org>
39861
39862         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
39863         * lib/file-has-acl.c (acl_access_nontrivial): New function.
39864         (file_has_acl): Use it. Save errno afterwards.
39865         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
39866
39867 2008-06-03  Bruno Haible  <bruno@clisp.org>
39868
39869         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
39870         draft code. Simplify #ifs.
39871         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
39872         Put Solaris code after POSIX-draft code. Fix comments regarding
39873         Solaris 10, HP-UX. Mention Cygwin.
39874         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
39875
39876 2008-06-03  Eric Blake  <ebb9@byu.net>
39877
39878         Provide fallback for older kernels.
39879         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
39880         Provide runtime fallback if kernel lacks support.
39881         Reported by Mike Frysinger.
39882
39883 2008-06-02  Bruno Haible  <bruno@clisp.org>
39884
39885         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
39886         it exists.
39887
39888 2008-06-02  Bruno Haible  <bruno@clisp.org>
39889
39890         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
39891         * lib/copy-acl.c (qcopy_acl): Update comment.
39892
39893 2008-06-02  Bruno Haible  <bruno@clisp.org>
39894
39895         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
39896         like ACL APIs.
39897
39898 2008-06-02  Bruno Haible  <bruno@clisp.org>
39899
39900         * tests/test-file-has-acl.sh: Use different code for Cygwin.
39901         * tests/test-set-mode-acl.sh: Likewise.
39902         * tests/test-copy-acl.sh: Likewise.
39903         * tests/test-copy-file.sh: Likewise.
39904
39905 2008-06-02  Bruno Haible  <bruno@clisp.org>
39906
39907         * tests/test-file-has-acl.sh: Remove unused code.
39908
39909 2008-06-01  Bruno Haible  <bruno@clisp.org>
39910
39911         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
39912         (copy_acl): Just a wrapper around qcopy_acl that emits the error
39913         messages.
39914         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
39915
39916 2008-06-01  Bruno Haible  <bruno@clisp.org>
39917
39918         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
39919         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
39920         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
39921         APIs.
39922         * modules/acl-tests (configure.ac): Remove tests now contained in
39923         m4/acl.m4.
39924
39925 2008-06-02  Jim Meyering  <meyering@redhat.com>
39926
39927         announce-gen: use a better key-server host name
39928         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
39929         it may be more consistently reliable.  Suggested by Werner Koch
39930         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
39931
39932 2008-06-01  Bruno Haible  <bruno@clisp.org>
39933
39934         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
39935         Reported by Voroskoi Andras <voroskoi@gmail.com>.
39936
39937 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
39938
39939         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
39940
39941 2008-06-01  Bruno Haible  <bruno@clisp.org>
39942
39943         New ACL tests.
39944         * tests/test-file-has-acl.sh: New file.
39945         * tests/test-file-has-acl.c: New file.
39946         * tests/test-set-mode-acl.sh: New file.
39947         * tests/test-set-mode-acl.c: New file.
39948         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
39949         * tests/test-copy-acl.c: New file.
39950         * modules/acl-tests: New file, based on modules/copy-file-tests.
39951         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
39952         (Depends-on): Add acl-tests.
39953         (configure.ac): Remove checks.
39954         (Makefile.am): Don't create test-sameacls program here any more.
39955
39956 2008-06-01  Bruno Haible  <bruno@clisp.org>
39957
39958         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
39959         * tests/test-sameacls.c: Include progname.h.
39960         (main): Invoke set_program_name. Portability fixes for MacOS X,
39961         Solaris, HP-UX.
39962
39963 2008-06-01  Bruno Haible  <bruno@clisp.org>
39964
39965         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
39966         function.
39967         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
39968
39969 2008-06-01  Bruno Haible  <bruno@clisp.org>
39970
39971         * modules/rpmatch (Depends-on): Add strdup.
39972
39973 2008-06-01  Bruno Haible  <bruno@clisp.org>
39974
39975         * lib/pipe.c: Include unistd-safer.h.
39976         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
39977         * modules/pipe (Depends-on): Add unistd-safer.
39978
39979 2008-05-30  Simon Josefsson  <simon@josefsson.org>
39980
39981         * modules/autobuild (configure.ac): Call AB_INIT.
39982
39983 2008-05-30  Simon Josefsson  <simon@josefsson.org>
39984
39985         * tests/test-getaddrinfo.c: Don't print debug messages by default.
39986         Suggested by Bruno Haible <bruno@clisp.org>.
39987
39988 2008-05-30  Simon Josefsson  <simon@josefsson.org>
39989
39990         * tests/test-base64.c: Cast size_t to unsigned long when invoking
39991         printf.  Use %lu instead of %d.  Reported by Bruno Haible
39992         <bruno@clisp.org>.
39993
39994 2008-05-29  Eric Blake  <ebb9@byu.net>
39995
39996         Prefer new POSIX 200x interfaces over futimesat.
39997         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
39998         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
39999         when available.
40000         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
40001
40002 2008-05-28  Bruno Haible  <bruno@clisp.org>
40003
40004         * modules/stpcpy (License): Change to LGPLv2+.
40005         Requested by David Lutterkort <dlutter@redhat.com>.
40006
40007 2008-05-27  Bruno Haible  <bruno@clisp.org>
40008
40009         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
40010         current mingw.
40011         Reported by Jose E. Marchesi <jemarch@gnu.org>.
40012
40013 2008-05-27  Bruno Haible  <bruno@clisp.org>
40014
40015         * modules/iconv_open (Link): New section, from module 'iconv'.
40016         * modules/striconv (Link): Likewise.
40017         * modules/striconveh (Link): Likewise.
40018         * modules/xstriconv (Link): Likewise.
40019         * modules/unicodeio (Link): Likewise.
40020         * modules/propername (Link): Likewise.
40021         Reported by Jim Meyering.
40022
40023 2008-05-26  Jim Meyering  <meyering@redhat.com>
40024
40025         sha256: do not artificially restrict buffer length to be < 2^32
40026         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
40027         uint32_t to size_t.
40028         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
40029         to match.
40030
40031         avoid unaligned access errors, e.g., on sparc
40032         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
40033         direct access through a possibly-unaligned uint64* pointer.
40034         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
40035         direct access through a possibly-unaligned uint32* pointer.
40036         Prompted by this patch from Tom "spot" Callaway:
40037         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
40038
40039         sha512.c: fix typo in comment
40040         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
40041
40042 2008-05-25  Bruno Haible  <bruno@clisp.org>
40043
40044         * lib/set-mode-acl.c: Renamed from lib/acl.c.
40045         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
40046         (Makefile.am): Update lib_SOURCES.
40047
40048 2008-05-25  Bruno Haible  <bruno@clisp.org>
40049
40050         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
40051
40052 2008-05-25  Jim Meyering  <meyering@redhat.com>
40053
40054         useless-if-before-free: freed expr may have white-space differences
40055         * build-aux/useless-if-before-free: Recognize cases in which the
40056         freed expression differs from the tested one in embedded white
40057         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
40058         $1 was used, so we can't make any regexp shy.  Improved tests now
40059         detect this.
40060
40061         useless-if-before-free: accept white space in the expression.
40062         * build-aux/useless-if-before-free: For now, any white space
40063         in the expression must be identical in the free argument.
40064
40065         useless-if-before-free: efficiency tweak
40066         * build-aux/useless-if-before-free: Make the expression-matching
40067         regexp "shy".
40068         Make the *outer* regexp shy, not the expr-matching one.
40069
40070         update code-in-comment to accept cast of free arg
40071         * build-aux/useless-if-before-free: Update regexp.
40072
40073 2008-05-25  Bruno Haible  <bruno@clisp.org>
40074
40075         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
40076         * modules/copy-file-tests (Files, Makefile.am): Update.
40077         * tests/test-copy-file.c (func_test_copy): Update.
40078
40079 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
40080
40081         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
40082
40083 2008-05-23  Bruno Haible  <bruno@clisp.org>
40084
40085         Improve support for ACLs on OSF/1.
40086         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
40087         Remove fallback for unknown flavors of ACLs.
40088
40089 2008-05-22  Bruno Haible  <bruno@clisp.org>
40090
40091         Add support for ACLs on OSF/1.
40092         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
40093         replacements.
40094         (acl_free_text): New macro fallback.
40095         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
40096         acl_free.
40097         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
40098         acl_free_text function. Require AC_C_INLINE.
40099
40100 2008-05-22  Bruno Haible  <bruno@clisp.org>
40101
40102         Make copy_acl work on MacOS X 10.5.
40103         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
40104         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
40105         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
40106         If MODE_INSIDE_ACL, don't assume that every system has the same text
40107         representation for ACLs as FreeBSD.
40108         * lib/copy-acl.c (copy_acl): Add support for platforms with
40109         !MODE_INSIDE_ACL.
40110         * lib/file-has-acl.c (file_has_acl): Likewise.
40111         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
40112         FreeBSD, MacOS X, or IRIX, respectively.
40113
40114 2008-05-22  Bruno Haible  <bruno@clisp.org>
40115
40116         * lib/acl.h: Don't include <sys/acl.h>.
40117         (GETACLCNT): Move fallback to lib/acl-internal.h.
40118         * lib/acl-internal.h: Include <sys/acl.h> here.
40119         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
40120
40121 2008-05-22  Bruno Haible  <bruno@clisp.org>
40122
40123         Split off copy_acl function to separate file.
40124         * lib/copy-acl.c: New file, extracted from lib/acl.c.
40125         * lib/acl.c (copy_acl): Moved function to separate file.
40126         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
40127         * modules/acl (Files): Add lib/copy-acl.c.
40128         (Makefiles.am): Augment lib_SOURCES.
40129
40130 2008-05-22  Bruno Haible  <bruno@clisp.org>
40131
40132         * modules/copy-file-tests: New file.
40133         * tests/test-copy-file.sh: New file.
40134         * tests/test-copy-file.c: New file.
40135         * tests/test-copy-file-sameacls.c: New file.
40136
40137 2008-05-22  Eric Blake  <ebb9@byu.net>
40138
40139         Avoid gcc warning.
40140         * tests/test-memcmp.c (main): Pass NULL indirectly.
40141
40142 2008-05-21  Bruno Haible  <bruno@clisp.org>
40143
40144         Add reference doc about ACLs.
40145         * doc/acl-resources.txt: New file.
40146         * doc/acl-cygwin.txt: New file.
40147
40148 2008-05-21  Bruno Haible  <bruno@clisp.org>
40149
40150         Avoid one more warning from gcc.
40151         * lib/vasnprintf.c (IF_LINT): Update comments.
40152         (VASNPRINTF): Use it also for the 'prefix' array initializer.
40153
40154 2008-05-21  Jim Meyering  <meyering@redhat.com>
40155
40156         avoid a warning from gcc
40157         * lib/vasnprintf.c (IF_LINT): Define.
40158         (scale10_round_decimal_long_double):
40159         Use it to avoid a "may be used uninitialized" warning.
40160         (scale10_round_decimal_double): Likewise.
40161
40162 2008-05-21  Simon Josefsson  <simon@josefsson.org>
40163
40164         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
40165         declared.
40166
40167 2008-05-20  Bruno Haible  <bruno@clisp.org>
40168
40169         * tests/test-memcmp.c (main): Test also the sign of the result. Test
40170         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
40171
40172 2008-05-20  Simon Josefsson  <simon@josefsson.org>
40173
40174         * modules/memcmp-tests: New file.
40175         * tests/test-memcmp.c: New file.
40176
40177 2008-05-19  Bruno Haible  <bruno@clisp.org>
40178
40179         * modules/propername (Notice, configure.ac): Put quoted "..." into
40180         --keyword option.
40181         * lib/propername.h: Update comments accordingly.
40182         Reported by Eric Blake.
40183
40184 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
40185
40186         * modules/getpass-gnu (Depends-on): Add fseeko.
40187
40188 2008-05-19  Simon Josefsson  <simon@josefsson.org>
40189
40190         * modules/base64-tests: New file.
40191
40192 2008-05-19  Bo Borgerson <gigabo@gmail.com>
40193
40194         * lib/base64.c (base64_decode_ctx): If a decode context structure
40195         was passed in use it to ignore newlines.  If a context structure
40196         was _not_ passed in, continue to treat newlines as garbage (this
40197         is the historical behavior).  Formerly base64_decode.
40198         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
40199         takes a decode context structure.
40200         * lib/base64.h (base64_decode): Macro for four-argument calls.
40201         (base64_decode_alloc): Likewise.
40202         * lib/base64.c (base64_decode_ctx): If a decode context structure
40203         was passed in use it to ignore newlines.  If a context structure
40204         was _not_ passed in, continue to treat newlines as garbage (this
40205         is the historical behavior).  Formerly base64_decode.
40206         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
40207         takes a decode context structure.
40208         * lib/base64.h (base64_decode): Macro for four-argument calls.
40209         (base64_decode_alloc): Likewise.
40210
40211 2008-05-19  Jim Meyering  <meyering@redhat.com>
40212
40213         avoid a warning from gcc
40214         * lib/trim.c (IF_LINT): Define.
40215         (trim2): Use it to avoid a "may be used uninitialized" warning.
40216
40217         Fix doc typo.
40218         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
40219
40220 2008-05-19  Bruno Haible  <bruno@clisp.org>
40221
40222         * doc/glibc-functions/getpass.texi: Document limits of other
40223         implementations.
40224
40225 2008-05-19  Simon Josefsson  <simon@josefsson.org>
40226             Bruno Haible <bruno@clisp.org>
40227
40228         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
40229
40230 2008-05-18  Bruno Haible  <bruno@clisp.org>
40231
40232         * modules/propername: New file, from GNU gettext.
40233         * lib/propername.h: New file, from GNU gettext.
40234         * lib/propername.c: New file, from GNU gettext.
40235         * MODULES.html.sh (Internationalization functions): Add propername.
40236
40237 2008-05-16  Jim Meyering  <meyering@redhat.com>
40238             Bruno Haible  <bruno@clisp.org>
40239
40240         Avoid some warnings from "gcc -Wshadow".
40241         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
40242
40243 2008-05-15  Eric Blake  <ebb9@byu.net>
40244
40245         Extend previous patch to cygwin 1.7.0.
40246         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
40247         fast implementation in cygwin >= 1.7.0.
40248         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
40249         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
40250
40251 2008-05-15  Bruno Haible  <bruno@clisp.org>
40252
40253         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
40254         implementation in glibc >= 2.9.
40255         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
40256         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
40257
40258 2008-05-15  Bruno Haible  <bruno@clisp.org>
40259
40260         * MODULES.html.sh (Internationalization functions): Remove linebreak.
40261         (Unicode string functions): Add unilbrk/*.
40262         Reported by Karl Berry.
40263
40264 2008-05-15  Eric Blake  <ebb9@byu.net>
40265
40266         Fix violation of <stdbool.h> replacement in regex.
40267         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
40268         * lib/regexec.c (re_search_internal): Likewise.
40269         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
40270
40271 2008-05-15  Jim Meyering  <meyering@redhat.com>
40272
40273         avoid distracting test output when git or cvs is not found
40274         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
40275         * tests/test-vc-list-files-git.sh: Likewise.
40276
40277 2008-05-15  Eric Blake  <ebb9@byu.net>
40278
40279         Glibc finally accepted the memmem speedup code, bugzilla #5514.
40280         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
40281         glibc version.
40282         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
40283         * doc/posix-functions/strstr.texi (strstr): Likewise.
40284         * lib/str-two-way.h (MAX): Sychronize with glibc.
40285
40286 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
40287
40288         * lib/regcomp.c (optimize_utf8): Add a note on why we test
40289         opr.ctx_type.
40290         (calc_first): Initialize constraint field.
40291         (duplicate_node_closure): Use it instead of special casing ANCHORS.
40292         Fix grammar.
40293         (duplicate_node): Merge constraint field for all node types.
40294         (calc_eclosure_iter): Look at constraint field for all node types.
40295         * lib/regex_internal.c (create_cd_newstate): Don't look at
40296         opr.ctx_type.
40297
40298 2008-05-14  Bruno Haible  <bruno@clisp.org>
40299
40300         Help GCC to do better code generation.
40301         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
40302         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
40303         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
40304         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
40305         Declare with attribute 'malloc' if supported.
40306
40307 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
40308
40309         use "echo STR|wc -c" rather than unportable "expr length STR"
40310         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
40311         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
40312
40313 2008-05-14  Jim Meyering  <meyering@redhat.com>
40314
40315         use dd ibs=$n count=1 ... rather than less-portable head -c$n
40316         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
40317         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
40318         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
40319         via Collin Lasse.
40320
40321 2008-05-14  Eric Blake  <ebb9@byu.net>
40322
40323         Avoid quadratic growth in gl_LIBSOURCES.
40324         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
40325         Suggested by Bruno Haible.
40326
40327         Test xmemdup0.
40328         * modules/xmemdup0-tests: New file.
40329         * tests/test-xmemdup0.c: Likewise.
40330
40331 2008-05-13  Eric Blake  <ebb9@byu.net>
40332
40333         Split xmemdup0 into its own module.
40334         * modules/xmemdup0: New file.
40335         * lib/xmemdup0.h: Likewise.
40336         * lib/xmemdup0.c: Likewise.
40337         * MODULES.html.sh (Memory management functions): Add xmemdup0.
40338         * lib/xalloc.h (xmemdup0): Remove.
40339         * lib/xmalloc.c (xmemdup0): Likewise.
40340
40341 2008-05-13  Eric Blake  <ebb9@byu.net>
40342             Bruno Haible  <bruno@clisp.org>
40343
40344         Reduce number of forks required during autoconf.
40345         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
40346         and gl_LIBSOURCES_DIR.
40347         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
40348         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
40349         m4_syscmd per file.
40350         <m4_foreach_w>: Move...
40351         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
40352
40353 2008-05-13  Eric Blake  <ebb9@byu.net>
40354
40355         * gnulib-tool: Fix various comment typos.
40356
40357 2008-05-12  Bruno Haible  <bruno@clisp.org>
40358
40359         Tailor the linebreaking algorithm.
40360         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
40361
40362 2008-05-12  Bruno Haible  <bruno@clisp.org>
40363
40364         Update to Unicode 5.0.0.
40365         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
40366         LBP_JV, LBP_JT. Redistribute values.
40367         (unilbrk_table): Change size.
40368         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
40369         Unicode TR#14 rev. 22.
40370         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
40371         LBP_JV, LBP_JT. Redistribute values.
40372         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
40373         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
40374         Update.
40375         * lib/unilbrk/lbrkprop1.h: Regenerated.
40376         * lib/unilbrk/lbrkprop2.h: Regenerated.
40377         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
40378         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
40379         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
40380         Likewise.
40381         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
40382         Likewise.
40383         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
40384         result.
40385         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
40386         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
40387         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
40388         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
40389         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
40390         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
40391
40392 2008-05-11  Bruno Haible  <bruno@clisp.org>
40393
40394         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
40395
40396 2008-05-11  Bruno Haible  <bruno@clisp.org>
40397
40398         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
40399         * modules/unilbrk/gen-lbrk: New file.
40400
40401 2008-05-11  Bruno Haible  <bruno@clisp.org>
40402
40403         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
40404         * m4/sha512.m4 (gl_SHA512): Likewise.
40405
40406 2008-05-11  Jim Meyering  <meyering@redhat.com>
40407
40408         New modules: crypto/sha256, crypto/sha512 (from coreutils)
40409         * modules/crypto/sha256: New file.
40410         * modules/crypto/sha512: Likewise.
40411         * lib/sha256.c: Likewise.
40412         * lib/sha256.h: Likewise.
40413         * lib/sha512.c: Likewise.
40414         * lib/sha512.h: Likewise.
40415         * lib/u64.h: Likewise.
40416         * m4/sha256.m4: Likewise.
40417         * m4/sha512.m4: Likewise.
40418         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
40419
40420 2008-05-10  Bruno Haible  <bruno@clisp.org>
40421
40422         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
40423         (Input/Output <stdio.h>): Add xprintf.
40424         (Signal handling <signal.h>): Add strsignal.
40425         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
40426         (Core language properties): Add func.
40427         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
40428         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
40429         strings.
40430         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
40431         (Input/output): New section.
40432         (File system functions): Add openat-die, stat-macros.
40433         (Networking functions): Add sockets.
40434         (Unicode string functions): Add unictype/*.
40435         (Support for building libraries and executables): Add gperf.
40436         (Support for building documentation): Add agpl-3.0.
40437         (Misc): Add nocrash.
40438
40439 2008-05-10  Bruno Haible  <bruno@clisp.org>
40440
40441         * modules/unictype/gen-ctype: New file.
40442
40443 2008-05-10  Jim Meyering  <meyering@redhat.com>
40444
40445         Make chdir-safer.c more efficient on a system with no symlinks.
40446         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
40447         also if ELOOP is zero.  Suggested by Bruno Haible.
40448
40449         Make chdir-safer.c slightly safer.
40450         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
40451         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
40452
40453         Avoid compile failure on systems without ELOOP (like mingw).
40454         * lib/chdir-safer.c (ELOOP): Define if not already defined.
40455         Reported by Bruno Haible.
40456
40457 2008-05-10  Bruno Haible  <bruno@clisp.org>
40458
40459         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
40460         (is_utf8_encoding): Use a case-insensitive comparison.
40461         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
40462         streq.
40463
40464 2008-05-10  Bruno Haible  <bruno@clisp.org>
40465
40466         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
40467         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
40468         * lib/unilbrk/ulc-common.h (iconv_string_length,
40469         iconv_string_keeping_offsets): Remove declarations.
40470         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
40471         Don't include <iconv.h>, streq.h, xsize.h.
40472         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
40473         conversion.
40474         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
40475         <iconv.h>, streq.h, xsize.h.
40476         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
40477         conversion.
40478         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
40479         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
40480         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
40481         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
40482
40483 2008-05-10  Bruno Haible  <bruno@clisp.org>
40484
40485         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
40486         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
40487
40488         * modules/unilbrk/u32-width-linebreaks-tests: New file.
40489         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
40490
40491         * modules/unilbrk/u16-width-linebreaks-tests: New file.
40492         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
40493
40494         * modules/unilbrk/u8-width-linebreaks-tests: New file.
40495         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
40496
40497         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
40498         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
40499
40500         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
40501         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
40502
40503         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
40504         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
40505
40506         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
40507         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
40508
40509 2008-05-10  Bruno Haible  <bruno@clisp.org>
40510
40511         Split up 'linebreak' module.
40512         * lib/unilbrk.h: New file, based on lib/linebreak.h.
40513         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
40514         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
40515         modifications.
40516         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
40517         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
40518         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
40519         lib/linebreak.c.
40520         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
40521         lib/linebreak.c.
40522         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
40523         lib/linebreak.c.
40524         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
40525         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
40526         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
40527         lib/linebreak.c.
40528         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
40529         lib/linebreak.c.
40530         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
40531         lib/linebreak.c.
40532         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
40533         lib/linebreak.c.
40534         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
40535         lib/linebreak.c.
40536         * modules/unilbrk/base: New file.
40537         * modules/unilbrk/tables: New file.
40538         * modules/unilbrk/u8-possible-linebreaks: New file.
40539         * modules/unilbrk/u16-possible-linebreaks: New file.
40540         * modules/unilbrk/u32-possible-linebreaks: New file.
40541         * modules/unilbrk/ulc-common: New file.
40542         * modules/unilbrk/ulc-possible-linebreaks: New file.
40543         * modules/unilbrk/u8-width-linebreaks: New file.
40544         * modules/unilbrk/u16-width-linebreaks: New file.
40545         * modules/unilbrk/u32-width-linebreaks: New file.
40546         * modules/unilbrk/ulc-width-linebreaks: New file.
40547         * lib/linebreak.h: Remove file.
40548         * lib/linebreak.c: Remove file.
40549         * m4/linebreak.m4: Remove file.
40550         * modules/linebreak: Remove file.
40551         * NEWS: Mention the changes.
40552
40553 2008-05-09  Eric Blake  <ebb9@byu.net>
40554
40555         Add xmemdup0.
40556         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
40557         implementation.
40558         * lib/xmalloc.c (xmemdup0): New C implementation.
40559
40560 2008-05-08  Bruno Haible  <bruno@clisp.org>
40561
40562         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
40563
40564 2008-05-07  Eric Blake  <ebb9@byu.net>
40565
40566         Support cross-compilation of <wctype.h>.
40567         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
40568         AC_CACHE_CHECK.
40569
40570 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
40571
40572         * build-aux/vc-list-files: Add support for bzr.
40573
40574 2008-05-03  Jim Meyering  <meyering@redhat.com>
40575
40576         avoid failed assertion with tight malloc
40577         * tests/test-getndelim2.c: Correct an off-by-one assertion.
40578
40579 2008-05-03  Simon Josefsson  <simon@josefsson.org>
40580
40581         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
40582         are needed from arpa/inet.h.
40583         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
40584         Reported by Bruno Haible.
40585
40586 2008-05-02  Jim Meyering  <meyering@redhat.com>
40587
40588         avoid compilation error on FreeBSD 6
40589         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
40590
40591 2008-05-01  Jim Meyering  <meyering@redhat.com>
40592
40593         useless-if-before-free: correct --help's exit status description
40594         * build-aux/useless-if-before-free (usage): Like grep, exit 0
40595         for one or more matches, etc.  Reported by Bruno Haible.
40596
40597         vc-list-files: make the stand-alone gnulib test work
40598         * modules/vc-list-files-tests (configure.ac):
40599         Define and AC_SUBST abs_aux_dir.
40600         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
40601         $(abs_top_srcdir) to each script and having each of them
40602         duplicate the work of setting PATH, set PATH here, using
40603         the new variable, abs_aux_dir instead.
40604         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
40605         * tests/test-vc-list-files-git.sh: Likewise.
40606         Reported by Bruno Haible.
40607
40608 2008-05-01  Bruno Haible  <bruno@clisp.org>
40609
40610         * lib/getndelim2.c (getndelim2): Fix newsize computation during
40611         reallocation. Rename 'done' to 'found_delimiter'.
40612
40613 2008-05-01  Jim Meyering  <meyering@redhat.com>
40614
40615         vc-list-files: accommodate /bin/sh like the one from Solaris 10
40616         * build-aux/vc-list-files: Use `...`, not $(...).
40617
40618 2008-04-30  Jim Meyering  <meyering@redhat.com>
40619
40620         add tests for vc-list-files
40621         * modules/vc-list-files-tests: New module.
40622         * tests/test-vc-list-files-cvs.sh: New file.
40623         * tests/test-vc-list-files-git.sh: New file.
40624
40625         avoid a warning from gcc
40626         * lib/getndelim2.c (IF_LINT): Define.
40627         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
40628
40629         vc-list-files: work properly with build-aux/cvsu, too
40630         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
40631         to all cvs-based clauses.
40632
40633         vc-list-files: work properly in the CVS+awk case, too
40634         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
40635
40636         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
40637         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
40638         take more than one file argument, so .  Add quotes, just in case $dir
40639         ever contains a shell meta-character.  Prompted by Soren Hansen in
40640         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
40641
40642 2008-04-29  Eric Blake  <ebb9@byu.net>
40643
40644         Optimize getndelim2 to use block operations when possible.
40645         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
40646         freadseek, and memchr2.
40647         * lib/getndelim2.c (getndelim2): Use them for block reads.
40648
40649 2008-04-29  Bruno Haible  <bruno@clisp.org>
40650
40651         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
40652         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
40653         * modules/inet_ntop (Depends-on): Add extensions.
40654         * modules/inet_pton (Depends-on): Likewise.
40655         Reported by Simon Josefsson.
40656
40657 2008-04-29  Jim Meyering  <meyering@redhat.com>
40658
40659         When the is more than one match in a block, match all of them.
40660         * build-aux/useless-if-before-free: Iterate through each block
40661         until there are no more matches.
40662
40663         Fix broken useless-if-before-free script.
40664         * build-aux/useless-if-before-free: Fix typo: missing "?" after
40665         the expression to match cast of argument to free-like function.
40666
40667 2008-04-29  Eric Blake  <ebb9@byu.net>
40668
40669         Use new header.
40670         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
40671
40672 2008-04-29  Jim Meyering  <meyering@redhat.com>
40673
40674         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
40675         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
40676         by gnulib to exist and to declare e.g., inet_ntop.
40677         Don't include "inet_ntop.h", now removed.
40678
40679         * m4/arpa_inet_h.m4: Remove trailing blanks.
40680
40681 2008-04-29  Eric Blake  <ebb9@byu.net>
40682
40683         Silence valgrind on safe reads beyond potential array bounds.
40684         * lib/rawmemchr.valgrind: New file.
40685         * lib/strchrnul.valgrind: Likewise.
40686         * modules/rawmemchr (Files): Distribute new file.
40687         * modules/strchrnul (Files): Likewise.
40688         Suggested by Bruno Haible.
40689
40690 2008-04-29  Bruno Haible  <bruno@clisp.org>
40691
40692         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
40693         (inet_ntop, inet_pton): Change portability warning's wording.
40694         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
40695         Invoke gl_CHECK_NEXT_HEADERS.
40696         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
40697         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
40698         set ARPA_INET_H.
40699         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
40700         * modules/arpa_inet (Description): No longer only for systems that
40701         lack it.
40702         (Depends-on): Add include_next.
40703         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
40704         HAVE_ARPA_INET_H.
40705
40706 2008-04-29  Jim Meyering  <meyering@redhat.com>
40707
40708         * modules/mkdir (License): Re-license as LGPLv2+.
40709
40710 2008-04-29  Bruno Haible  <bruno@clisp.org>
40711
40712         * modules/rawmemchr (Maintainer): Set to Eric.
40713         * modules/strchrnul (Maintainer): Likewise.
40714
40715 2008-04-29  Simon Josefsson  <simon@josefsson.org>
40716
40717         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
40718         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
40719
40720         * modules/arpa_inet (arpa/inet.h): Use them.
40721
40722 2008-04-28  Eric Blake  <ebb9@byu.net>
40723
40724         Test getndelim2.
40725         * modules/getndelim2-tests: New file.
40726         * tests/test-getndelim2.c: Likewise.
40727         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
40728         stream.
40729         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
40730
40731         * MODULES.html.sh: Document new module.
40732
40733 2008-04-20  Bruno Haible  <bruno@clisp.org>
40734
40735         * lib/c-stack.c (die): Use raise.
40736         * modules/c-stack (Depends-on): Add raise.
40737
40738 2008-04-28  Bruno Haible  <bruno@clisp.org>
40739
40740         Expect rpmatch to be declared.
40741         * lib/yesno.c (rpmatch): Remove declaration.
40742
40743         Declare rpmatch.
40744         * lib/stdlib.in.h (rpmatch): New declaration.
40745         * lib/rpmatch.c: Include <stdlib.h> first.
40746         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
40747         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
40748         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
40749         HAVE_RPMATCH.
40750         * modules/rpmatch (Depends-on): Add stdlib, extensions.
40751         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
40752         (Include): Set to <stdlib.h>.
40753         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
40754         HAVE_RPMATCH.
40755         * NEWS: Document the change.
40756
40757 2008-04-28  Bruno Haible  <bruno@clisp.org>
40758
40759         Change rpmatch to use nl_langinfo when appropriate.
40760         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
40761         (N_): New macro.
40762         (localized_pattern): New function/macro.
40763         (try): Remove match, nomatch arguments. Copy the pattern into safe
40764         memory before caching it.
40765         (rpmatch): Use localized_pattern. Add translator comments.
40766         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
40767         Suggested by Eric Blake.
40768         * modules/rpmatch (Depends-on): Add stdbool.
40769
40770 2008-04-28  Eric Blake  <ebb9@byu.net>
40771
40772         Add rawmemchr module, matching glibc.
40773         * modules/string (Makefile.am): New indicator.
40774         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
40775         * lib/string.in.h (rawmemchr): Declare when appropriate.
40776         * modules/rawmemchr: New file.
40777         * m4/rawmemchr.m4: Likewise.
40778         * lib/rawmemchr.c: Likewise.
40779         * modules/rawmemchr-tests: Likewise.
40780         * tests/test-rawmemchr.c: Likewise.
40781         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
40782         module.
40783         * modules/strchrnul (Depends-on): Add rawmemchr.
40784         * lib/strchrnul.c (strchrnul): Optimize a corner case.
40785
40786         Whitespace cleanup.
40787         * tests/test-strchrnul.c: Reindent.
40788         * lib/strchrnul.c: Likewise.
40789
40790         Optimize and test strchrnul.
40791         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
40792         * modules/strchrnul-tests: New file.
40793         * tests/test-strchrnul.c: Likewise.
40794
40795         Remove intprops dependency.
40796         * modules/memchr (Depends-on): Remove intprops.
40797         * modules/memrchr (Depends-on): Likewise.
40798         * modules/memchr2 (Depends-on): Likewise.
40799         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
40800         * lib/memrchr.c (__memrchr): Likewise.
40801         * lib/memrchr2.c (memchr2): Likewise.
40802         Reported by Simon Josefsson.
40803
40804 2008-04-28  Simon Josefsson  <simon@josefsson.org>
40805
40806         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
40807         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
40808
40809 2008-04-28  Simon Josefsson  <simon@josefsson.org>
40810
40811         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
40812
40813         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
40814
40815         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
40816
40817         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
40818         declarations.
40819         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
40820
40821         * m4/inet_pton.m4: Don't check for header files.
40822
40823         * m4/inet_ntop.m4: Don't check for header files.
40824
40825 2008-04-28  Simon Josefsson  <simon@josefsson.org>
40826
40827         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
40828         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
40829         trigger for cygwin).
40830         Reported by Bruno Haible  <bruno@clisp.org>.
40831
40832 2008-04-28  Bruno Haible  <bruno@clisp.org>
40833
40834         * doc/posix-functions/strdup.texi: Mention mingw problem.
40835
40836 2008-04-27  Bruno Haible  <bruno@clisp.org>
40837
40838         * modules/stat-time-tests (Depends-on): Add sleep.
40839         * tests/test-stat-time.c (force_unlink): New function.
40840         (cleanup): Use it.
40841         (test_mtime): Remove the ctime related tests.
40842         (test_ctime): New function, containing the ctime related tests.
40843         (main): Call test_ctime, except on native Windows platforms.
40844
40845 2008-04-27  Bruno Haible  <bruno@clisp.org>
40846
40847         * lib/rpmatch.c (rpmatch): Add some comments.
40848         Reported by James Youngman <jay@gnu.org>.
40849
40850 2008-04-27  Bruno Haible  <bruno@clisp.org>
40851
40852         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
40853         quiet NaNs.
40854
40855 2008-04-27  Bruno Haible  <bruno@clisp.org>
40856
40857         Make test-yesno.sh work on mingw.
40858         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
40859         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
40860         (main): Set stdin to binary mode.
40861         * modules/yesno-tests (Depends-on): Add binary-io.
40862
40863 2008-04-27  Bruno Haible  <bruno@clisp.org>
40864
40865         Fix 'isfinite' on x86, x86_64, ia64 platforms.
40866         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
40867         argument that lie outside the IEEE 854 domain.
40868         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
40869         (gl_ISFINITE): Use it.
40870         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
40871
40872 2008-04-27  Bruno Haible  <bruno@clisp.org>
40873
40874         Allow local renaming in config.h.
40875         * lib/memrchr.c (memrchr): Don't undefine outside libc.
40876
40877 2008-04-27  Bruno Haible  <bruno@clisp.org>
40878
40879         * lib/memchr.c (__memchr): Change type of 'i'.
40880         * lib/memchr2.c (memchr2): Likewise.
40881
40882 2008-04-26  Eric Blake  <ebb9@byu.net>
40883         and Bruno Haible  <bruno@clisp.org>
40884
40885         Optimize and test memrchr.
40886         * modules/memrchr (Depends-on): Add intprops.
40887         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
40888         * modules/memrchr-tests: New file.
40889         * tests/test-memrchr.c: New file.
40890
40891 2008-04-26  Bruno Haible  <bruno@clisp.org>
40892
40893         Add tentative support for DragonFly BSD.
40894         * lib/stdio-impl.h: Add macros for DragonFly BSD.
40895         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
40896         fp.
40897         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
40898         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
40899         * lib/fpurge.c (fpurge): Likewise.
40900         * lib/freadable.c (freaadable): Likewise.
40901         * lib/freadahead.c (freadahead): Likewise.
40902         * lib/freading.c (freading): Likewise.
40903         * lib/freadptr.c (freadptr): Likewise.
40904         * lib/freadseek.c (freadptrinc): Likewise.
40905         * lib/fseeko.c (fseeko): Likewise.
40906         * lib/fseterr.c (fseterr): Likewise.
40907         * lib/fwritable.c (fwritable): Likewise.
40908         * lib/fwriting.c (fwriting): Likewise.
40909
40910 2008-04-26  Bruno Haible  <bruno@clisp.org>
40911
40912         * lib/stdio-impl.h: New file.
40913         * lib/fbufmode.c: Include stdio-impl.h.
40914         (fbufmode): Use fp_, remove redundant #defines.
40915         * lib/fflush.c: Include stdio-impl.h.
40916         (clear_ungetc_buffer): Remove redundant #defines.
40917         * lib/fpurge.c: Include stdio-impl.h.
40918         (fpurge): Remove redundant #defines.
40919         * lib/freadable.c: Include stdio-impl.h.
40920         (freadable): Remove redundant #defines.
40921         * lib/freadahead.c: Include stdio-impl.h.
40922         (freadahead): Remove redundant #defines.
40923         * lib/freading.c: Include stdio-impl.h.
40924         (freading): Remove redundant #defines.
40925         * lib/freadptr.c: Include stdio-impl.h.
40926         (freadptr): Remove redundant #defines.
40927         * lib/freadseek.c: Include stdio-impl.h.
40928         (freadptrinc): Remove redundant #defines.
40929         * lib/fseeko.c: Include stdio-impl.h.
40930         (rpl_fseeko): Remove redundant #defines.
40931         * lib/fseterr.c: Include stdio-impl.h.
40932         (fseterr): Remove redundant #defines.
40933         * lib/fwritable.c: Include stdio-impl.h.
40934         (fwritable: Remove redundant #defines.
40935         * lib/fwriting.c: Include stdio-impl.h.
40936         (fwriting): Remove redundant #defines.
40937         * modules/fbufmode (Files): Add lib/stdio-impl.h.
40938         * modules/fflush (Files): Likewise.
40939         * modules/fpurge (Files): Likewise.
40940         * modules/freadable (Files): Likewise.
40941         * modules/freadahead (Files): Likewise.
40942         * modules/freading (Files): Likewise.
40943         * modules/freadptr (Files): Likewise.
40944         * modules/freadseek (Files): Likewise.
40945         * modules/fseeko (Files): Likewise.
40946         * modules/fseterr (Files): Likewise.
40947         * modules/fwritable (Files): Likewise.
40948         * modules/fwriting (Files): Likewise.
40949
40950 2008-04-26  Bruno Haible  <bruno@clisp.org>
40951
40952         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
40953         restore_seek_optimization, update_fpos_cache): New functions, extracted
40954         from rpl_fflush.
40955         (rpl_fflush): Use them.
40956         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
40957         (gl_REPLACE_FFLUSH): Use it.
40958
40959 2008-04-26  Bruno Haible  <bruno@clisp.org>
40960
40961         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
40962         on Solaris.
40963         * tests/test-xstrtoimax.sh: Likewise.
40964         * tests/test-xstrtoumax.sh: Likewise.
40965         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
40966
40967 2008-04-26  Bruno Haible  <bruno@clisp.org>
40968
40969         * modules/memchr-tests: New file.
40970         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
40971
40972 2008-04-26  Eric Blake  <ebb9@byu.net>
40973             Bruno Haible  <bruno@clisp.org>
40974
40975         * lib/memchr.c: Include intprops.h.
40976         (__memchr): Optimize parallel detection of matching bytes. Rename local
40977         variables. Add explanatory comments.
40978
40979 2008-04-26  Bruno Haible  <bruno@clisp.org>
40980
40981         Fix module 'memchr', broken since 2000-10-28.
40982         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
40983
40984 2008-04-26  Bruno Haible  <bruno@clisp.org>
40985
40986         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
40987         comments.
40988
40989 2008-04-25  Eric Blake  <ebb9@byu.net>
40990
40991         Use native fstatat on cygwin 1.7.0.
40992         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
40993         first.
40994
40995 2008-04-23  Eric Blake  <ebb9@byu.net>
40996
40997         Improve memchr2 performance.
40998         * lib/memchr2.c (memchr2): Further optimize parallel detection of
40999         NUL bytes.
41000         * modules/memchr2 (Depends-on): Use intprops.h.
41001
41002 2008-04-23  Simon Josefsson  <simon@josefsson.org>
41003
41004         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
41005         an inline function instead of a CPP macro.  Patch by Ben Pfaff
41006         <blp@cs.stanford.edu>.
41007
41008 2008-04-23  Simon Josefsson  <simon@josefsson.org>
41009
41010         * lib/arpa_inet.in.h: New file.
41011
41012         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
41013         (Makefile.am): Sed in substitute header file.
41014
41015         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
41016         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
41017
41018         * modules/inet_ntop (configure.ac): Use
41019         gl_ARPA_INET_MODULE_INDICATOR.
41020
41021         * modules/inet_pton (configure.ac): Use
41022         gl_ARPA_INET_MODULE_INDICATOR.
41023
41024 2008-04-22  Jim Meyering  <meyering@redhat.com>
41025
41026         * modules/verify (License): Re-license as LGPLv2+.
41027
41028 2008-04-22  Simon Josefsson  <simon@josefsson.org>
41029
41030         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
41031         parameter to void* as per POSIX standard (MinGW uses char*).
41032
41033 2008-04-21  Bruno Haible  <bruno@clisp.org>
41034
41035         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
41036         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
41037         Define to replacements if REPLACE_ISWCNTRL is 1.
41038         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
41039         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
41040         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
41041         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
41042         what it fixes.
41043         * doc/posix-functions/iswalpha.texi: Likewise.
41044         * doc/posix-functions/iswblank.texi: Likewise.
41045         * doc/posix-functions/iswcntrl.texi: Likewise.
41046         * doc/posix-functions/iswdigit.texi: Likewise.
41047         * doc/posix-functions/iswgraph.texi: Likewise.
41048         * doc/posix-functions/iswlower.texi: Likewise.
41049         * doc/posix-functions/iswprint.texi: Likewise.
41050         * doc/posix-functions/iswpunct.texi: Likewise.
41051         * doc/posix-functions/iswspace.texi: Likewise.
41052         * doc/posix-functions/iswupper.texi: Likewise.
41053         * doc/posix-functions/iswxdigit.texi: Likewise.
41054         Reported by Alain Guibert.
41055
41056 2008-04-21  Bruno Haible  <bruno@clisp.org>
41057
41058         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
41059         Patch by Alain Guibert.
41060
41061 2008-04-21  Bruno Haible  <bruno@clisp.org>
41062
41063         Fix test failures on mingw.
41064         * tests/test-xstrtol.c (print_no_progname): New function.
41065         (main): Install it in error_print_progname hook.
41066         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
41067         * tests/test-xstrtoimax.sh: Likewise.
41068         * tests/test-xstrtoumax.sh: Likewise.
41069
41070 2008-04-21  Bruno Haible  <bruno@clisp.org>
41071
41072         Fix test failure on mingw.
41073         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
41074
41075 2008-04-21  Bruno Haible  <bruno@clisp.org>
41076
41077         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
41078         Actually assign a value.
41079
41080 2008-04-20  Bruno Haible  <bruno@clisp.org>
41081
41082         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
41083         take 2.
41084         * lib/canonicalize.c (canonicalize_file_name): Elide if the
41085         'canonicalize-lgpl' module is also used.
41086         * lib/canonicalize-lgpl.c: Undo last change.
41087         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
41088
41089 2008-04-20  Bruno Haible  <bruno@clisp.org>
41090
41091         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
41092         config.h. Provide _mkdir based fallback for mingw.
41093         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
41094         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
41095         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
41096         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
41097         rather than defining mkdir in config.h.
41098         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
41099         (gl_SYS_STAT_H_DEFAULTS): New macro.
41100         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
41101         HAVE_IO_H any more.
41102         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
41103         HAVE_DECL_MKDIR and HAVE_IO_H.
41104
41105 2008-04-20  Bruno Haible  <bruno@clisp.org>
41106
41107         * lib/isapipe.c: Port to native Windows platforms.
41108
41109 2008-04-20  Bruno Haible  <bruno@clisp.org>
41110
41111         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
41112
41113 2008-04-21  Eric Blake  <ebb9@byu.net>
41114
41115         Work around preprocessors that don't handle UINTMAX_MAX.
41116         * lib/memchr2.c (memchr2): Avoid embedded #if.
41117         Reported by Alain Guibert, fix suggested by Bruno Haible.
41118
41119 2008-04-21  Simon Josefsson  <simon@josefsson.org>
41120
41121         * doc/posix-functions/strftime.texi (strftime): Explain better
41122         Windows incompatibility.  Suggested by Micah Cowan
41123         <micah@cowan.name>.
41124
41125 2008-04-20  Bruno Haible  <bruno@clisp.org>
41126
41127         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
41128         unistr/u8-mblen.
41129
41130 2008-04-20  Bruno Haible  <bruno@clisp.org>
41131
41132         Fix test failure on platforms with non-GNU iconv.
41133         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
41134         (U_TO_U8): Use it, rather than u16_to_u8.
41135         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
41136         units at the end of the input string.
41137         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
41138
41139 2008-04-20  Bruno Haible  <bruno@clisp.org>
41140
41141         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
41142         when the resulting length is 0.
41143         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
41144
41145 2008-04-20  Bruno Haible  <bruno@clisp.org>
41146
41147         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
41148         works.
41149         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
41150
41151 2008-04-20  Bruno Haible  <bruno@clisp.org>
41152
41153         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
41154         * modules/tsearch-tests (configure.ac): Test for initstate function.
41155
41156 2008-04-20  Bruno Haible  <bruno@clisp.org>
41157
41158         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
41159         for nlink_t if missing.
41160         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
41161
41162 2008-04-19  Bruno Haible  <bruno@clisp.org>
41163
41164         Work around snprintf bug on Linux libc5.
41165         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
41166         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
41167         gl_SNPRINTF_SIZE1.
41168         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
41169         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
41170         that test failed.
41171         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
41172         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
41173         * modules/snprintf (Files): Add m4/printf.m4.
41174         * modules/vsnprintf (Files): Likewise.
41175         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
41176         * doc/posix-functions/vsnprintf.texi: Likewise.
41177
41178 2008-04-19  Bruno Haible  <bruno@clisp.org>
41179
41180         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
41181         from 0.0058 to less than 10^-7.
41182
41183 2008-04-19  Bruno Haible  <bruno@clisp.org>
41184
41185         Fix rounding when a precision is given.
41186         * lib/vasnprintf.c (is_borderline): New function.
41187         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
41188         9...9x.
41189         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
41190         %e, %g.
41191         * tests/test-vasprintf-posix.c (test_function): Likewise.
41192         * tests/test-snprintf-posix.h (test_function): Likewise.
41193         * tests/test-sprintf-posix.h (test_function): Likewise.
41194         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
41195         * tests/test-printf-posix.h (test_function): Likewise.
41196         * tests/test-printf-posix.output: Update.
41197         Reported by John Darrington <john@darrington.wattle.id.au> via
41198         Ben Pfaff <blp@cs.stanford.edu>.
41199
41200 2008-04-18  Simon Josefsson  <simon@josefsson.org>
41201
41202         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
41203         Suggested by Bruno Haible <bruno@clisp.org>.
41204
41205 2008-04-17  Bruno Haible  <bruno@clisp.org>
41206
41207         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
41208         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
41209         implementation.
41210         Patch by Bruce Merry <bmerry@gmail.com>.
41211
41212 2008-04-17  Simon Josefsson  <simon@josefsson.org>
41213
41214         * doc/posix-functions/strftime.texi (strftime): Mention that %e
41215         doesn't work under Windows.
41216
41217 2008-04-16  Bruno Haible  <bruno@clisp.org>
41218
41219         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
41220         New macros.
41221         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
41222         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
41223         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
41224         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
41225         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
41226         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
41227         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
41228         macros.
41229         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
41230         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
41231         Northern Sotho, Uighur.
41232
41233 2008-04-16  Bruno Haible  <bruno@clisp.org>
41234
41235         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
41236         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
41237         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
41238         Reported by Daniel Bergström <daniel@octocode.com>.
41239
41240 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
41241             Bruno Haible  <bruno@clisp.org>
41242
41243         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
41244         function.
41245         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
41246         New functions, mostly extracted from gl_locale_name_default.
41247         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
41248
41249 2008-04-16  Eric Blake  <ebb9@byu.net>
41250
41251         Adjust strtod detection to catch glibc 2.7 bug.
41252         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
41253         Reported by John Gatewood Ham.
41254
41255 2008-04-16  Bruno Haible  <bruno@clisp.org>
41256
41257         Add tentative support for Linux libc5.
41258         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
41259         * lib/fpurge.c (fpurge): Likewise.
41260         * lib/freadable.c (freadable): Likewise.
41261         * lib/freadahead.c (freadahead): Likewise.
41262         * lib/freading.c (freading): Likewise.
41263         * lib/freadptr.c (freadptr): Likewise.
41264         * lib/freadseek.c (freadptrinc): Likewise.
41265         * lib/fseeko.c (rpl_fseeko): Likewise.
41266         * lib/fseterr.c (fseterr): Likewise.
41267         * lib/fwritable.c (fwritable): Likewise.
41268         * lib/fwriting.c (fwriting): Likewise.
41269         Reported by Alain Guibert <alguibert+bts@free.fr>.
41270
41271 2008-04-15  Bruno Haible  <bruno@clisp.org>
41272
41273         * modules/mathl (configure.ac): Define module indicator.
41274
41275 2008-04-15  Bruno Haible  <bruno@clisp.org>
41276
41277         * lib/logl.c (logl): Remove unused variables.
41278
41279 2008-04-15  Bruno Haible  <bruno@clisp.org>
41280
41281         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
41282         fails.
41283
41284 2008-04-15  Bruno Haible  <bruno@clisp.org>
41285
41286         * lib/trim.c (trim2): Fix argument of isspace() macro.
41287
41288 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
41289
41290         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
41291         to 0.
41292         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
41293
41294 2008-04-14  Bruno Haible  <bruno@clisp.org>
41295
41296         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
41297         AC_LANG_PROGRAM argument.
41298         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
41299         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
41300         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
41301         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
41302         * m4/math_h.m4 (gl_MATH_H): Likewise.
41303         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
41304         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
41305         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
41306         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
41307         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
41308         * m4/regex.m4 (gl_REGEX): Likewise.
41309         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
41310         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
41311         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
41312         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
41313         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
41314         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
41315         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
41316         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
41317
41318 2008-04-14  Jim Meyering  <meyering@redhat.com>
41319
41320         test-strtod: fix typos: s/abs/fabs/
41321         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
41322
41323 2008-04-13  Bruno Haible  <bruno@clisp.org>
41324
41325         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
41326         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
41327         module is also used and while not building the reloc-wrapper.
41328
41329 2008-04-13  Bruno Haible  <bruno@clisp.org>
41330
41331         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
41332
41333 2008-04-13  Bruno Haible  <bruno@clisp.org>
41334
41335         Fix AIX compilation failure introduced on 2008-04-02.
41336         * tests/test-frexp.c (exp): Undefine before redefining.
41337         * tests/test-frexpl.c (exp): Likewise.
41338
41339 2008-04-13  Bruno Haible  <bruno@clisp.org>
41340
41341         Work around a HP-UX stdio bug.
41342         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
41343         * tests/test-ftello.c (main): Likewise.
41344         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
41345         * doc/posix-functions/ftello.texi: Likewise.
41346
41347 2008-04-13  Bruno Haible  <bruno@clisp.org>
41348
41349         Make test-signbit pass on HP-UX/hppa.
41350         * tests/test-signbit.c (minus_zerol): New variable.
41351         (test_signbitl): Use it.
41352
41353 2008-04-13  Bruno Haible  <bruno@clisp.org>
41354
41355         Make truncl work on OSF/1 4.0.
41356         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
41357         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
41358         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
41359         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
41360         HAVE_DECL_TRUNCL.
41361         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
41362         HAVE_DECL_TRUNCL.
41363         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
41364
41365 2008-04-13  Bruno Haible  <bruno@clisp.org>
41366
41367         * lib/unictype.h: Remove trailing comma from enumeration definitions.
41368
41369 2008-04-13  Bruno Haible  <bruno@clisp.org>
41370
41371         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
41372         expression, so as to avoid HP-UX 11 cc compiler bug.
41373
41374 2008-04-13  Bruno Haible  <bruno@clisp.org>
41375
41376         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
41377
41378 2008-04-13  Bruno Haible  <bruno@clisp.org>
41379
41380         * lib/git-merge-changelog.c: Remove empty declaration outside of
41381         functions.
41382
41383 2008-04-13  Bruno Haible  <bruno@clisp.org>
41384
41385         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
41386
41387 2008-04-13  Bruno Haible  <bruno@clisp.org>
41388
41389         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
41390         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
41391         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
41392         also if it exists but lacks definitions of the SHUT_* macros.
41393         * modules/sys_socket (Description): Update.
41394         Reported by Elbert Pol <e.pol@chello.nl>.
41395
41396 2008-04-13  Bruno Haible  <bruno@clisp.org>
41397
41398         * lib/localcharset.c (OS2): Don't redefine if already defined.
41399         Reported by Elbert Pol <e.pol@chello.nl>.
41400
41401 2008-04-13  Bruno Haible  <bruno@clisp.org>
41402
41403         * lib/binary-io.h [__EMX__]: Include <io.h>.
41404         Reported by Elbert Pol <e.pol@chello.nl>.
41405
41406 2008-04-12  Bruno Haible  <bruno@clisp.org>
41407
41408         * lib/fpucw.h: Enable the definitions also for x86_64.
41409         Needed for NetBSD/x86_64.
41410         Reported by Thomas Klausner <tk@giga.or.at>.
41411
41412 2008-04-12  Bruno Haible  <bruno@clisp.org>
41413
41414         * tests/test-strtod.c: Include isnand.h.
41415         (main): Use isnand instead of isnan.
41416         Reported by Jim Meyering.
41417
41418 2008-04-12  Bruno Haible  <bruno@clisp.org>
41419
41420         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
41421         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
41422
41423 2008-04-12  Jim Meyering  <meyering@redhat.com>
41424
41425         * m4/math_h.m4 (gl_MATH_H): Fix typos.
41426
41427 2008-04-12  Bruno Haible  <bruno@clisp.org>
41428
41429         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
41430         Reported by Elbert Pol <e.pol@chello.nl>.
41431
41432 2008-04-12  Eric Blake  <ebb9@byu.net>
41433
41434         Work around Solaris 10 math.h bug.
41435         * m4/math_h.m4 (gl_MATH_H): Check for bug.
41436         (gl_MATH_H_DEFAULTS): Set up default.
41437         * modules/math (Makefile.am): Replace new indicators.
41438         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
41439         * tests/test-math.c (main): Test this.
41440         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
41441         * doc/posix-headers/math.texi (math.h): Mention bug.
41442         Reported by Nelson H. F. Beebe and Jim Meyering.
41443
41444 2008-04-11  Bruno Haible  <bruno@clisp.org>
41445
41446         Adapt to future versions of Apple GCC.
41447         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
41448         Reported by Peter O'Gorman <peter@pogma.com>.
41449
41450 2008-04-11  Bruno Haible  <bruno@clisp.org>
41451
41452         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
41453
41454 2008-04-11  Bruno Haible  <bruno@clisp.org>
41455
41456         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
41457
41458         * modules/getaddrinfo-tests (Makefile.am): Define
41459         test_getaddrinfo_LDADD.
41460
41461 2008-04-11  Bruno Haible  <bruno@clisp.org>
41462
41463         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
41464         (init): Fix syntax error.
41465         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
41466         is declared.
41467
41468 2008-04-11  Bruno Haible  <bruno@clisp.org>
41469
41470         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
41471         * modules/glob (Depends-on): Add stdbool.
41472
41473 2008-04-11  Bruno Haible  <bruno@clisp.org>
41474
41475         * lib/trim.c: Include <string.h>.
41476
41477 2008-04-11  Eric Blake  <ebb9@byu.net>
41478
41479         Avoid compile failure on OS/2.
41480         * lib/regex_internal.h (internal_function): Disable optimization
41481         on OS/2 (__EMX__), where it caused compiler error.
41482         Reported by Elbert Pol.
41483
41484 2008-04-11  Bruno Haible  <bruno@clisp.org>
41485
41486         Flush the standard error stream before aborting. Needed on mingw.
41487         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
41488         * tests/test-array_list.c (ASSERT): Likewise.
41489         * tests/test-array_oset.c (ASSERT): Likewise.
41490         * tests/test-avltree_list.c (ASSERT): Likewise.
41491         * tests/test-avltree_oset.c (ASSERT): Likewise.
41492         * tests/test-avltreehash_list.c (ASSERT): Likewise.
41493         * tests/test-binary-io.c (ASSERT): Likewise.
41494         * tests/test-byteswap.c (ASSERT): Likewise.
41495         * tests/test-c-ctype.c (ASSERT): Likewise.
41496         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
41497         * tests/test-c-strcasestr.c (ASSERT): Likewise.
41498         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
41499         * tests/test-c-strstr.c (ASSERT): Likewise.
41500         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
41501         * tests/test-canonicalize.c (ASSERT): Likewise.
41502         * tests/test-carray_list.c (ASSERT): Likewise.
41503         * tests/test-ceilf1.c (ASSERT): Likewise.
41504         * tests/test-ceilf2.c (ASSERT): Likewise.
41505         * tests/test-ceill.c (ASSERT): Likewise.
41506         * tests/test-count-one-bits.c (ASSERT): Likewise.
41507         * tests/test-fbufmode.c (ASSERT): Likewise.
41508         * tests/test-fflush2.c (ASSERT): Likewise.
41509         * tests/test-floorf1.c (ASSERT): Likewise.
41510         * tests/test-floorf2.c (ASSERT): Likewise.
41511         * tests/test-floorl.c (ASSERT): Likewise.
41512         * tests/test-fopen.c (ASSERT): Likewise.
41513         * tests/test-fpending.c (ASSERT): Likewise.
41514         * tests/test-fprintf-posix.c (ASSERT): Likewise.
41515         * tests/test-fpurge.c (ASSERT): Likewise.
41516         * tests/test-freadable.c (ASSERT): Likewise.
41517         * tests/test-freadahead.c (ASSERT): Likewise.
41518         * tests/test-freading.c (ASSERT): Likewise.
41519         * tests/test-freadptr.c (ASSERT): Likewise.
41520         * tests/test-freadptr2.c (ASSERT): Likewise.
41521         * tests/test-freadseek.c (ASSERT): Likewise.
41522         * tests/test-freopen.c (ASSERT): Likewise.
41523         * tests/test-frexp.c (ASSERT): Likewise.
41524         * tests/test-frexpl.c (ASSERT): Likewise.
41525         * tests/test-fseek.c (ASSERT): Likewise.
41526         * tests/test-fseeko.c (ASSERT): Likewise.
41527         * tests/test-fstrcmp.c (ASSERT): Likewise.
41528         * tests/test-ftell.c (ASSERT): Likewise.
41529         * tests/test-ftello.c (ASSERT): Likewise.
41530         * tests/test-func.c (ASSERT): Likewise.
41531         * tests/test-fwritable.c (ASSERT): Likewise.
41532         * tests/test-fwriting.c (ASSERT): Likewise.
41533         * tests/test-getdelim.c (ASSERT): Likewise.
41534         * tests/test-getline.c (ASSERT): Likewise.
41535         * tests/test-i-ring.c (ASSERT): Likewise.
41536         * tests/test-iconv-utf.c (ASSERT): Likewise.
41537         * tests/test-iconv.c (ASSERT): Likewise.
41538         * tests/test-isfinite.c (ASSERT): Likewise.
41539         * tests/test-isnand.c (ASSERT): Likewise.
41540         * tests/test-isnanf.c (ASSERT): Likewise.
41541         * tests/test-isnanl.h (ASSERT): Likewise.
41542         * tests/test-ldexpl.c (ASSERT): Likewise.
41543         * tests/test-linked_list.c (ASSERT): Likewise.
41544         * tests/test-linkedhash_list.c (ASSERT): Likewise.
41545         * tests/test-localename.c (ASSERT): Likewise.
41546         * tests/test-lseek.c (ASSERT): Likewise.
41547         * tests/test-mbscasecmp.c (ASSERT): Likewise.
41548         * tests/test-mbscasestr1.c (ASSERT): Likewise.
41549         * tests/test-mbscasestr2.c (ASSERT): Likewise.
41550         * tests/test-mbscasestr3.c (ASSERT): Likewise.
41551         * tests/test-mbscasestr4.c (ASSERT): Likewise.
41552         * tests/test-mbschr.c (ASSERT): Likewise.
41553         * tests/test-mbscspn.c (ASSERT): Likewise.
41554         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
41555         * tests/test-mbspbrk.c (ASSERT): Likewise.
41556         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
41557         * tests/test-mbsrchr.c (ASSERT): Likewise.
41558         * tests/test-mbsspn.c (ASSERT): Likewise.
41559         * tests/test-mbsstr1.c (ASSERT): Likewise.
41560         * tests/test-mbsstr2.c (ASSERT): Likewise.
41561         * tests/test-mbsstr3.c (ASSERT): Likewise.
41562         * tests/test-memchr2.c (ASSERT): Likewise.
41563         * tests/test-memmem.c (ASSERT): Likewise.
41564         * tests/test-open.c (ASSERT): Likewise.
41565         * tests/test-printf-frexp.c (ASSERT): Likewise.
41566         * tests/test-printf-frexpl.c (ASSERT): Likewise.
41567         * tests/test-printf-posix.c (ASSERT): Likewise.
41568         * tests/test-quotearg.c (ASSERT): Likewise.
41569         * tests/test-rbtree_list.c (ASSERT): Likewise.
41570         * tests/test-rbtree_oset.c (ASSERT): Likewise.
41571         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
41572         * tests/test-round1.c (ASSERT): Likewise.
41573         * tests/test-roundf1.c (ASSERT): Likewise.
41574         * tests/test-roundl.c (ASSERT): Likewise.
41575         * tests/test-signbit.c (ASSERT): Likewise.
41576         * tests/test-sleep.c (ASSERT): Likewise.
41577         * tests/test-snprintf-posix.c (ASSERT): Likewise.
41578         * tests/test-snprintf.c (ASSERT): Likewise.
41579         * tests/test-sprintf-posix.c (ASSERT): Likewise.
41580         * tests/test-stat-time.c (ASSERT): Likewise.
41581         * tests/test-strcasestr.c (ASSERT): Likewise.
41582         * tests/test-strerror.c (ASSERT): Likewise.
41583         * tests/test-striconv.c (ASSERT): Likewise.
41584         * tests/test-striconveh.c (ASSERT): Likewise.
41585         * tests/test-striconveha.c (ASSERT): Likewise.
41586         * tests/test-strsignal.c (ASSERT): Likewise.
41587         * tests/test-strstr.c (ASSERT): Likewise.
41588         * tests/test-strtod.c (ASSERT): Likewise.
41589         * tests/test-trunc1.c (ASSERT): Likewise.
41590         * tests/test-trunc2.c (ASSERT): Likewise.
41591         * tests/test-truncf1.c (ASSERT): Likewise.
41592         * tests/test-truncf2.c (ASSERT): Likewise.
41593         * tests/test-truncl.c (ASSERT): Likewise.
41594         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
41595         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
41596         * tests/test-vasnprintf.c (ASSERT): Likewise.
41597         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
41598         * tests/test-vasprintf.c (ASSERT): Likewise.
41599         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
41600         * tests/test-vprintf-posix.c (ASSERT): Likewise.
41601         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
41602         * tests/test-vsnprintf.c (ASSERT): Likewise.
41603         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
41604         * tests/test-wcwidth.c (ASSERT): Likewise.
41605         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
41606         * tests/test-xprintf-posix.c (ASSERT): Likewise.
41607         * tests/test-xvasprintf.c (ASSERT): Likewise.
41608         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
41609         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
41610         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
41611         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
41612         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
41613         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
41614         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
41615         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
41616         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
41617         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
41618         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
41619         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
41620         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
41621         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
41622         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
41623         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
41624         * tests/unictype/test-block_list.c (ASSERT): Likewise.
41625         * tests/unictype/test-block_of.c (ASSERT): Likewise.
41626         * tests/unictype/test-block_test.c (ASSERT): Likewise.
41627         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
41628         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
41629         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
41630         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
41631         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
41632         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
41633         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
41634         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
41635         * tests/unictype/test-combining.c (ASSERT): Likewise.
41636         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
41637         * tests/unictype/test-digit.c (ASSERT): Likewise.
41638         * tests/unictype/test-mirror.c (ASSERT): Likewise.
41639         * tests/unictype/test-numeric.c (ASSERT): Likewise.
41640         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
41641         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
41642         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
41643         * tests/unictype/test-scripts.c (ASSERT): Likewise.
41644         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
41645         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
41646         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
41647         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
41648         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
41649         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
41650         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
41651         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
41652         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
41653         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
41654         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
41655         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
41656         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
41657         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
41658         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
41659         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
41660         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
41661         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
41662         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
41663         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
41664         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
41665         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
41666         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
41667         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
41668         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
41669         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
41670         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
41671         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
41672         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
41673         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
41674         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
41675         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
41676         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
41677         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
41678         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
41679         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
41680         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
41681         Reported by Eric Blake.
41682
41683 2008-04-11  Bruno Haible  <bruno@clisp.org>
41684
41685         * lib/wchar.in.h: Tweak comment.
41686
41687 2008-04-11  Bruno Haible  <bruno@clisp.org>
41688
41689         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
41690         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
41691         gl_COMMON.
41692         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
41693
41694 2008-04-11  Bruno Haible  <bruno@clisp.org>
41695
41696         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
41697
41698 2008-04-11  Simon Josefsson  <simon@josefsson.org>
41699
41700         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
41701         of attempting to use non-existing /dev/*random.  Based on patch
41702         from Adam Strzelecki <ono@java.pl> in
41703         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
41704
41705 2008-04-08  Bruno Haible  <bruno@clisp.org>
41706
41707         Add tentative support for emx+gcc.
41708         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
41709         * lib/fpurge.c (fpurge): Likewise.
41710         * lib/freadable.c (freadable): Likewise.
41711         * lib/freadahead.c (freadahead): Likewise.
41712         * lib/freading.c (freading): Likewise.
41713         * lib/freadptr.c (freadptr): Likewise.
41714         * lib/freadseek.c (freadptrinc): Likewise.
41715         * lib/fseeko.c (rpl_fseeko): Likewise.
41716         * lib/fseterr.c (fseterr): Likewise.
41717         * lib/fwritable.c (fwritable): Likewise.
41718         * lib/fwriting.c (fwriting): Likewise.
41719         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
41720
41721 2008-04-09  Eric Blake  <ebb9@byu.net>
41722
41723         Avoid some autoconf warnings.
41724         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
41725         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
41726         * m4/afs.m4 (gl_AFS): Likewise.
41727         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
41728         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
41729         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
41730         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
41731         (gl_INTEGER_TYPE_SUFFIX): Likewise.
41732         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
41733         (AC_CHECK_DECLS_ONCE): Likewise.
41734         Rename file...
41735         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
41736         gnulib-tool requires autoconf 2.59 or better.
41737         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
41738
41739 2008-04-08  Eric Blake  <ebb9@byu.net>
41740
41741         Use 'git describe --match' if present (added in git 1.5.5).
41742         * build-aux/git-version-gen: Limit result to tags that match 'v*'
41743         if possible.
41744
41745 2008-04-08  Bruno Haible  <bruno@clisp.org>
41746
41747         Add tentative support for OpenServer.
41748         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
41749         _ptr, _cnt.
41750         * lib/fpurge.c (fpurge): Likewise.
41751         * lib/freadable.c (freadable): Likewise.
41752         * lib/freadahead.c (freadahead): Likewise.
41753         * lib/freading.c (freading): Likewise.
41754         * lib/freadptr.c (freadptr): Likewise.
41755         * lib/freadseek.c (freadptrinc): Likewise.
41756         * lib/fseeko.c (rpl_fseeko): Likewise.
41757         * lib/fseterr.c (fseterr): Likewise.
41758         * lib/fwritable.c (fwritable): Likewise.
41759         * lib/fwriting.c (fwriting): Likewise.
41760         Reported by Roger Cornelius <rac@tenzing.org> and
41761         Brian K. White <brian@aljex.com>.
41762
41763 2008-04-06  Jim Meyering  <meyering@redhat.com>
41764
41765         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
41766
41767 2008-04-06  Bruno Haible  <bruno@clisp.org>
41768
41769         Avoid possible error with non-ASCII bytes in UTF-8 locales.
41770         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
41771         * tests/test-printf-posix.sh: Likewise.
41772         * tests/test-vfprintf-posix.sh: Likewise.
41773         * tests/test-vprintf-posix.sh: Likewise.
41774         * tests/test-xprintf-posix.sh: Likewise.
41775
41776 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41777
41778         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
41779         hide error from 'ls', needed on OS/2.
41780         Report by Elbert Pol <elbert.pol@gmail.com>.
41781
41782 2008-04-04  Eric Blake  <ebb9@byu.net>
41783
41784         Make test-fseeko.c failures meaningful.
41785         * tests/test-fseeko.c: Print line number on failure.
41786         * tests/test-fseek.c: Likewise.
41787         Reported by Nelson H. F. Beebe.
41788
41789         Improve strtod bug detection check.
41790         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
41791         required for Solaris 10.
41792         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
41793
41794 2008-04-04  Bruno Haible  <bruno@clisp.org>
41795
41796         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
41797         by m4/setenv.m4.
41798
41799 2008-04-03  Eric Blake  <ebb9@byu.net>
41800
41801         Ensure sane .version contents.
41802         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
41803         version string.
41804         * build-aux/git-version-gen: Improve documentation.
41805
41806         Make GNU make output nicer.
41807         * top/GNUmakefile [!_have-Makefile]: Add dependency on
41808         MAKECMDGOALS to enforce message for all command line targets.  Set
41809         srcdir for use in maint.mk.
41810
41811         Another maintainer tweak.
41812         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
41813         a target that regenerates version.
41814
41815 2008-04-03  Jim Meyering  <meyering@redhat.com>
41816
41817         vc-list-files: don't cause coreutils "make po-check" failure
41818         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
41819
41820 2008-04-03  Eric Blake  <ebb9@byu.net>
41821
41822         Allow VPATH usage of vc-list-files.
41823         * build-aux/vc-list-files (scriptversion): Add timestamp.
41824         (options): Add --help, --version, -C.
41825         (CVS): Support installed cvsu.
41826
41827 2008-04-02  Bruno Haible  <bruno@clisp.org>
41828
41829         Avoid some "statement with no effect" warnings from gcc.
41830         * tests/test-wctype.c (main): Explicitly ignore unused values.
41831         Reported by Jim Meyering.
41832
41833 2008-04-02  Jim Meyering  <meyering@redhat.com>
41834
41835         Avoid some warnings from "gcc -Wshadow".
41836         * tests/test-frexp.c (exp): Define to a different identifier.
41837         * tests/test-frexpl.c (exp): Likewise.
41838
41839 2008-04-03  Jim Meyering  <meyering@redhat.com>
41840
41841         bootstrap: remove dangling *.[ch] symlinks from lib
41842         * build-aux/bootstrap [dangling symlink removal]: Move find's
41843         -depth option to precede all others, to avoid a warning.
41844         Remove *.[ch] files too, and from "$source_base" (usually lib/).
41845
41846 2008-04-02  Bruno Haible  <bruno@clisp.org>
41847
41848         Avoid some warnings from "gcc -Wshadow".
41849         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
41850         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
41851         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
41852         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
41853         Reported by Jim Meyering.
41854
41855 2008-04-01  Bruno Haible  <bruno@clisp.org>
41856
41857         Fix test to work on IRIX 6.5 with cc.
41858         * tests/test-math.c (numeric_equal): New function.
41859         (main): Use it.
41860
41861 2008-04-01  Bruno Haible  <bruno@clisp.org>
41862
41863         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
41864
41865 2008-04-01  Bruno Haible  <bruno@clisp.org>
41866
41867         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
41868         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
41869         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
41870         (Depends-on): Remove math.
41871
41872         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
41873         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
41874         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
41875         (Depends-on): Remove math.
41876
41877         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
41878         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
41879         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
41880         (Depends-on): Remove math.
41881         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
41882         (Depends-on): Remove math.
41883
41884         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
41885         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
41886         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
41887         (Depends-on): Remove math.
41888         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
41889         (Depends-on): Remove math.
41890
41891         * tests/test-round1.c: Include nan.h.
41892         (main): Use NaNd instead of NAN.
41893         * modules/round-tests (Files): Add tests/nan.h.
41894
41895         * tests/test-trunc1.c: Include nan.h.
41896         (main): Use NaNd instead of NAN.
41897         * modules/trunc-tests (Files): Add tests/nan.h.
41898
41899         * tests/test-roundf1.c: Include nan.h.
41900         (main): Use NaNf instead of NAN.
41901         * modules/roundf-tests (Files): Add tests/nan.h.
41902
41903         * tests/test-truncf1.c: Include nan.h.
41904         (main): Use NaNf instead of NAN.
41905         * modules/truncf-tests (Files): Add tests/nan.h.
41906
41907         * tests/test-ceilf1.c: Include nan.h.
41908         (main): Use NaNf instead of NAN.
41909         * modules/ceilf-tests (Files): Add tests/nan.h.
41910
41911         * tests/test-floorf1.c: Include nan.h.
41912         (main): Use NaNf instead of NAN.
41913         * modules/floorf-tests (Files): Add tests/nan.h.
41914
41915         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
41916         (main): Use NaNf instead of NAN.
41917         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
41918
41919         * tests/test-isnand.c: Include nan.h instead of <math.h>.
41920         (main): Use NaNd instead of NAN.
41921         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
41922
41923         * tests/test-frexp.c: Include nan.h.
41924         (main): Use NaNd instead of NAN.
41925         * modules/frexp-tests (Files): Add tests/nan.h.
41926
41927         * lib/isnan.c: Don't include <math.h>.
41928         (FUNC): Don't use NAN macro.
41929         * modules/isnand-nolibm (Depends-on): Remove math.
41930         * modules/isnanf-nolibm (Depends-on): Remove math.
41931         * modules/isnanl (Depends-on): Remove math.
41932         * modules/isnanl-nolibm (Depends-on): Remove math.
41933
41934         * tests/nan.h: New file.
41935
41936 2008-04-01  Eric Blake  <ebb9@byu.net>
41937
41938         Fix typos.
41939         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
41940         values to be the right type.
41941
41942         For now, cater to gnulib strtod inaccuracies.
41943         * tests/test-strtod.c (main): Allow 1-ulp error on expected
41944         fractional results.  While not as nice from a QoI perspective, it
41945         is a quicker patch than correctly implementing decimal to binary
41946         rounding.
41947
41948 2008-03-31  Eric Blake  <ebb9@byu.net>
41949
41950         Guarantee a definition of NAN.
41951         * lib/math.in.h (NAN): Define if missing.
41952         * tests/test-math.c (main): Test it.
41953         * doc/posix-headers/math.texi (math.h): Document this.
41954         * lib/isnan.c (rpl_isnand): Use it.
41955         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
41956         * tests/test-floorf1.c (NaN): Likewise.
41957         * tests/test-frexp.c (NaN): Likewise.
41958         * tests/test-isnand.c (NaN): Likewise.
41959         * tests/test-isnanf.c (NaN): Likewise.
41960         * tests/test-round1.c (NaN): Likewise.
41961         * tests/test-roundf1.c (NaN): Likewise.
41962         * tests/test-snprintf-posix.h (NaN): Likewise.
41963         * tests/test-sprintf-posix.h (NaN): Likewise.
41964         * tests/test-trunc1.c (NaN): Likewise.
41965         * tests/test-truncf1.c (NaN): Likewise.
41966         * tests/test-vasnprintf-posix.c (NaN): Likewise.
41967         * tests/test-vasprintf-posix.c (NaN): Likewise.
41968         * modules/isnand-nolibm (Depends-on): Add math.
41969         * modules/isnanf-nolibm (Depends-on): Likewise.
41970         * modules/isnanl (Depends-on): Likewise.
41971         * modules/isnanl-nolibm (Depends-on): Likewise.
41972         * modules/snprintf-posix-tests (Depends-on): Likewise.
41973         * modules/sprintf-posix-tests (Depends-on): Likewise.
41974         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
41975         * modules/vsprintf-posix-tests (Depends-on): Likewise.
41976         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
41977         * modules/vasprintf-posix-tests (Depends-on): Likewise.
41978
41979 2008-03-31  Bruno Haible  <bruno@clisp.org>
41980
41981         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
41982         * doc/posix-functions/strtod.texi: Likewise.
41983
41984 2008-03-31  Bruno Haible  <bruno@clisp.org>
41985
41986         * tests/test-strtod.c (main): Don't use C99 syntax.
41987
41988 2008-03-31  Bruno Haible  <bruno@clisp.org>
41989
41990         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
41991         Reported by Eric Blake.
41992
41993 2008-03-31  Jim Meyering  <meyering@redhat.com>
41994
41995         Don't compare actual signbit return values.
41996         * tests/test-strtod.c (main): Rather, compare only their
41997         zero/non-zero nature.
41998
41999 2008-03-31  Eric Blake  <ebb9@byu.net>
42000
42001         More strtod documentation.
42002         * doc/posix-functions/strtod.texi (strtod): Interpret more test
42003         failures as distinct bugs.
42004
42005 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
42006
42007         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
42008         Problem reported by Erik Benada in
42009         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
42010
42011 2008-03-30  Bruno Haible  <bruno@clisp.org>
42012
42013         * tests/test-strtod.c: Add comments about which assertion fails on which
42014         platform.
42015         * doc/posix-functions/strtod.texi: Add info about many more platforms.
42016
42017 2008-03-30  Eric Blake  <ebb9@byu.net>
42018
42019         Test signbit behavior on zeros.
42020         * tests/test-signbit.c (test_signbitf): Add tests for zero.
42021         (test_signbitd, test_signbitl): Likewise.
42022
42023         More strtod touchups.
42024         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
42025         sign of negative underflow, for now.  Use .5, not .1.
42026         * doc/posix-functions/strtod.texi (strtod): Mention these
42027         limitations.
42028         Reported by Jim Meyering.
42029
42030 2008-03-30  Bruno Haible  <bruno@clisp.org>
42031
42032         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
42033         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
42034
42035 2008-03-30  Bruno Haible  <bruno@clisp.org>
42036
42037         Avoid failure when attempting to return empty iconv results on some
42038         platforms.
42039         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
42040         allocation, don't report ENOMEM when the resulting string is empty.
42041
42042 2008-03-30  Bruno Haible  <bruno@clisp.org>
42043
42044         Fix buffer overrun.
42045         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
42046         Don't consider the width for tmp_length. Check count against tmp_length
42047         before doing the padding. Ensure enough allocation during padding.
42048
42049 2008-03-30  Eric Blake  <ebb9@byu.net>
42050
42051         strtod touchups.
42052         * lib/strtod.c (strtod): Avoid compiler warnings.
42053         Reported by Jim Meyering.
42054
42055 2008-03-30  Bruno Haible  <bruno@clisp.org>
42056
42057         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
42058         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
42059         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
42060         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
42061         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
42062         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
42063         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
42064         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
42065
42066         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
42067         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
42068         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
42069         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
42070         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
42071         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
42072         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
42073         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
42074
42075         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
42076         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
42077         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
42078         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
42079         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
42080         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
42081         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
42082         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
42083
42084         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
42085         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
42086
42087         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
42088         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
42089
42090         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
42091         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
42092
42093         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
42094         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
42095         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
42096
42097         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
42098         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
42099         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
42100
42101         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
42102         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
42103         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
42104
42105         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
42106         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
42107         * modules/vasprintf (Depends-on): Add EOVERFLOW.
42108
42109         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
42110         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
42111         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
42112         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
42113         (Depends-on): Add EOVERFLOW.
42114         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
42115         (Depends-on): Add EOVERFLOW.
42116         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
42117         (Depends-on): Add EOVERFLOW.
42118         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
42119         (Depends-on): Add EOVERFLOW.
42120         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
42121         (Depends-on): Add EOVERFLOW.
42122         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
42123         (Depends-on): Add EOVERFLOW.
42124         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
42125         (Depends-on): Add EOVERFLOW.
42126         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
42127         (Depends-on): Add EOVERFLOW.
42128
42129         * lib/sprintf.c (EOVERFLOW): Remove fallback.
42130         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
42131         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
42132
42133         * lib/snprintf.c (EOVERFLOW): Remove fallback.
42134         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
42135         * modules/snprintf (Depends-on): Add EOVERFLOW.
42136
42137         * lib/poll.c (EOVERFLOW): Remove fallback.
42138         * modules/poll (Depends-on): Add EOVERFLOW.
42139
42140         * lib/getugroups.c (EOVERFLOW): Remove fallback.
42141         * modules/getugroups (Depends-on): Add EOVERFLOW.
42142
42143         * lib/getdelim.c (EOVERFLOW): Remove fallback.
42144         * modules/getdelim (Depends-on): Add EOVERFLOW.
42145
42146         * lib/ftell.c (EOVERFLOW): Remove fallback.
42147         * modules/ftell (Depends-on): Add EOVERFLOW.
42148
42149         * lib/fprintf.c (EOVERFLOW): Remove fallback.
42150         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
42151         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
42152
42153         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
42154
42155         * modules/EOVERFLOW-tests: New file.
42156         * tests/test-EOVERFLOW.c: New file.
42157
42158         * modules/EOVERFLOW: New file.
42159         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
42160
42161 2008-03-30  Bruno Haible  <bruno@clisp.org>
42162
42163         Fix bug introduced on 2007-06-10.
42164         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
42165         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
42166
42167 2008-03-30  Bruno Haible  <bruno@clisp.org>
42168
42169         Improve freadseek's efficiency after ungetc.
42170         * lib/freadseek.c: Include freadahead.h.
42171         (freadptrinc): New function, extracted from freadseek.
42172         (freadseek): Use it in a loop. Use freadahead to determine the number
42173         of loop iterations.
42174         * modules/freadseek (Depends-on): Add freadahead.
42175         (configure.ac): Require AC_C_INLINE.
42176
42177 2008-03-30  Bruno Haible  <bruno@clisp.org>
42178
42179         * lib/freadseek.c (freadseek): Don't ignore the return value of
42180         freadptr.
42181
42182 2008-03-29  Eric Blake  <ebb9@byu.net>
42183
42184         Add hex float support.
42185         * modules/strtod (Depends-on): Add c-ctype.
42186         (Link): Mention POW_LIB.
42187         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
42188         whitespace between 'e' and exponent.
42189         * tests/test-strtod.c (main): Enable hex float tests.
42190         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
42191         now provides.
42192
42193         Document various strtod bugs, with some fixes.
42194         * doc/posix-functions/strtod.texi (strtod): Document bugs with
42195         "-0x", "inf", "nan", and hex constants.
42196         * doc/posix-functions/atof.texi (atof): Likewise.
42197         * modules/stdlib (Makefile.am): Support strtod.
42198         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
42199         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
42200         detect additional strtod bugs.
42201         * lib/stdlib.in.h (rpl_strtod): Add declarations.
42202         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
42203         bool where appropriate.  Parse 'inf' and 'nan'.
42204         * tests/test-strtod.c: New file.
42205         * modules/strtod (Depends-on): Add stdbool, stdlib.
42206         (configure.ac): Turn on module indicator.
42207         * modules/strtod-tests: New module.
42208
42209 2008-03-29  Eric Blake  <ebb9@byu.net>
42210
42211         Fix ftell on mingw.
42212         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
42213         * modules/ftell-tests (Depends-on): Add binary-io.
42214         * modules/ftello-tests (Depends-on): Likewise.
42215         * tests/test-ftell.c (main): Enhance test to cover behavior after
42216         ungetc.  Enforce binary mode.
42217         * tests/test-ftello.c (main): Likewise.
42218
42219         Pass test-freadseek on cygwin.
42220         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
42221         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
42222         ungetc buffer.
42223
42224         * tests/test-fflush2.c (main): Fix typo.
42225
42226 2008-03-29  Bruno Haible  <bruno@clisp.org>
42227
42228         * tests/test-fflush2.c (main): Temporarily disable the contents of
42229         this test.
42230         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
42231         Reported by Eric Blake.
42232
42233 2008-03-28  Simon Josefsson  <simon@josefsson.org>
42234
42235         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
42236         (GC_SHA224_DIGEST_SIZE): Add.
42237
42238         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
42239         (gc_hash_digest_length): Likewise.
42240         (gc_hash_buffer): Likewise.
42241
42242 2008-03-25  Bruno Haible  <bruno@clisp.org>
42243
42244         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
42245         detail which gettext release to use.
42246         Reported by Simon Josefsson.
42247
42248 2008-03-26  Jim Meyering  <meyering@redhat.com>
42249
42250         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
42251         * modules/gnumakefile (clean-GNUmakefile): Also, use
42252         test ... && ... || : syntax rather than if-then ... fi.
42253
42254         gnumakefile: Don't double-quote-expand $(VPATH) value.
42255         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
42256
42257 2008-03-24  Eric Blake  <ebb9@byu.net>
42258
42259         Alter GNUmakefile to install into top directory.
42260         * modules/maintainer-makefile: Split, and add dependency...
42261         * modules/gnumakefile: to this new module.
42262         * build-aux/GNUmakefile: Move...
42263         * top/GNUmakefile: ...here.
42264         * build-aux/maint.mk: Move...
42265         * top/maint.mk: ...here.
42266         * MODULES.html.sh (Support for maintaining...): Document new
42267         module.
42268
42269 2008-03-23  Bruno Haible  <bruno@clisp.org>
42270
42271         * gnulib-tool: New options --vc-files, --no-vc-files.
42272         (func_usage): Document them.
42273         (vc_files): New variable.
42274         (func_import): Consider vc_files.
42275         (func_create_testdir): Set vc_files to empty.
42276         Suggested by Jim Meyering and Karl Berry.
42277
42278 2008-03-23  Bruno Haible  <bruno@clisp.org>
42279
42280         Fix regex compilation error on HP-UX 11.
42281         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
42282         * modules/regex (Files): Add m4/mbstate_t.m4.
42283         Reported by Ton Voon <ton.voon@altinity.com>.
42284
42285 2008-03-23  Bruno Haible  <bruno@clisp.org>
42286
42287         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
42288
42289 2008-03-23  Eric Blake  <ebb9@byu.net>
42290             Bruno Haible  <bruno@clisp.org>
42291
42292         Install files from top/ in the destination directory.
42293         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
42294         augmentation also for the files from top/.
42295         (func_import, func_create_testdir): Rewrite file names:
42296         top/filename -> filename.
42297
42298 2008-03-23  Bruno Haible  <bruno@clisp.org>
42299
42300         Tweak "gnulib --version" output.
42301         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
42302
42303 2008-03-23  Bruno Haible  <bruno@clisp.org>
42304
42305         Tweak "gnulib --version" output.
42306         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
42307         rather than contents of ChangeLog, when possible.
42308
42309 2008-03-21  Eric Blake  <ebb9@byu.net>
42310
42311         More --version tweaks.
42312         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
42313         date of last ChangeLog entry.
42314
42315 2008-03-21  Jim Meyering  <meyering@redhat.com>
42316
42317         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
42318
42319 2008-03-20  Eric Blake  <ebb9@byu.net>
42320
42321         VPATH fix.
42322         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
42323
42324 2008-03-20  Simon Josefsson  <simon@josefsson.org>
42325
42326         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
42327         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
42328
42329 2008-03-20  Eric Blake  <ebb9@byu.net>
42330
42331         Sync GNUmakefile with coreutils.
42332         * build-aux/GNUmakefile (have-Makefile): Rename...
42333         (_have-Makefile): ...to this, for namespace consideration.
42334         (GNUmakefile.cfg): Include, if present.
42335         (_autoreconf): Define a default.
42336         (_is-dist-target): New rule for rebuilds to pick up intra-release
42337         version.
42338         (maint-cfg.mk): Rename...
42339         (cfg.mk): ...to this.
42340
42341 2008-03-18  Jim Meyering  <meyering@redhat.com>
42342
42343         New script and module: mktempd
42344         * MODULES.html.sh (maint+release support): Add mktempd.
42345         * build-aux/mktempd: New file.
42346         * modules/mktempd: New file.
42347
42348 2008-03-15  Jim Meyering  <meyering@redhat.com>
42349
42350         Undo last change.
42351         * lib/sha1.c, lib/md5.c: 63 != ~63.
42352         Reported by Andreas Schwab.
42353
42354         sha1.c, md5.c: Hoist a redundant expression.
42355         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
42356         "ctx->buflen" only once, before calling *_process_block.
42357         * lib/md5.c (md5_process_bytes): Likewise.
42358
42359 2008-03-14  Eric Blake  <ebb9@byu.net>
42360
42361         Bump copyright year in files generated by gnulib-tool.
42362         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
42363         gnulib-tool, rather than hard-coding it.
42364
42365         Fix 'gnulib-tool --version' output to work with git.
42366         * gnulib-tool (func_gnulib_dir): New function, extracted from...
42367         (startup): ...here.
42368         (func_version): Use it to invoke git-version-gen, rather than
42369         relying on CVS keyword expansion.  Modernize wording.
42370         (cvsdatestamp, last_checkin_date, version): Kill unused
42371         variables.
42372
42373 2008-03-12  Jim Meyering  <meyering@redhat.com>
42374
42375         Recognize optional cast of the argument to free.
42376         * build-aux/useless-if-before-free: Update regexps.
42377
42378         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
42379
42380 2008-03-11  Bruno Haible  <bruno@clisp.org>
42381
42382         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
42383         by a single package.
42384         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
42385         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
42386         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
42387         Reported by Sam Steingold <sds@gnu.org>.
42388
42389 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
42390
42391         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
42392         repositories.
42393
42394 2008-03-11  Bruno Haible  <bruno@clisp.org>
42395
42396         Avoid conflicts between local macro definitions.
42397         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
42398         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
42399
42400 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
42401             Bruno Haible  <bruno@clisp.org>
42402
42403         Make va_copy work with some version of xlc on AIX 5.1.
42404         * lib/stdarg.in.h: New file.
42405         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
42406         On AIX, use a <stdarg.h> file substitute.
42407         * modules/stdarg (Files): Add lib/stdarg.in.h.
42408         (Depends-on): Add include_next.
42409         (Makefile.am): Build a stdarg.h substitute if requested.
42410         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
42411
42412 2008-03-10  Bruno Haible  <bruno@clisp.org>
42413
42414         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
42415         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
42416         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
42417
42418 2008-03-10  Bruno Haible  <bruno@clisp.org>
42419
42420         * modules/stdlib (Depends-on): Add include_next, remove
42421         absolute-header.
42422
42423 2008-03-09  Bruno Haible  <bruno@clisp.org>
42424
42425         * lib/freadahead.h (freadahead): Document more precisely.
42426         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
42427         the sum of both buffer sizes.
42428         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
42429         * NEWS: Document the change.
42430
42431 2008-03-09  Bruno Haible  <bruno@clisp.org>
42432
42433         Extend freadptr to return also the buffer size.
42434         * lib/freadptr.h (freadptr): Add sizep argument.
42435         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
42436         (freadptr): Add sizep argument. Determine buffer size like freadahead
42437         does.
42438         * tests/test-freadptr.c: Don't include freadahead.h.
42439         (main): Adapt for new calling convention of freadptr.
42440         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
42441         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
42442         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
42443         tests/test-freadptr2.sh.
42444         (Depends): Remove freadahead.
42445         (TESTS): Add test-freadptr2.sh.
42446         (check_PROGRAMS): Add test-freadptr2.
42447
42448 2008-03-09  Bruno Haible  <bruno@clisp.org>
42449
42450         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
42451         Report and solution by Simon Josefsson.
42452
42453 2008-03-06  Bruno Haible  <bruno@clisp.org>
42454
42455         Make fflush after ungetc work on BSD platforms.
42456         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
42457         * tests/test-fflush2.c: New file.
42458         * tests/test-fflush2.sh: New file.
42459         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
42460         tests/test-fflush2.c.
42461         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
42462         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
42463
42464 2008-03-06  Eric Blake  <ebb9@byu.net>
42465
42466         Likewise for ftello.
42467         * modules/ftello (Dependencies): Add extensions.
42468         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
42469
42470 2008-03-06  Bruno Haible  <bruno@clisp.org>
42471
42472         * modules/fseeko (Dependencies): Add extensions.
42473         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
42474         Needed on glibc systems.
42475
42476 2008-03-06  Bruno Haible  <bruno@clisp.org>
42477
42478         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
42479         email address.
42480         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
42481
42482 2008-03-06  Bruno Haible  <bruno@clisp.org>
42483
42484         * users.txt: Add libgnupdf.
42485
42486 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
42487
42488         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
42489         (Header File Substitutes, Function Substitutes,
42490         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
42491         (Build robot for gnulib): Fix typo.
42492
42493 2008-03-06  Bruno Haible  <bruno@clisp.org>
42494
42495         * doc/gnulib-tool.texi (VCS Issues): Small updates.
42496         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
42497
42498 2008-03-06  Bruno Haible  <bruno@clisp.org>
42499
42500         * doc/func.texi: New file, extracted from doc/gnulib.texi.
42501         * doc/gnulib.texi: Include it.
42502
42503 2008-03-06  Simon Josefsson  <simon@josefsson.org>
42504
42505         * modules/func (License): Change license to unlimited; there was
42506         no LGPL parts in the module anyway.
42507
42508 2008-03-06  Simon Josefsson  <simon@josefsson.org>
42509
42510         * modules/__func__: Renamed to modules/func.
42511         * modules/__func__-tests: Renamed to modules/func-tests.
42512         * tests/test-__func__.c: Renamed to tests/test-func.c.
42513         * m4/__func__.m4: Renamed to m4/func.m4.
42514         * doc/gnulib.texi (__func__): Section renamed to func.
42515         Suggested by Eric Blake <ebb9@byu.net>.
42516
42517 2008-03-06  Simon Josefsson  <simon@josefsson.org>
42518
42519         * doc/gnulib.texi (__func__): Use C99 terminology when talking
42520         about __func__.  Make example self-contained.  Suggested by Eric
42521         Blake <ebb9@byu.net>.
42522
42523         * tests/test-__func__.c (main): Avoid extraneous () around __func.
42524         Suggested by Eric Blake <ebb9@byu.net>.
42525
42526 2008-03-06  Simon Josefsson  <simon@josefsson.org>
42527
42528         * modules/__func__: New file.
42529         * modules/__func__-tests: New file.
42530         * tests/test-__func__.c: New file.
42531         * m4/__func__.m4: New file.
42532         * doc/gnulib.texi (__func__): Document __func__ module.
42533
42534 2008-03-05  Simon Josefsson  <simon@josefsson.org>
42535
42536         * modules/byteswap (License): Re-license as LGPLv2+.
42537
42538 2008-03-05  Simon Josefsson  <simon@josefsson.org>
42539
42540         * doc/Makefile: Add pdf target.
42541
42542 2008-03-05  Simon Josefsson  <simon@josefsson.org>
42543
42544         * modules/inline (License): Use 'unlimited', since there are only
42545         *.m4 files in this module.
42546
42547 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
42548             Bruno Haible  <bruno@clisp.org>
42549
42550         Add support for HP C 7.1 on OpenVMS 8.3.
42551         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
42552
42553 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
42554
42555         Update VMS specifics.
42556         * lib/getopt.c [VMS]: Remove include of unixlib.h.
42557
42558 2008-03-02  Jim Meyering  <meyering@redhat.com>
42559
42560         Remove the last dependency on the "free" module.
42561         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
42562         Reported by Bob Proulx.
42563
42564         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
42565
42566         Remove useless "if" tests before free.  Deprecate "free" module.
42567         * doc/posix-functions/free.texi: Mention that this
42568         module is no longer useful.
42569         * modules/free (Notice): Say this module is obsolete.
42570         * modules/readutmp (Depends-on): Remove free.
42571         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
42572         * lib/putenv.c (putenv): Likewise.
42573         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
42574         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
42575         * tests/test-c-strcasestr.c (main): Likewise.
42576         * tests/test-c-strstr.c (main): Likewise.
42577         * tests/test-mbscasestr1.c (main): Likewise.
42578         * tests/test-mbscasestr2.c (main): Likewise.
42579         * tests/test-mbsstr1.c (main): Likewise.
42580         * tests/test-mbsstr2.c (main): Likewise.
42581         * tests/test-memmem.c (main): Likewise.
42582         * tests/test-strcasestr.c (main): Likewise.
42583         * tests/test-striconv.c (main): Likewise.
42584         * tests/test-striconveh.c (main): Likewise.
42585         * tests/test-striconveha.c (main): Likewise.
42586         * tests/test-strstr.c (main): Likewise.
42587
42588         * build-aux/git-version-gen: Adjust a comment and the Usage string.
42589
42590         bootstrap: sync from coreutils again
42591         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
42592
42593 2008-03-01  Jim Meyering  <meyering@redhat.com>
42594
42595         bootstrap: sync from coreutils
42596         * build-aux/bootstrap (update_po_files): Copy a .po file into place
42597         also when the target doesn't exist.
42598
42599 2008-03-01  Eric Blake  <ebb9@byu.net>
42600
42601         Fix bugs in last patch.
42602         * lib/memchr2.c (memchr2): Fix typo.
42603         * tests/test-memchr2.c: Test previous bug, and don't use GNU
42604         extension.
42605         Reported by Bruce Korb.
42606
42607         New module 'memchr2'.
42608         * modules/memchr2: New file.
42609         * modules/memchr2-tests: Likewise.
42610         * lib/memchr2.h: Likewise.
42611         * lib/memchr2.c: Likewise, based on memchr.c.
42612         * tests/test-memchr2.c: New test.
42613         * MODULES.html.sh (String handling): Add memchr2.
42614
42615 2008-02-29  Bruno Haible  <bruno@clisp.org>
42616
42617         * modules/freadseek-tests: New file.
42618         * tests/test-freadseek.sh: New file.
42619         * tests/test-freadseek.c: New file.
42620
42621         New module 'freadseek'.
42622         * modules/freadseek: New file.
42623         * lib/freadseek.h: New file.
42624         * lib/freadseek.c: New file.
42625         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
42626
42627 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
42628
42629         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
42630         wydawca.
42631
42632         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
42633         program_invocation_name and program_invocation_short_name are
42634         present.
42635
42636 2008-02-28  Bruno Haible  <bruno@clisp.org>
42637
42638         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
42639         * tests/test-freadptr.sh: Also test non-seekable stdin.
42640
42641 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
42642
42643         * build-aux/bootstrap (source_base, m4_base)
42644         (doc_base, tests_base): New variables.
42645         (gnulib_tool_options): Do not hardcode base directories, use
42646         the above variables instead.
42647
42648 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
42649
42650         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
42651
42652 2008-02-28  Bruno Haible  <bruno@clisp.org>
42653
42654         * modules/freadptr-tests: New file.
42655         * tests/test-freadptr.sh: New file.
42656         * tests/test-freadptr.c: New file.
42657
42658         New module 'freadptr'.
42659         * modules/freadptr: New file.
42660         * lib/freadptr.h: New file.
42661         * lib/freadptr.c: New file.
42662         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
42663
42664 2008-02-26  Karl Berry  <karl@freefriends.org>
42665
42666         Sync from Libtool:
42667         * libltdl/argz.c (argz_add, argz_count): New functions.
42668         * libltdl/argz.in.h: Declare them.
42669         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
42670
42671 2008-02-22  Bruno Haible  <bruno@clisp.org>
42672
42673         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
42674         is a pointer type.  Needed for HP-UX 10.
42675         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
42676         * doc/posix-functions/gmtime_r.texi: Likewise.
42677         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
42678
42679 2008-02-24  Bruno Haible  <bruno@clisp.org>
42680
42681         * modules/environ-tests: New file.
42682         * tests/test-environ.c: New file.
42683
42684         New module 'environ'.
42685         * modules/environ: New file.
42686         * lib/unistd.in.h (environ): New declaration.
42687         * m4/environ.m4: New file.
42688         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
42689         after use.
42690         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
42691         HAVE_DECL_ENVIRON.
42692         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
42693         HAVE_DECL_ENVIRON.
42694         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
42695         wrong claim that 'environ' is missing on some systems.
42696         * modules/execute (Depends-on): Add environ.
42697         * lib/execute.c (environ): Remove fallback declaration.
42698         * modules/pipe (Depends-on): Add environ.
42699         * lib/pipe.c (environ): Remove fallback declaration.
42700         * modules/setenv (Depends-on): Add environ.
42701         * lib/setenv.c (environ): Remove fallback declaration.
42702         * modules/unsetenv (Depends-on): Add environ.
42703         * lib/unsetenv.c (environ): Remove fallback declaration.
42704         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
42705         m4/environ.m4.
42706         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
42707         (gl_PREREQ_UNSETENV): Likewise.
42708
42709 2008-02-24  Bruno Haible  <bruno@clisp.org>
42710
42711         * doc/posix-functions/environ.texi: Document the MacOS X problem.
42712
42713 2008-02-20  Bob Proulx  <bob@proulx.com>
42714
42715         Enable use of older two part flavor 'git describe'.
42716         * build-aux/git-version-gen: If using the older two part flavor of
42717         git version then recreate the third part now present in the
42718         newer three part flavor of git describe.
42719
42720 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
42721
42722         * lib/fts.c (fts_build): Typo correction to comment.
42723
42724 2008-02-17  Bruno Haible  <bruno@clisp.org>
42725
42726         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
42727         generating no-op conflicts.
42728
42729 2008-02-17  Bruno Haible  <bruno@clisp.org>
42730
42731         Speed up by 10%.
42732         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
42733         result_entries, rather than an index-based loop.
42734
42735 2008-02-17  Bruno Haible  <bruno@clisp.org>
42736
42737         Speed up by 25%.
42738         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
42739         'hashcode_cached'.
42740         (entry_create): New function.
42741         (entry_hashcode): Use the cached hashcode if possible.
42742         (read_changelog_file, try_split_merged_entry): Use entry_create.
42743
42744 2008-02-17  Bruno Haible  <bruno@clisp.org>
42745
42746         Speed up from O(n^2) to O(n) for long ChangeLog files.
42747         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
42748         (read_changelog_file): Change implementation of entries_reversed list
42749         to rbtreehash.
42750         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
42751
42752 2008-02-17  Bruno Haible  <bruno@clisp.org>
42753
42754         New option --split-merged-entry.
42755         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
42756         (find_paragraph_end, try_split_merged_entry): New functions.
42757         (long_options): Add option --split-merged-entry.
42758         (usage): Document option --split-merged-entry.
42759         (main): Implement option --split-merged-entry.
42760         Reported by Eric Blake.
42761
42762 2008-02-17  Bruno Haible  <bruno@clisp.org>
42763
42764         * lib/git-merge-changelog.c: Include c-strstr.h.
42765         (main): Support the "git pull --rebase" situation.
42766         * modules/git-merge-changelog (Depends-on): Add c-strstr.
42767         Reported by Eric Blake.
42768
42769 2008-02-16  Eric Blake  <ebb9@byu.net>
42770
42771         Avoid doubling \ in common case of "c-maybe" quoting style.
42772         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
42773         eliding outer quotes.
42774         * lib/quotearg.h: Document this.
42775         * tests/test-quotearg.c (result_strings, inputs, results_g)
42776         (flag_results, locale_results): Test it by adding a new string to
42777         each test group.
42778         (compare_strings): Test new string.
42779
42780 2008-02-13  Eric Blake  <ebb9@byu.net>
42781
42782         Avoid trigraph quoting in default output.
42783         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
42784         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
42785         unless explicitly requested.
42786         * tests/test-quotearg.c (flag_results, main): Add additional tests.
42787
42788 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
42789
42790         Don't rely on signed integer overflowing to negative value.
42791         * lib/getugroups.c (getugroups): Include <limits.h>.
42792         Instead, compare against INT_MAX, and increment only if the test passes.
42793
42794 2008-02-13  Jim Meyering  <meyering@redhat.com>
42795         and Eric Blake  <ebb9@byu.net>
42796
42797         Avoid shadowing warning and compile errors on Linux.
42798         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
42799         forwarding macros on Linux.
42800         (dcgettext): Define a stub, for Linux.
42801         (results_g, main): Avoid warnings.
42802
42803 2008-02-12  Eric Blake  <ebb9@byu.net>
42804
42805         Silence warning in last patch.
42806         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
42807
42808         Quotearg part 4: add tests, fix c-maybe colon quoting.
42809         * lib/quotearg.h: Improve documentation.
42810         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
42811         escapes when adding outer quotes.  When quoting trigraphs, use
42812         valid C notation.  When quoting NUL, omit extra characters if next
42813         character is not digit.  Alter prototype.
42814         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
42815         callers.
42816         * modules/quotearg-tests: New module.
42817         * tests/test-quotearg.c: New test.
42818
42819 2008-02-07  Eric Blake  <ebb9@byu.net>
42820
42821         Quotearg part 3: add flag to control outer quote elision.
42822         * lib/quotearg.h (c_maybe_quoting_style): New style.
42823         (enum quoting_flags): Better documentation of flags.
42824         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
42825         c-maybe style.
42826         (quotearg_buffer_restyled): Handle new flag to elide outer
42827         quotes.
42828
42829         Quotearg part 2: add flag that can control NUL elision.
42830         * lib/quotearg.h (set_quoting_flags): New prototype.
42831         * lib/quotearg.c (struct quoting_options): Add flag field.
42832         (set_quoting_flags): New function.
42833         (quotearg_buffer_restyled): Add flags parameter.
42834         (quotearg_alloc_mem): Set the flag if length cannot be returned.
42835         (quotearg_n_options): Set the flag, since length cannot be
42836         returned.
42837         (quoting_options_from_style): Default flags correctly.
42838
42839         Quotearg part 1: more wrappers, restore quotearg_char state.
42840         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
42841         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
42842         (quotearg_colon_mem): New wrappers.
42843         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
42844         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
42845         functions.
42846         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
42847         (quotearg_colon_mem): New functions.
42848
42849 2008-02-11  Bruno Haible  <bruno@clisp.org>
42850
42851         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
42852         library in the current directory: it does not work with parallel make.
42853         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
42854
42855 2008-02-11  Bruno Haible  <bruno@clisp.org>
42856
42857         * .gitattributes: New file.
42858
42859 2008-02-11  Jim Meyering  <meyering@redhat.com>
42860
42861         useless-if-before-free: Fix reversed exit values.
42862         * build-aux/useless-if-before-free: Use correct values
42863         for EXIT_MATCH and EXIT_NO_MATCH.
42864
42865         * build-aux/useless-if-before-free: Close stdout carefully.
42866
42867 2008-02-10  Bruno Haible  <bruno@clisp.org>
42868
42869         New module 'git-merge-changelog'.
42870         * modules/git-merge-changelog: New file.
42871         * lib/git-merge-changelog.c: New file.
42872
42873 2008-02-10  Jim Meyering  <meyering@redhat.com>
42874
42875         useless-if-before-free: New option: --list (-l).
42876
42877         useless-if-before-free: Don't exit immediately upon open failure.
42878         * build-aux/useless-if-before-free: Exit 2 for errors.
42879         Upon failure to open a file, don't exit immediately.
42880         Rather, just warn and continue with any remaining files.
42881
42882 2008-02-10  Bruno Haible  <bruno@clisp.org>
42883
42884         New abstract list operation 'node_set_value'.
42885         * lib/gl_list.h (gl_list_node_set_value): New function.
42886         (struct gl_list_implementation): New field node_set_value.
42887         * lib/gl_list.c (gl_list_node_set_value): New function.
42888         * lib/gl_array_list.c (gl_array_node_set_value): New function.
42889         (gl_array_list_implementation): Update.
42890         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
42891         (gl_carray_list_implementation): Update.
42892         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
42893         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
42894         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
42895         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
42896         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
42897         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
42898         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
42899         Update.
42900         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
42901         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
42902         (gl_sublist_list_implementation): Update.
42903
42904 2008-02-10  Bruno Haible  <bruno@clisp.org>
42905
42906         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
42907         Needed when ELEMENT is #defined to 'some_type *'.
42908
42909 2008-02-10  Jim Meyering  <meyering@redhat.com>
42910
42911         New script and module: useless-if-before-free
42912         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
42913         * build-aux/useless-if-before-free: New file.
42914         * modules/useless-if-before-free: New file.
42915
42916         * build-aux/gitlog-to-changelog: Use committer date, not author date.
42917
42918         xstrtol_error: Fix typo.
42919         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
42920         s/exit_failure/exit_status/.
42921
42922 2008-02-09  Jim Meyering  <meyering@redhat.com>
42923
42924         New script and module: gitlog-to-changelog
42925         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
42926         * modules/gitlog-to-changelog: New file.
42927         * build-aux/gitlog-to-changelog: New file.
42928
42929 2008-02-08  Jim Meyering  <meyering@redhat.com>
42930
42931         Avoid two "parameter unused" warnings.
42932         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
42933         Mark "st" as used.
42934
42935         Use "git COMMAND", not "git-COMMAND".
42936         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
42937         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
42938         * build-aux/git-version-gen: Use "git status", not "git-status".
42939
42940 2008-02-07  Bruno Haible  <bruno@clisp.org>
42941
42942         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
42943         Avoids a crash on Windows Vista.
42944         Reported by Adam Strzelecki <ono@java.pl> via
42945         Simon Josefsson <simon@josefsson.org>.
42946
42947 2008-02-06  Bruno Haible  <bruno@clisp.org>
42948
42949         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
42950         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
42951         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
42952         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
42953         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
42954         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
42955         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
42956         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
42957         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
42958         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
42959         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
42960         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
42961         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
42962         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
42963         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
42964         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
42965         left-adjust flag.
42966         * tests/test-snprintf-posix.h (test_function): Likewise.
42967         * tests/test-sprintf-posix.h (test_function): Likewise.
42968         * tests/test-vasprintf-posix.c (test_function): Likewise.
42969         * doc/posix-functions/fprintf.texi: Update.
42970         * doc/posix-functions/printf.texi: Update.
42971         * doc/posix-functions/snprintf.texi: Update.
42972         * doc/posix-functions/sprintf.texi: Update.
42973         * doc/posix-functions/vfprintf.texi: Update.
42974         * doc/posix-functions/vprintf.texi: Update.
42975         * doc/posix-functions/vsnprintf.texi: Update.
42976         * doc/posix-functions/vsprintf.texi: Update.
42977         Reported by Peter Fales <psfales@alcatel-lucent.com>.
42978
42979 2008-02-06  Bruno Haible  <bruno@clisp.org>
42980
42981         Fix bug introduced on 2008-01-26.
42982         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
42983
42984 2008-02-06  Bruno Haible  <bruno@clisp.org>
42985
42986         Fix bug introduced on 2007-06-10.
42987         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
42988         !NEED_PRINTF_FLAG_ZERO.
42989
42990 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
42991
42992         getloadavg: use libperfstat on AIX5
42993         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
42994
42995 2008-02-03  Bruno Haible  <bruno@clisp.org>
42996
42997         * lib/diffseq.h: Add comments about required #includes.
42998         Reported by Michael Biggs <gnulib@doubleplum.net>.
42999
43000 2008-02-01  Bruno Haible  <bruno@clisp.org>
43001
43002         * users.txt: Add gnuit.
43003
43004 2008-01-31  Bruno Haible  <bruno@clisp.org>
43005
43006         * lib/md4.c (set_uint32): Mark as inline.
43007         * lib/md5.c (set_uint32): Likewise.
43008         * lib/sha1.c (set_uint32): Likewise.
43009         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
43010         * m4/md5.m4 (gl_MD5): Likewise.
43011         * m4/sha1.m4 (gl_SHA1): Likewise.
43012
43013 2008-01-31  Jim Meyering  <meyering@redhat.com>
43014
43015         Use "sizeof VAR", rather than a literal "4".
43016         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
43017         * lib/md4.c (md4_read_ctx): Likewise.
43018         * lib/sha1.c (sha1_read_ctx): Likewise.
43019
43020 2008-01-31  Simon Josefsson  <simon@josefsson.org>
43021
43022         * tests/test-sha1.c: New file, based on test-md5.c.
43023
43024         * modules/crypto/sha1-tests: New file.
43025
43026 2008-01-31  Simon Josefsson  <simon@josefsson.org>
43027
43028         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
43029
43030 2008-01-31  Jim Meyering  <meyering@redhat.com>
43031
43032         Prefer "sizeof v" over the equivalent "4".
43033         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
43034         * lib/md5.c (set_uint32): Likewise.
43035         * lib/sha1.c (set_uint32): Likewise.
43036
43037 2008-01-31  Simon Josefsson  <simon@josefsson.org>
43038
43039         * lib/sha1.c (set_uint32): Mark function as static.
43040
43041 2008-01-31  Simon Josefsson  <simon@josefsson.org>
43042
43043         md2: clarify comments to say that alignment is not required.
43044         * lib/md2.h: Remove warning about alignment in comment.
43045         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
43046         never been required.
43047
43048 2008-01-31  Simon Josefsson  <simon@josefsson.org>
43049
43050         md4: adapt alignment constraint fix from sha1.
43051         * lib/md4.c (set_uint32): New function, from sha1.c
43052         (md4_read_ctx): Use it.
43053         (md4_finish_ctx): Doc fix.
43054         * lib/md4.h: Doc fix.
43055
43056 2008-01-31  Simon Josefsson  <simon@josefsson.org>
43057
43058         md5: adapt alignment constraint fix from sha1.
43059         * lib/md5.c (set_uint32): New function, from sha1.c
43060         (md5_read_ctx): Use it.
43061         (md5_finish_ctx): Doc fix.
43062         * lib/md5.h: Doc fix.
43063
43064 2008-01-30  Peter Palfrader  <weasel@debian.org>
43065
43066         sha1: remove the result buffer alignment constraint
43067         * lib/sha1.c (set_uint32): New function.
43068         (sha1_read_ctx): Rewrite to remove the result buffer alignment
43069         constraint.
43070         (sha1_finish_ctx): Remove comment warning about alignment constraint.
43071         * lib/sha1.h: Likewise.
43072
43073 2008-01-30  Andreas Schwab  <schwab@suse.de>
43074             Bruno Haible  <bruno@clisp.org>
43075
43076         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
43077         correct definition of LDBL_MIN_EXP.
43078
43079 2008-01-30  Karl Berry  <karl@gnu.org>
43080
43081         * config/srclist-update: try to preserve x bit on updates.
43082         * config/srclistvars.sh: update for karl.
43083
43084 2008-01-29  Jim Meyering  <meyering@redhat.com>
43085
43086         vasnprintf.c: Avoid warning about unused label
43087         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
43088         "overflow" label definition and associated code with the
43089         same cpp condition that guards the sole use of that label.
43090
43091 2008-01-26  Bruno Haible  <bruno@clisp.org>
43092
43093         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
43094         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
43095         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
43096         * lib/isnanl-nolibm.h (isnanl): Likewise.
43097         Reported by Paul Eggert <eggert@cs.ucla.edu>.
43098
43099 2008-01-26  Bruno Haible  <bruno@clisp.org>
43100
43101         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
43102         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
43103
43104 2008-01-26  Bruno Haible  <bruno@clisp.org>
43105
43106         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
43107         GCC >= 4.0 built-in.
43108         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
43109
43110 2008-01-26  Bruno Haible  <bruno@clisp.org>
43111
43112         Rename isnan, applicable to 'double' only, to isnand.
43113         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
43114         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
43115         (configure.ac): Update.
43116         (Include): Replace "isnan.h" with "isnand.h".
43117         * m4/isnand.m4: Renamed from m4/isnan.m4.
43118         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
43119         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
43120         instead of isnan.c.
43121         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
43122         instead of HAVE_ISNAN_IN_LIBC.
43123         (isnand): Renamed from isnan.
43124         * lib/isnand.c: New file.
43125         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
43126         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
43127         (Makefile.am): Update.
43128         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
43129         Include isnand.h instead of isnan.h.
43130         (main): Test isnand instead of isnan.
43131         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
43132         isnan-nolibm.
43133         * modules/frexp (Depends-on): Likewise.
43134         * modules/frexp-tests (Depends-on): Likewise.
43135         * modules/frexp-nolibm (Depends-on): Likewise.
43136         * modules/frexp-nolibm-tests (Depends-on): Likewise.
43137         * modules/isfinite (Depends-on): Likewise.
43138         * modules/round-tests (Depends-on): Likewise.
43139         * modules/signbit (Depends-on): Likewise.
43140         * modules/signbit-tests (Depends-on): Likewise.
43141         * modules/snprintf-posix (Depends-on): Likewise.
43142         * modules/sprintf-posix (Depends-on): Likewise.
43143         * modules/trunc-tests (Depends-on): Likewise.
43144         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
43145         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
43146         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
43147         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
43148         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
43149         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
43150         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
43151         * modules/vasnprintf-posix (Depends-on): Likewise.
43152         * modules/vasprintf-posix (Depends-on): Likewise.
43153         * modules/vfprintf-posix (Depends-on): Likewise.
43154         * modules/vsnprintf-posix (Depends-on): Likewise.
43155         * modules/vsprintf-posix (Depends-on): Likewise.
43156         * lib/frexp.c: Include isnand.h instead of isnan.h.
43157         (ISNAN): Set to isnand instead of isnan.
43158         * lib/isfinite.c: Include isnand.h instead of isnan.h.
43159         (gl_isfinited): Use isnand instead of isnan.
43160         * lib/signbitd.c: Include isnand.h instead of isnan.h.
43161         (gl_signbitd): Use isnand instead of isnan.
43162         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
43163         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
43164         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
43165         (main): Use isnand instead of isnan.
43166         * tests/test-round1.c: Include isnand.h.
43167         (main): Use isnand instead of isnan.
43168         * tests/test-round2.c: Include isnand.h instead of isnan.h.
43169         (ISNAN): Set to isnand instead of isnan.
43170         * tests/test-trunc1.c: Include isnand.h.
43171         (main): Use isnand instead of isnan.
43172         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
43173         (equal): Use isnand instead of isnan.
43174         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
43175         isnand-nolibm.
43176         * NEWS: Mention the change.
43177
43178 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
43179             Bruno Haible  <bruno@clisp.org>
43180
43181         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
43182         the GCC builtins for signbits are present and set
43183         REPLACE_SIGNBIT_USING_GCC if so.
43184         * lib/math.in.h (signbit): Define using GCC builtins if
43185         REPLACE_SIGNBIT_USING_GCC is set.
43186         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
43187         REPLACE_SIGNBIT_USING_GCC.
43188         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
43189
43190 2008-01-25  Jim Meyering  <meyering@redhat.com>
43191
43192         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
43193         * lib/poll.c: Include <config.h>, not "config.h".
43194         * tests/test-getaddrinfo.c: Likewise.
43195
43196 2008-01-25  Simon Josefsson  <simon@josefsson.org>
43197
43198         * modules/sockets-tests: New file.
43199
43200 2008-01-24  Simon Josefsson  <simon@josefsson.org>
43201
43202         * modules/sockets: New module, can be used to call WSA_Startup and
43203         WSA_Cleanup when needed.
43204
43205         * lib/sockets.h, lib/sockets.c: New files.
43206
43207         * m4/sockets.m4: New file.
43208
43209         * tests/test-sockets.c: New file.
43210
43211 2008-01-19  Bruno Haible  <bruno@clisp.org>
43212
43213         * doc/posix-headers: Renamed from doc/headers.
43214         * doc/posix-functions: Renamed from doc/functions.
43215         * doc/gnulib.texi: Update.
43216
43217 2008-01-19  Bruno Haible  <bruno@clisp.org>
43218
43219         * doc/glibc-functions/strcasestr.texi: Include contents of
43220         doc/functions/strcasestr.texi, fixing the list of platforms.
43221         * doc/functions/strcasestr.texi: Remove file.
43222
43223 2008-01-19  Bruno Haible  <bruno@clisp.org>
43224
43225         * doc/glibc-functions/memmem.texi: Include contents of
43226         doc/functions/memmem.texi.
43227         * doc/functions/memmem.texi: Remove file.
43228
43229 2008-01-18  Bruno Haible  <bruno@clisp.org>
43230
43231         * doc/glibc-functions/*.texi: New files.
43232         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
43233         to use the new files.
43234
43235 2008-01-17  Bruno Haible  <bruno@clisp.org>
43236
43237         * tests/test-gethostname.c (main): Fix printf statement.
43238
43239 2008-01-17  Simon Josefsson  <simon@josefsson.org>
43240
43241         * modules/gethostname-tests: New file.
43242
43243         * tests/test-gethostname.c: New file.
43244
43245 2008-01-17  Simon Josefsson  <simon@josefsson.org>
43246
43247         * lib/gethostname.c: Include string.h unconditionally, strncpy is
43248         used by the UNAME case.  Reported by Bruno Haible
43249         <bruno@clisp.org>.
43250
43251 2008-01-17  Eric Blake  <ebb9@byu.net>
43252
43253         Convert c-strcasestr to be more efficient.
43254         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
43255         (Depends-on): Add c-strcase, remove malloca, strnlen.
43256         * tests/test-c-strcasestr.c (main): Enhance test.
43257         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
43258
43259 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
43260
43261         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
43262         Use it in creating po/Makevars.
43263
43264 2008-01-15  Simon Josefsson  <simon@josefsson.org>
43265
43266         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
43267         Applications that requires it should initialize libgcrypt
43268         manually.
43269
43270 2008-01-16  Simon Josefsson  <simon@josefsson.org>
43271
43272         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
43273
43274 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
43275
43276         Fix problem with getdate on mingw32 reported by Simon Josefsson
43277         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
43278         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
43279         tzname", when deciding whether to declare tzname.
43280         * lib/strftime.c (tzname): Likewise.
43281
43282 2008-01-15  Bruno Haible  <bruno@clisp.org>
43283
43284         Work around a MacOS X 10.5 bug in frexpl().
43285         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
43286         * doc/functions/frexpl.texi: Document the bug.
43287         Reported by Elias Pipping <pipping@gentoo.org>.
43288
43289 2008-01-14  Eric Blake  <ebb9@byu.net>
43290
43291         Touch up previous patch.
43292         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
43293         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
43294
43295         Convert strcasestr module to use Two-Way algorithm.
43296         * modules/strcasestr-simple: New module, based on the old
43297         strcasestr, but with Two-Way rather than KMP.
43298         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
43299         * lib/string.in.h (rpl_strcasestr): Declare.
43300         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
43301         performance.
43302         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
43303         * modules/string (Makefile.am): Support strcasestr.
43304         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
43305         * modules/strcasestr-tests (Depends-on): Check for alarm.
43306         * tests/test-strcasestr.c: Augment test.
43307         * lib/str-two-way.h: Clean up stray macro.
43308         * NEWS: Document new module.
43309         * MODULES.html.sh (string handling): Likewise.
43310         * doc/functions/strcasestr.texi: New file.
43311         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
43312         here, since it is not a POSIX function.
43313
43314 2008-01-14  Colin Watson  <cjwatson@debian.org>
43315             Bruno Haible  <bruno@clisp.org>
43316
43317         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
43318         works fine; if not, set REPLACE_STRSIGNAL.
43319         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
43320         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
43321         REPLACE_STRSIGNAL.
43322         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
43323         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
43324         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
43325
43326 2008-01-14  Bruno Haible  <bruno@clisp.org>
43327
43328         * modules/strsignal (Include): Change to <string.h>.
43329
43330 2008-01-14  Colin Watson  <cjwatson@debian.org>
43331
43332         * modules/argp (Notice): Add a notice recommending to change
43333         XGETTEXT_OPTIONS.
43334         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
43335
43336 2008-01-13  Colin Watson  <cjwatson@debian.org>
43337
43338         * modules/strsignal-tests: New file.
43339         * tests/test-strsignal.c: New file.
43340
43341         * lib/strsignal.c: New file, from glibc with modifications.
43342         * lib/siglist.h: New file, from glibc with modifications.
43343         * lib/string.in.h (strsignal): New declaration.
43344         * m4/strsignal.m4: New file.
43345         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
43346         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
43347         * modules/strsignal: New file.
43348         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
43349         HAVE_DECL_STRSIGNAL.
43350
43351 2008-01-13  Bruno Haible  <bruno@clisp.org>
43352
43353         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
43354         locale encoding is not ASCII. Needed for OpenBSD 4.0.
43355         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
43356         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
43357
43358 2008-01-13  Bruno Haible  <bruno@clisp.org>
43359
43360         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
43361         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
43362         * lib/argp.h (__attribute__): Likewise.
43363         * lib/c-stack.c (__attribute__): Likewise.
43364         * lib/error.h (__attribute__): Likewise.
43365         * lib/fts.c (__attribute__): Likewise.
43366         * lib/openat.h (__attribute__): Likewise.
43367         * lib/stdio.in.h (__attribute__): Likewise.
43368         * lib/string.in.h (__attribute__): Likewise.
43369         * lib/utimens.c (__attribute__): Likewise.
43370         * lib/vasnprintf.h (__attribute__): Likewise.
43371         * lib/xalloc.h (__attribute__): Likewise.
43372         * lib/xprintf.h (__attribute__): Likewise.
43373         * lib/xstrtol.h (__attribute__): Likewise.
43374         * lib/xvasprintf.h (__attribute__): Likewise.
43375
43376 2008-01-12  Bruno Haible  <bruno@clisp.org>
43377
43378         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
43379         * doc/glibc-headers/a.out.texi: New file.
43380         * doc/glibc-headers/aliases.texi: New file.
43381         * doc/glibc-headers/alloca.texi: New file.
43382         * doc/glibc-headers/ar.texi: New file.
43383         * doc/glibc-headers/argp.texi: New file.
43384         * doc/glibc-headers/argz.texi: New file.
43385         * doc/glibc-headers/byteswap.texi: New file.
43386         * doc/glibc-headers/crypt.texi: New file.
43387         * doc/glibc-headers/endian.texi: New file.
43388         * doc/glibc-headers/envz.texi: New file.
43389         * doc/glibc-headers/err.texi: New file.
43390         * doc/glibc-headers/error.texi: New file.
43391         * doc/glibc-headers/execinfo.texi: New file.
43392         * doc/glibc-headers/fpu_control.texi: New file.
43393         * doc/glibc-headers/fstab.texi: New file.
43394         * doc/glibc-headers/fts.texi: New file.
43395         * doc/glibc-headers/getopt.texi: New file.
43396         * doc/glibc-headers/ieee754.texi: New file.
43397         * doc/glibc-headers/ifaddrs.texi: New file.
43398         * doc/glibc-headers/libintl.texi: New file.
43399         * doc/glibc-headers/mcheck.texi: New file.
43400         * doc/glibc-headers/mntent.texi: New file.
43401         * doc/glibc-headers/obstack.texi: New file.
43402         * doc/glibc-headers/paths.texi: New file.
43403         * doc/glibc-headers/printf.texi: New file.
43404         * doc/glibc-headers/pty.texi: New file.
43405         * doc/glibc-headers/resolv.texi: New file.
43406         * doc/glibc-headers/shadow.texi: New file.
43407         * doc/glibc-headers/sysexits.texi: New file.
43408         * doc/glibc-headers/ttyent.texi: New file.
43409
43410 2008-01-12  Jim Meyering  <meyering@redhat.com>
43411
43412         announce-gen: emit Gnulib's git-based version string.
43413         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
43414         New option --gnulib-version=V, where V is expected to be
43415         the output of running git describe in the gnulib directory.
43416         (get_tool_versions): Request feedback on xdelta.  I suspect it's
43417         not useful, and plan to stop publishing an xdelta file with each
43418         coreutils release.
43419
43420         * build-aux/announce-gen: Also check for lzma-compressed files.
43421
43422 2008-01-11  Bruno Haible  <bruno@clisp.org>
43423
43424         * tests/test-memmem.c (main): Increase maximum allowed time.
43425         * tests/test-strstr.c (main): Likewise.
43426
43427 2008-01-11  Bruno Haible  <bruno@clisp.org>
43428
43429         * doc/functions/memmem.texi: Add more precisions about platforms.
43430         * doc/functions/strstr.texi: Likewise.
43431
43432 2008-01-10  Eric Blake  <ebb9@byu.net>
43433
43434         * m4/strstr.m4: Delete cruft from copy-n-paste.
43435         Reported by Bruno Haible.
43436
43437 2008-01-10  Bruno Haible  <bruno@clisp.org>
43438
43439         Make c-strstr rely on strstr.
43440         * lib/c-strstr.c: Don't include str-kmp.h.
43441         (c_strstr): Define in terms of strstr.
43442         * modules/c-strstr (Files): Remove lib/str-kmp.h.
43443         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
43444
43445 2008-01-10  Bruno Haible  <bruno@clisp.org>
43446
43447         * doc/gnulib.texi (String Functions in C Locale): New section.
43448         * doc/c-ctype.texi: New file.
43449         * doc/c-strcase.texi: New file.
43450         * doc/c-strcaseeq.texi: New file.
43451         * doc/c-strcasestr.texi: New file.
43452         * doc/c-strstr.texi: New file.
43453         * doc/c-strtod.texi: New file.
43454         * doc/c-strtold.texi: New file.
43455
43456 2008-01-10  Eric Blake  <ebb9@byu.net>
43457
43458         * lib/relocatable.h: Fix a comment.
43459
43460 2008-01-10  Eric Blake  <ebb9@byu.net>
43461
43462         Share two-way algorithm.
43463         * lib/str-two-way.h: New file, merged from...
43464         * lib/memmem.c: ...here...
43465         * lib/strstr.c: ...and here.
43466         * modules/memmem (Files): Use it.
43467         * modules/strstr (Files): Likewise.
43468
43469         Avoid quadratic strstr implementations.
43470         * lib/strstr.c: New file.
43471         * m4/strstr.m4: Likewise.
43472         * modules/strstr: Likewise.
43473         * modules/strstr-tests: Likewise.
43474         * tests/test-strstr.c: Likewise.
43475         * lib/string.in.h (rpl_strstr): Declare.
43476         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
43477         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
43478         * modules/string (Makefile.am): Likewise.
43479         * MODULES.html.sh (string handling): Mention new module.
43480         * doc/functions/strstr.texi (strstr): Document the bug.
43481
43482 2008-01-10  Bruno Haible  <bruno@clisp.org>
43483
43484         * lib/relocatable.h (relocate): State whether result is freshly
43485         allocated or not.
43486         * lib/relocatable.c (relocate): Return a freshly allocated string
43487         instead of a pointer to a privately held string.
43488         Reported by Sylvain Beucler <beuc@gnu.org>.
43489
43490 2008-01-10  Colin Watson  <cjwatson@debian.org>
43491
43492         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
43493         s/S_ISNLK/S_ISLNK/.
43494
43495 2008-01-09  Bruno Haible  <bruno@clisp.org>
43496
43497         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
43498         and other files.
43499         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
43500         if it's only a guess.
43501         * modules/memmem: Simplify by depending on memmem-simple.
43502
43503 2008-01-09  Bruno Haible  <bruno@clisp.org>
43504
43505         Work around OpenBSD 4.0 tdelete() bug.
43506         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
43507         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
43508         macros and don't redefine the enum values.
43509         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
43510         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
43511         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
43512
43513 2008-01-09  Bruno Haible  <bruno@clisp.org>
43514
43515         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
43516         (main): Don't perform the tests if setlocale did not install a UTF-8
43517         locale. Needed on OpenBSD 4.0.
43518         * modules/wcwidth-tests (Depends-on): Add localcharset.
43519
43520 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
43521
43522         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
43523         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
43524         * NEWS: announce this.
43525         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
43526
43527 2008-01-09  Simon Josefsson  <simon@josefsson.org>
43528         and Eric Blake  <ebb9@byu.net>
43529
43530         Add memmem-simple module.
43531         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
43532         (gl_FUNC_MEMMEM): Separate performance from presence checks.
43533         * modules/memmem-simple: New file.
43534         * modules/memmem (Description): Tweak.
43535         * MODULES.html.sh (string handling): Mention new module.
43536         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
43537         addressed by memmem-simple.
43538         * NEWS: Document the difference.
43539
43540 2008-01-09  Eric Blake  <ebb9@byu.net>
43541
43542         Give gcc some memmem optimization hints.
43543         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
43544         (strcasestr): Declare as pure.
43545         * modules/memmem (Maintainer): Claim my implementation.
43546
43547 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43548
43549         Support AIX 6.1 and higher.
43550         * build-aux/config.libpath: Likewise.
43551         * build-aux/config.rpath: Likewise.
43552
43553 2008-01-08  Jim Meyering  <meyering@redhat.com>
43554             Bruno Haible  <bruno@clisp.org>
43555
43556         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
43557         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
43558         Reported by Peter Fales in
43559         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
43560
43561 2008-01-08  Bruno Haible  <bruno@clisp.org>
43562
43563         * modules/unictype/category-of (Depends-on): Add
43564         unictype/category-none.
43565         * modules/unictype/category-and-tests (Depends-on): Add
43566         unictype/category-{L,N,Lu,Nd}.
43567         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
43568         * modules/unictype/category-or-tests (Depends-on): Add
43569         unictype/category-{L,N}.
43570         * modules/unictype/category-name-tests (Depends-on): Add
43571         unictype/category-{Z,Nl}.
43572         Reported by Simon Josefsson.
43573
43574 2008-01-08  Bruno Haible  <bruno@clisp.org>
43575
43576         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
43577         convention better.
43578         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
43579         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
43580         Reported by Peter Miller <millerp@canb.auug.org.au>.
43581
43582 2008-01-08  Eric Blake  <ebb9@byu.net>
43583
43584         Rewrite memmem to guarantee linear complexity without malloc.
43585         * lib/memmem.c (memmem): Use Two-Way rather than
43586         Knuth-Morris-Pratt, to allow O(1) space usage.
43587         (critical_factorization, two_way_short_needle)
43588         (two_way_long_needle): New functions.
43589         (knuth_morris_pratt): Delete.
43590         * modules/memmem (Depends-on): No longer need malloca or stdbool.
43591         Add stdint.
43592         * tests/test-memmem.c (main): Add tests for periodic needle and
43593         sublinear performance.
43594         * doc/functions/memmem.texi (memmem): Document other deficiencies
43595         in cygwin and older glibc.
43596
43597 2008-01-08  Bruno Haible  <bruno@clisp.org>
43598
43599         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
43600         augmentation.
43601
43602 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
43603
43604         Add a configure time option: --disable-acl.
43605         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
43606         AC_ARG_ENABLE(acl).
43607
43608 2008-01-06  Simon Josefsson  <simon@josefsson.org>
43609
43610         * tests/test-localename.c: Don't include obsolete "setenv.h".
43611
43612         * modules/localename-tests (Depends-on): Need unsetenv.
43613
43614 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43615
43616         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
43617
43618 2008-01-06  Colin Watson  <cjwatson@debian.org>
43619
43620         * users.txt: Add man-db.
43621
43622 2008-01-07  Bruno Haible  <bruno@clisp.org>
43623
43624         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
43625         previous section name.
43626
43627 2008-01-07  Bruno Haible  <bruno@clisp.org>
43628
43629         * lib/progname.c (set_program_name): Don't strip off a leading
43630         "lt-" prefix outside a .libs directory.
43631         Suggested by Paul Eggert.
43632
43633 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
43634             Bruno Haible  <bruno@clisp.org>
43635
43636         Improve memory cleanup in 'relocatable' module.
43637         * lib/relocatable.h (compute_curr_prefix): Change return type to
43638         'char *'.
43639         * lib/relocatable.c (compute_curr_prefix): Change return type to
43640         'char *'. Free curr_installdir after use.
43641         (relocate): Free curr_prefix_better after use.
43642         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
43643
43644 2008-01-01  Bruno Haible  <bruno@clisp.org>
43645
43646         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
43647         failure on older glibc systems.
43648         Reported by Peter Fales <psfales@alcatel-lucent.com>.
43649
43650 2008-01-05  Eric Blake  <ebb9@byu.net>
43651
43652         Avoid quadratic system memmem.
43653         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
43654         Reported by Ralf Wildenhues.
43655
43656         Fix memmem test for mingw.
43657         * modules/memmem-tests (configure.ac): Check for alarm.
43658         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
43659         it.
43660         * doc/functions/memmem.texi: New file.
43661         * doc/gnulib.texi (Function Substitutes): Add memmem.
43662         Reported by Bruno Haible.
43663
43664 2008-01-04  Bruno Haible  <bruno@clisp.org>
43665
43666         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
43667         Require gl_HEADER_STRINGS_H_DEFAULTS, not
43668         gl_HEADER_STRING_H_DEFAULTS.
43669
43670 2008-01-04  Eric Blake  <ebb9@byu.net>
43671
43672         Shorten duration of memmem test.
43673         * tests/test-memmem.c (main): Use alarm to declare failure if test
43674         is taking too long.
43675         Reported by Ralf Wildenhues.
43676
43677 2007-12-21  Simon Josefsson  <simon@josefsson.org>
43678
43679         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
43680         string, needed by strerror.
43681
43682 2008-01-03  Colin Watson  <cjwatson@debian.org>
43683             Bruno Haible  <bruno@clisp.org>
43684
43685         * doc/gnulib-tool.texi (Localization): New section.
43686
43687 2008-01-02  Bruno Haible  <bruno@clisp.org>
43688
43689         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
43690         variables to 'unsigned char *' type.
43691         Reported by Paul Eggert.
43692
43693 2008-01-02  Jim Meyering  <jim@meyering.net>
43694
43695         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
43696
43697 2007-12-31  Jim Meyering  <jim@meyering.net>
43698
43699         Avoid use of private FTS type name.
43700         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
43701
43702 2007-12-30  Karl Berry  <karl@gnu.org>
43703
43704         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
43705         work around defect in Texinfo and/or the standalone Info browser.
43706
43707 2007-12-30  Bruno Haible  <bruno@clisp.org>
43708
43709         Unify 5 copies of the KMP code.
43710         * lib/str-kmp.h: New file.
43711         * lib/c-strcasestr.c: Include str-kmp.h.
43712         (knuth_morris_pratt): Remove function.
43713         (c_strcasestr): Update.
43714         * lib/c-strstr.c: Include str-kmp.h.
43715         (knuth_morris_pratt): Remove function.
43716         (c_strcasestr): Update.
43717         * lib/mbscasestr.c: Include str-kmp.h.
43718         (knuth_morris_pratt_unibyte): Remove function.
43719         * lib/mbsstr.c: Include str-kmp.h.
43720         (knuth_morris_pratt_unibyte): Remove function.
43721         * lib/strcasestr.c: Include str-kmp.h.
43722         (knuth_morris_pratt): Remove function.
43723         (strcasestr): Update.
43724         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
43725         * modules/c-strstr (Files): Likewise.
43726         * modules/mbscasestr (Files): Likewise.
43727         * modules/mbsstr (Files): Likewise.
43728         * modules/strcasestr (Files): Likewise.
43729         Suggested by Paul Eggert.
43730
43731 2007-12-30  Bruno Haible  <bruno@clisp.org>
43732
43733         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
43734         defined.
43735
43736 2007-12-30  Bruno Haible  <bruno@clisp.org>
43737
43738         * lib/xmalloca.h: Include xalloc.h.
43739         (xnmalloca): New macro.
43740
43741 2007-12-30  Bruno Haible  <bruno@clisp.org>
43742
43743         * lib/malloca.h (nmalloca): New macro.
43744         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
43745         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
43746         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
43747         knuth_morris_pratt_multibyte): Likewise.
43748         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
43749         knuth_morris_pratt_multibyte): Likewise.
43750         * lib/memmem.c (knuth_morris_pratt): Likewise.
43751         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
43752
43753 2007-12-25  Bruno Haible  <bruno@clisp.org>
43754
43755         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
43756         * lib/glob.c: Don't include openat.h.
43757         (link_exists2_p): Add back the code that deals with the
43758         !GLOB_ALTDIRFUNC case.
43759         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
43760         let it do the filename concatenation.
43761         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
43762         * modules/glob (Depends-on): Remove openat.
43763
43764 2007-12-31  Bruno Haible  <bruno@clisp.org>
43765
43766         * modules/dirfd (License): Change to LGPLv2+.
43767         Approved by Jim Meyering.
43768
43769 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
43770
43771         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
43772         when multiplying M by sizeof (size_t).
43773
43774 2007-12-10  Martin Lambers  <marlam@marlam.de>
43775
43776         Override getpagesize on mingw.
43777         * lib/getpagesize.c: New file.
43778         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
43779         * modules/getpagesize (Files): Add lib/getpagesize.c.
43780         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
43781         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
43782         REPLACE_GETPAGESIZE.
43783         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
43784
43785 2007-12-25  Bruno Haible  <bruno@clisp.org>
43786
43787         * modules/localcharset (Notice): New field.
43788         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
43789         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
43790
43791 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
43792             Bruno Haible  <bruno@clisp.org>
43793
43794         Avoid using the syntax symbol() in formatted documentation.
43795         * MODULES.html.sh (func_module): When replacing symbol() with a
43796         hyperlink, remove the parentheses. Show an error if some remain.
43797         Recognize and render the '...' syntax.
43798         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
43799         Rework. Add paragraph about GCC's inlining.
43800         * doc/alloca.texi: Likewise.
43801         * doc/error.texi: Remove parentheses from symbol reference.
43802         * doc/gnulib-intro.texi: Likewise.
43803         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
43804         * modules/fnmatch (Description): Reword to say "the ... function".
43805         * modules/full-read (Description): Likewise.
43806         * modules/full-write (Description): Likewise.
43807         * modules/safe-read (Description): Likewise.
43808         * modules/safe-write (Description): Likewise.
43809         * modules/strchrnul (Description): Likewise.
43810         * modules/trim (Description): Likewise.
43811         * modules/error (Description): Remove parentheses from symbol
43812         references.
43813         * modules/verror (Description): Likewise.
43814         Reported by Karl Berry.
43815
43816 2007-12-25  Bruno Haible  <bruno@clisp.org>
43817
43818         Fixup after 2007-10-16 commit.
43819         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
43820
43821 2007-12-24  Bruno Haible  <bruno@clisp.org>
43822
43823         Make --enable-relocatable work with DESTDIR.
43824         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
43825         to compute installdir from destprog.
43826         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
43827         also set the RELOC_DESTDIR variable.
43828         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
43829
43830 2007-12-24  Bruno Haible  <bruno@clisp.org>
43831
43832         Fix link error due to xalloc_die().
43833         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
43834         of xreadlink.
43835         * lib/relocwrapper.c: Update comments.
43836         * build-aux/install-reloc: Remove xreadlink.c from file list.
43837         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
43838         xreadlink.c.
43839         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
43840
43841 2007-12-24  Bruno Haible  <bruno@clisp.org>
43842
43843         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
43844         * lib/setenv.h: Remove file.
43845         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
43846         lib/setenv.h.
43847         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
43848         (Depends-on): Add stdlib.
43849         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
43850         gl_FUNC_UNSETENV.
43851         (Include): Replace setenv.h with <stdlib.h>.
43852         * modules/unsetenv: New file.
43853         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
43854         * lib/unsetenv.c: Include <stdlib.h> first.
43855         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
43856         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
43857         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
43858         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
43859         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
43860         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
43861         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
43862         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
43863         * doc/functions/unsetenv.texi: Update.
43864         * modules/xsetenv (Depends-on): Add unsetenv.
43865         * modules/getdate (Depends-on): Likewise.
43866         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
43867         * lib/xsetenv.c: Don't include setenv.h.
43868         * lib/getdate.y: Likewise.
43869         * lib/relocwrapper.c: Likewise.
43870         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
43871         (Depends-on): Add stdlib.
43872         * NEWS: Mention the changes.
43873         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
43874
43875 2007-12-23  Bruno Haible  <bruno@clisp.org>
43876
43877         * lib/memmem.c (memmem): Use lowercase variable names. Tab
43878         indentation.
43879
43880 2007-12-23  Bruno Haible  <bruno@clisp.org>
43881
43882         * lib/c-strcasestr.c: Add more comments.
43883         * lib/c-strstr.c: Likewise.
43884         * lib/mbscasestr.c: Likewise.
43885         * lib/mbsstr.c: Likewise.
43886         * lib/strcasestr.c: Likewise.
43887         * lib/memmem.c: Likewise.
43888
43889 2007-12-23  Bruno Haible  <bruno@clisp.org>
43890
43891         * tests/test-memmem.c: Include <string.h> first.
43892
43893 2007-12-22  Bruno Haible  <bruno@clisp.org>
43894
43895         * gnulib-tool (func_create_testdir): Change $auxdir while generating
43896         the contents of $testsbase.
43897         Reported by Ralf Wildenhues.
43898
43899 2007-12-22  Bruno Haible  <bruno@clisp.org>
43900
43901         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
43902         two variables local_ldadd_before, local_ldadd_last.
43903
43904 2007-12-20  Eric Blake  <ebb9@byu.net>
43905
43906         Work around circular library issue when cross-compiling.
43907         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
43908         that progname.o does not need to pull in rpl_memcmp.
43909
43910 2007-12-19  Eric Blake  <ebb9@byu.net>
43911
43912         Fix memmem to avoid O(n^2) worst-case complexity.
43913         * lib/memmem.c (knuth_morris_pratt): New function.
43914         (memmem): Use it if first few naive iterations fail.
43915         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
43916         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
43917         * modules/memchr (License): Likewise.
43918         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
43919         malloca.
43920         * tests/test-memmem.c: Rewrite, borrowing ideas from
43921         test-mbsstr1.c; the old version wouldn't even compile!
43922         * modules/memmem-tests: New file.
43923         * lib/string.in.h (rpl_memmem): Add declaration.
43924         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
43925         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
43926         REPLACE_MEMMEM.
43927
43928 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
43929
43930         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
43931         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
43932         before any system include files, and undef after them all.  This
43933         should fix a problem on VMS reported by John E. Malmberg in
43934         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
43935
43936 2007-12-17  Eric Blake  <ebb9@byu.net>
43937
43938         Revert addition of verify, for BSD/OS.
43939         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
43940         can't handle large files, for the sake of obsolete platforms.
43941         * modules/fseeko (Depends-on): Remove verify.
43942         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
43943         * doc/functions/ftello.texi (ftello): Likewise.
43944         * doc/functions/fgetpos.texi (fgetpos): Likewise.
43945         Reported by Larry Jones.
43946
43947 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
43948
43949         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
43950         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
43951
43952 2007-12-17  Jim Meyering  <meyering@redhat.com>
43953
43954         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
43955         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
43956         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
43957         * modules/getcwd (Depends-on): Add openat.
43958         Reported by Petr Salinger.
43959
43960 2007-12-17  Bruno Haible  <bruno@clisp.org>
43961
43962         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
43963         avoid a segmentation fault of the configure test on x86_64 systems.
43964
43965 2007-12-15  Jim Meyering  <meyering@redhat.com>
43966
43967         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
43968
43969 2007-12-13  Eric Blake  <ebb9@byu.net>
43970
43971         Another fseek test.
43972         * tests/test-fseek.c (main): Also test ungetc handling.
43973         * tests/test-fseeko.c (main): Likewise.
43974         * modules/fseeko (Depends-on): Add verify.
43975         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
43976         large.
43977         Reported by Larry Jones.
43978
43979         Fix fseeko on mingw.
43980         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
43981         seek.
43982
43983         Beef up fseek tests.
43984         * tests/test-fseek.c (main): Also test eof handling.
43985         * tests/test-fseeko.c (main): Likewise.
43986         Reported by Larry Jones.
43987
43988 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
43989
43990         Fix fseeko on BSD-based platforms.
43991         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
43992         successful seek.
43993
43994 2007-12-12  Eric Blake  <ebb9@byu.net>
43995
43996         Allow circular dependency of separate libtests.a
43997         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
43998         when use_libtests.
43999
44000 2007-12-11  Eric Blake  <ebb9@byu.net>
44001
44002         Fix bug with -0.0L in previous patch.
44003         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
44004         * tests/test-isnan.c (main): Also test on zeroes.
44005         * tests/test-isnanf.c (main): Likewise.
44006         * tests/test-isnanl.h (main): Likewise.
44007
44008         Detect pseudo-denormals on x86 even when cross-compiling.
44009         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
44010         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
44011         invalid bit patterns that happen to satisfy ==.
44012
44013         Avoid link failures with separate libtests.a.
44014         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
44015         last, to satisfy circular dependencies.
44016
44017 2007-12-11  Eric Blake  <ebb9@byu.net>
44018         and Bruno Haible  <bruno@clisp.org>
44019
44020         Fix OpenBSD 4.0 <float.h> handling of long double.
44021         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
44022         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
44023         * doc/headers/float.texi (float.h): Document OpenBSD bug.
44024
44025 2007-12-11  Jim Meyering  <meyering@redhat.com>
44026
44027         * users.txt: Add libvirt.
44028
44029         Support versions of autoconf prior to 2.59c.
44030         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
44031         if it is not already defined.
44032
44033 2007-12-09  Bruno Haible  <bruno@clisp.org>
44034
44035         Let 'gnulib-tool --import' collect sources needed for the tests in
44036         tests/ rather than in lib/.
44037         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
44038         argument. If true, add rules to generate libtests.a, and put libtests.a
44039         into $(LDADD). Consider source files in subdirectories and set
44040         uses_subdirs.
44041         (func_emit_initmacro_start, func_emit_initmacro_end,
44042         func_emit_initmacro_done): Pass all arguments explicitly.
44043         (func_import): Determine two module lists main_modules,
44044         testsrelated_modules. Determine use_libtests. Determine two variables
44045         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
44046         instead of just sed_transform_lib_file. Determine two variables
44047         main_files and testsrelated_files. Compute 'files' as the union of
44048         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
44049         func_add_or_update. In the generated gnulib-comp.m4, collect the
44050         object files for tests/ in different variables than those for lib/.
44051         Substitute LIBTESTS_LIBDEPS.
44052         (func_create_testdir): Combine the uses_subdirs results from
44053         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
44054
44055 2007-12-09  Bruno Haible  <bruno@clisp.org>
44056
44057         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
44058         the build-aux directory.
44059
44060 2007-12-09  Bruno Haible  <bruno@clisp.org>
44061
44062         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
44063         introduced on 2006-09-09.
44064
44065 2007-12-07  Jim Meyering  <meyering@redhat.com>
44066
44067         Let these macros work also with autoconf-2.59.
44068         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
44069         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
44070         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
44071
44072 2007-12-06  Jim Meyering  <meyering@redhat.com>
44073
44074         Avoid a configure-time syntax error in gl_FUNC_ACL.
44075         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
44076         function in each branch, before testing the cache variable.
44077
44078 2007-12-04  Eric Blake  <ebb9@byu.net>
44079
44080         Make scripts executable.
44081         * build-aux/config.guess: Add execute permissions.
44082         * build-aux/config.sub: Likewise.
44083         * build-aux/gendocs.sh: Likewise.
44084
44085         Fix frexp on mingw.
44086         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
44087         cross-compiling.
44088         * doc/functions/frexp.texi (frexp): Document the bug.
44089
44090         Make cygwin fseeko check more reliable.
44091         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
44092         version numbers, rather than unrelated feature check.
44093         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
44094         * doc/functions/ftello.texi (ftello): Likewise.
44095         Reported by Bruno Haible.
44096
44097         * m4/strerror.m4: Bump version number.
44098
44099 2007-12-03  Bruno Haible  <bruno@clisp.org>
44100
44101         * doc/functions/mprotect.texi: Mention the mingw problem.
44102
44103 2007-12-03  Eric Blake  <ebb9@byu.net>
44104
44105         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
44106         REPLACE_STRERROR is initialized before this macro.
44107
44108 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
44109
44110         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
44111         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
44112         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
44113         put -lsec in even for programs other than 'ls'.  This fixes a problem
44114         for gettext reported by Bruno Haible in
44115         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
44116         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
44117         Add support for Solaris 10.  This isn't efficient, but should get the
44118         job done for now.
44119
44120 2007-12-03  James Youngman  <jay@gnu.org>
44121
44122         * doc/regexprops-generic.texi: change "an close-group" to "a
44123         close-group" and "illegal" to "not allowed".
44124
44125 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44126
44127         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
44128         pr_byname.h. Needed for the rare case when the maintainer has done
44129         "make maintainer-clean" in the source directory and then attempts a
44130         build outside the source directory.
44131         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
44132         scripts_byname.h.
44133
44134 2007-12-02  Martin Lambers <marlam@marlam.de>
44135             Bruno Haible  <bruno@clisp.org>
44136
44137         * lib/getpagesize.h: Remove file.
44138         * lib/unistd.in.h: Include declaration of getpagesize here.
44139         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
44140         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
44141         HAVE_SYS_PARAM_H.
44142         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
44143         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
44144         * modules/getpagesize (Files): Remove lib/getpagesize.h.
44145         (Depends-on): Add unistd.
44146         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
44147         (Include): Use <unistd.h> instead of getpagesize.h.
44148         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
44149         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
44150         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
44151         gl_GETPAGESIZE invocation, already handled by module dependency.
44152         * lib/pagealign_alloc.c: Don't include getpagesize.h.
44153
44154 2007-12-02  Bruno Haible  <bruno@clisp.org>
44155
44156         * modules/strings-tests: New file.
44157         * tests/test-strings.c: New file.
44158
44159         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
44160         * lib/strings.in.h: New file.
44161         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
44162         * m4/strings_h.m4: New file.
44163         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
44164         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
44165         * modules/strings: New file.
44166         * modules/string (Makefile.am): Update.
44167         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
44168         Reported by Karl Berry.
44169
44170 2007-12-01  Eric Blake  <ebb9@byu.net>
44171
44172         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
44173         accomodate fix in cygwin 1.5.25.
44174
44175 2007-12-01  Jim Meyering  <meyering@redhat.com>
44176
44177         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
44178         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
44179         that would inhibit utf8-optimization of a regexp containing line-
44180         or buffer-anchors, e.g., `^', `$'.
44181
44182 2007-11-30  Bruno Haible  <bruno@clisp.org>
44183
44184         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
44185         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
44186         glthread_recursive_lock_init.
44187         * lib/lock.c (glthread_recursive_lock_init)
44188         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
44189         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
44190
44191 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
44192
44193         New function qset_acl, like set_acl but with syscall semantics.
44194         * lib/acl.h (qset_acl): New decl.
44195         * lib/acl.c (qset_acl): New function.
44196         (set_acl): Use new function.  Use more-consistent diagnostics.
44197
44198 2007-11-28  Jim Meyering  <meyering@redhat.com>
44199
44200         * modules/physmem (License): Change from GPL to LGPLv2+.
44201
44202 2007-11-26  Bruno Haible  <bruno@clisp.org>
44203
44204         * lib/vasnprintf.c (decode_long_double): Don't abort if the
44205         'long double' type has excess precision.
44206         Reported by Jim Meyering in
44207         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
44208
44209 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44210
44211         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
44212         Sync from <http://gnu.org/licenses>.
44213         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
44214         with license text from same location.
44215         * doc/maintain.texi, doc/standards.texi:  Sync from
44216         <http://savannah.gnu.org/projects/gnustandards>.
44217
44218 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
44219         and Jim Meyering  <meyering@redhat.com>
44220
44221         Adjust getdate' grammar to accept a slightly more regular language.
44222         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
44223         Before, the former was rejected.
44224         * lib/getdate.y (digits_to_date_time): New function, factored
44225         out of ...
44226         (number): ...here.  Just call digits_to_date_time.
44227         (hybrid): New non-terminal to handle an <unsigned number,
44228         signed relative offset> sequence consistently.
44229
44230 2007-11-18  Jim Meyering  <meyering@redhat.com>
44231
44232         Pull my changes from coreutils:
44233         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
44234         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
44235         use of $gnulib_tool_option_extras, so that it's separated from the
44236         preceding argument.
44237
44238         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
44239         * build-aux/bootstrap (cp_mark_as_generated): Create any required
44240         parent destination directories before copying a file into place.
44241
44242 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
44243
44244         bootstrap: work also with 4-argument variant of AC_INIT
44245         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
44246
44247 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
44248
44249         Port test-getaddrinfo to Solaris.
44250         Problem reported by Bruno Haible in
44251         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
44252         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
44253         explanation of setting 'hints'.
44254         Don't reject an implementation merely because it returns EAI_SERVICE.
44255         (EAI_SERVICE): Define to 0 if not defined.
44256
44257 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
44258
44259         The license of gnu-make and posix-shell is now "GPLed build tool".
44260         * modules/gnu-make (License): Likewise.
44261         * modules/posix-shell (License): Likewise.
44262
44263         New module posix-shell, for determining a POSIX shell
44264         or perhaps something that is close enough to a POSIX shell.
44265         * m4/posix-shell.m4: New file.
44266         * modules/posix-shell: New file.
44267
44268         * MODULES.html.sh: Mention new module.
44269
44270         New module gnu-make, for determining whether we're using GNU Make.
44271         * m4/gnu-make.m4: New file.
44272         * modules/gnu-make: New file.
44273         * MODULES.html.sh: Mention new module.
44274
44275 2007-11-14  Jim Meyering  <meyering@redhat.com>
44276
44277         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
44278         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
44279         use this macro to create a function _definition_.
44280         Remove useless "#undef ARGMATCH_DIE".
44281
44282 2007-11-14  Bruno Haible  <bruno@clisp.org>
44283
44284         * lib/config.charset: Update for OpenBSD 4.1.
44285         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
44286
44287 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
44288
44289         Document 64-bit #if problems in stdint.texi.
44290         * doc/headers/stdint.texi (stdint.h): Mention problems with
44291         64-bit-#if, and how to work around them.
44292
44293         Don't insist on 'long long int' support in the preprocessor.  It
44294         breaks too many things.  For example, PRIdMAX still uses a 'long
44295         long int' format with the latest Sun compiler, even though
44296         HAVE_LONG_LONG_INT isn't defined due to that compiler's
44297         preprocessor problem.  This causes the latest coreutils to dump
44298         core on Solaris 10 sparc with the Sun C compiler.
44299         Instead, fix the 2007-10-16 problem in a different way, by evaluating
44300         the troublesome expressions at configure-time, not at #if-time.
44301         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
44302         preprocessor.
44303         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
44304         compile-time C checks, done at 'configure'-time.
44305         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
44306         * modules/inttypes (Makefile): Substitute the new symbols that
44307         gl_INTTYPES_H now generates.
44308         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
44309
44310 2007-11-12  Bruno Haible  <bruno@clisp.org>
44311
44312         Tests for Unicode character classification functions.
44313
44314         * modules/unictype/bidicategory-byname-tests: New file.
44315         * modules/unictype/bidicategory-name-tests: New file.
44316         * modules/unictype/bidicategory-of-tests: New file.
44317         * modules/unictype/bidicategory-test-tests: New file.
44318         * modules/unictype/block-list-tests: New file.
44319         * modules/unictype/block-of-tests: New file.
44320         * modules/unictype/block-test-tests: New file.
44321         * modules/unictype/category-C-tests: New file.
44322         * modules/unictype/category-Cc-tests: New file.
44323         * modules/unictype/category-Cf-tests: New file.
44324         * modules/unictype/category-Cn-tests: New file.
44325         * modules/unictype/category-Co-tests: New file.
44326         * modules/unictype/category-Cs-tests: New file.
44327         * modules/unictype/category-L-tests: New file.
44328         * modules/unictype/category-Ll-tests: New file.
44329         * modules/unictype/category-Lm-tests: New file.
44330         * modules/unictype/category-Lo-tests: New file.
44331         * modules/unictype/category-Lt-tests: New file.
44332         * modules/unictype/category-Lu-tests: New file.
44333         * modules/unictype/category-M-tests: New file.
44334         * modules/unictype/category-Mc-tests: New file.
44335         * modules/unictype/category-Me-tests: New file.
44336         * modules/unictype/category-Mn-tests: New file.
44337         * modules/unictype/category-N-tests: New file.
44338         * modules/unictype/category-Nd-tests: New file.
44339         * modules/unictype/category-Nl-tests: New file.
44340         * modules/unictype/category-No-tests: New file.
44341         * modules/unictype/category-P-tests: New file.
44342         * modules/unictype/category-Pc-tests: New file.
44343         * modules/unictype/category-Pd-tests: New file.
44344         * modules/unictype/category-Pe-tests: New file.
44345         * modules/unictype/category-Pf-tests: New file.
44346         * modules/unictype/category-Pi-tests: New file.
44347         * modules/unictype/category-Po-tests: New file.
44348         * modules/unictype/category-Ps-tests: New file.
44349         * modules/unictype/category-S-tests: New file.
44350         * modules/unictype/category-Sc-tests: New file.
44351         * modules/unictype/category-Sk-tests: New file.
44352         * modules/unictype/category-Sm-tests: New file.
44353         * modules/unictype/category-So-tests: New file.
44354         * modules/unictype/category-Z-tests: New file.
44355         * modules/unictype/category-Zl-tests: New file.
44356         * modules/unictype/category-Zp-tests: New file.
44357         * modules/unictype/category-Zs-tests: New file.
44358         * modules/unictype/category-and-not-tests: New file.
44359         * modules/unictype/category-and-tests: New file.
44360         * modules/unictype/category-byname-tests: New file.
44361         * modules/unictype/category-name-tests: New file.
44362         * modules/unictype/category-none-tests: New file.
44363         * modules/unictype/category-of-tests: New file.
44364         * modules/unictype/category-or-tests: New file.
44365         * modules/unictype/category-test-withtable-tests: New file.
44366         * modules/unictype/combining-class-tests: New file.
44367         * modules/unictype/ctype-alnum-tests: New file.
44368         * modules/unictype/ctype-alpha-tests: New file.
44369         * modules/unictype/ctype-blank-tests: New file.
44370         * modules/unictype/ctype-cntrl-tests: New file.
44371         * modules/unictype/ctype-digit-tests: New file.
44372         * modules/unictype/ctype-graph-tests: New file.
44373         * modules/unictype/ctype-lower-tests: New file.
44374         * modules/unictype/ctype-print-tests: New file.
44375         * modules/unictype/ctype-punct-tests: New file.
44376         * modules/unictype/ctype-space-tests: New file.
44377         * modules/unictype/ctype-upper-tests: New file.
44378         * modules/unictype/ctype-xdigit-tests: New file.
44379         * modules/unictype/decimal-digit-tests: New file.
44380         * modules/unictype/digit-tests: New file.
44381         * modules/unictype/mirror-tests: New file.
44382         * modules/unictype/numeric-tests: New file.
44383         * modules/unictype/property-alphabetic-tests: New file.
44384         * modules/unictype/property-ascii-hex-digit-tests: New file.
44385         * modules/unictype/property-bidi-arabic-digit-tests: New file.
44386         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
44387         * modules/unictype/property-bidi-block-separator-tests: New file.
44388         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
44389         * modules/unictype/property-bidi-common-separator-tests: New file.
44390         * modules/unictype/property-bidi-control-tests: New file.
44391         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
44392         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
44393         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
44394         * modules/unictype/property-bidi-european-digit-tests: New file.
44395         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
44396         * modules/unictype/property-bidi-left-to-right-tests: New file.
44397         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
44398         * modules/unictype/property-bidi-other-neutral-tests: New file.
44399         * modules/unictype/property-bidi-pdf-tests: New file.
44400         * modules/unictype/property-bidi-segment-separator-tests: New file.
44401         * modules/unictype/property-bidi-whitespace-tests: New file.
44402         * modules/unictype/property-byname-tests: New file.
44403         * modules/unictype/property-combining-tests: New file.
44404         * modules/unictype/property-composite-tests: New file.
44405         * modules/unictype/property-currency-symbol-tests: New file.
44406         * modules/unictype/property-dash-tests: New file.
44407         * modules/unictype/property-decimal-digit-tests: New file.
44408         * modules/unictype/property-default-ignorable-code-point-tests: New file.
44409         * modules/unictype/property-deprecated-tests: New file.
44410         * modules/unictype/property-diacritic-tests: New file.
44411         * modules/unictype/property-extender-tests: New file.
44412         * modules/unictype/property-format-control-tests: New file.
44413         * modules/unictype/property-grapheme-base-tests: New file.
44414         * modules/unictype/property-grapheme-extend-tests: New file.
44415         * modules/unictype/property-grapheme-link-tests: New file.
44416         * modules/unictype/property-hex-digit-tests: New file.
44417         * modules/unictype/property-hyphen-tests: New file.
44418         * modules/unictype/property-id-continue-tests: New file.
44419         * modules/unictype/property-id-start-tests: New file.
44420         * modules/unictype/property-ideographic-tests: New file.
44421         * modules/unictype/property-ids-binary-operator-tests: New file.
44422         * modules/unictype/property-ids-trinary-operator-tests: New file.
44423         * modules/unictype/property-ignorable-control-tests: New file.
44424         * modules/unictype/property-iso-control-tests: New file.
44425         * modules/unictype/property-join-control-tests: New file.
44426         * modules/unictype/property-left-of-pair-tests: New file.
44427         * modules/unictype/property-line-separator-tests: New file.
44428         * modules/unictype/property-logical-order-exception-tests: New file.
44429         * modules/unictype/property-lowercase-tests: New file.
44430         * modules/unictype/property-math-tests: New file.
44431         * modules/unictype/property-non-break-tests: New file.
44432         * modules/unictype/property-not-a-character-tests: New file.
44433         * modules/unictype/property-numeric-tests: New file.
44434         * modules/unictype/property-other-alphabetic-tests: New file.
44435         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
44436         * modules/unictype/property-other-grapheme-extend-tests: New file.
44437         * modules/unictype/property-other-id-continue-tests: New file.
44438         * modules/unictype/property-other-id-start-tests: New file.
44439         * modules/unictype/property-other-lowercase-tests: New file.
44440         * modules/unictype/property-other-math-tests: New file.
44441         * modules/unictype/property-other-uppercase-tests: New file.
44442         * modules/unictype/property-paired-punctuation-tests: New file.
44443         * modules/unictype/property-paragraph-separator-tests: New file.
44444         * modules/unictype/property-pattern-syntax-tests: New file.
44445         * modules/unictype/property-pattern-white-space-tests: New file.
44446         * modules/unictype/property-private-use-tests: New file.
44447         * modules/unictype/property-punctuation-tests: New file.
44448         * modules/unictype/property-quotation-mark-tests: New file.
44449         * modules/unictype/property-radical-tests: New file.
44450         * modules/unictype/property-sentence-terminal-tests: New file.
44451         * modules/unictype/property-soft-dotted-tests: New file.
44452         * modules/unictype/property-space-tests: New file.
44453         * modules/unictype/property-terminal-punctuation-tests: New file.
44454         * modules/unictype/property-test-tests: New file.
44455         * modules/unictype/property-titlecase-tests: New file.
44456         * modules/unictype/property-unassigned-code-value-tests: New file.
44457         * modules/unictype/property-unified-ideograph-tests: New file.
44458         * modules/unictype/property-uppercase-tests: New file.
44459         * modules/unictype/property-variation-selector-tests: New file.
44460         * modules/unictype/property-white-space-tests: New file.
44461         * modules/unictype/property-xid-continue-tests: New file.
44462         * modules/unictype/property-xid-start-tests: New file.
44463         * modules/unictype/property-zero-width-tests: New file.
44464         * modules/unictype/scripts-tests: New file.
44465         * modules/unictype/syntax-c-ident-tests: New file.
44466         * modules/unictype/syntax-c-whitespace-tests: New file.
44467         * modules/unictype/syntax-java-ident-tests: New file.
44468         * modules/unictype/syntax-java-whitespace-tests: New file.
44469         * tests/unictype/test-bidi_byname.c: New file.
44470         * tests/unictype/test-bidi_name.c: New file.
44471         * tests/unictype/test-bidi_of.c: New file.
44472         * tests/unictype/test-bidi_test.c: New file.
44473         * tests/unictype/test-block_list.c: New file.
44474         * tests/unictype/test-block_of.c: New file.
44475         * tests/unictype/test-block_test.c: New file.
44476         * tests/unictype/test-categ_and.c: New file.
44477         * tests/unictype/test-categ_and_not.c: New file.
44478         * tests/unictype/test-categ_byname.c: New file.
44479         * tests/unictype/test-categ_name.c: New file.
44480         * tests/unictype/test-categ_none.c: New file.
44481         * tests/unictype/test-categ_of.c: New file.
44482         * tests/unictype/test-categ_or.c: New file.
44483         * tests/unictype/test-categ_test_withtable.c: New file.
44484         * tests/unictype/test-combining.c: New file.
44485         * tests/unictype/test-decdigit.c: New file.
44486         * tests/unictype/test-digit.c: New file.
44487         * tests/unictype/test-mirror.c: New file.
44488         * tests/unictype/test-numeric.c: New file.
44489         * tests/unictype/test-pr_byname.c: New file.
44490         * tests/unictype/test-pr_test.c: New file.
44491         * tests/unictype/test-predicate-part1.h: New file.
44492         * tests/unictype/test-predicate-part2.h: New file.
44493         * tests/unictype/test-scripts.c: New file.
44494         * tests/unictype/test-sy_c_ident.c: New file.
44495         * tests/unictype/test-sy_java_ident.c: New file.
44496
44497         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
44498         for Unicode 5.0.0.
44499         * tests/unictype/test-categ_Cc.c: Likewise.
44500         * tests/unictype/test-categ_Cf.c: Likewise.
44501         * tests/unictype/test-categ_Cn.c: Likewise.
44502         * tests/unictype/test-categ_Co.c: Likewise.
44503         * tests/unictype/test-categ_Cs.c: Likewise.
44504         * tests/unictype/test-categ_L.c: Likewise.
44505         * tests/unictype/test-categ_Ll.c: Likewise.
44506         * tests/unictype/test-categ_Lm.c: Likewise.
44507         * tests/unictype/test-categ_Lo.c: Likewise.
44508         * tests/unictype/test-categ_Lt.c: Likewise.
44509         * tests/unictype/test-categ_Lu.c: Likewise.
44510         * tests/unictype/test-categ_M.c: Likewise.
44511         * tests/unictype/test-categ_Mc.c: Likewise.
44512         * tests/unictype/test-categ_Me.c: Likewise.
44513         * tests/unictype/test-categ_Mn.c: Likewise.
44514         * tests/unictype/test-categ_N.c: Likewise.
44515         * tests/unictype/test-categ_Nd.c: Likewise.
44516         * tests/unictype/test-categ_Nl.c: Likewise.
44517         * tests/unictype/test-categ_No.c: Likewise.
44518         * tests/unictype/test-categ_P.c: Likewise.
44519         * tests/unictype/test-categ_Pc.c: Likewise.
44520         * tests/unictype/test-categ_Pd.c: Likewise.
44521         * tests/unictype/test-categ_Pe.c: Likewise.
44522         * tests/unictype/test-categ_Pf.c: Likewise.
44523         * tests/unictype/test-categ_Pi.c: Likewise.
44524         * tests/unictype/test-categ_Po.c: Likewise.
44525         * tests/unictype/test-categ_Ps.c: Likewise.
44526         * tests/unictype/test-categ_S.c: Likewise.
44527         * tests/unictype/test-categ_Sc.c: Likewise.
44528         * tests/unictype/test-categ_Sk.c: Likewise.
44529         * tests/unictype/test-categ_Sm.c: Likewise.
44530         * tests/unictype/test-categ_So.c: Likewise.
44531         * tests/unictype/test-categ_Z.c: Likewise.
44532         * tests/unictype/test-categ_Zl.c: Likewise.
44533         * tests/unictype/test-categ_Zp.c: Likewise.
44534         * tests/unictype/test-categ_Zs.c: Likewise.
44535         * tests/unictype/test-ctype_alnum.c: Likewise.
44536         * tests/unictype/test-ctype_alpha.c: Likewise.
44537         * tests/unictype/test-ctype_blank.c: Likewise.
44538         * tests/unictype/test-ctype_cntrl.c: Likewise.
44539         * tests/unictype/test-ctype_digit.c: Likewise.
44540         * tests/unictype/test-ctype_graph.c: Likewise.
44541         * tests/unictype/test-ctype_lower.c: Likewise.
44542         * tests/unictype/test-ctype_print.c: Likewise.
44543         * tests/unictype/test-ctype_punct.c: Likewise.
44544         * tests/unictype/test-ctype_space.c: Likewise.
44545         * tests/unictype/test-ctype_upper.c: Likewise.
44546         * tests/unictype/test-ctype_xdigit.c: Likewise.
44547         * tests/unictype/test-decdigit.h: Likewise.
44548         * tests/unictype/test-digit.h: Likewise.
44549         * tests/unictype/test-numeric.h: Likewise.
44550         * tests/unictype/test-pr_alphabetic.c: Likewise.
44551         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
44552         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
44553         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
44554         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
44555         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
44556         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
44557         * tests/unictype/test-pr_bidi_control.c: Likewise.
44558         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
44559         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
44560         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
44561         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
44562         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
44563         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
44564         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
44565         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
44566         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
44567         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
44568         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
44569         * tests/unictype/test-pr_combining.c: Likewise.
44570         * tests/unictype/test-pr_composite.c: Likewise.
44571         * tests/unictype/test-pr_currency_symbol.c: Likewise.
44572         * tests/unictype/test-pr_dash.c: Likewise.
44573         * tests/unictype/test-pr_decimal_digit.c: Likewise.
44574         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
44575         * tests/unictype/test-pr_deprecated.c: Likewise.
44576         * tests/unictype/test-pr_diacritic.c: Likewise.
44577         * tests/unictype/test-pr_extender.c: Likewise.
44578         * tests/unictype/test-pr_format_control.c: Likewise.
44579         * tests/unictype/test-pr_grapheme_base.c: Likewise.
44580         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
44581         * tests/unictype/test-pr_grapheme_link.c: Likewise.
44582         * tests/unictype/test-pr_hex_digit.c: Likewise.
44583         * tests/unictype/test-pr_hyphen.c: Likewise.
44584         * tests/unictype/test-pr_id_continue.c: Likewise.
44585         * tests/unictype/test-pr_id_start.c: Likewise.
44586         * tests/unictype/test-pr_ideographic.c: Likewise.
44587         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
44588         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
44589         * tests/unictype/test-pr_ignorable_control.c: Likewise.
44590         * tests/unictype/test-pr_iso_control.c: Likewise.
44591         * tests/unictype/test-pr_join_control.c: Likewise.
44592         * tests/unictype/test-pr_left_of_pair.c: Likewise.
44593         * tests/unictype/test-pr_line_separator.c: Likewise.
44594         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
44595         * tests/unictype/test-pr_lowercase.c: Likewise.
44596         * tests/unictype/test-pr_math.c: Likewise.
44597         * tests/unictype/test-pr_non_break.c: Likewise.
44598         * tests/unictype/test-pr_not_a_character.c: Likewise.
44599         * tests/unictype/test-pr_numeric.c: Likewise.
44600         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
44601         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
44602         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
44603         * tests/unictype/test-pr_other_id_continue.c: Likewise.
44604         * tests/unictype/test-pr_other_id_start.c: Likewise.
44605         * tests/unictype/test-pr_other_lowercase.c: Likewise.
44606         * tests/unictype/test-pr_other_math.c: Likewise.
44607         * tests/unictype/test-pr_other_uppercase.c: Likewise.
44608         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
44609         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
44610         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
44611         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
44612         * tests/unictype/test-pr_private_use.c: Likewise.
44613         * tests/unictype/test-pr_punctuation.c: Likewise.
44614         * tests/unictype/test-pr_quotation_mark.c: Likewise.
44615         * tests/unictype/test-pr_radical.c: Likewise.
44616         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
44617         * tests/unictype/test-pr_soft_dotted.c: Likewise.
44618         * tests/unictype/test-pr_space.c: Likewise.
44619         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
44620         * tests/unictype/test-pr_titlecase.c: Likewise.
44621         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
44622         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
44623         * tests/unictype/test-pr_uppercase.c: Likewise.
44624         * tests/unictype/test-pr_variation_selector.c: Likewise.
44625         * tests/unictype/test-pr_white_space.c: Likewise.
44626         * tests/unictype/test-pr_xid_continue.c: Likewise.
44627         * tests/unictype/test-pr_xid_start.c: Likewise.
44628         * tests/unictype/test-pr_zero_width.c: Likewise.
44629         * tests/unictype/test-sy_c_whitespace.c: Likewise.
44630         * tests/unictype/test-sy_java_whitespace.c: Likewise.
44631
44632 2007-11-12  Bruno Haible  <bruno@clisp.org>
44633
44634         Unicode character classification functions.
44635         * lib/unictype.h: New file.
44636         * modules/unictype/base: New file.
44637         * modules/unictype/category-L: New file.
44638         * modules/unictype/category-Lu: New file.
44639         * modules/unictype/category-Ll: New file.
44640         * modules/unictype/category-Lt: New file.
44641         * modules/unictype/category-Lm: New file.
44642         * modules/unictype/category-Lo: New file.
44643         * modules/unictype/category-M: New file.
44644         * modules/unictype/category-Mn: New file.
44645         * modules/unictype/category-Mc: New file.
44646         * modules/unictype/category-Me: New file.
44647         * modules/unictype/category-N: New file.
44648         * modules/unictype/category-Nd: New file.
44649         * modules/unictype/category-Nl: New file.
44650         * modules/unictype/category-No: New file.
44651         * modules/unictype/category-P: New file.
44652         * modules/unictype/category-Pc: New file.
44653         * modules/unictype/category-Pd: New file.
44654         * modules/unictype/category-Ps: New file.
44655         * modules/unictype/category-Pe: New file.
44656         * modules/unictype/category-Pi: New file.
44657         * modules/unictype/category-Pf: New file.
44658         * modules/unictype/category-Po: New file.
44659         * modules/unictype/category-S: New file.
44660         * modules/unictype/category-Sm: New file.
44661         * modules/unictype/category-Sc: New file.
44662         * modules/unictype/category-Sk: New file.
44663         * modules/unictype/category-So: New file.
44664         * modules/unictype/category-Z: New file.
44665         * modules/unictype/category-Zs: New file.
44666         * modules/unictype/category-Zl: New file.
44667         * modules/unictype/category-Zp: New file.
44668         * modules/unictype/category-C: New file.
44669         * modules/unictype/category-Cc: New file.
44670         * modules/unictype/category-Cf: New file.
44671         * modules/unictype/category-Cs: New file.
44672         * modules/unictype/category-Co: New file.
44673         * modules/unictype/category-Cn: New file.
44674         * modules/unictype/category-or: New file.
44675         * modules/unictype/category-of: New file.
44676         * modules/unictype/category-test: New file.
44677         * modules/unictype/category-test-withtable: New file.
44678         * modules/unictype/category-byname: New file.
44679         * modules/unictype/category-none: New file.
44680         * modules/unictype/category-and: New file.
44681         * modules/unictype/category-and-not: New file.
44682         * modules/unictype/category-name: New file.
44683         * modules/unictype/combining-class: New file.
44684         * modules/unictype/category-all: New file.
44685         * modules/unictype/bidicategory-all: New file.
44686         * modules/unictype/bidicategory-byname: New file.
44687         * modules/unictype/bidicategory-name: New file.
44688         * modules/unictype/bidicategory-of: New file.
44689         * modules/unictype/bidicategory-test: New file.
44690         * modules/unictype/decimal-digit: New file.
44691         * modules/unictype/digit: New file.
44692         * modules/unictype/numeric: New file.
44693         * modules/unictype/mirror: New file.
44694         * modules/unictype/property-white-space: New file.
44695         * modules/unictype/property-alphabetic: New file.
44696         * modules/unictype/property-other-alphabetic: New file.
44697         * modules/unictype/property-not-a-character: New file.
44698         * modules/unictype/property-default-ignorable-code-point: New file.
44699         * modules/unictype/property-other-default-ignorable-code-point: New
44700         file.
44701         * modules/unictype/property-deprecated: New file.
44702         * modules/unictype/property-logical-order-exception: New file.
44703         * modules/unictype/property-variation-selector: New file.
44704         * modules/unictype/property-private-use: New file.
44705         * modules/unictype/property-unassigned-code-value: New file.
44706         * modules/unictype/property-uppercase: New file.
44707         * modules/unictype/property-other-uppercase: New file.
44708         * modules/unictype/property-lowercase: New file.
44709         * modules/unictype/property-other-lowercase: New file.
44710         * modules/unictype/property-titlecase: New file.
44711         * modules/unictype/property-soft-dotted: New file.
44712         * modules/unictype/property-id-start: New file.
44713         * modules/unictype/property-other-id-start: New file.
44714         * modules/unictype/property-id-continue: New file.
44715         * modules/unictype/property-other-id-continue: New file.
44716         * modules/unictype/property-xid-start: New file.
44717         * modules/unictype/property-xid-continue: New file.
44718         * modules/unictype/property-pattern-white-space: New file.
44719         * modules/unictype/property-pattern-syntax: New file.
44720         * modules/unictype/property-join-control: New file.
44721         * modules/unictype/property-grapheme-base: New file.
44722         * modules/unictype/property-grapheme-extend: New file.
44723         * modules/unictype/property-other-grapheme-extend: New file.
44724         * modules/unictype/property-grapheme-link: New file.
44725         * modules/unictype/property-bidi-control: New file.
44726         * modules/unictype/property-bidi-left-to-right: New file.
44727         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
44728         * modules/unictype/property-bidi-arabic-right-to-left: New file.
44729         * modules/unictype/property-bidi-european-digit: New file.
44730         * modules/unictype/property-bidi-eur-num-separator: New file.
44731         * modules/unictype/property-bidi-eur-num-terminator: New file.
44732         * modules/unictype/property-bidi-arabic-digit: New file.
44733         * modules/unictype/property-bidi-common-separator: New file.
44734         * modules/unictype/property-bidi-block-separator: New file.
44735         * modules/unictype/property-bidi-segment-separator: New file.
44736         * modules/unictype/property-bidi-whitespace: New file.
44737         * modules/unictype/property-bidi-non-spacing-mark: New file.
44738         * modules/unictype/property-bidi-boundary-neutral: New file.
44739         * modules/unictype/property-bidi-pdf: New file.
44740         * modules/unictype/property-bidi-embedding-or-override: New file.
44741         * modules/unictype/property-bidi-other-neutral: New file.
44742         * modules/unictype/property-hex-digit: New file.
44743         * modules/unictype/property-ascii-hex-digit: New file.
44744         * modules/unictype/property-ideographic: New file.
44745         * modules/unictype/property-unified-ideograph: New file.
44746         * modules/unictype/property-radical: New file.
44747         * modules/unictype/property-ids-binary-operator: New file.
44748         * modules/unictype/property-ids-trinary-operator: New file.
44749         * modules/unictype/property-zero-width: New file.
44750         * modules/unictype/property-space: New file.
44751         * modules/unictype/property-non-break: New file.
44752         * modules/unictype/property-iso-control: New file.
44753         * modules/unictype/property-format-control: New file.
44754         * modules/unictype/property-dash: New file.
44755         * modules/unictype/property-hyphen: New file.
44756         * modules/unictype/property-punctuation: New file.
44757         * modules/unictype/property-line-separator: New file.
44758         * modules/unictype/property-paragraph-separator: New file.
44759         * modules/unictype/property-quotation-mark: New file.
44760         * modules/unictype/property-sentence-terminal: New file.
44761         * modules/unictype/property-terminal-punctuation: New file.
44762         * modules/unictype/property-currency-symbol: New file.
44763         * modules/unictype/property-math: New file.
44764         * modules/unictype/property-other-math: New file.
44765         * modules/unictype/property-paired-punctuation: New file.
44766         * modules/unictype/property-left-of-pair: New file.
44767         * modules/unictype/property-combining: New file.
44768         * modules/unictype/property-composite: New file.
44769         * modules/unictype/property-decimal-digit: New file.
44770         * modules/unictype/property-numeric: New file.
44771         * modules/unictype/property-diacritic: New file.
44772         * modules/unictype/property-extender: New file.
44773         * modules/unictype/property-ignorable-control: New file.
44774         * modules/unictype/property-test: New file.
44775         * modules/unictype/property-byname: New file.
44776         * modules/unictype/property-all: New file.
44777         * modules/unictype/scripts: New file.
44778         * modules/unictype/scripts-all: New file.
44779         * modules/unictype/block-of: New file.
44780         * modules/unictype/block-test: New file.
44781         * modules/unictype/block-list: New file.
44782         * modules/unictype/block-all: New file.
44783         * modules/unictype/syntax-c-whitespace: New file.
44784         * modules/unictype/syntax-java-whitespace: New file.
44785         * modules/unictype/syntax-c-ident: New file.
44786         * modules/unictype/syntax-java-ident: New file.
44787         * modules/unictype/ctype-alnum: New file.
44788         * modules/unictype/ctype-alpha: New file.
44789         * modules/unictype/ctype-cntrl: New file.
44790         * modules/unictype/ctype-digit: New file.
44791         * modules/unictype/ctype-graph: New file.
44792         * modules/unictype/ctype-lower: New file.
44793         * modules/unictype/ctype-print: New file.
44794         * modules/unictype/ctype-punct: New file.
44795         * modules/unictype/ctype-space: New file.
44796         * modules/unictype/ctype-upper: New file.
44797         * modules/unictype/ctype-xdigit: New file.
44798         * modules/unictype/ctype-blank: New file.
44799         * lib/unictype/bidi_byname.c: New file.
44800         * lib/unictype/bidi_name.c: New file.
44801         * lib/unictype/bidi_of.c: New file.
44802         * lib/unictype/bidi_test.c: New file.
44803         * lib/unictype/bitmap.h: New file.
44804         * lib/unictype/block_test.c: New file.
44805         * lib/unictype/blocks.c: New file.
44806         * lib/unictype/categ_C.c: New file.
44807         * lib/unictype/categ_Cc.c: New file.
44808         * lib/unictype/categ_Cf.c: New file.
44809         * lib/unictype/categ_Cn.c: New file.
44810         * lib/unictype/categ_Co.c: New file.
44811         * lib/unictype/categ_Cs.c: New file.
44812         * lib/unictype/categ_L.c: New file.
44813         * lib/unictype/categ_Ll.c: New file.
44814         * lib/unictype/categ_Lm.c: New file.
44815         * lib/unictype/categ_Lo.c: New file.
44816         * lib/unictype/categ_Lt.c: New file.
44817         * lib/unictype/categ_Lu.c: New file.
44818         * lib/unictype/categ_M.c: New file.
44819         * lib/unictype/categ_Mc.c: New file.
44820         * lib/unictype/categ_Me.c: New file.
44821         * lib/unictype/categ_Mn.c: New file.
44822         * lib/unictype/categ_N.c: New file.
44823         * lib/unictype/categ_Nd.c: New file.
44824         * lib/unictype/categ_Nl.c: New file.
44825         * lib/unictype/categ_No.c: New file.
44826         * lib/unictype/categ_P.c: New file.
44827         * lib/unictype/categ_Pc.c: New file.
44828         * lib/unictype/categ_Pd.c: New file.
44829         * lib/unictype/categ_Pe.c: New file.
44830         * lib/unictype/categ_Pf.c: New file.
44831         * lib/unictype/categ_Pi.c: New file.
44832         * lib/unictype/categ_Po.c: New file.
44833         * lib/unictype/categ_Ps.c: New file.
44834         * lib/unictype/categ_S.c: New file.
44835         * lib/unictype/categ_Sc.c: New file.
44836         * lib/unictype/categ_Sk.c: New file.
44837         * lib/unictype/categ_Sm.c: New file.
44838         * lib/unictype/categ_So.c: New file.
44839         * lib/unictype/categ_Z.c: New file.
44840         * lib/unictype/categ_Zl.c: New file.
44841         * lib/unictype/categ_Zp.c: New file.
44842         * lib/unictype/categ_Zs.c: New file.
44843         * lib/unictype/categ_and.c: New file.
44844         * lib/unictype/categ_and_not.c: New file.
44845         * lib/unictype/categ_byname.c: New file.
44846         * lib/unictype/categ_name.c: New file.
44847         * lib/unictype/categ_none.c: New file.
44848         * lib/unictype/categ_of.c: New file.
44849         * lib/unictype/categ_or.c: New file.
44850         * lib/unictype/categ_test.c: New file.
44851         * lib/unictype/combining.c: New file.
44852         * lib/unictype/ctype_alnum.c: New file.
44853         * lib/unictype/ctype_alpha.c: New file.
44854         * lib/unictype/ctype_blank.c: New file.
44855         * lib/unictype/ctype_cntrl.c: New file.
44856         * lib/unictype/ctype_digit.c: New file.
44857         * lib/unictype/ctype_graph.c: New file.
44858         * lib/unictype/ctype_lower.c: New file.
44859         * lib/unictype/ctype_print.c: New file.
44860         * lib/unictype/ctype_punct.c: New file.
44861         * lib/unictype/ctype_space.c: New file.
44862         * lib/unictype/ctype_upper.c: New file.
44863         * lib/unictype/ctype_xdigit.c: New file.
44864         * lib/unictype/decdigit.c: New file.
44865         * lib/unictype/digit.c: New file.
44866         * lib/unictype/identsyntaxmap.h: New file.
44867         * lib/unictype/mirror.c: New file.
44868         * lib/unictype/numeric.c: New file.
44869         * lib/unictype/pr_alphabetic.c: New file.
44870         * lib/unictype/pr_ascii_hex_digit.c: New file.
44871         * lib/unictype/pr_bidi_arabic_digit.c: New file.
44872         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
44873         * lib/unictype/pr_bidi_block_separator.c: New file.
44874         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
44875         * lib/unictype/pr_bidi_common_separator.c: New file.
44876         * lib/unictype/pr_bidi_control.c: New file.
44877         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
44878         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
44879         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
44880         * lib/unictype/pr_bidi_european_digit.c: New file.
44881         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
44882         * lib/unictype/pr_bidi_left_to_right.c: New file.
44883         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
44884         * lib/unictype/pr_bidi_other_neutral.c: New file.
44885         * lib/unictype/pr_bidi_pdf.c: New file.
44886         * lib/unictype/pr_bidi_segment_separator.c: New file.
44887         * lib/unictype/pr_bidi_whitespace.c: New file.
44888         * lib/unictype/pr_byname.c: New file.
44889         * lib/unictype/pr_byname.gperf: New file.
44890         * lib/unictype/pr_combining.c: New file.
44891         * lib/unictype/pr_composite.c: New file.
44892         * lib/unictype/pr_currency_symbol.c: New file.
44893         * lib/unictype/pr_dash.c: New file.
44894         * lib/unictype/pr_decimal_digit.c: New file.
44895         * lib/unictype/pr_default_ignorable_code_point.c: New file.
44896         * lib/unictype/pr_deprecated.c: New file.
44897         * lib/unictype/pr_diacritic.c: New file.
44898         * lib/unictype/pr_extender.c: New file.
44899         * lib/unictype/pr_format_control.c: New file.
44900         * lib/unictype/pr_grapheme_base.c: New file.
44901         * lib/unictype/pr_grapheme_extend.c: New file.
44902         * lib/unictype/pr_grapheme_link.c: New file.
44903         * lib/unictype/pr_hex_digit.c: New file.
44904         * lib/unictype/pr_hyphen.c: New file.
44905         * lib/unictype/pr_id_continue.c: New file.
44906         * lib/unictype/pr_id_start.c: New file.
44907         * lib/unictype/pr_ideographic.c: New file.
44908         * lib/unictype/pr_ids_binary_operator.c: New file.
44909         * lib/unictype/pr_ids_trinary_operator.c: New file.
44910         * lib/unictype/pr_ignorable_control.c: New file.
44911         * lib/unictype/pr_iso_control.c: New file.
44912         * lib/unictype/pr_join_control.c: New file.
44913         * lib/unictype/pr_left_of_pair.c: New file.
44914         * lib/unictype/pr_line_separator.c: New file.
44915         * lib/unictype/pr_logical_order_exception.c: New file.
44916         * lib/unictype/pr_lowercase.c: New file.
44917         * lib/unictype/pr_math.c: New file.
44918         * lib/unictype/pr_non_break.c: New file.
44919         * lib/unictype/pr_not_a_character.c: New file.
44920         * lib/unictype/pr_numeric.c: New file.
44921         * lib/unictype/pr_other_alphabetic.c: New file.
44922         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
44923         * lib/unictype/pr_other_grapheme_extend.c: New file.
44924         * lib/unictype/pr_other_id_continue.c: New file.
44925         * lib/unictype/pr_other_id_start.c: New file.
44926         * lib/unictype/pr_other_lowercase.c: New file.
44927         * lib/unictype/pr_other_math.c: New file.
44928         * lib/unictype/pr_other_uppercase.c: New file.
44929         * lib/unictype/pr_paired_punctuation.c: New file.
44930         * lib/unictype/pr_paragraph_separator.c: New file.
44931         * lib/unictype/pr_pattern_syntax.c: New file.
44932         * lib/unictype/pr_pattern_white_space.c: New file.
44933         * lib/unictype/pr_private_use.c: New file.
44934         * lib/unictype/pr_punctuation.c: New file.
44935         * lib/unictype/pr_quotation_mark.c: New file.
44936         * lib/unictype/pr_radical.c: New file.
44937         * lib/unictype/pr_sentence_terminal.c: New file.
44938         * lib/unictype/pr_soft_dotted.c: New file.
44939         * lib/unictype/pr_space.c: New file.
44940         * lib/unictype/pr_terminal_punctuation.c: New file.
44941         * lib/unictype/pr_test.c: New file.
44942         * lib/unictype/pr_titlecase.c: New file.
44943         * lib/unictype/pr_unassigned_code_value.c: New file.
44944         * lib/unictype/pr_unified_ideograph.c: New file.
44945         * lib/unictype/pr_uppercase.c: New file.
44946         * lib/unictype/pr_variation_selector.c: New file.
44947         * lib/unictype/pr_white_space.c: New file.
44948         * lib/unictype/pr_xid_continue.c: New file.
44949         * lib/unictype/pr_xid_start.c: New file.
44950         * lib/unictype/pr_zero_width.c: New file.
44951         * lib/unictype/scripts.c: New file.
44952         * lib/unictype/sy_c_ident.c: New file.
44953         * lib/unictype/sy_c_whitespace.c: New file.
44954         * lib/unictype/sy_java_ident.c: New file.
44955         * lib/unictype/sy_java_whitespace.c: New file.
44956
44957         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
44958         Unicode 5.0.0.
44959         * lib/unictype/blocks.h: Likewise.
44960         * lib/unictype/categ_C.h: Likewise.
44961         * lib/unictype/categ_Cc.h: Likewise.
44962         * lib/unictype/categ_Cf.h: Likewise.
44963         * lib/unictype/categ_Cn.h: Likewise.
44964         * lib/unictype/categ_Co.h: Likewise.
44965         * lib/unictype/categ_Cs.h: Likewise.
44966         * lib/unictype/categ_L.h: Likewise.
44967         * lib/unictype/categ_Ll.h: Likewise.
44968         * lib/unictype/categ_Lm.h: Likewise.
44969         * lib/unictype/categ_Lo.h: Likewise.
44970         * lib/unictype/categ_Lt.h: Likewise.
44971         * lib/unictype/categ_Lu.h: Likewise.
44972         * lib/unictype/categ_M.h: Likewise.
44973         * lib/unictype/categ_Mc.h: Likewise.
44974         * lib/unictype/categ_Me.h: Likewise.
44975         * lib/unictype/categ_Mn.h: Likewise.
44976         * lib/unictype/categ_N.h: Likewise.
44977         * lib/unictype/categ_Nd.h: Likewise.
44978         * lib/unictype/categ_Nl.h: Likewise.
44979         * lib/unictype/categ_No.h: Likewise.
44980         * lib/unictype/categ_P.h: Likewise.
44981         * lib/unictype/categ_Pc.h: Likewise.
44982         * lib/unictype/categ_Pd.h: Likewise.
44983         * lib/unictype/categ_Pe.h: Likewise.
44984         * lib/unictype/categ_Pf.h: Likewise.
44985         * lib/unictype/categ_Pi.h: Likewise.
44986         * lib/unictype/categ_Po.h: Likewise.
44987         * lib/unictype/categ_Ps.h: Likewise.
44988         * lib/unictype/categ_S.h: Likewise.
44989         * lib/unictype/categ_Sc.h: Likewise.
44990         * lib/unictype/categ_Sk.h: Likewise.
44991         * lib/unictype/categ_Sm.h: Likewise.
44992         * lib/unictype/categ_So.h: Likewise.
44993         * lib/unictype/categ_Z.h: Likewise.
44994         * lib/unictype/categ_Zl.h: Likewise.
44995         * lib/unictype/categ_Zp.h: Likewise.
44996         * lib/unictype/categ_Zs.h: Likewise.
44997         * lib/unictype/categ_of.h: Likewise.
44998         * lib/unictype/combining.h: Likewise.
44999         * lib/unictype/ctype_alnum.h: Likewise.
45000         * lib/unictype/ctype_alpha.h: Likewise.
45001         * lib/unictype/ctype_blank.h: Likewise.
45002         * lib/unictype/ctype_cntrl.h: Likewise.
45003         * lib/unictype/ctype_digit.h: Likewise.
45004         * lib/unictype/ctype_graph.h: Likewise.
45005         * lib/unictype/ctype_lower.h: Likewise.
45006         * lib/unictype/ctype_print.h: Likewise.
45007         * lib/unictype/ctype_punct.h: Likewise.
45008         * lib/unictype/ctype_space.h: Likewise.
45009         * lib/unictype/ctype_upper.h: Likewise.
45010         * lib/unictype/ctype_xdigit.h: Likewise.
45011         * lib/unictype/decdigit.h: Likewise.
45012         * lib/unictype/digit.h: Likewise.
45013         * lib/unictype/mirror.h: Likewise.
45014         * lib/unictype/numeric.h: Likewise.
45015         * lib/unictype/pr_alphabetic.h: Likewise.
45016         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
45017         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
45018         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
45019         * lib/unictype/pr_bidi_block_separator.h: Likewise.
45020         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
45021         * lib/unictype/pr_bidi_common_separator.h: Likewise.
45022         * lib/unictype/pr_bidi_control.h: Likewise.
45023         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
45024         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
45025         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
45026         * lib/unictype/pr_bidi_european_digit.h: Likewise.
45027         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
45028         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
45029         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
45030         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
45031         * lib/unictype/pr_bidi_pdf.h: Likewise.
45032         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
45033         * lib/unictype/pr_bidi_whitespace.h: Likewise.
45034         * lib/unictype/pr_combining.h: Likewise.
45035         * lib/unictype/pr_composite.h: Likewise.
45036         * lib/unictype/pr_currency_symbol.h: Likewise.
45037         * lib/unictype/pr_dash.h: Likewise.
45038         * lib/unictype/pr_decimal_digit.h: Likewise.
45039         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
45040         * lib/unictype/pr_deprecated.h: Likewise.
45041         * lib/unictype/pr_diacritic.h: Likewise.
45042         * lib/unictype/pr_extender.h: Likewise.
45043         * lib/unictype/pr_format_control.h: Likewise.
45044         * lib/unictype/pr_grapheme_base.h: Likewise.
45045         * lib/unictype/pr_grapheme_extend.h: Likewise.
45046         * lib/unictype/pr_grapheme_link.h: Likewise.
45047         * lib/unictype/pr_hex_digit.h: Likewise.
45048         * lib/unictype/pr_hyphen.h: Likewise.
45049         * lib/unictype/pr_id_continue.h: Likewise.
45050         * lib/unictype/pr_id_start.h: Likewise.
45051         * lib/unictype/pr_ideographic.h: Likewise.
45052         * lib/unictype/pr_ids_binary_operator.h: Likewise.
45053         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
45054         * lib/unictype/pr_ignorable_control.h: Likewise.
45055         * lib/unictype/pr_iso_control.h: Likewise.
45056         * lib/unictype/pr_join_control.h: Likewise.
45057         * lib/unictype/pr_left_of_pair.h: Likewise.
45058         * lib/unictype/pr_line_separator.h: Likewise.
45059         * lib/unictype/pr_logical_order_exception.h: Likewise.
45060         * lib/unictype/pr_lowercase.h: Likewise.
45061         * lib/unictype/pr_math.h: Likewise.
45062         * lib/unictype/pr_non_break.h: Likewise.
45063         * lib/unictype/pr_not_a_character.h: Likewise.
45064         * lib/unictype/pr_numeric.h: Likewise.
45065         * lib/unictype/pr_other_alphabetic.h: Likewise.
45066         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
45067         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
45068         * lib/unictype/pr_other_id_continue.h: Likewise.
45069         * lib/unictype/pr_other_id_start.h: Likewise.
45070         * lib/unictype/pr_other_lowercase.h: Likewise.
45071         * lib/unictype/pr_other_math.h: Likewise.
45072         * lib/unictype/pr_other_uppercase.h: Likewise.
45073         * lib/unictype/pr_paired_punctuation.h: Likewise.
45074         * lib/unictype/pr_paragraph_separator.h: Likewise.
45075         * lib/unictype/pr_pattern_syntax.h: Likewise.
45076         * lib/unictype/pr_pattern_white_space.h: Likewise.
45077         * lib/unictype/pr_private_use.h: Likewise.
45078         * lib/unictype/pr_punctuation.h: Likewise.
45079         * lib/unictype/pr_quotation_mark.h: Likewise.
45080         * lib/unictype/pr_radical.h: Likewise.
45081         * lib/unictype/pr_sentence_terminal.h: Likewise.
45082         * lib/unictype/pr_soft_dotted.h: Likewise.
45083         * lib/unictype/pr_space.h: Likewise.
45084         * lib/unictype/pr_terminal_punctuation.h: Likewise.
45085         * lib/unictype/pr_titlecase.h: Likewise.
45086         * lib/unictype/pr_unassigned_code_value.h: Likewise.
45087         * lib/unictype/pr_unified_ideograph.h: Likewise.
45088         * lib/unictype/pr_uppercase.h: Likewise.
45089         * lib/unictype/pr_variation_selector.h: Likewise.
45090         * lib/unictype/pr_white_space.h: Likewise.
45091         * lib/unictype/pr_xid_continue.h: Likewise.
45092         * lib/unictype/pr_xid_start.h: Likewise.
45093         * lib/unictype/pr_zero_width.h: Likewise.
45094         * lib/unictype/scripts.h: Likewise.
45095         * lib/unictype/scripts_byname.gperf: Likewise.
45096         * lib/unictype/sy_c_ident.h: Likewise.
45097         * lib/unictype/sy_c_whitespace.h: Likewise.
45098         * lib/unictype/sy_java_ident.h: Likewise.
45099         * lib/unictype/sy_java_whitespace.h: Likewise.
45100
45101         * lib/unictype/Makefile: New file.
45102         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
45103         glibc.
45104         * lib/unictype/3level.h: New file, copied from glibc.
45105         * lib/unictype/3levelbit.h: New file.
45106
45107 2007-11-11  Bruno Haible  <bruno@clisp.org>
45108
45109         * modules/gperf: New file.
45110         * modules/iconv_open (Depends-on): Add it.
45111         (Makefile.am): Remove the GPERF definition.
45112
45113 2007-11-11  Bruno Haible  <bruno@clisp.org>
45114
45115         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
45116         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
45117
45118 2007-11-11  Bruno Haible  <bruno@clisp.org>
45119
45120         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
45121         (usage): Remove function.
45122
45123 2007-11-11  Bruno Haible  <bruno@clisp.org>
45124
45125         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
45126         gl_FUNC_CEILF_LIBS.
45127         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
45128         gl_FUNC_CEIL_LIBS.
45129         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
45130         gl_FUNC_CEILL_LIBS.
45131         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
45132         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
45133         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
45134
45135 2007-11-11  Bruno Haible  <bruno@clisp.org>
45136
45137         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
45138         roundf were declared but do not exist on functions.
45139         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
45140         roundl were declared but do not exist on functions.
45141         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
45142         HAVE_FLOORL_AND_CEILL, respectively.
45143         Needed for Sun C on Solaris 10.
45144
45145 2007-11-11  Bruno Haible  <bruno@clisp.org>
45146
45147         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
45148         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
45149         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
45150         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
45151         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
45152         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
45153         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
45154         HAVE_DECL_ROUNDF.
45155         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
45156         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
45157         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
45158         of HAVE_DECL_ROUND*.
45159         * modules/math (Makefile.am): Update.
45160
45161 2007-11-10  Bruno Haible  <bruno@clisp.org>
45162
45163         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
45164         ptrdiff_t as m4/intl.m4.
45165
45166 2007-11-10  Jim Meyering  <meyering@redhat.com>
45167
45168         Avoid link failure for the argmatch test.
45169         * tests/test-argmatch.c (usage): Define function to avoid a link
45170         failure: argmatch_die requires a usage function.
45171
45172 2007-11-09  Bruno Haible  <bruno@clisp.org>
45173
45174         * doc/functions/snprintf.texi: Mention BeOS deficiency.
45175         * doc/functions/vsnprintf.texi: Likewise.
45176         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
45177         with a size argument < 2.
45178
45179 2007-11-09  Bruno Haible  <bruno@clisp.org>
45180
45181         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
45182         buffer. Fixes an inefficiency introduced on 2007-11-03.
45183
45184 2007-11-09  Bruno Haible  <bruno@clisp.org>
45185
45186         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
45187         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
45188
45189 2007-11-08  Jim Meyering  <meyering@redhat.com>
45190
45191         Change cache variable name prefix "jm_" to "gl_" everywhere.
45192         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
45193         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
45194         * m4/uptime.m4: s/gl_/jm_/
45195
45196 2007-11-07  Bruno Haible  <bruno@clisp.org>
45197
45198         Update to GNU gettext 0.17.
45199         * m4/intl.m4: Update to GNU gettext 0.17.
45200         * m4/po.m4: Likewise.
45201         * modules/gettext (Files): Remove m4/ulonglong.m4.
45202         (configure.ac): Require gettext infrastructure from version 0.17.
45203
45204 2007-11-06  Bruno Haible  <bruno@clisp.org>
45205
45206         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
45207         symbolic values are not defined in a public header.
45208         * lib/freadable.c (freadable) [QNX]: Likewise.
45209         * lib/freadahead.c (freadahead) [QNX]: Likewise.
45210         * lib/freading.c (freading) [QNX]: Likewise.
45211         * lib/fseterr.c (fseterr) [QNX]: Likewise.
45212         * lib/fwritable.c (fwritable) [QNX]: Likewise.
45213         * lib/fwriting.c (fwriting) [QNX]: Likewise.
45214         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
45215         Reported by Alain Magloire.
45216
45217         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
45218
45219 2007-11-05  Bruno Haible  <bruno@clisp.org>
45220
45221         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
45222         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
45223         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
45224         Reported by Eric Blake.
45225
45226 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45227             Bruno Haible  <bruno@clisp.org>
45228
45229         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
45230         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
45231         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
45232         (malloc): Undefine also before including <stdlib.h>.
45233         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
45234         Needed on OSF/1 4.0.
45235
45236 2007-11-05  Jim Meyering  <meyering@redhat.com>
45237
45238         git-version-gen: sync from coreutils.
45239         * build-aux/git-version-gen: Add comments.
45240         Change the first '-' to '.' in the snapshot version string,
45241         e.g., 6.9-377-08144 -> 6.9.377-08144
45242         Remove first parameter.
45243         Don't declare a version "-dirty" merely because a time
45244         stamp has changed.
45245
45246 2007-11-04  Bruno Haible  <bruno@clisp.org>
45247
45248         * lib/lock.h: Protect all macro definitions containing an 'if'
45249         statement through a "do { ... } while (0)".
45250         * lib/tls.h: Likewise.
45251
45252 2007-11-04  Bruno Haible  <bruno@clisp.org>
45253
45254         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
45255
45256 2007-11-04  Bruno Haible  <bruno@clisp.org>
45257
45258         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
45259         * modules/fprintf-posix (Depends-on): Add nocrash.
45260         * modules/snprintf-posix (Depends-on): Likewise.
45261         * modules/sprintf-posix (Depends-on): Likewise.
45262         * modules/vasnprintf-posix (Depends-on): Likewise.
45263         * modules/vasprintf-posix (Depends-on): Likewise.
45264         * modules/vfprintf-posix (Depends-on): Likewise.
45265         * modules/vsnprintf-posix (Depends-on): Likewise.
45266         * modules/vsprintf-posix (Depends-on): Likewise.
45267         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
45268         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
45269         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
45270         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
45271         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
45272         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
45273         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
45274
45275 2007-11-04  Bruno Haible  <bruno@clisp.org>
45276
45277         * modules/nocrash: New file.
45278         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
45279         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
45280
45281 2007-11-04  Bruno Haible  <bruno@clisp.org>
45282
45283         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
45284         precision handling.
45285         * tests/test-vasprintf-posix.c (test_function): Likewise.
45286         * tests/test-snprintf-posix.h (test_function): Likewise.
45287         * tests/test-sprintf-posix.h (test_function): Likewise.
45288
45289         Fix *printf behaviour for large precisions on mingw and BeOS.
45290         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
45291         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
45292         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
45293         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
45294         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
45295         gl_PRINTF_PRECISION and test its result. Invoke
45296         gl_PREREQ_VASNPRINTF_PRECISION.
45297         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
45298         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
45299         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
45300         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
45301         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
45302         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
45303         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
45304         * doc/functions/fprintf.texi: Update.
45305         * doc/functions/printf.texi: Update.
45306         * doc/functions/snprintf.texi: Update.
45307         * doc/functions/sprintf.texi: Update.
45308         * doc/functions/vfprintf.texi: Update.
45309         * doc/functions/vprintf.texi: Update.
45310         * doc/functions/vsnprintf.texi: Update.
45311         * doc/functions/vsprintf.texi: Update.
45312
45313 2007-11-04  Bruno Haible  <bruno@clisp.org>
45314
45315         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
45316
45317 2007-11-04  Bruno Haible  <bruno@clisp.org>
45318
45319         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
45320         Reported by Sylvain Beucler <beuc@gnu.org>.
45321
45322 2007-11-03  Bruno Haible  <bruno@clisp.org>
45323
45324         * tests/test-fprintf-posix2.sh: New file.
45325         * tests/test-fprintf-posix2.c: New file.
45326         * modules/fprintf-posix-tests (Files): Add them.
45327         (TESTS): Add test-fprintf-posix2.sh.
45328         (configure.ac): Check for getrlimit and setrlimit.
45329         (check_PROGRAMS): Add test-fprintf-posix2.
45330
45331         * tests/test-printf-posix2.sh: New file.
45332         * tests/test-printf-posix2.c: New file.
45333         * modules/printf-posix-tests (Files): Add them.
45334         (TESTS): Add test-printf-posix2.sh.
45335         (configure.ac): Check for getrlimit and setrlimit.
45336         (check_PROGRAMS): Add test-printf-posix2.
45337
45338         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
45339         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
45340         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
45341         (decode_double): New function, copied from decode_long_double.
45342         (scale10_round_decimal_decoded): New function, extracted from
45343         scale10_round_decimal_long_double.
45344         (scale10_round_decimal_long_double): Use it.
45345         (scale10_round_decimal_double): New function.
45346         (floorlog10): New function.
45347         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
45348         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
45349         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
45350         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
45351         gl_PRINTF_ENOMEM and test its result. Invoke
45352         gl_PREREQ_VASNPRINTF_ENOMEM.
45353         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
45354         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
45355         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
45356         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
45357         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
45358         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
45359         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
45360         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
45361         * modules/snprintf-posix (Depends-on): Likewise.
45362         * modules/sprintf-posix (Depends-on): Likewise.
45363         * modules/vasnprintf-posix (Depends-on): Likewise.
45364         * modules/vasprintf-posix (Depends-on): Likewise.
45365         * modules/vfprintf-posix (Depends-on): Likewise.
45366         * modules/vsnprintf-posix (Depends-on): Likewise.
45367         * modules/vsprintf-posix (Depends-on): Likewise.
45368         * doc/functions/fprintf.texi: Update.
45369         * doc/functions/printf.texi: Update.
45370         * doc/functions/snprintf.texi: Update.
45371         * doc/functions/sprintf.texi: Update.
45372         * doc/functions/vfprintf.texi: Update.
45373         * doc/functions/vprintf.texi: Update.
45374         * doc/functions/vsnprintf.texi: Update.
45375         * doc/functions/vsprintf.texi: Update.
45376
45377 2007-11-03  Bruno Haible  <bruno@clisp.org>
45378
45379         * modules/frexp-nolibm-tests: New file.
45380
45381         * modules/frexp-nolibm: New file.
45382         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
45383
45384 2007-11-03  Bruno Haible  <bruno@clisp.org>
45385
45386         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
45387         value is C99 compliant.
45388         Needed for OSF/1 5.1.
45389
45390 2007-11-03  Bruno Haible  <bruno@clisp.org>
45391
45392         Fix out-of-memory handling of vasnprintf.
45393         * lib/printf-parse.c: Include <errno.h>.
45394         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
45395         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
45396         is already set.
45397
45398 2007-11-02  Eric Blake  <ebb9@byu.net>
45399
45400         Fix tests on cygwin.
45401         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
45402
45403 2007-11-01  Bruno Haible  <bruno@clisp.org>
45404
45405         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
45406         warning.
45407         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
45408         needed for POSIX compatibility.
45409
45410 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
45411
45412         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
45413         for compatibility with GNU.
45414
45415 2007-11-01  Bruno Haible  <bruno@clisp.org>
45416
45417         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
45418         (putenv): Renamed from rpl_putenv. Change argument type from
45419         'const char *' to 'char *'.
45420         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
45421         of defining putenv in config.h, just set REPLACE_PUTENV.
45422         * modules/putenv (Depends-on): Add stdlib.
45423         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
45424         (Include): Use <stdlib.h>.
45425         * lib/stdlib.in.h (putenv): New declaration.
45426         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
45427         REPLACE_PUTENV.
45428         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
45429         REPLACE_PUTENV.
45430         Needed for MacOS X 10.5.0.
45431         Reported by Peter O'Gorman <peter@pogma.com>.
45432
45433 2007-11-01  Jim Meyering  <meyering@redhat.com>
45434
45435         Treat an empty date string exactly like "0".
45436         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
45437         if the remaining date string (to be parsed) is empty, use "0".
45438         Reported by Mischa Molhoek and discussed in this thread:
45439         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
45440
45441 2007-10-31  Bruno Haible  <bruno@clisp.org>
45442
45443         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
45444         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
45445         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
45446         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
45447         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
45448         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
45449
45450 2007-10-31  Bruno Haible  <bruno@clisp.org>
45451
45452         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
45453         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
45454         (AC_TYPE_LONG_LONG_INT): Use it.
45455         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
45456         it as well.
45457         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
45458         to m4/longlong.m4.
45459         * modules/stdint (Files): Remove m4/ulonglong.m4.
45460         * modules/strtoull (Files): Use m4/longlong.m4 instead of
45461         m4/ulonglong.m4.
45462         * modules/strtoumax (Files): Likewise.
45463
45464 2007-10-30  Bruno Haible  <bruno@clisp.org>
45465
45466         * modules/xvasprintf-posix: New file.
45467         Suggested by Eric Blake.
45468
45469 2007-10-30  Bruno Haible  <bruno@clisp.org>
45470
45471         * modules/xprintf-posix-tests: New file.
45472         * tests/test-xprintf-posix.sh: New file.
45473         * tests/test-xprintf-posix.c: New file.
45474         * tests/test-xfprintf-posix.c: New file.
45475
45476         * modules/xprintf-posix: New file.
45477
45478 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45479
45480         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
45481         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
45482         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
45483
45484 2007-10-29  Bruno Haible  <bruno@clisp.org>
45485
45486         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
45487         contain the special marker '_cv_'.
45488         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
45489         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
45490         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
45491         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
45492         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
45493         Reported by Ralf Wildenhues.
45494
45495 2007-10-29  Bruno Haible  <bruno@clisp.org>
45496
45497         * gnulib-tool (func_import): When --lgpl is not specified, set
45498         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
45499         GPLv3.
45500         Reported by Simon Josefsson.
45501
45502 2007-10-28  Bruno Haible  <bruno@clisp.org>
45503
45504         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
45505         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
45506         HAVE_DECL_ISFINITE.
45507         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
45508         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
45509         HAVE_DECL_ISFINITE.
45510
45511 2007-10-28  Bruno Haible  <bruno@clisp.org>
45512
45513         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
45514         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
45515
45516 2007-10-28  Bruno Haible  <bruno@clisp.org>
45517
45518         Fix link errors with Sun C 5.0 on Solaris 10.
45519         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
45520         function is declared but not present in the compiler's libm.
45521         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
45522         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
45523         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
45524         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
45525         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
45526         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
45527         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
45528         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
45529         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
45530         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
45531         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
45532         HAVE_DECL_FLOORL.
45533
45534 2007-10-28  Bruno Haible  <bruno@clisp.org>
45535
45536         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
45537         gl_FUNC_FLOORL. Cache the result.
45538         (gl_FUNC_FLOORL): Use it.
45539         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
45540         gl_FUNC_CEILL. Cache the result.
45541         (gl_FUNC_CEILL): Use it.
45542
45543         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
45544         gl_FUNC_FLOOR. Cache the result.
45545         (gl_FUNC_FLOOR): Use it.
45546         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
45547         gl_FUNC_CEIL. Cache the result.
45548         (gl_FUNC_CEIL): Use it.
45549
45550         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
45551         gl_FUNC_FLOORF. Cache the result.
45552         (gl_FUNC_FLOORF): Use it.
45553         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
45554         gl_FUNC_CEILF. Cache the result.
45555         (gl_FUNC_CEILF): Use it.
45556
45557 2007-10-28  Bruno Haible  <bruno@clisp.org>
45558
45559         * gnulib-tool: Allow specifying the LGPL version number through
45560         --lgpl=2 or --lgpl=3.
45561         (func_usage): Document --lgpl with argument.
45562         Handle --lgpl=... arguments.
45563         (func_import): Recognize also gl_LGPL calls with an argument. When
45564         --lgpl=2 is used and the module's license is just LGPL, report an
45565         error. Set sed_transform_lib_file according to the lgpl variable. In
45566         the generated files, use --lgpl or gl_LGPL invocations with argument,
45567         if necessary.
45568         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
45569         an LGPv2+ license.
45570         * doc/gnulib-tool.texi (Modified imports): Update explanation of
45571         gl_LGPL macro.
45572
45573 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45574             Bruno Haible  <bruno@clisp.org>
45575
45576         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
45577         (u16_uctomb_aux): Likewise.
45578         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
45579         !HAVE_INLINE.
45580         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
45581
45582 2007-10-28  Bruno Haible  <bruno@clisp.org>
45583
45584         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
45585         Invoke AM_GETTEXT_OPTION if it exists.
45586         * modules/vasprintf: Likewise.
45587         * modules/verror: Likewise.
45588         * modules/xprintf: Likewise.
45589         * modules/xvasprintf: Likewise.
45590
45591 2007-10-27  Ben Pfaff  <blp@gnu.org>
45592
45593         * lib/math.in.h: Define isfinite macro and prototypes for
45594         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
45595         implementations.
45596         * m4/math_h.m4: New substitutions for isfinite module.
45597         * lib/isfinite.c: New file.
45598         * m4/isfinite.m4: New file.
45599         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
45600         * modules/isfinite: New file.
45601         * modules/isfinite-tests: New file.
45602         * tests/tests-isfinite.c: New file.
45603         * doc/functions/isfinite.texi: Mention isfinite module.
45604         * MODULES.html.sh: Mention new module.
45605
45606 2007-10-27  Ben Pfaff  <blp@gnu.org>
45607
45608         Ralf Wildenhues reported that Tru64 4.0D declares the round
45609         functions but does not have definitions.
45610         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
45611         cannot be found in any library, set the output variable to
45612         "missing" instead of "".
45613         * m4/round.m4: Also use our substitute if we cannot find round in
45614         any library, even if it is declared.
45615         * m4/roundf.m4: Likewise for roundf.
45616         * m4/roundl.m4: Likewise for roundl.
45617         * lib/math.in.h: Undefine roundf, round, roundl before defining
45618         their replacements, to allow for hypothetical systems where these
45619         may be defined as macros but not available in libraries.
45620
45621 2007-10-27  Bruno Haible  <bruno@clisp.org>
45622
45623         * doc/gnulib.texi: Invoke @firstparagraphindent.
45624         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
45625         changes in gnulib.
45626         (Source changes): New section.
45627
45628 2007-10-26  Bruno Haible  <bruno@clisp.org>
45629
45630         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
45631         borrowed from autoconf.
45632
45633 2007-10-26  Bruno Haible  <bruno@clisp.org>
45634
45635         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
45636         strerror returned the empty string. Needed on HP-UX 11.00.
45637
45638 2007-10-24  Micah Cowan  <micah@cowan.name>
45639
45640         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
45641         * build-aux/bootstrap: Remove support for now-unnecessary option,
45642         --cvs-user, and envvars CVS_USER, CVS_RSH.
45643
45644 2007-10-24  Jim Meyering  <meyering@redhat.com>
45645
45646         Avoid diagnostics from sha1sum when there is no cached checksum.
45647         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
45648         if the po.s1 file hasn't been created yet.
45649
45650         * build-aux/bootstrap: Sync from coreutils:
45651         2007-10-24  Jim Meyering  <meyering@redhat.com>
45652         Get gnulib from the git repository, not from an obsolete cvs one.
45653         * build-aux/bootstrap: Suggestion from Micah Cowan.
45654         2007-10-04  Jim Meyering  <jim@meyering.net>
45655         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
45656         (update_po_files): Work also when there are no .po files in po/.
45657
45658 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
45659
45660         * README: Append ".git" to git and cg examples.
45661         Problem reported by Benoit Sigoure.
45662
45663 2007-10-23  Micah Cowan  <micah@cowan.name>
45664
45665         * users.txt: Add wget.
45666
45667 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45668
45669         Fix linking of some unistdio tests on FreeBSD.
45670         * modules/unistdio/u16-vsnprintf-tests
45671         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
45672         * modules/unistdio/u16-vsprintf-tests
45673         (test_u16_vsnprintf1_LDADD): Likewise.
45674         * modules/unistdio/u32-vsnprintf-tests
45675         (test_u32_vsnprintf1_LDADD): Likewise.
45676         * modules/unistdio/u32-vsprintf-tests
45677         (test_u32_vsprintf1_LDADD): Likewise.
45678         * modules/unistdio/u8-vsnprintf-tests
45679         (test_u8_vsnprintf1_LDADD): Likewise.
45680         * modules/unistdio/u8-vsprintf-tests
45681         (test_u8_vsprintf1_LDADD): Likewise.
45682         * modules/unistdio/ulc-vsnprintf-tests
45683         (test_ulc_vsnprintf1_LDADD): Likewise.
45684         * modules/unistdio/ulc-vsprintf-tests
45685         (test_ulc_vsprintf1_LDADD): Likewise.
45686
45687         Fix linking of some uniconv tests on FreeBSD.
45688         * modules/uniconv/u16-conv-from-enc-tests
45689         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
45690         * modules/uniconv/u16-conv-to-enc-tests
45691         (test_u16_conv_to_enc_LDADD): Likewise.
45692         * modules/uniconv/u16-strconv-from-enc-tests
45693         (test_u16_strconv_from_enc_LDADD): Likewise.
45694         * modules/uniconv/u16-strconv-to-enc-tests
45695         (test_u16_strconv_to_enc_LDADD): Likewise.
45696         * modules/uniconv/u32-conv-from-enc-tests
45697         (test_u32_conv_from_enc_LDADD): Likewise.
45698         * modules/uniconv/u32-conv-to-enc-tests
45699         (test_u32_conv_to_enc_LDADD): Likewise.
45700         * modules/uniconv/u32-strconv-from-enc-tests
45701         (test_u32_strconv_from_enc_LDADD): Likewise.
45702         * modules/uniconv/u32-strconv-to-enc-tests
45703         (test_u32_strconv_to_enc_LDADD): Likewise.
45704         * modules/uniconv/u8-conv-from-enc-tests
45705         (test_u8_conv_from_enc_LDADD): Likewise.
45706         * modules/uniconv/u8-conv-to-enc-tests
45707         (test_u8_conv_to_enc_LDADD): Likewise.
45708         * modules/uniconv/u8-strconv-from-enc-tests
45709         (test_u8_strconv_from_enc_LDADD): Likewise.
45710         * modules/uniconv/u8-strconv-to-enc-tests
45711         (test_u8_strconv_to_enc_LDADD): Likewise.
45712
45713 2007-10-22  Bruno Haible  <bruno@clisp.org>
45714
45715         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
45716         size.
45717
45718 2007-10-22  Eric Blake  <ebb9@byu.net>
45719
45720         Tweak x*printf documentation.
45721         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
45722         variable name and comments.
45723         Suggested by Bruno Haible.
45724
45725 2007-10-22  Bruno Haible  <bruno@clisp.org>
45726
45727         * lib/acl.c (copy_acl): Fix file name in comment.
45728
45729 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
45730
45731         Fix Tru64 problem with stdbool.h.
45732         * lib/stdbool.in.h (false, true):
45733         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
45734         Don't declare as an enum in this situation; it runs afoul of Tru64.
45735         Problem reported by Steven M. Schweda in
45736         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
45737
45738 2007-10-22  Eric Blake  <ebb9@byu.net>
45739
45740         Also wrap vf?printf.
45741         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
45742         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
45743         (xvprintf, xvfprintf): New functions.
45744
45745 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45746
45747         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
45748         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
45749
45750         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
45751         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
45752
45753 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
45754
45755         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
45756         by Bruno Haible.
45757
45758 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45759
45760         * lib/getloadavg.c
45761         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
45762         Undef `sys' after including sys/table.h, for Tru64 4.0D.
45763
45764         * tests/test-i-ring.c: Work for C89.
45765
45766 2007-10-22  Bruno Haible  <bruno@clisp.org>
45767
45768         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
45769         -1u, in preprocessor expression, so that we don't test for the bug
45770         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
45771         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
45772
45773 2007-10-22  Eric Blake  <ebb9@byu.net>
45774
45775         * tests/test-yesno.sh: Silence stderr during test.
45776
45777 2007-10-22  Simon Josefsson  <simon@josefsson.org>
45778
45779         * modules/crypto/gc-camellia: New file.
45780
45781         * m4/gc-camellia.m4: New file.
45782
45783         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
45784
45785         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
45786
45787 2007-10-22  Simon Josefsson  <simon@josefsson.org>
45788
45789         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
45790         --help to stdout.  Reported by sms@antinode.org (Steven
45791         M. Schweda).
45792
45793 2007-10-22  Simon Josefsson  <simon@josefsson.org>
45794
45795         * users.txt: Fix link to libksba.
45796
45797 2007-10-21  Ben Pfaff  <blp@gnu.org>
45798
45799         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
45800         round.c roundf implementation that depends on floorf and ceilf to
45801         be tested unconditionally.
45802
45803 2007-10-21  Ben Pfaff  <blp@gnu.org>
45804
45805         * m4/check-libm-func.m4: Removed.
45806         * m4/check-math-lib.m4: New file.
45807         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
45808         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
45809         definition and lack of AC_LIBOBJ([roundf]).
45810         * m4/roundl.m4: Ditto, and similarly for roundl.
45811         * modules/round: Reference new m4 file.
45812         * modules/roundf: Ditto.
45813         * modules/roundl: Ditto.
45814         * tests/test-round2.c (main): Use ROUND instead of round.
45815         Bug report from Bruno Haible.
45816
45817 2007-10-21  Bruno Haible  <bruno@clisp.org>
45818
45819         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
45820         context.
45821
45822 2007-10-21  Bruno Haible  <bruno@clisp.org>
45823
45824         * tests/test-wcwidth.c (main): Allow negative result for some control
45825         characters.
45826
45827         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
45828         Needed on OSF/1 5.1.
45829
45830 2007-10-21  Bruno Haible  <bruno@clisp.org>
45831
45832         * tests/test-floorf1.c: Include isnanf.h.
45833         (main): Use isnanf() instead of isnan().
45834         * tests/test-ceilf1.c: Include isnanf.h.
45835         (main): Use isnanf() instead of isnan().
45836         * tests/test-truncf1.c: Include isnanf.h.
45837         (main): Use isnanf() instead of isnan().
45838         * tests/test-roundf1.c: Include isnanf.h.
45839         (main): Use isnanf() instead of isnan().
45840
45841 2007-10-21  Eric Blake  <ebb9@byu.net>
45842
45843         * users.txt: Update URL for m4.
45844
45845 2007-10-21  Bruno Haible  <bruno@clisp.org>
45846
45847         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
45848
45849 2007-10-21  Bruno Haible  <bruno@clisp.org>
45850
45851         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
45852         Git's management files if the CVS files are not present.
45853
45854 2007-10-20  Bruno Haible  <bruno@clisp.org>
45855
45856         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
45857         gcc-3.4.x.
45858
45859 2007-10-20  Ben Pfaff  <blp@gnu.org>
45860
45861         * lib/math.in.h: Declare round, roundf, roundl if we are providing
45862         implementations.
45863         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
45864         * lib/round.c: New file.
45865         * lib/roundf.c: New file.
45866         * lib/roundl.c: New file.
45867         * m4/round.m4: New file.
45868         * m4/roundf.m4: New file.
45869         * m4/roundl.m4: New file.
45870         * m4/check-libm-func-m4: New file.
45871         * modules/math: Replace round, roundf, roundl related @VARS@ in
45872         math.in.h.
45873         * modules/round: New file.
45874         * modules/round-tests: New file.
45875         * modules/roundf: New file.
45876         * modules/roundf-tests: New file.
45877         * modules/roundl: New file.
45878         * modules/roundl-tests: New file.
45879         * tests/test-round1.c: New file.
45880         * tests/test-round2.c: New file.
45881         * tests/test-roundf1.c: New file.
45882         * tests/test-roundf2.c: New file.
45883         * tests/test-roundl.c: New file.
45884         * doc/functions/round.texi: Mention round module.
45885         * doc/functions/roundf.texi: Mention roundf module.
45886         * doc/functions/roundl.texi: Mention roundl module.
45887         * MODULES.html.sh: Mention new modules.
45888         Thanks to Bruno Haible for suggestions.
45889
45890 2007-10-20  Jim Meyering  <meyering@redhat.com>
45891
45892         * lib/xprintf.c: Include <config.h> unconditionally.
45893
45894         Change xprintf's license to GPL.
45895         * modules/xprintf (License): s/LGPL/GPL/, since this module
45896         depends on modules (exit and exitfail) which are GPL.
45897         Suggestion from Bruno Haible.
45898
45899         xprintf fixes.
45900         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
45901         Use a clearer diagnostic.
45902         Patch from Bruno Haible.
45903
45904 2007-10-20  Bruno Haible  <bruno@clisp.org>
45905
45906         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
45907         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
45908         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
45909
45910 2007-10-20  Bruno Haible  <bruno@clisp.org>
45911
45912         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
45913         precision in the comparison result > x - 1 or similar.
45914         * tests/test-ceilf2.c (correct_result_p): Likewise.
45915         * tests/test-truncf2.c (correct_result_p): Likewise.
45916         * tests/test-trunc2.c (correct_result_p): Likewise.
45917         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
45918
45919 2007-10-20  Bruno Haible  <bruno@clisp.org>
45920
45921         * modules/ceil: New file.
45922         * m4/ceil.m4: New file.
45923         * doc/functions/ceil.texi: Mention the 'ceil' module.
45924
45925 2007-10-20  Bruno Haible  <bruno@clisp.org>
45926
45927         * modules/floor: New file.
45928         * m4/floor.m4: New file.
45929         * doc/functions/floor.texi: Mention the 'floor' module.
45930
45931 2007-10-20  Bruno Haible  <bruno@clisp.org>
45932
45933         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
45934         of %a.
45935         * modules/floorf-tests (Depends-on): Likewise.
45936         * modules/truncf-tests (Depends-on): Likewise.
45937         * modules/trunc-tests (Depends-on): Likewise.
45938         Reported by Ben Pfaff.
45939
45940 2007-10-19  Jim Meyering  <meyering@redhat.com>
45941
45942         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
45943         Don't bother testing specific errno values.  Just test ferror.
45944
45945         New module: xprintf
45946         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
45947
45948 2007-10-19  Bruno Haible  <bruno@clisp.org>
45949
45950         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
45951         syntax.
45952         * modules/javaexec (Makefile.am): Likewise.
45953         * modules/relocatable-prog (Makefile.am): Likewise.
45954         Suggested by Jim Meyering.
45955
45956 2007-10-18  Bruno Haible  <bruno@clisp.org>
45957
45958         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
45959         Reported by Jim Meyering.
45960
45961 2007-10-18  Eric Blake  <ebb9@byu.net>
45962
45963         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
45964
45965 2007-10-18  Bruno Haible  <bruno@clisp.org>
45966
45967         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
45968         the format string into writable memory. Needed in Fortify conditions.
45969
45970 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
45971             Bruno Haible  <bruno@clisp.org>
45972
45973         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
45974         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
45975         * modules/trim (Depends-on): Add mbchar.
45976         (configure.ac): Add gl_FUNC_MBRTOWC.
45977         (Makefile.am): Augment lib_SOURCES.
45978
45979 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
45980
45981         Modify glob.c to use fstatat and dirfd, to simplify it.
45982         Suggested by Eric Blake.
45983         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
45984         Don't include <stdbool.h>; not used.
45985         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
45986         (link_exists_p): Simplify implementation, since we can now assume
45987         dirfd and fstatat.
45988         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
45989
45990 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45991
45992         * gnulib-tool (func_get_dependencies): Fix sed script to
45993         match only tests.
45994
45995 2007-10-17  Bruno Haible  <bruno@clisp.org>
45996
45997         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
45998         allow locale names without encoding suffix.
45999         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
46000         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
46001
46002 2007-10-16  Bruno Haible  <bruno@clisp.org>
46003
46004         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
46005         * lib/getgroups.c (getgroups): Likewise.
46006         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
46007
46008 2007-10-16  Bruno Haible  <bruno@clisp.org>
46009
46010         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
46011         * modules/malloc-posix (License): Likewise.
46012         * modules/realloc-posix (License): Likewise.
46013         * modules/calloc-posix (License): Likewise.
46014         * modules/intprops (License): Change from GPL to LGPL, with
46015         Paul Eggert's approval.
46016
46017 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
46018
46019         Merge glibc changes into lib/glob.c.
46020
46021         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
46022         2007-10-15 04:59:03 UTC.  Here are the changes:
46023
46024         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
46025
46026         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
46027
46028         * lib/glob.c: Add some branch prediction throughout.
46029
46030         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
46031
46032         [BZ #5103]
46033         * lib/glob.c (glob): Recognize patterns starting \/.
46034
46035         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
46036
46037         [BZ #3996]
46038         * lib/glob.c (attribute_hidden): Define if not defined.
46039         (glob): Unescape dirname, filename or username when needed and not
46040         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
46041         is NULL.  Handle unescaped [ in pattern without closing ].
46042         Don't pass GLOB_CHECK down to recursive glob for directories.
46043         (__glob_pattern_type): New function.
46044         (__glob_pattern_p): Implement using __glob_pattern_type.
46045         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
46046         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
46047         Remove unreachable code.
46048
46049         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
46050
46051         * lib/glob.c (glob_in_dir): Add some comments and asserts to
46052         explain why there are no leaks.
46053
46054         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
46055
46056         [BZ #3253]
46057         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
46058         time, rather allocate increasingly bigger arrays of pointers, if
46059         possible with alloca, if too large with malloc.
46060
46061 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
46062
46063         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
46064         Problem reported by H.Merijn Brand in
46065         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
46066         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
46067         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
46068
46069 2007-10-15  Bruno Haible  <bruno@clisp.org>
46070
46071         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
46072         with explicit rpl_ prefix.
46073         * lib/fopen.c (fopen): Likewise.
46074         * lib/freopen.c (freopen): Likewise.
46075         * lib/iconv.c (iconv): Likewise.
46076         * lib/iconv_close.c (iconv_close): Likewise.
46077
46078 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46079
46080         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
46081
46082 2007-10-15  Bruno Haible  <bruno@clisp.org>
46083
46084         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
46085         <stddef.h> instead of <stdlib.h> since we only need NULL.
46086         Reported by Ben Pfaff <blp@cs.stanford.edu>.
46087
46088 2007-10-15  Bruno Haible  <bruno@clisp.org>
46089
46090         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
46091         Replace paragraph talking about LIBOBJS.
46092         Reported by Colin Watson <cjwatson@debian.org>.
46093
46094 2007-10-15  Bruno Haible  <bruno@clisp.org>
46095
46096         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
46097         <stdlib.h> before using NULL.
46098
46099 2007-10-15  Simon Josefsson  <simon@josefsson.org>
46100
46101         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
46102         Reported by Albert Chin <china@thewrittenword.com>.
46103
46104 2007-10-14  Bruno Haible  <bruno@clisp.org>
46105
46106         * modules/iconv_open-utf-tests: New file.
46107         * tests/test-iconv-utf.c: New file.
46108
46109         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
46110         * modules/iconv_open-utf: New file.
46111         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
46112         (iconv, iconv_close): New declarations.
46113         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
46114         be defined.
46115         (iconv_open): Add special handling of conversion between UTF-8 and
46116         UTF-{16,32}{BE,LE}.
46117         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
46118         * lib/iconv_close.c: New file.
46119         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
46120         gl_FUNC_ICONV_OPEN.
46121         (gl_FUNC_ICONV_OPEN): Use it.
46122         (gl_FUNC_ICONV_OPEN_UTF): New macro.
46123         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
46124         and REPLACE_ICONV_UTF.
46125         * modules/iconv_open (Depends-on): Add c-strcase.
46126         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
46127         ICONV_CONST.
46128         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
46129
46130 2007-10-13  Albert Chin  <china@thewrittenword.com>
46131             Bruno Haible  <bruno@clisp.org>
46132
46133         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
46134         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
46135
46136 2007-10-13  Bruno Haible  <bruno@clisp.org>
46137
46138         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
46139         defined, use the ISO C99 inline semantics.
46140         * lib/argp.h (ARGP_EI): Likewise.
46141
46142 2007-10-13  Bruno Haible  <bruno@clisp.org>
46143
46144         Handle 'inline' change in gcc 4.3.0.
46145         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
46146         argp_fmtstream_write, argp_fmtstream_set_lmargin,
46147         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
46148         argp_fmtstream_point): Disable 'extern' declaration if the function
46149         definition is going to be provided inline.
46150         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
46151         semantics, not the ISO C99 inline semantics.
46152         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
46153         'extern' declaration if the function definition is going to be provided
46154         inline.
46155         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
46156         the GNU C inline semantics, not the ISO C99 inline semantics. With
46157         GCC 4.2, avoid a warning.
46158
46159 2007-10-13  Bruno Haible  <bruno@clisp.org>
46160
46161         * lib/freading.h (freading): Enable the use of __freading for
46162         glibc >= 2.7.
46163         * lib/freading.c (freading): Likewise.
46164
46165 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
46166
46167         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
46168         "warning: C99 inline functions are not supported; using GNU89".
46169
46170 2007-10-12  Bruno Haible  <bruno@clisp.org>
46171
46172         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
46173         of 2.
46174         * tests/test-ceilf2.c: New file.
46175         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
46176
46177         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
46178         * modules/ceilf-tests: Update.
46179
46180 2007-10-12  Bruno Haible  <bruno@clisp.org>
46181
46182         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
46183         of 2.
46184         * tests/test-floorf2.c: New file.
46185         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
46186
46187         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
46188         * modules/floorf-tests: Update.
46189
46190 2007-10-12  Bruno Haible  <bruno@clisp.org>
46191
46192         * tests/test-trunc2.c: New file.
46193         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
46194
46195         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
46196         * modules/trunc-tests: Update.
46197
46198 2007-10-12  Bruno Haible  <bruno@clisp.org>
46199
46200         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
46201         of 2.
46202         * tests/test-truncf2.c: New file.
46203         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
46204
46205         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
46206         * modules/truncf-tests: Update.
46207
46208 2007-10-11  Eric Blake  <ebb9@byu.net>
46209
46210         Don't claim strerror is broken on Interix.
46211         * doc/functions/strerror.texi (strerror): Known broken systems are
46212         now Solaris 8, and not Interix.
46213         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
46214         Interix on cross-compile.
46215         Reported by Martin Koeppe in
46216         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
46217
46218 2007-10-11  Bruno Haible  <bruno@clisp.org>
46219
46220         * modules/i-ring-tests: New file.
46221         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
46222         instead of assert.
46223
46224 2007-10-11  Bruno Haible  <bruno@clisp.org>
46225
46226         * modules/filenamecat-tests: New file.
46227         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
46228         * lib/filenamecat.c: Remove test code.
46229
46230 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
46231
46232         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
46233
46234         * lib/strerror.c: Include <string.h> always, to test interface,
46235         and to remove the need for the dummy.
46236         Include intprops.h to compute width instead of doing it ourselves
46237         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
46238         (strerror): Define it to return NULL if there's no system strerror.
46239         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
46240         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
46241         ancient pre-strerror Unix systems well any more.  Saying "unknown
46242         system error" is enough.
46243         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
46244         simpler strerror.c implementation.
46245         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
46246         Simplify the tests to reflect the simpler strerror implementation.
46247         * modules/strerror (Depends-on): Add intprops.
46248
46249 2007-10-09  Eric Blake  <ebb9@byu.net>
46250
46251         Silence test-fpending.
46252         * modules/fpending-tests (Files): Add wrapper script.
46253         * tests/test-fpending.sh: New file.
46254
46255 2007-10-09  Bruno Haible  <bruno@clisp.org>
46256
46257         * MODULES.html.sh (func_module): Don't create a hyperlink for
46258         function names like 'printf_frexp'.
46259         (Misc): Add crc, memxor.
46260         (Characteristics of floating types): New section.
46261         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
46262         isnanf-nolibm, signbit, trunc, truncf, truncl.
46263         (Enhancements for ISO C 99 functions): New subsection Input/output.
46264         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
46265         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
46266         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
46267         (Compatibility checks for POSIX:2001 functions): Add clock-time.
46268         (Enhancements for POSIX:2001 functions): Add chdir-long.
46269         (File system functions): Add areadlink, chdir-safer, read-file.
46270         Remove cycle-check.
46271         (File system as inode set): New section.
46272         (Date and time): Add gethrxtime.
46273         (Multithreading): Add openmp.
46274         (Internationalization functions): Add localename.
46275         (Unicode string functions): Add unistr/u*-mbsnlen.
46276         (Support for maintaining and releasing projects): Add git-version-gen.
46277         (Lone files): Remove directories.
46278
46279 2007-10-08  Ben Pfaff  <blp@gnu.org>
46280
46281         * lib/xmalloca.h: Fix typo in comment.
46282
46283 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
46284
46285         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
46286         when avoiding problems with integer overflow.  Use a portable test
46287         instead.
46288
46289 2007-10-08  Simon Josefsson  <simon@josefsson.org>
46290
46291         * modules/dummy (License): Change to LGPLv2+.
46292         * modules/float (License): Likewise
46293         * modules/realloc (License): Likewise
46294         * modules/stdlib (License): Likewise
46295
46296 2007-10-07  Bruno Haible  <bruno@clisp.org>
46297
46298         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
46299         * floor.c (TWO_MANT_DIG): Likewise.
46300         * ceil.c (TWO_MANT_DIG): Likewise.
46301         Reported by Ben Pfaff.
46302
46303 2007-10-07  Bruno Haible  <bruno@clisp.org>
46304
46305         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
46306         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
46307         * lib/frexp.c (FUNC): Likewise.
46308         * lib/printf-frexp.h (printf_frexp): Likewise.
46309         * lib/printf-frexpl.h (printf_frexpl): Likewise.
46310         * lib/printf-frexp.c (FUNC): Likewise.
46311         Suggested by Jim Meyering.
46312
46313 2007-10-07  Jim Meyering  <meyering@redhat.com>
46314
46315         Make xnanosleep's integer overflow test more robust.
46316         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
46317         so that gcc-4.3.0 doesn't optimize away this test for overflow.
46318
46319 2007-10-07  Bruno Haible  <bruno@clisp.org>
46320
46321         * NEWS: Mention the license change.
46322
46323         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
46324         abbreviations in the modules files.
46325
46326         Change copyright notice from GPLv2+ to GPLv3+.
46327         * README: Change copyright notice.
46328         * MODULES.html.sh: Likewise.
46329         * build-aux/bootstrap.conf: Likewise.
46330         * build-aux/config.libpath: Likewise.
46331         * build-aux/csharpcomp.sh.in: Likewise.
46332         * build-aux/csharpexec.sh.in: Likewise.
46333         * build-aux/install-reloc: Likewise.
46334         * build-aux/javacomp.sh.in: Likewise.
46335         * build-aux/javaexec.sh.in: Likewise.
46336         * build-aux/ldd.sh.in: Likewise.
46337         * build-aux/reloc-ldflags: Likewise.
46338         * build-aux/relocatable.sh.in: Likewise.
46339         * build-aux/x-to-1.in: Likewise.
46340         * check-module: Likewise.
46341         * config/srclistvars.sh: Likewise.
46342         * gnulib-tool: Likewise.
46343         * lib/acl-internal.h: Likewise.
46344         * lib/acl.c: Likewise.
46345         * lib/acl.h: Likewise.
46346         * lib/acl_entries.c: Likewise.
46347         * lib/areadlink-with-size.c: Likewise.
46348         * lib/areadlink.c: Likewise.
46349         * lib/areadlink.h: Likewise.
46350         * lib/argmatch.c: Likewise.
46351         * lib/argmatch.h: Likewise.
46352         * lib/argp-ba.c: Likewise.
46353         * lib/argp-eexst.c: Likewise.
46354         * lib/argp-fmtstream.c: Likewise.
46355         * lib/argp-fmtstream.h: Likewise.
46356         * lib/argp-fs-xinl.c: Likewise.
46357         * lib/argp-help.c: Likewise.
46358         * lib/argp-namefrob.h: Likewise.
46359         * lib/argp-parse.c: Likewise.
46360         * lib/argp-pin.c: Likewise.
46361         * lib/argp-pv.c: Likewise.
46362         * lib/argp-pvh.c: Likewise.
46363         * lib/argp-xinl.c: Likewise.
46364         * lib/argp.h: Likewise.
46365         * lib/at-func.c: Likewise.
46366         * lib/atanl.c: Likewise.
46367         * lib/backupfile.c: Likewise.
46368         * lib/backupfile.h: Likewise.
46369         * lib/basename.c: Likewise.
46370         * lib/binary-io.h: Likewise.
46371         * lib/byteswap.in.h: Likewise.
46372         * lib/c-stack.c: Likewise.
46373         * lib/c-stack.h: Likewise.
46374         * lib/c-strcasestr.c: Likewise.
46375         * lib/c-strcasestr.h: Likewise.
46376         * lib/c-strstr.c: Likewise.
46377         * lib/c-strstr.h: Likewise.
46378         * lib/c-strtod.c: Likewise.
46379         * lib/calloc.c: Likewise.
46380         * lib/canon-host.c: Likewise.
46381         * lib/canon-host.h: Likewise.
46382         * lib/canonicalize-lgpl.c: Likewise.
46383         * lib/canonicalize.c: Likewise.
46384         * lib/canonicalize.h: Likewise.
46385         * lib/ceil.c: Likewise.
46386         * lib/ceilf.c: Likewise.
46387         * lib/ceill.c: Likewise.
46388         * lib/chdir-long.c: Likewise.
46389         * lib/chdir-long.h: Likewise.
46390         * lib/chdir-safer.c: Likewise.
46391         * lib/chdir-safer.h: Likewise.
46392         * lib/chown.c: Likewise.
46393         * lib/classpath.c: Likewise.
46394         * lib/classpath.h: Likewise.
46395         * lib/clean-temp.c: Likewise.
46396         * lib/clean-temp.h: Likewise.
46397         * lib/cloexec.c: Likewise.
46398         * lib/close-stream.c: Likewise.
46399         * lib/closein.c: Likewise.
46400         * lib/closein.h: Likewise.
46401         * lib/closeout.c: Likewise.
46402         * lib/closeout.h: Likewise.
46403         * lib/concat-filename.c: Likewise.
46404         * lib/copy-file.c: Likewise.
46405         * lib/copy-file.h: Likewise.
46406         * lib/count-one-bits.h: Likewise.
46407         * lib/crc.c: Likewise.
46408         * lib/crc.h: Likewise.
46409         * lib/creat-safer.c: Likewise.
46410         * lib/csharpcomp.c: Likewise.
46411         * lib/csharpcomp.h: Likewise.
46412         * lib/csharpexec.c: Likewise.
46413         * lib/csharpexec.h: Likewise.
46414         * lib/cycle-check.c: Likewise.
46415         * lib/cycle-check.h: Likewise.
46416         * lib/diacrit.c: Likewise.
46417         * lib/diacrit.h: Likewise.
46418         * lib/diffseq.h: Likewise.
46419         * lib/dirchownmod.c: Likewise.
46420         * lib/dirent.in.h: Likewise.
46421         * lib/dirfd.c: Likewise.
46422         * lib/dirfd.h: Likewise.
46423         * lib/dirname.c: Likewise.
46424         * lib/dirname.h: Likewise.
46425         * lib/dummy.c: Likewise.
46426         * lib/dup-safer.c: Likewise.
46427         * lib/dup2.c: Likewise.
46428         * lib/eealloc.h: Likewise.
46429         * lib/error.c: Likewise.
46430         * lib/error.h: Likewise.
46431         * lib/euidaccess.c: Likewise.
46432         * lib/exclude.c: Likewise.
46433         * lib/exclude.h: Likewise.
46434         * lib/execute.c: Likewise.
46435         * lib/execute.h: Likewise.
46436         * lib/exitfail.c: Likewise.
46437         * lib/exitfail.h: Likewise.
46438         * lib/expl.c: Likewise.
46439         * lib/fatal-signal.c: Likewise.
46440         * lib/fatal-signal.h: Likewise.
46441         * lib/fbufmode.c: Likewise.
46442         * lib/fbufmode.h: Likewise.
46443         * lib/fchdir.c: Likewise.
46444         * lib/fchmodat.c: Likewise.
46445         * lib/fchownat.c: Likewise.
46446         * lib/fcntl--.h: Likewise.
46447         * lib/fcntl-safer.h: Likewise.
46448         * lib/fcntl.in.h: Likewise.
46449         * lib/fd-safer.c: Likewise.
46450         * lib/fflush.c: Likewise.
46451         * lib/file-has-acl.c: Likewise.
46452         * lib/file-set.c: Likewise.
46453         * lib/file-type.c: Likewise.
46454         * lib/file-type.h: Likewise.
46455         * lib/fileblocks.c: Likewise.
46456         * lib/filemode.c: Likewise.
46457         * lib/filemode.h: Likewise.
46458         * lib/filename.h: Likewise.
46459         * lib/filenamecat.c: Likewise.
46460         * lib/filenamecat.h: Likewise.
46461         * lib/findprog.c: Likewise.
46462         * lib/findprog.h: Likewise.
46463         * lib/float.in.h: Likewise.
46464         * lib/floor.c: Likewise.
46465         * lib/floorf.c: Likewise.
46466         * lib/floorl.c: Likewise.
46467         * lib/fopen-safer.c: Likewise.
46468         * lib/fopen.c: Likewise.
46469         * lib/fpending.c: Likewise.
46470         * lib/fpending.h: Likewise.
46471         * lib/fprintf.c: Likewise.
46472         * lib/fprintftime.h: Likewise.
46473         * lib/fpucw.h: Likewise.
46474         * lib/fpurge.c: Likewise.
46475         * lib/fpurge.h: Likewise.
46476         * lib/freadable.c: Likewise.
46477         * lib/freadable.h: Likewise.
46478         * lib/freadahead.c: Likewise.
46479         * lib/freadahead.h: Likewise.
46480         * lib/freading.c: Likewise.
46481         * lib/freading.h: Likewise.
46482         * lib/free.c: Likewise.
46483         * lib/freopen.c: Likewise.
46484         * lib/frexp.c: Likewise.
46485         * lib/frexpl.c: Likewise.
46486         * lib/fseek.c: Likewise.
46487         * lib/fseterr.c: Likewise.
46488         * lib/fseterr.h: Likewise.
46489         * lib/fstatat.c: Likewise.
46490         * lib/fstrcmp.c: Likewise.
46491         * lib/fstrcmp.h: Likewise.
46492         * lib/fsusage.c: Likewise.
46493         * lib/fsusage.h: Likewise.
46494         * lib/ftell.c: Likewise.
46495         * lib/ftello.c: Likewise.
46496         * lib/fts-cycle.c: Likewise.
46497         * lib/fts.c: Likewise.
46498         * lib/fts_.h: Likewise.
46499         * lib/full-read.c: Likewise.
46500         * lib/full-read.h: Likewise.
46501         * lib/full-write.c: Likewise.
46502         * lib/full-write.h: Likewise.
46503         * lib/fwritable.c: Likewise.
46504         * lib/fwritable.h: Likewise.
46505         * lib/fwriteerror.c: Likewise.
46506         * lib/fwriteerror.h: Likewise.
46507         * lib/fwriting.c: Likewise.
46508         * lib/fwriting.h: Likewise.
46509         * lib/gcd.c: Likewise.
46510         * lib/gcd.h: Likewise.
46511         * lib/getcwd.c: Likewise.
46512         * lib/getdate.h: Likewise.
46513         * lib/getdate.y: Likewise.
46514         * lib/getdomainname.c: Likewise.
46515         * lib/getdomainname.h: Likewise.
46516         * lib/getgroups.c: Likewise.
46517         * lib/gethostname.c: Likewise.
46518         * lib/gethrxtime.c: Likewise.
46519         * lib/gethrxtime.h: Likewise.
46520         * lib/getloadavg.c: Likewise.
46521         * lib/getndelim2.c: Likewise.
46522         * lib/getndelim2.h: Likewise.
46523         * lib/getnline.c: Likewise.
46524         * lib/getnline.h: Likewise.
46525         * lib/getopt.c: Likewise.
46526         * lib/getopt.in.h: Likewise.
46527         * lib/getopt1.c: Likewise.
46528         * lib/getopt_int.h: Likewise.
46529         * lib/getpagesize.h: Likewise.
46530         * lib/getsubopt.c: Likewise.
46531         * lib/gettime.c: Likewise.
46532         * lib/getugroups.c: Likewise.
46533         * lib/getugroups.h: Likewise.
46534         * lib/getusershell.c: Likewise.
46535         * lib/gl_anyavltree_list1.h: Likewise.
46536         * lib/gl_anyavltree_list2.h: Likewise.
46537         * lib/gl_anyhash_list1.h: Likewise.
46538         * lib/gl_anyhash_list2.h: Likewise.
46539         * lib/gl_anylinked_list1.h: Likewise.
46540         * lib/gl_anylinked_list2.h: Likewise.
46541         * lib/gl_anyrbtree_list1.h: Likewise.
46542         * lib/gl_anyrbtree_list2.h: Likewise.
46543         * lib/gl_anytree_list1.h: Likewise.
46544         * lib/gl_anytree_list2.h: Likewise.
46545         * lib/gl_anytree_oset.h: Likewise.
46546         * lib/gl_anytreehash_list1.h: Likewise.
46547         * lib/gl_anytreehash_list2.h: Likewise.
46548         * lib/gl_array_list.c: Likewise.
46549         * lib/gl_array_list.h: Likewise.
46550         * lib/gl_array_oset.c: Likewise.
46551         * lib/gl_array_oset.h: Likewise.
46552         * lib/gl_avltree_list.c: Likewise.
46553         * lib/gl_avltree_list.h: Likewise.
46554         * lib/gl_avltree_oset.c: Likewise.
46555         * lib/gl_avltree_oset.h: Likewise.
46556         * lib/gl_avltreehash_list.c: Likewise.
46557         * lib/gl_avltreehash_list.h: Likewise.
46558         * lib/gl_carray_list.c: Likewise.
46559         * lib/gl_carray_list.h: Likewise.
46560         * lib/gl_linked_list.c: Likewise.
46561         * lib/gl_linked_list.h: Likewise.
46562         * lib/gl_linkedhash_list.c: Likewise.
46563         * lib/gl_linkedhash_list.h: Likewise.
46564         * lib/gl_list.c: Likewise.
46565         * lib/gl_list.h: Likewise.
46566         * lib/gl_oset.c: Likewise.
46567         * lib/gl_oset.h: Likewise.
46568         * lib/gl_rbtree_list.c: Likewise.
46569         * lib/gl_rbtree_list.h: Likewise.
46570         * lib/gl_rbtree_oset.c: Likewise.
46571         * lib/gl_rbtree_oset.h: Likewise.
46572         * lib/gl_rbtreehash_list.c: Likewise.
46573         * lib/gl_rbtreehash_list.h: Likewise.
46574         * lib/gl_sublist.c: Likewise.
46575         * lib/gl_sublist.h: Likewise.
46576         * lib/group-member.c: Likewise.
46577         * lib/group-member.h: Likewise.
46578         * lib/hard-locale.c: Likewise.
46579         * lib/hard-locale.h: Likewise.
46580         * lib/hash-pjw.c: Likewise.
46581         * lib/hash-pjw.h: Likewise.
46582         * lib/hash-triple.c: Likewise.
46583         * lib/hash.c: Likewise.
46584         * lib/hash.h: Likewise.
46585         * lib/human.c: Likewise.
46586         * lib/human.h: Likewise.
46587         * lib/i-ring.c: Likewise.
46588         * lib/i-ring.h: Likewise.
46589         * lib/idcache.c: Likewise.
46590         * lib/imaxabs.c: Likewise.
46591         * lib/imaxdiv.c: Likewise.
46592         * lib/inet_pton.c: Likewise.
46593         * lib/inet_pton.h: Likewise.
46594         * lib/intprops.h: Likewise.
46595         * lib/inttostr.c: Likewise.
46596         * lib/inttostr.h: Likewise.
46597         * lib/inttypes.in.h: Likewise.
46598         * lib/isapipe.c: Likewise.
46599         * lib/isdir.c: Likewise.
46600         * lib/isnan.c: Likewise.
46601         * lib/isnan.h: Likewise.
46602         * lib/isnanf.c: Likewise.
46603         * lib/isnanf.h: Likewise.
46604         * lib/isnanl-nolibm.h: Likewise.
46605         * lib/isnanl.c: Likewise.
46606         * lib/isnanl.h: Likewise.
46607         * lib/javacomp.c: Likewise.
46608         * lib/javacomp.h: Likewise.
46609         * lib/javaexec.c: Likewise.
46610         * lib/javaexec.h: Likewise.
46611         * lib/javaversion.c: Likewise.
46612         * lib/javaversion.h: Likewise.
46613         * lib/javaversion.java: Likewise.
46614         * lib/lbrkprop.h: Likewise.
46615         * lib/lchmod.h: Likewise.
46616         * lib/lchown.c: Likewise.
46617         * lib/ldexpl.c: Likewise.
46618         * lib/linebreak.c: Likewise.
46619         * lib/linebreak.h: Likewise.
46620         * lib/linebuffer.c: Likewise.
46621         * lib/linebuffer.h: Likewise.
46622         * lib/locale.in.h: Likewise.
46623         * lib/logl.c: Likewise.
46624         * lib/long-options.c: Likewise.
46625         * lib/long-options.h: Likewise.
46626         * lib/lstat.c: Likewise.
46627         * lib/lstat.h: Likewise.
46628         * lib/math.in.h: Likewise.
46629         * lib/mbchar.c: Likewise.
46630         * lib/mbchar.h: Likewise.
46631         * lib/mbfile.h: Likewise.
46632         * lib/mbiter.h: Likewise.
46633         * lib/mbscasecmp.c: Likewise.
46634         * lib/mbscasestr.c: Likewise.
46635         * lib/mbschr.c: Likewise.
46636         * lib/mbscspn.c: Likewise.
46637         * lib/mbslen.c: Likewise.
46638         * lib/mbsncasecmp.c: Likewise.
46639         * lib/mbsnlen.c: Likewise.
46640         * lib/mbspbrk.c: Likewise.
46641         * lib/mbspcasecmp.c: Likewise.
46642         * lib/mbsrchr.c: Likewise.
46643         * lib/mbssep.c: Likewise.
46644         * lib/mbsspn.c: Likewise.
46645         * lib/mbsstr.c: Likewise.
46646         * lib/mbstok_r.c: Likewise.
46647         * lib/mbswidth.c: Likewise.
46648         * lib/mbswidth.h: Likewise.
46649         * lib/mbuiter.h: Likewise.
46650         * lib/memcasecmp.c: Likewise.
46651         * lib/memcasecmp.h: Likewise.
46652         * lib/memchr.c: Likewise.
46653         * lib/memcmp.c: Likewise.
46654         * lib/memcoll.c: Likewise.
46655         * lib/memcoll.h: Likewise.
46656         * lib/memcpy.c: Likewise.
46657         * lib/memrchr.c: Likewise.
46658         * lib/mkancesdirs.c: Likewise.
46659         * lib/mkdir-p.c: Likewise.
46660         * lib/mkdir-p.h: Likewise.
46661         * lib/mkdir.c: Likewise.
46662         * lib/mkdirat.c: Likewise.
46663         * lib/mkdtemp.c: Likewise.
46664         * lib/mkstemp-safer.c: Likewise.
46665         * lib/mkstemp.c: Likewise.
46666         * lib/modechange.c: Likewise.
46667         * lib/modechange.h: Likewise.
46668         * lib/mountlist.c: Likewise.
46669         * lib/mountlist.h: Likewise.
46670         * lib/mpsort.c: Likewise.
46671         * lib/nanosleep.c: Likewise.
46672         * lib/obstack.c: Likewise.
46673         * lib/obstack.h: Likewise.
46674         * lib/open-safer.c: Likewise.
46675         * lib/open.c: Likewise.
46676         * lib/openat-die.c: Likewise.
46677         * lib/openat-priv.h: Likewise.
46678         * lib/openat-proc.c: Likewise.
46679         * lib/openat.c: Likewise.
46680         * lib/openat.h: Likewise.
46681         * lib/pagealign_alloc.c: Likewise.
46682         * lib/pagealign_alloc.h: Likewise.
46683         * lib/physmem.c: Likewise.
46684         * lib/physmem.h: Likewise.
46685         * lib/pipe-safer.c: Likewise.
46686         * lib/pipe.c: Likewise.
46687         * lib/pipe.h: Likewise.
46688         * lib/posixtm.c: Likewise.
46689         * lib/posixtm.h: Likewise.
46690         * lib/posixver.c: Likewise.
46691         * lib/printf-frexp.c: Likewise.
46692         * lib/printf-frexp.h: Likewise.
46693         * lib/printf-frexpl.c: Likewise.
46694         * lib/printf-frexpl.h: Likewise.
46695         * lib/printf.c: Likewise.
46696         * lib/progname.c: Likewise.
46697         * lib/progname.h: Likewise.
46698         * lib/progreloc.c: Likewise.
46699         * lib/putenv.c: Likewise.
46700         * lib/quote.c: Likewise.
46701         * lib/quote.h: Likewise.
46702         * lib/quotearg.c: Likewise.
46703         * lib/quotearg.h: Likewise.
46704         * lib/raise.c: Likewise.
46705         * lib/readline.c: Likewise.
46706         * lib/readline.h: Likewise.
46707         * lib/readlink.c: Likewise.
46708         * lib/readtokens.c: Likewise.
46709         * lib/readtokens.h: Likewise.
46710         * lib/readtokens0.c: Likewise.
46711         * lib/readtokens0.h: Likewise.
46712         * lib/readutmp.c: Likewise.
46713         * lib/readutmp.h: Likewise.
46714         * lib/realloc.c: Likewise.
46715         * lib/relocwrapper.c: Likewise.
46716         * lib/rename-dest-slash.c: Likewise.
46717         * lib/rename.c: Likewise.
46718         * lib/rmdir.c: Likewise.
46719         * lib/rpmatch.c: Likewise.
46720         * lib/safe-read.c: Likewise.
46721         * lib/safe-read.h: Likewise.
46722         * lib/safe-write.c: Likewise.
46723         * lib/safe-write.h: Likewise.
46724         * lib/same-inode.h: Likewise.
46725         * lib/same.c: Likewise.
46726         * lib/same.h: Likewise.
46727         * lib/save-cwd.c: Likewise.
46728         * lib/save-cwd.h: Likewise.
46729         * lib/savedir.c: Likewise.
46730         * lib/savedir.h: Likewise.
46731         * lib/savewd.c: Likewise.
46732         * lib/savewd.h: Likewise.
46733         * lib/search.in.h: Likewise.
46734         * lib/setenv.c: Likewise.
46735         * lib/setenv.h: Likewise.
46736         * lib/settime.c: Likewise.
46737         * lib/sh-quote.c: Likewise.
46738         * lib/sh-quote.h: Likewise.
46739         * lib/sig2str.c: Likewise.
46740         * lib/sig2str.h: Likewise.
46741         * lib/signal.in.h: Likewise.
46742         * lib/signbitd.c: Likewise.
46743         * lib/signbitf.c: Likewise.
46744         * lib/signbitl.c: Likewise.
46745         * lib/sigprocmask.c: Likewise.
46746         * lib/sincosl.c: Likewise.
46747         * lib/sleep.c: Likewise.
46748         * lib/sprintf.c: Likewise.
46749         * lib/sqrtl.c: Likewise.
46750         * lib/stat-time.h: Likewise.
46751         * lib/stdio--.h: Likewise.
46752         * lib/stdio-safer.h: Likewise.
46753         * lib/stdlib--.h: Likewise.
46754         * lib/stdlib-safer.h: Likewise.
46755         * lib/stdlib.in.h: Likewise.
46756         * lib/stpcpy.c: Likewise.
46757         * lib/stpncpy.c: Likewise.
46758         * lib/strchrnul.c: Likewise.
46759         * lib/strcspn.c: Likewise.
46760         * lib/strerror.c: Likewise.
46761         * lib/strftime.c: Likewise.
46762         * lib/strftime.h: Likewise.
46763         * lib/striconveh.c: Likewise.
46764         * lib/striconveh.h: Likewise.
46765         * lib/striconveha.c: Likewise.
46766         * lib/striconveha.h: Likewise.
46767         * lib/stripslash.c: Likewise.
46768         * lib/strnlen1.c: Likewise.
46769         * lib/strnlen1.h: Likewise.
46770         * lib/strtod.c: Likewise.
46771         * lib/strtoimax.c: Likewise.
46772         * lib/strtok_r.c: Likewise.
46773         * lib/strtol.c: Likewise.
46774         * lib/strtoll.c: Likewise.
46775         * lib/strtoul.c: Likewise.
46776         * lib/strtoull.c: Likewise.
46777         * lib/sysexits.in.h: Likewise.
46778         * lib/tempname.c: Likewise.
46779         * lib/tempname.h: Likewise.
46780         * lib/timespec.h: Likewise.
46781         * lib/tls.c: Likewise.
46782         * lib/tls.h: Likewise.
46783         * lib/tmpdir.c: Likewise.
46784         * lib/tmpdir.h: Likewise.
46785         * lib/tmpfile-safer.c: Likewise.
46786         * lib/tmpfile.c: Likewise.
46787         * lib/trigl.c: Likewise.
46788         * lib/trigl.h: Likewise.
46789         * lib/trim.c: Likewise.
46790         * lib/trim.h: Likewise.
46791         * lib/trunc.c: Likewise.
46792         * lib/truncf.c: Likewise.
46793         * lib/truncl.c: Likewise.
46794         * lib/tsearch.c: Likewise.
46795         * lib/unicodeio.c: Likewise.
46796         * lib/unicodeio.h: Likewise.
46797         * lib/unistd--.h: Likewise.
46798         * lib/unistd-safer.h: Likewise.
46799         * lib/unistdio/ulc-fprintf.c: Likewise.
46800         * lib/unistdio/ulc-vfprintf.c: Likewise.
46801         * lib/unlinkdir.c: Likewise.
46802         * lib/unlinkdir.h: Likewise.
46803         * lib/unlocked-io.h: Likewise.
46804         * lib/unsetenv.c: Likewise.
46805         * lib/userspec.c: Likewise.
46806         * lib/utime.c: Likewise.
46807         * lib/utimecmp.c: Likewise.
46808         * lib/utimecmp.h: Likewise.
46809         * lib/utimens.c: Likewise.
46810         * lib/verify.h: Likewise.
46811         * lib/verror.c: Likewise.
46812         * lib/verror.h: Likewise.
46813         * lib/version-etc-fsf.c: Likewise.
46814         * lib/version-etc.c: Likewise.
46815         * lib/version-etc.h: Likewise.
46816         * lib/vfprintf.c: Likewise.
46817         * lib/vprintf.c: Likewise.
46818         * lib/vsprintf.c: Likewise.
46819         * lib/w32spawn.h: Likewise.
46820         * lib/wait-process.c: Likewise.
46821         * lib/wait-process.h: Likewise.
46822         * lib/wcwidth.c: Likewise.
46823         * lib/write-any-file.c: Likewise.
46824         * lib/xalloc-die.c: Likewise.
46825         * lib/xalloc.h: Likewise.
46826         * lib/xasprintf.c: Likewise.
46827         * lib/xgetcwd.c: Likewise.
46828         * lib/xgetcwd.h: Likewise.
46829         * lib/xgetdomainname.c: Likewise.
46830         * lib/xgetdomainname.h: Likewise.
46831         * lib/xgethostname.c: Likewise.
46832         * lib/xmalloc.c: Likewise.
46833         * lib/xmalloca.c: Likewise.
46834         * lib/xmalloca.h: Likewise.
46835         * lib/xmemcoll.c: Likewise.
46836         * lib/xnanosleep.c: Likewise.
46837         * lib/xreadlink.c: Likewise.
46838         * lib/xreadlink.h: Likewise.
46839         * lib/xsetenv.c: Likewise.
46840         * lib/xsetenv.h: Likewise.
46841         * lib/xstriconv.c: Likewise.
46842         * lib/xstriconv.h: Likewise.
46843         * lib/xstrndup.c: Likewise.
46844         * lib/xstrndup.h: Likewise.
46845         * lib/xstrtod.c: Likewise.
46846         * lib/xstrtod.h: Likewise.
46847         * lib/xstrtol-error.c: Likewise.
46848         * lib/xstrtol.c: Likewise.
46849         * lib/xstrtol.h: Likewise.
46850         * lib/xtime.h: Likewise.
46851         * lib/xvasprintf.c: Likewise.
46852         * lib/xvasprintf.h: Likewise.
46853         * lib/yesno.c: Likewise.
46854         * lib/yesno.h: Likewise.
46855         * posix-modules: Likewise.
46856         * tests/test-alloca-opt.c: Likewise.
46857         * tests/test-arcfour.c: Likewise.
46858         * tests/test-arctwo.c: Likewise.
46859         * tests/test-argmatch.c: Likewise.
46860         * tests/test-argp-2.sh: Likewise.
46861         * tests/test-argp.c: Likewise.
46862         * tests/test-arpa_inet.c: Likewise.
46863         * tests/test-array_list.c: Likewise.
46864         * tests/test-array_oset.c: Likewise.
46865         * tests/test-atexit.c: Likewise.
46866         * tests/test-avltree_list.c: Likewise.
46867         * tests/test-avltree_oset.c: Likewise.
46868         * tests/test-avltreehash_list.c: Likewise.
46869         * tests/test-base64.c: Likewise.
46870         * tests/test-binary-io.c: Likewise.
46871         * tests/test-byteswap.c: Likewise.
46872         * tests/test-c-ctype.c: Likewise.
46873         * tests/test-c-strcasecmp.c: Likewise.
46874         * tests/test-c-strcasestr.c: Likewise.
46875         * tests/test-c-strncasecmp.c: Likewise.
46876         * tests/test-c-strstr.c: Likewise.
46877         * tests/test-canonicalize-lgpl.c: Likewise.
46878         * tests/test-canonicalize.c: Likewise.
46879         * tests/test-carray_list.c: Likewise.
46880         * tests/test-ceilf.c: Likewise.
46881         * tests/test-ceill.c: Likewise.
46882         * tests/test-count-one-bits.c: Likewise.
46883         * tests/test-crc.c: Likewise.
46884         * tests/test-dirname.c: Likewise.
46885         * tests/test-fbufmode.c: Likewise.
46886         * tests/test-fcntl.c: Likewise.
46887         * tests/test-fflush.c: Likewise.
46888         * tests/test-floorf.c: Likewise.
46889         * tests/test-floorl.c: Likewise.
46890         * tests/test-fopen.c: Likewise.
46891         * tests/test-fprintf-posix.c: Likewise.
46892         * tests/test-fprintf-posix.h: Likewise.
46893         * tests/test-fpurge.c: Likewise.
46894         * tests/test-freadable.c: Likewise.
46895         * tests/test-freadahead.c: Likewise.
46896         * tests/test-freading.c: Likewise.
46897         * tests/test-freopen.c: Likewise.
46898         * tests/test-frexp.c: Likewise.
46899         * tests/test-frexpl.c: Likewise.
46900         * tests/test-fseek.c: Likewise.
46901         * tests/test-fseeko.c: Likewise.
46902         * tests/test-fseterr.c: Likewise.
46903         * tests/test-fstrcmp.c: Likewise.
46904         * tests/test-ftell.c: Likewise.
46905         * tests/test-ftello.c: Likewise.
46906         * tests/test-fwritable.c: Likewise.
46907         * tests/test-fwriting.c: Likewise.
46908         * tests/test-getaddrinfo.c: Likewise.
46909         * tests/test-getpass.c: Likewise.
46910         * tests/test-gettimeofday.c: Likewise.
46911         * tests/test-hmac-md5.c: Likewise.
46912         * tests/test-hmac-sha1.c: Likewise.
46913         * tests/test-iconv.c: Likewise.
46914         * tests/test-iconvme.c: Likewise.
46915         * tests/test-inttypes.c: Likewise.
46916         * tests/test-isnan.c: Likewise.
46917         * tests/test-isnanf.c: Likewise.
46918         * tests/test-isnanl-nolibm.c: Likewise.
46919         * tests/test-isnanl.c: Likewise.
46920         * tests/test-isnanl.h: Likewise.
46921         * tests/test-ldexpl.c: Likewise.
46922         * tests/test-linked_list.c: Likewise.
46923         * tests/test-linkedhash_list.c: Likewise.
46924         * tests/test-locale.c: Likewise.
46925         * tests/test-localename.c: Likewise.
46926         * tests/test-lock.c: Likewise.
46927         * tests/test-lseek.c: Likewise.
46928         * tests/test-malloca.c: Likewise.
46929         * tests/test-math.c: Likewise.
46930         * tests/test-mbscasecmp.c: Likewise.
46931         * tests/test-mbscasestr1.c: Likewise.
46932         * tests/test-mbscasestr2.c: Likewise.
46933         * tests/test-mbscasestr3.c: Likewise.
46934         * tests/test-mbscasestr4.c: Likewise.
46935         * tests/test-mbschr.c: Likewise.
46936         * tests/test-mbscspn.c: Likewise.
46937         * tests/test-mbsncasecmp.c: Likewise.
46938         * tests/test-mbspbrk.c: Likewise.
46939         * tests/test-mbspcasecmp.c: Likewise.
46940         * tests/test-mbsrchr.c: Likewise.
46941         * tests/test-mbsspn.c: Likewise.
46942         * tests/test-mbsstr1.c: Likewise.
46943         * tests/test-mbsstr2.c: Likewise.
46944         * tests/test-mbsstr3.c: Likewise.
46945         * tests/test-md5.c: Likewise.
46946         * tests/test-memmem.c: Likewise.
46947         * tests/test-netinet_in.c: Likewise.
46948         * tests/test-open.c: Likewise.
46949         * tests/test-printf-frexp.c: Likewise.
46950         * tests/test-printf-frexpl.c: Likewise.
46951         * tests/test-printf-posix.c: Likewise.
46952         * tests/test-printf-posix.h: Likewise.
46953         * tests/test-rbtree_list.c: Likewise.
46954         * tests/test-rbtree_oset.c: Likewise.
46955         * tests/test-rbtreehash_list.c: Likewise.
46956         * tests/test-read-file.c: Likewise.
46957         * tests/test-rijndael.c: Likewise.
46958         * tests/test-search.c: Likewise.
46959         * tests/test-signbit.c: Likewise.
46960         * tests/test-sleep.c: Likewise.
46961         * tests/test-snprintf-posix.c: Likewise.
46962         * tests/test-snprintf-posix.h: Likewise.
46963         * tests/test-snprintf.c: Likewise.
46964         * tests/test-sprintf-posix.c: Likewise.
46965         * tests/test-sprintf-posix.h: Likewise.
46966         * tests/test-stat-time.c: Likewise.
46967         * tests/test-stdbool.c: Likewise.
46968         * tests/test-stdint.c: Likewise.
46969         * tests/test-stdio.c: Likewise.
46970         * tests/test-stdlib.c: Likewise.
46971         * tests/test-stpncpy.c: Likewise.
46972         * tests/test-strcasestr.c: Likewise.
46973         * tests/test-striconv.c: Likewise.
46974         * tests/test-striconveh.c: Likewise.
46975         * tests/test-striconveha.c: Likewise.
46976         * tests/test-string.c: Likewise.
46977         * tests/test-sys_select.c: Likewise.
46978         * tests/test-sys_socket.c: Likewise.
46979         * tests/test-sys_stat.c: Likewise.
46980         * tests/test-sys_time.c: Likewise.
46981         * tests/test-sysexits.c: Likewise.
46982         * tests/test-time.c: Likewise.
46983         * tests/test-tls.c: Likewise.
46984         * tests/test-trunc.c: Likewise.
46985         * tests/test-truncf.c: Likewise.
46986         * tests/test-truncl.c: Likewise.
46987         * tests/test-unistd.c: Likewise.
46988         * tests/test-vasnprintf-posix.c: Likewise.
46989         * tests/test-vasnprintf-posix2.c: Likewise.
46990         * tests/test-vasnprintf.c: Likewise.
46991         * tests/test-vasprintf-posix.c: Likewise.
46992         * tests/test-vasprintf.c: Likewise.
46993         * tests/test-verify.c: Likewise.
46994         * tests/test-vfprintf-posix.c: Likewise.
46995         * tests/test-vprintf-posix.c: Likewise.
46996         * tests/test-vsnprintf-posix.c: Likewise.
46997         * tests/test-vsnprintf.c: Likewise.
46998         * tests/test-vsprintf-posix.c: Likewise.
46999         * tests/test-wchar.c: Likewise.
47000         * tests/test-wctype.c: Likewise.
47001         * tests/test-wcwidth.c: Likewise.
47002         * tests/test-xstrtol.c: Likewise.
47003         * tests/test-xvasprintf.c: Likewise.
47004         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
47005         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
47006         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
47007         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
47008         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
47009         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
47010         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
47011         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
47012         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
47013         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
47014         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
47015         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
47016         * tests/uniname/test-uninames.c: Likewise.
47017         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
47018         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
47019         * tests/unistdio/test-u16-printf1.h: Likewise.
47020         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
47021         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
47022         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
47023         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
47024         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
47025         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
47026         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
47027         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
47028         * tests/unistdio/test-u32-printf1.h: Likewise.
47029         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
47030         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
47031         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
47032         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
47033         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
47034         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
47035         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
47036         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
47037         * tests/unistdio/test-u8-printf1.h: Likewise.
47038         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
47039         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
47040         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
47041         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
47042         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
47043         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
47044         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
47045         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
47046         * tests/unistdio/test-ulc-printf1.h: Likewise.
47047         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
47048         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
47049         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
47050         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
47051         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
47052         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
47053         * tests/uniwidth/test-u16-strwidth.c: Likewise.
47054         * tests/uniwidth/test-u16-width.c: Likewise.
47055         * tests/uniwidth/test-u32-strwidth.c: Likewise.
47056         * tests/uniwidth/test-u32-width.c: Likewise.
47057         * tests/uniwidth/test-u8-strwidth.c: Likewise.
47058         * tests/uniwidth/test-u8-width.c: Likewise.
47059         * tests/uniwidth/test-uc_width.c: Likewise.
47060         * config/srclist-update: Likewise.
47061         (fixlicense): Update to GPLv3+.
47062
47063         Change copyright notice from LGPLv2.1+ to LGPLv3+.
47064         * tests/test-tsearch.c: Change copyright notice.
47065
47066         Change copyright notice from LGPLv2.0+ to LGPLv3+.
47067         * lib/c-strcaseeq.h: Change copyright notice.
47068         * lib/streq.h: Likewise.
47069         * lib/uniconv.h: Likewise.
47070         * lib/uniconv/u-conv-from-enc.h: Likewise.
47071         * lib/uniconv/u-conv-to-enc.h: Likewise.
47072         * lib/uniconv/u-strconv-from-enc.h: Likewise.
47073         * lib/uniconv/u-strconv-to-enc.h: Likewise.
47074         * lib/uniconv/u16-conv-from-enc.c: Likewise.
47075         * lib/uniconv/u16-conv-to-enc.c: Likewise.
47076         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
47077         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
47078         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
47079         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
47080         * lib/uniconv/u32-conv-from-enc.c: Likewise.
47081         * lib/uniconv/u32-conv-to-enc.c: Likewise.
47082         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
47083         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
47084         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
47085         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
47086         * lib/uniconv/u8-conv-from-enc.c: Likewise.
47087         * lib/uniconv/u8-conv-to-enc.c: Likewise.
47088         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
47089         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
47090         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
47091         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
47092         * lib/uniname.h: Likewise.
47093         * lib/uniname/uniname.c: Likewise.
47094         * lib/unistdio.h: Likewise.
47095         * lib/unistdio/u-asnprintf.h: Likewise.
47096         * lib/unistdio/u-asprintf.h: Likewise.
47097         * lib/unistdio/u-printf-args.c: Likewise.
47098         * lib/unistdio/u-printf-args.h: Likewise.
47099         * lib/unistdio/u-printf-parse.h: Likewise.
47100         * lib/unistdio/u-snprintf.h: Likewise.
47101         * lib/unistdio/u-sprintf.h: Likewise.
47102         * lib/unistdio/u-vasprintf.h: Likewise.
47103         * lib/unistdio/u-vsnprintf.h: Likewise.
47104         * lib/unistdio/u-vsprintf.h: Likewise.
47105         * lib/unistdio/u16-asnprintf.c: Likewise.
47106         * lib/unistdio/u16-asprintf.c: Likewise.
47107         * lib/unistdio/u16-printf-parse.c: Likewise.
47108         * lib/unistdio/u16-snprintf.c: Likewise.
47109         * lib/unistdio/u16-sprintf.c: Likewise.
47110         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
47111         * lib/unistdio/u16-u16-asprintf.c: Likewise.
47112         * lib/unistdio/u16-u16-snprintf.c: Likewise.
47113         * lib/unistdio/u16-u16-sprintf.c: Likewise.
47114         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
47115         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
47116         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
47117         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
47118         * lib/unistdio/u16-vasnprintf.c: Likewise.
47119         * lib/unistdio/u16-vasprintf.c: Likewise.
47120         * lib/unistdio/u16-vsnprintf.c: Likewise.
47121         * lib/unistdio/u16-vsprintf.c: Likewise.
47122         * lib/unistdio/u32-asnprintf.c: Likewise.
47123         * lib/unistdio/u32-asprintf.c: Likewise.
47124         * lib/unistdio/u32-printf-parse.c: Likewise.
47125         * lib/unistdio/u32-snprintf.c: Likewise.
47126         * lib/unistdio/u32-sprintf.c: Likewise.
47127         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
47128         * lib/unistdio/u32-u32-asprintf.c: Likewise.
47129         * lib/unistdio/u32-u32-snprintf.c: Likewise.
47130         * lib/unistdio/u32-u32-sprintf.c: Likewise.
47131         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
47132         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
47133         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
47134         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
47135         * lib/unistdio/u32-vasnprintf.c: Likewise.
47136         * lib/unistdio/u32-vasprintf.c: Likewise.
47137         * lib/unistdio/u32-vsnprintf.c: Likewise.
47138         * lib/unistdio/u32-vsprintf.c: Likewise.
47139         * lib/unistdio/u8-asnprintf.c: Likewise.
47140         * lib/unistdio/u8-asprintf.c: Likewise.
47141         * lib/unistdio/u8-printf-parse.c: Likewise.
47142         * lib/unistdio/u8-snprintf.c: Likewise.
47143         * lib/unistdio/u8-sprintf.c: Likewise.
47144         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
47145         * lib/unistdio/u8-u8-asprintf.c: Likewise.
47146         * lib/unistdio/u8-u8-snprintf.c: Likewise.
47147         * lib/unistdio/u8-u8-sprintf.c: Likewise.
47148         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
47149         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
47150         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
47151         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
47152         * lib/unistdio/u8-vasnprintf.c: Likewise.
47153         * lib/unistdio/u8-vasprintf.c: Likewise.
47154         * lib/unistdio/u8-vsnprintf.c: Likewise.
47155         * lib/unistdio/u8-vsprintf.c: Likewise.
47156         * lib/unistdio/ulc-asnprintf.c: Likewise.
47157         * lib/unistdio/ulc-asprintf.c: Likewise.
47158         * lib/unistdio/ulc-printf-parse.c: Likewise.
47159         * lib/unistdio/ulc-snprintf.c: Likewise.
47160         * lib/unistdio/ulc-sprintf.c: Likewise.
47161         * lib/unistdio/ulc-vasnprintf.c: Likewise.
47162         * lib/unistdio/ulc-vasprintf.c: Likewise.
47163         * lib/unistdio/ulc-vsnprintf.c: Likewise.
47164         * lib/unistdio/ulc-vsprintf.c: Likewise.
47165         * lib/unistr.h: Likewise.
47166         * lib/unistr/u-cpy-alloc.h: Likewise.
47167         * lib/unistr/u-cpy.h: Likewise.
47168         * lib/unistr/u-endswith.h: Likewise.
47169         * lib/unistr/u-move.h: Likewise.
47170         * lib/unistr/u-set.h: Likewise.
47171         * lib/unistr/u-startswith.h: Likewise.
47172         * lib/unistr/u-stpcpy.h: Likewise.
47173         * lib/unistr/u-stpncpy.h: Likewise.
47174         * lib/unistr/u-strcat.h: Likewise.
47175         * lib/unistr/u-strcpy.h: Likewise.
47176         * lib/unistr/u-strcspn.h: Likewise.
47177         * lib/unistr/u-strdup.h: Likewise.
47178         * lib/unistr/u-strlen.h: Likewise.
47179         * lib/unistr/u-strncat.h: Likewise.
47180         * lib/unistr/u-strncpy.h: Likewise.
47181         * lib/unistr/u-strnlen.h: Likewise.
47182         * lib/unistr/u-strpbrk.h: Likewise.
47183         * lib/unistr/u-strspn.h: Likewise.
47184         * lib/unistr/u-strstr.h: Likewise.
47185         * lib/unistr/u-strtok.h: Likewise.
47186         * lib/unistr/u16-check.c: Likewise.
47187         * lib/unistr/u16-chr.c: Likewise.
47188         * lib/unistr/u16-cmp.c: Likewise.
47189         * lib/unistr/u16-cpy-alloc.c: Likewise.
47190         * lib/unistr/u16-cpy.c: Likewise.
47191         * lib/unistr/u16-endswith.c: Likewise.
47192         * lib/unistr/u16-mblen.c: Likewise.
47193         * lib/unistr/u16-mbsnlen.c: Likewise.
47194         * lib/unistr/u16-mbtouc-aux.c: Likewise.
47195         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
47196         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
47197         * lib/unistr/u16-mbtouc.c: Likewise.
47198         * lib/unistr/u16-mbtoucr.c: Likewise.
47199         * lib/unistr/u16-move.c: Likewise.
47200         * lib/unistr/u16-next.c: Likewise.
47201         * lib/unistr/u16-prev.c: Likewise.
47202         * lib/unistr/u16-set.c: Likewise.
47203         * lib/unistr/u16-startswith.c: Likewise.
47204         * lib/unistr/u16-stpcpy.c: Likewise.
47205         * lib/unistr/u16-stpncpy.c: Likewise.
47206         * lib/unistr/u16-strcat.c: Likewise.
47207         * lib/unistr/u16-strchr.c: Likewise.
47208         * lib/unistr/u16-strcmp.c: Likewise.
47209         * lib/unistr/u16-strcpy.c: Likewise.
47210         * lib/unistr/u16-strcspn.c: Likewise.
47211         * lib/unistr/u16-strdup.c: Likewise.
47212         * lib/unistr/u16-strlen.c: Likewise.
47213         * lib/unistr/u16-strmblen.c: Likewise.
47214         * lib/unistr/u16-strmbtouc.c: Likewise.
47215         * lib/unistr/u16-strncat.c: Likewise.
47216         * lib/unistr/u16-strncmp.c: Likewise.
47217         * lib/unistr/u16-strncpy.c: Likewise.
47218         * lib/unistr/u16-strnlen.c: Likewise.
47219         * lib/unistr/u16-strpbrk.c: Likewise.
47220         * lib/unistr/u16-strrchr.c: Likewise.
47221         * lib/unistr/u16-strspn.c: Likewise.
47222         * lib/unistr/u16-strstr.c: Likewise.
47223         * lib/unistr/u16-strtok.c: Likewise.
47224         * lib/unistr/u16-to-u32.c: Likewise.
47225         * lib/unistr/u16-to-u8.c: Likewise.
47226         * lib/unistr/u16-uctomb-aux.c: Likewise.
47227         * lib/unistr/u16-uctomb.c: Likewise.
47228         * lib/unistr/u32-check.c: Likewise.
47229         * lib/unistr/u32-chr.c: Likewise.
47230         * lib/unistr/u32-cmp.c: Likewise.
47231         * lib/unistr/u32-cpy-alloc.c: Likewise.
47232         * lib/unistr/u32-cpy.c: Likewise.
47233         * lib/unistr/u32-endswith.c: Likewise.
47234         * lib/unistr/u32-mblen.c: Likewise.
47235         * lib/unistr/u32-mbsnlen.c: Likewise.
47236         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
47237         * lib/unistr/u32-mbtouc.c: Likewise.
47238         * lib/unistr/u32-mbtoucr.c: Likewise.
47239         * lib/unistr/u32-move.c: Likewise.
47240         * lib/unistr/u32-next.c: Likewise.
47241         * lib/unistr/u32-prev.c: Likewise.
47242         * lib/unistr/u32-set.c: Likewise.
47243         * lib/unistr/u32-startswith.c: Likewise.
47244         * lib/unistr/u32-stpcpy.c: Likewise.
47245         * lib/unistr/u32-stpncpy.c: Likewise.
47246         * lib/unistr/u32-strcat.c: Likewise.
47247         * lib/unistr/u32-strchr.c: Likewise.
47248         * lib/unistr/u32-strcmp.c: Likewise.
47249         * lib/unistr/u32-strcpy.c: Likewise.
47250         * lib/unistr/u32-strcspn.c: Likewise.
47251         * lib/unistr/u32-strdup.c: Likewise.
47252         * lib/unistr/u32-strlen.c: Likewise.
47253         * lib/unistr/u32-strmblen.c: Likewise.
47254         * lib/unistr/u32-strmbtouc.c: Likewise.
47255         * lib/unistr/u32-strncat.c: Likewise.
47256         * lib/unistr/u32-strncmp.c: Likewise.
47257         * lib/unistr/u32-strncpy.c: Likewise.
47258         * lib/unistr/u32-strnlen.c: Likewise.
47259         * lib/unistr/u32-strpbrk.c: Likewise.
47260         * lib/unistr/u32-strrchr.c: Likewise.
47261         * lib/unistr/u32-strspn.c: Likewise.
47262         * lib/unistr/u32-strstr.c: Likewise.
47263         * lib/unistr/u32-strtok.c: Likewise.
47264         * lib/unistr/u32-to-u16.c: Likewise.
47265         * lib/unistr/u32-to-u8.c: Likewise.
47266         * lib/unistr/u32-uctomb.c: Likewise.
47267         * lib/unistr/u8-check.c: Likewise.
47268         * lib/unistr/u8-chr.c: Likewise.
47269         * lib/unistr/u8-cmp.c: Likewise.
47270         * lib/unistr/u8-cpy-alloc.c: Likewise.
47271         * lib/unistr/u8-cpy.c: Likewise.
47272         * lib/unistr/u8-endswith.c: Likewise.
47273         * lib/unistr/u8-mblen.c: Likewise.
47274         * lib/unistr/u8-mbsnlen.c: Likewise.
47275         * lib/unistr/u8-mbtouc-aux.c: Likewise.
47276         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
47277         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
47278         * lib/unistr/u8-mbtouc.c: Likewise.
47279         * lib/unistr/u8-mbtoucr.c: Likewise.
47280         * lib/unistr/u8-move.c: Likewise.
47281         * lib/unistr/u8-next.c: Likewise.
47282         * lib/unistr/u8-prev.c: Likewise.
47283         * lib/unistr/u8-set.c: Likewise.
47284         * lib/unistr/u8-startswith.c: Likewise.
47285         * lib/unistr/u8-stpcpy.c: Likewise.
47286         * lib/unistr/u8-stpncpy.c: Likewise.
47287         * lib/unistr/u8-strcat.c: Likewise.
47288         * lib/unistr/u8-strchr.c: Likewise.
47289         * lib/unistr/u8-strcmp.c: Likewise.
47290         * lib/unistr/u8-strcpy.c: Likewise.
47291         * lib/unistr/u8-strcspn.c: Likewise.
47292         * lib/unistr/u8-strdup.c: Likewise.
47293         * lib/unistr/u8-strlen.c: Likewise.
47294         * lib/unistr/u8-strmblen.c: Likewise.
47295         * lib/unistr/u8-strmbtouc.c: Likewise.
47296         * lib/unistr/u8-strncat.c: Likewise.
47297         * lib/unistr/u8-strncmp.c: Likewise.
47298         * lib/unistr/u8-strncpy.c: Likewise.
47299         * lib/unistr/u8-strnlen.c: Likewise.
47300         * lib/unistr/u8-strpbrk.c: Likewise.
47301         * lib/unistr/u8-strrchr.c: Likewise.
47302         * lib/unistr/u8-strspn.c: Likewise.
47303         * lib/unistr/u8-strstr.c: Likewise.
47304         * lib/unistr/u8-strtok.c: Likewise.
47305         * lib/unistr/u8-to-u16.c: Likewise.
47306         * lib/unistr/u8-to-u32.c: Likewise.
47307         * lib/unistr/u8-uctomb-aux.c: Likewise.
47308         * lib/unistr/u8-uctomb.c: Likewise.
47309         * lib/unitypes.h: Likewise.
47310         * lib/uniwidth.h: Likewise.
47311         * lib/uniwidth/cjk.h: Likewise.
47312         * lib/uniwidth/u16-strwidth.c: Likewise.
47313         * lib/uniwidth/u16-width.c: Likewise.
47314         * lib/uniwidth/u32-strwidth.c: Likewise.
47315         * lib/uniwidth/u32-width.c: Likewise.
47316         * lib/uniwidth/u8-strwidth.c: Likewise.
47317         * lib/uniwidth/u8-width.c: Likewise.
47318         * lib/uniwidth/width.c: Likewise.
47319
47320 2007-10-07  Bruno Haible  <bruno@clisp.org>
47321
47322         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
47323         The file is still under LGPL (see modules/inttypes).
47324
47325 2007-10-06  Bruno Haible  <bruno@clisp.org>
47326
47327         * modules/trunc (Dependencies): Add 'extensions'.
47328         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
47329         Reported by Ben Pfaff <blp@gnu.org>.
47330
47331 2007-10-06  Bruno Haible  <bruno@clisp.org>
47332
47333         * modules/freopen-tests: New file.
47334         * tests/test-freopen.c: New file.
47335
47336         * modules/fopen-tests: New file.
47337         * tests/test-fopen.c: New file.
47338
47339         * modules/fopen: New file.
47340         * lib/fopen.c: New file.
47341         * m4/fopen.m4: New file.
47342         * modules/freopen: New file.
47343         * lib/freopen.c: New file.
47344         * m4/freopen.m4: New file.
47345         * lib/stdio.in.h (fopen, freopen): New declarations.
47346         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
47347         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
47348         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
47349         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
47350         * doc/functions/fopen.texi: Mention the 'fopen' module.
47351         * doc/functions/freopen.texi: Mention the 'freopen' module.
47352
47353 2007-10-06  Bruno Haible  <bruno@clisp.org>
47354
47355         * modules/open-tests: New file.
47356         * tests/test-open.c: New file.
47357
47358         * modules/open: New file.
47359         * lib/open.c: New file.
47360         * m4/open.m4: New file.
47361         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
47362         lib/open.c does.
47363         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
47364         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
47365         macros.
47366         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
47367         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
47368         REPLACE_OPEN.
47369         * doc/functions/open.texi: Mention the 'open' module.
47370
47371 2007-10-04  Bruno Haible  <bruno@clisp.org>
47372
47373         * modules/ceill-tests: New file.
47374         * tests/test-ceill.c: New file.
47375
47376         * modules/ceill: New file.
47377         * lib/ceill.c: Replace entire file.
47378         * m4/ceill.m4: New file.
47379         * lib/math.in.h (ceill): Replace declaration.
47380         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
47381         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
47382         * doc/functions/ceill.texi: Mention the 'ceill' module.
47383         * modules/mathl (Files): Remove lib/ceill.c.
47384         (Depends-on): Add ceill.
47385
47386 2007-10-04  Bruno Haible  <bruno@clisp.org>
47387
47388         * modules/ceilf-tests: New file.
47389         * tests/test-ceilf.c: New file.
47390
47391         * modules/ceilf: New file.
47392         * lib/ceil.c: New file.
47393         * lib/ceilf.c: New file.
47394         * m4/ceilf.m4: New file.
47395         * lib/math.in.h (ceilf): New declaration.
47396         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
47397         HAVE_DECL_CEILF.
47398         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
47399         HAVE_DECL_CEILF.
47400         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
47401
47402 2007-10-04  Bruno Haible  <bruno@clisp.org>
47403
47404         * modules/floorl-tests: New file.
47405         * tests/test-floorl.c: New file.
47406
47407         * modules/floorl: New file.
47408         * lib/floorl.c: Replace entire file.
47409         * m4/floorl.m4: New file.
47410         * lib/math.in.h (floorl): Replace declaration.
47411         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
47412         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
47413         * doc/functions/floorl.texi: Mention the 'floorl' module.
47414         * modules/mathl (Files): Remove lib/floorl.c.
47415         (Depends-on): Add floorl.
47416
47417 2007-10-04  Bruno Haible  <bruno@clisp.org>
47418
47419         * modules/floorf-tests: New file.
47420         * tests/test-floorf.c: New file.
47421
47422         * modules/floorf: New file.
47423         * lib/floor.c: New file.
47424         * lib/floorf.c: New file.
47425         * m4/floorf.m4: New file.
47426         * lib/math.in.h (floorf): New declaration.
47427         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
47428         HAVE_DECL_FLOORF.
47429         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
47430         HAVE_DECL_FLOORF.
47431         * doc/functions/floorf.texi: Mention the 'floorf' module.
47432
47433 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
47434             Bruno Haible  <bruno@clisp.org>
47435
47436         Advertise for the Git server instead of the CVS server.
47437         * doc/gnulib-intro.texi (Steady Development): Mention the Git
47438         repository instead of the CVS one.
47439         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
47440         about all VCS systems generically.
47441         * doc/gnulib.texi (Introduction): Capitalize `Git'.
47442
47443 2007-10-04  Bruno Haible  <bruno@clisp.org>
47444
47445         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
47446         means.
47447         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
47448
47449 2007-10-04  Bruno Haible  <bruno@clisp.org>
47450
47451         * modules/truncl-tests: New file.
47452         * tests/test-truncl.c: New file.
47453
47454         * modules/truncl: New file.
47455         * lib/truncl.c: New file.
47456         * m4/truncl.m4: New file.
47457         * lib/math.in.h (truncl): New declaration.
47458         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
47459         HAVE_DECL_TRUNCL.
47460         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
47461         HAVE_DECL_TRUNCL.
47462         * doc/functions/truncl.texi: Mention the 'truncl' module.
47463
47464 2007-10-04  Bruno Haible  <bruno@clisp.org>
47465
47466         * modules/truncf-tests: New file.
47467         * tests/test-truncf.c: New file.
47468
47469         * modules/truncf: New file.
47470         * lib/trunc.c: Make paramerizable through USE_* macros.
47471         * lib/truncf.c: New file.
47472         * m4/truncf.m4: New file.
47473         * lib/math.in.h (truncf): New declaration.
47474         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
47475         HAVE_DECL_TRUNCF.
47476         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
47477         HAVE_DECL_TRUNCF.
47478         * doc/functions/truncf.texi: Mention the 'truncf' module.
47479
47480 2007-10-03  Bruno Haible  <bruno@clisp.org>
47481
47482         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
47483         augmentation also for tests modules.
47484         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
47485         * modules/atexit-tests (Makefile.am): Likewise.
47486         * modules/binary-io-tests (Makefile.am): Likewise.
47487         * modules/c-strcase-tests (Makefile.am): Likewise.
47488         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
47489         * modules/canonicalize-tests (Makefile.am): Likewise.
47490         * modules/closein-tests (Makefile.am): Likewise.
47491         * modules/fprintf-posix-tests (Makefile.am): Likewise.
47492         * modules/freadahead-tests (Makefile.am): Likewise.
47493         * modules/fseek-tests (Makefile.am): Likewise.
47494         * modules/fseeko-tests (Makefile.am): Likewise.
47495         * modules/ftell-tests (Makefile.am): Likewise.
47496         * modules/ftello-tests (Makefile.am): Likewise.
47497         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
47498         * modules/isnanl-tests (Makefile.am): Likewise.
47499         * modules/lseek-tests (Makefile.am): Likewise.
47500         * modules/mbscasecmp-tests (Makefile.am): Likewise.
47501         * modules/mbscasestr-tests (Makefile.am): Likewise.
47502         * modules/mbschr-tests (Makefile.am): Likewise.
47503         * modules/mbscspn-tests (Makefile.am): Likewise.
47504         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
47505         * modules/mbspbrk-tests (Makefile.am): Likewise.
47506         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
47507         * modules/mbsrchr-tests (Makefile.am): Likewise.
47508         * modules/mbsspn-tests (Makefile.am): Likewise.
47509         * modules/mbsstr-tests (Makefile.am): Likewise.
47510         * modules/printf-posix-tests (Makefile.am): Likewise.
47511         * modules/snprintf-posix-tests (Makefile.am): Likewise.
47512         * modules/sprintf-posix-tests (Makefile.am): Likewise.
47513         * modules/tsearch-tests (Makefile.am): Likewise.
47514         * modules/uniname/uniname-tests (Makefile.am): Likewise.
47515         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
47516         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
47517         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
47518         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
47519         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
47520         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
47521         * modules/vprintf-posix-tests (Makefile.am): Likewise.
47522         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
47523         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
47524         * modules/xstrtoimax-tests (Makefile.am): Likewise.
47525         * modules/xstrtol-tests (Makefile.am): Likewise.
47526         * modules/xstrtoumax-tests (Makefile.am): Likewise.
47527         * modules/yesno-tests (Makefile.am): Likewise.
47528
47529 2007-10-03  Bruno Haible  <bruno@clisp.org>
47530
47531         * modules/trunc-tests: New file.
47532         * tests/test-trunc.c: New file.
47533
47534         * modules/trunc: New file.
47535         * lib/trunc.c: New file.
47536         * m4/trunc.m4: New file.
47537         * lib/math.in.h (trunc): New declaration.
47538         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
47539         HAVE_DECL_TRUNC.
47540         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
47541         HAVE_DECL_TRUNC.
47542         * doc/functions/trunc.texi: Mention the 'trunc' module.
47543
47544 2007-10-03  Bruno Haible  <bruno@clisp.org>
47545
47546         * tests/test-fpending.c: New file, mostly copied
47547         from coreutils/lib/t-fpending.c.
47548         * modules/fpending-tests: New file.
47549
47550 2007-10-03  Bruno Haible  <bruno@clisp.org>
47551
47552         Port the stdio extensions to QNX (untested).
47553         * lib/fseterr.c (fseterr): Add support for QNX.
47554         * lib/fbufmode.c (fbufmode): Likewise.
47555         * lib/freadable.c (freadable): Likewise.
47556         * lib/fwritable.c (fwritable): Likewise.
47557         * lib/freading.c (freading): Likewise.
47558         * lib/fwriting.c (fwriting): Likewise.
47559         * lib/freadahead.c (freadahed): Likewise.
47560         * lib/fpurge.c (fpurge): Likewise.
47561         * lib/fseeko.c (rpl_fseeko): Likewise.
47562
47563 2007-10-03  Bruno Haible  <bruno@clisp.org>
47564             Jim Meyering  <jim@meyering.net>
47565             Eric Blake  <ebb9@byu.net>
47566
47567         * doc/relocatable.texi: Use @command instead of @program.
47568
47569 2007-10-02  Jim Meyering  <jim@meyering.net>
47570
47571         Perform one more "_.h" -> ".in.h" substitution.
47572         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
47573         instead of unistd_.h here, too.
47574
47575 2007-10-01  Bruno Haible  <bruno@clisp.org>
47576
47577         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
47578         Needed for the alloca-opt module.
47579
47580 2007-09-30  Bruno Haible  <bruno@clisp.org>
47581
47582         * lib/alloca.in.h: Renamed from lib/alloca_.h.
47583         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
47584         alloca_.h.
47585         * lib/argz.in.h: Renamed from lib/argz_.h.
47586         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
47587         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
47588         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
47589         byteswap_.h.
47590         * lib/dirent.in.h: Renamed from lib/dirent_.h.
47591         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
47592         dirent_.h.
47593         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
47594         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
47595         fcntl_.h.
47596         * lib/float.in.h: Renamed from lib/float_.h.
47597         * modules/float (Files, Makefile.am): Use float.in.h instead of
47598         float_.h.
47599         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
47600         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
47601         fnmatch_.h.
47602         * lib/getopt.in.h: Renamed from lib/getopt_.h.
47603         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
47604         getopt_.h.
47605         * lib/glob.in.h: Renamed from lib/glob_.h.
47606         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
47607         * lib/iconv.in.h: Renamed from lib/iconv_.h.
47608         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
47609         iconv_.h.
47610         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
47611         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
47612         inttypes_.h.
47613         * lib/locale.in.h: Renamed from lib/locale_.h.
47614         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
47615         locale_.h.
47616         * lib/math.in.h: Renamed from lib/math_.h.
47617         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
47618         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
47619         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
47620         of netinet_in_.h. Add dependency.
47621         * lib/poll.in.h: Renamed from lib/poll_.h.
47622         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
47623         * lib/search.in.h: Renamed from lib/search_.h.
47624         * modules/search (Files, Makefile.am): Use search.in.h instead of
47625         search_.h.
47626         * lib/signal.in.h: Renamed from lib/signal_.h.
47627         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
47628         _signal.h.
47629         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
47630         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
47631         stdbool_.h.
47632         * lib/stdint.in.h: Renamed from lib/stdint_.h.
47633         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
47634         stdint_.h.
47635         * lib/stdio.in.h: Renamed from lib/stdio_.h.
47636         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
47637         stdio_.h.
47638         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
47639         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
47640         stdlib_.h.
47641         * lib/string.in.h: Renamed from lib/string_.h.
47642         * modules/string (Files, Makefile.am): Use string.in.h instead of
47643         string_.h.
47644         * doc/gnulib-tool.texi (Initial import): Update.
47645         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
47646         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
47647         of sys_select_.h. Add dependency.
47648         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
47649         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
47650         of sys_socket_.h.
47651         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
47652         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
47653         sys_stat_.h.
47654         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
47655         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
47656         sys_time_.h.
47657         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
47658         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
47659         sysexits_.h.
47660         * lib/time.in.h: Renamed from lib/time_.h.
47661         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
47662         * lib/unistd.in.h: Renamed from lib/unistd_.h.
47663         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
47664         unistd_.h.
47665         * lib/wchar.in.h: Renamed from lib/wchar_.h.
47666         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
47667         wchar_.h.
47668         * lib/wctype.in.h: Renamed from lib/wctype_.h.
47669         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
47670         wctype_.h.
47671         * build-aux/bootstrap (slurp): Update.
47672         * lib/.cppi-disable: Update.
47673
47674 2007-09-30  Bruno Haible  <bruno@clisp.org>
47675
47676         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
47677         Needed on BeOS.
47678
47679 2007-09-30  Bruno Haible  <bruno@clisp.org>
47680
47681         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
47682
47683 2007-09-29  Bruno Haible  <bruno@clisp.org>
47684
47685         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
47686
47687 2007-09-29  Bruno Haible  <bruno@clisp.org>
47688
47689         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
47690         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
47691         * build-aux/install-reloc: Compile also areadlink.c.
47692         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
47693
47694 2007-09-29  Bruno Haible  <bruno@clisp.org>
47695
47696         * gnulib-tool (func_emit_initmacro_done): Indentation.
47697
47698 2007-09-29  Bruno Haible  <bruno@clisp.org>
47699
47700         * README: Add CVS checkout update instructions.
47701         Info from Bob Proulx <bob@proulx.com>.
47702
47703 2007-09-28  Eric Blake  <ebb9@byu.net>
47704
47705         Provide move-if-change.
47706         * build-aux/move-if-change: New file, based on best practice
47707         rather than any canonical upstream location.
47708
47709 2007-09-28  Jim Meyering  <jim@meyering.net>
47710
47711         Fix canonicalize loop-detection corner case.
47712         Do not attempt to stat the symlink values stored via seen_triple.
47713         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
47714         on linux-2.6.18, (but not 2.6.22).
47715         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
47716         triple_compare.  The former compares dev,ino,filename, while the latter
47717         would actually stat dirname(filename) when dev and ino were equal.
47718         * lib/hash-triple.c: Install <string.h>.
47719         (STREQ): Define.
47720         (triple_compare_ino_str): New function.
47721         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
47722
47723 2007-09-28  Eric Blake  <ebb9@byu.net>
47724
47725         Enforce that AC_REPLACE_FUNCS files exist.
47726         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
47727         override check for typos.
47728
47729         Fix test-closein on Solaris 10.
47730         * tests/test-closein.c (main): Don't assume stdin can be inherited
47731         closed on all systems.
47732         * tests/test-closein.sh: Likewise.
47733         Reported by Piotr Tarnowski.
47734
47735 2007-09-28  Jim Meyering  <jim@meyering.net>
47736
47737         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
47738
47739 2007-09-27  Jim Meyering  <jim@meyering.net>
47740
47741         canonicalize: Avoid a false-positive cycle failure.
47742         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
47743         Sort.  Remove cycle-check.
47744         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
47745         not cycle-check.h.
47746         (seen_triple): New function.
47747         (canonicalize_filename_mode): Use it instead of cycle-check.
47748         * tests/test-canonicalize.c: Add a test for this bug.
47749         * tests/test-canonicalize.sh: Set up and run the test.
47750
47751         New module, file-set, from coreutils.
47752         * modules/file-set: Define it.
47753         * lib/file-set.c, lib/file-set.h: Implement.
47754
47755         New module, hash-triple, from coreutils.
47756         * modules/hash-triple: Define it.
47757         * lib/hash-triple.c, lib/hash-triple.h: Implement.
47758
47759 2007-09-25  Eric Blake  <ebb9@byu.net>
47760
47761         Fix strerror on Interix.
47762         * lib/string_.h (strerror): Declare replacement.
47763         * doc/functions/strerror.texi (strerror): Document the Interix
47764         shortcoming.
47765         * modules/string (Makefile.am): Support new hooks.
47766         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
47767         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
47768         gl_FUNC_STRERROR_SEPARATE.
47769         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
47770         * lib/strerror.c (rpl_strerror): Provide replacement.
47771         * modules/strerror (Depends-on): Add string.
47772         (configure.ac): Detect use of module.
47773         * tests/test-strerror.c: New file.
47774         * modules/strerror-tests: New test module.
47775         * modules/argp (Depends-on): Add strerror.
47776         * modules/error (Depends-on): Likewise.
47777         Reported by Martin Koeppe.
47778
47779 2007-09-24  Bruno Haible  <bruno@clisp.org>
47780
47781         * README: Update git instructions.
47782
47783 2007-09-24  Eric Blake  <ebb9@byu.net>
47784
47785         Revert fpending breakage from 2007-09-08.
47786         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
47787         __fpending.c.
47788
47789 2007-09-24  Jim Meyering  <jim@meyering.net>
47790
47791         filenamecat.c: Add a test.
47792         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
47793         showing how the function works when DIR is the empty string.
47794
47795 2007-09-21  Simon Josefsson  <simon@josefsson.org>
47796
47797         * tests/test-canonicalize.sh: Turn on executable bit.
47798
47799 2007-09-19  Eric Blake  <ebb9@byu.net>
47800
47801         * README: Update CVS instructions.
47802
47803 2007-09-18  Bruno Haible  <bruno@clisp.org>
47804
47805         * modules/areadlink: New file.
47806         * lib/areadlink.h (areadlink): New declaration.
47807         * lib/areadlink.c: New file, based on lib/xreadlink.c.
47808
47809 2007-09-17  Jim Meyering  <jim@meyering.net>
47810
47811         * lib/savewd.c (ESTALE) [!defined]: Define.
47812         Reported to be required on Interix by Martin Koeppe.
47813
47814 2007-09-17  Bruno Haible  <bruno@clisp.org>
47815
47816         * gnulib-tool (func_version): Use $version.
47817
47818 2007-09-16  Bruno Haible  <bruno@clisp.org>
47819
47820         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
47821         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
47822         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
47823         Reported by Greg Schafer <gschafer@zip.com.au>.
47824
47825 2007-09-15  Bruno Haible  <bruno@clisp.org>
47826
47827         * gnulib-tool (sed): Try a little harder to make bash understand the
47828         alias.
47829         Reported by Bruce Korb <bruce.korb@gmail.com>.
47830
47831 2007-09-13  Eric Blake  <ebb9@byu.net>
47832
47833         * ChangeLog: Remove conflict markers.
47834
47835 2007-09-13  Simon Josefsson  <simon@josefsson.org>
47836
47837         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
47838         Reported by Bruno Haible <bruno@clisp.org>.
47839
47840 2007-09-12  Bruno Haible  <bruno@clisp.org>
47841
47842         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
47843         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
47844         is not defined.
47845
47846 2007-09-12  Eric Blake  <ebb9@byu.net>
47847
47848         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
47849         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
47850         Autoconf definition.
47851         * modules/euidaccess (Depends-on): Add extensions, for
47852         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
47853         * modules/fnmatch (Depends-on): Likewise.
47854         * modules/getaddrinfo (Depends-on): Likewise.
47855         * modules/getdelim (Depends-on): Likewise.
47856         * modules/getline (Depends-on): Likewise.
47857         * modules/getsubopt (Depends-on): Likewise.
47858         * modules/gettext (Depends-on): Likewise.
47859         * modules/group-member (Depends-on): Likewise.
47860         * modules/mbchar (Depends-on): Likewise.
47861         * modules/memmem (Depends-on): Likewise.
47862         * modules/mempcpy (Depends-on): Likewise.
47863         * modules/memrchr (Depends-on): Likewise.
47864         * modules/pagealign_alloc (Depends-on): Likewise.
47865         * modules/readutmp (Depends-on): Likewise.
47866         * modules/stpcpy (Depends-on): Likewise.
47867         * modules/stpncpy (Depends-on): Likewise.
47868         * modules/strchrnul (Depends-on): Likewise.
47869         * modules/strndup (Depends-on): Likewise.
47870         * modules/strsep (Depends-on): Likewise.
47871         * modules/strverscmp (Depends-on): Likewise.
47872         * modules/vasprintf (Depends-on): Likewise.
47873         * modules/wcwidth (Depends-on): Likewise.
47874         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
47875         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
47876         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
47877         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
47878         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
47879         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
47880         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
47881         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
47882         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
47883         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
47884         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
47885         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
47886         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
47887         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
47888         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
47889         * m4/readutmp.m4 (gl_READUTMP): Likewise.
47890         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
47891         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
47892         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
47893         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
47894         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
47895         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
47896         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
47897         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
47898         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
47899         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
47900         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
47901         so that lock.m4 can be used in gettext without extensions module.
47902
47903 2007-09-11  Bruno Haible  <bruno@clisp.org>
47904
47905         * m4/isc-posix.m4: Remove file.
47906         Suggested by Eric Blake.
47907
47908 2007-09-11  Eric Blake  <ebb9@byu.net>
47909
47910         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
47911
47912 2007-09-10  Bruno Haible  <bruno@clisp.org>
47913
47914         * posix-modules: Fix typo in error message.
47915         Reported by Matt <mkraai@beckman.com>.
47916
47917 2007-09-09  Bruno Haible  <bruno@clisp.org>
47918
47919         * doc/functions/getdelim.texi: Update list of platforms lacking the
47920         function.
47921         * doc/functions/getline.texi: Likewise.
47922
47923 2007-09-09  Jim Meyering  <jim@meyering.net>
47924
47925         * lib/hash.c (hash_initialize): Detect calloc failure.
47926         Reported by Bruno Haible.
47927
47928 2007-09-09  Bruno Haible  <bruno@clisp.org>
47929
47930         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
47931         malloc or realloc fails.
47932
47933 2007-09-09  Bruno Haible  <bruno@clisp.org>
47934
47935         * modules/getcwd (Depends-on): Add malloc-posix.
47936         * modules/glob (Depends-on): Likewise.
47937         * modules/putenv (Depends-on): Likewise.
47938         * modules/strdup (Depends-on): Likewise.
47939         * modules/getdelim (Depends-on): Add realloc-posix.
47940         * modules/read-file (Depends-on): Likewise.
47941
47942 2007-09-09  Bruno Haible  <bruno@clisp.org>
47943
47944         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
47945         (gl_FUNC_MALLOC_POSIX): Require it.
47946         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
47947         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
47948         * modules/realloc (Files): Add m4/malloc.m4.
47949         * modules/calloc (Files): Likewise.
47950
47951 2007-09-09  Bruno Haible  <bruno@clisp.org>
47952
47953         * modules/malloc-posix: New file.
47954         * modules/malloc (Depends-on): Add malloc-posix.
47955         * lib/malloc.c: Include errno.h.
47956         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
47957         and a POSIX-compatible malloc into a single function. Set ENOMEM
47958         when returning NULL.
47959         * m4/malloc.m4: New file.
47960         * doc/functions/malloc.texi: Mention the malloc-posix module.
47961         * lib/stdlib_.h (malloc): New declaration.
47962         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
47963         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
47964         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
47965         and HAVE_MALLOC_POSIX.
47966
47967 2007-09-09  Bruno Haible  <bruno@clisp.org>
47968
47969         * modules/realloc-posix: New file.
47970         * modules/realloc (Depends-on): Add realloc-posix.
47971         * lib/realloc.c: Include errno.h.
47972         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
47973         and a POSIX-compatible realloc into a single function. Set ENOMEM
47974         when returning NULL.
47975         * m4/realloc.m4: New file.
47976         * doc/functions/realloc.texi: Mention the realloc-posix module.
47977         * lib/stdlib_.h (realloc): New declaration.
47978         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
47979         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
47980         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
47981         and HAVE_REALLOC_POSIX.
47982
47983 2007-09-09  Bruno Haible  <bruno@clisp.org>
47984
47985         * modules/calloc-posix: New file.
47986         * modules/calloc (Depends-on): Add calloc-posix.
47987         * lib/calloc.c: Include errno.h.
47988         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
47989         and a POSIX-compatible calloc into a single function. Set ENOMEM
47990         when returning NULL.
47991         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
47992         * doc/functions/calloc.texi: Mention the calloc-posix module.
47993         * lib/stdlib_.h (calloc): New declaration.
47994         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
47995         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
47996         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
47997         and HAVE_CALLOC_POSIX.
47998
47999 2007-09-09  Bruno Haible  <bruno@clisp.org>
48000
48001         Allow for modules to show an arbitrary notice.
48002         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
48003         * gnulib-tool: New option --extract-notice.
48004         (func_usage): Document it.
48005         (sed_extract_prog): Update.
48006         (func_get_notice): New function.
48007         (func_modules_notice): New function.
48008         (func_import, func_create_testdir): Invoke it.
48009         Suggested by Jim Meyering.
48010
48011 2007-09-09  Bruno Haible  <bruno@clisp.org>
48012
48013         * gnulib-tool: New options --verbose, --quiet.
48014         (func_usage): Document them.
48015         (verbose): New variable.
48016         (func_execute_command): New function.
48017         (func_import): Don't show the module list and the file list if
48018         $verbose < 0.
48019         (func_create_testdir): Likewise. Use func_execute_command.
48020         (func_create_megatestdir): Use func_execute_command.
48021
48022 2007-09-08  Bruno Haible  <bruno@clisp.org>
48023
48024         * gnulib-tool (func_import): Prefer rsync over wget when available,
48025         for fetching the PO files.
48026
48027 2007-09-08  Bruno Haible  <bruno@clisp.org>
48028
48029         * posix-modules: New file. Portions copied from gnulib-tool.
48030         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
48031
48032 2007-09-08  Jim Meyering  <jim@meyering.net>
48033
48034         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
48035         * lib/fpending.h: Rename from __fpending.h.
48036         * lib/fpending.c: Rename from __fpending.c.
48037         Include "fpending.h", not "__fpending.h".
48038         * lib/__fpending.h, lib/__fpending.c: Remove files.
48039         * modules/fpending (Files): Reflect new file names.
48040         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
48041
48042 2007-09-08  Bruno Haible  <bruno@clisp.org>
48043
48044         * m4/inttypes-h.m4: Remove stub file.
48045
48046 2007-09-07  Simon Josefsson  <simon@josefsson.org>
48047
48048         * doc/headers/stdint.texi: Discuss #include_next issue.
48049
48050 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
48051
48052         * build-aux/bootstrap: Remove obsolete comment about wget --help.
48053
48054 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
48055
48056         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
48057         in variable name.
48058
48059 2007-09-03  Jim Meyering  <jim@meyering.net>
48060
48061         New module: git-version-gen.
48062         * modules/git-version-gen: New file.
48063
48064         Import changes from coreutils for bootstrap script.
48065
48066         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
48067
48068         bootstrap: uses rsync to download the .po files
48069         * build-aux/bootstrap (po_download_command_format): New global.
48070         (download_po_files): Use rsync.
48071         (update_po_files): Don't remove .po files after download,
48072         so future rsync runs can take advantage of the copies.
48073
48074         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
48075
48076         Solve the unnecessary-.po-file-regeneration problem once and for all.
48077         * build-aux/bootstrap (download_po_files): New function, renamed from
48078         get_translations.  Now, downloads, but doesn't update LINGUAS.
48079         (update_po_files): New function.
48080
48081         bootstrap: Ignore more.
48082         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
48083         uniwidth to e.g., lib/.gitignore.
48084         (slurp): Handle the sys_stat_.h -> sys mapping, too.
48085
48086         * build-aux/bootstrap: New setting: vc_ignore.
48087         (insert_sorted_if_absent): Create $file if absent.
48088         Adapt to new, possibly empty, list: $vc_ignore.
48089
48090         bootstrap: generate more ignorable names
48091         * build-aux/bootstrap (slurp): When generating ignorable names,
48092         also map .sin to .sed, .gperf to .c, and .y to .c.
48093
48094 2007-09-03  Jim Meyering  <jim@meyering.net>
48095
48096         * build-aux/git-version-gen: New file, from coreutils.  For details, see
48097         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
48098
48099 2007-09-02  Bruno Haible  <bruno@clisp.org>
48100
48101         Fix mis-recognition of 'mcs' on QNX 6.
48102         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
48103         output contains the string "Mono".
48104         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
48105         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
48106
48107 2007-09-01  Bruno Haible  <bruno@clisp.org>
48108
48109         Fix collision between uniwidth/* and linebreak modules.
48110         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
48111         u32_width): Remove declarations.
48112         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
48113         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
48114         streq3, streq2, streq1, streq0): Remove functions.
48115         (STREQ): Remove macro.
48116         (is_cjk_encoding): Remove function.
48117         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
48118         (uc_width, u8_width, u16_width, u32_width): Remove functions.
48119         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
48120         * NEWS: Document the change.
48121
48122 2007-09-01  Bruno Haible  <bruno@clisp.org>
48123
48124         * lib/streq.h: Add double-inclusion guard.
48125
48126 2007-09-01  Karl Berry  <karl@gnu.org>
48127
48128         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
48129
48130 2007-08-28  Jim Meyering  <jim@meyering.net>
48131
48132         Rename mreadlink_with_size to areadlink_with_size.
48133         * NEWS: Document the change.
48134         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
48135         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
48136         * lib/mreadlink.h: Rename this to...
48137         * lib/areadlink.h: ...this.
48138         * modules/mreadlink-with-size: Rename this to...
48139         * modules/areadlink-with-size: ...this.
48140         * lib/canonicalize.c: Reflect the renaming.
48141         * modules/canonicalize: Likewise.
48142
48143 2007-08-26  Bruno Haible  <bruno@clisp.org>
48144
48145         * gnulib-tool (func_import): When deciding which files to remove,
48146         consider also dangling symbolic links.
48147         Reported by Eric Blake.
48148
48149 2007-08-26  Bruno Haible  <bruno@clisp.org>
48150
48151         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
48152
48153 2007-08-23  Simon Josefsson  <simon@josefsson.org>
48154
48155         * lib/readline.c: Don't include getline.h, the prototype is now
48156         found in stdio.h.
48157
48158 2007-08-23  Jim Meyering  <jim@meyering.net>
48159
48160         Getdelim touchup.
48161         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
48162         around the funlockfile call, since funlockfile never sets errno.
48163         Don't set errno upon failed realloc.
48164
48165 2007-08-22  Eric Blake  <ebb9@byu.net>
48166
48167         Getline touchups.
48168         * lib/getdelim.c (getdelim): Revert regression that required *n to
48169         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
48170         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
48171         getdelim, rather than whether implementation is missing.
48172         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
48173         * lib/stdio_.h (getline): Also declare if replacement is
48174         required.
48175         * doc/functions/getdelim.texi: New file.
48176         * doc/functions/getline.texi: Likewise.
48177         * doc/gnulib.texi (Function Substitutes): Add new files.
48178         Reported by Bruno Haible.
48179
48180 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
48181
48182         * users.txt: Add Guile.
48183
48184 2007-08-22  Eric Blake  <ebb9@byu.net>
48185
48186         * tests/test-getdelim.c (main): Use remove, not unlink.
48187         * tests/test-getline.c (main): Likewise.
48188
48189         Move getline and getdelim into stdio.h, per POSIX 200x.
48190         * modules/getline (Files): Remove getline.h.
48191         (Depends-on): Add stdio.
48192         (configure.ac): Add module indicator.
48193         * modules/getdelim (Files): Remove getdelim.h.
48194         (Depends-on): Add stdio.
48195         (configure.ac): Add module indicator.
48196         * modules/stdio (Makefile.am): Work with new indicators.
48197         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
48198         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
48199         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
48200         * lib/getdelim.h: Delete.
48201         * lib/getline.h: Delete.
48202         * lib/stdio_.h (getdelim, getline): Declare.
48203         * modules/getdelim-tests: New module.
48204         * modules/getline-tests: Likewise.
48205         * tests/test-getdelim.c: New file.
48206         * tests/test-getline.c: Likewise.
48207         * NEWS: Document the change.
48208         * lib/getline.c: Update choice of header.
48209         * lib/csharpcomp.c: Likewise.
48210         * lib/getpass.c: Likewise.
48211         * lib/javacomp.c: Likewise.
48212         * lib/javaversion.c: Likewise.
48213         * lib/yesno.c: Likewise.
48214         * lib/getdelim.c: Likewise.
48215         (getdelim): Set errno on failure, and avoid memory leak.
48216
48217 2007-08-19  Bruno Haible  <bruno@clisp.org>
48218
48219         * modules/closein (Depends-on): Add freadahead.
48220         * lib/closein.c: Include freadahead.h.
48221         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
48222         is zero.
48223
48224 2007-08-19  Bruno Haible  <bruno@clisp.org>
48225
48226         * modules/freadahead-tests: New file.
48227         * tests/test-freadahead.sh: New file.
48228         * tests/test-freadahead.c: New file.
48229
48230         * modules/freadahead: New file.
48231         * lib/freadahead.h: New file.
48232         * lib/freadahead.c: New file.
48233         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
48234         fbufmode, fpurge, freadable, fwritable.
48235
48236 2007-08-19  Eric Blake  <ebb9@byu.net>
48237
48238         Test yesno in combination with closein.
48239         * lib/yesno.c (yesno): Document use of stdin.
48240         * modules/yesno-tests (Files): New module.
48241         * tests/test-yesno.c (main): New file.
48242         * tests/test-yesno.sh: Likewise.
48243
48244 2007-08-19  Bruno Haible  <bruno@clisp.org>
48245
48246         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
48247         * lib/fseeko.c (rpl_fseeko): Likewise.
48248         * lib/fseterr.c (fseterr): Likewise.
48249
48250 2007-08-19  Bruno Haible  <bruno@clisp.org>
48251
48252         * tests/test-lseek.c (main): Disable a test for BeOS.
48253         * doc/functions/lseek.texi: Document the BeOS bug.
48254
48255 2007-08-19  Bruno Haible  <bruno@clisp.org>
48256             Eric Blake  <ebb9@byu.net>
48257
48258         * lib/lseek.c: Include <sys/stat.h>.
48259         (rpl_lseek): Add workaround code also for Unix platforms.
48260         Needed for BeOS.
48261         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
48262         * doc/functions/lseek.texi: Document BeOS definiency.
48263
48264 2007-08-18  Bruno Haible  <bruno@clisp.org>
48265
48266         * modules/fstrcmp-tests: New file.
48267         * tests/test-fstrcmp.c: New file.
48268
48269 2007-08-18  Bruno Haible  <bruno@clisp.org>
48270
48271         * modules/fstrcmp: New file, from GNU gettext with modifications.
48272         * lib/fstrcmp.h: New file, from GNU gettext.
48273         * lib/fstrcmp.c: New file, from GNU gettext.
48274         * MODULES.html.sh (String handling): Add fstrcmp.
48275
48276 2007-08-18  Bruno Haible  <bruno@clisp.org>
48277
48278         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
48279         'bool'.
48280         (diag, compareseq): Remove const from the ctxt argument.
48281         (USE_HEURISTIC): Undefine at the end.
48282
48283 2007-08-18  Jim Meyering  <jim@meyering.net>
48284
48285         New file: lib/idcache.h
48286         * NEWS: Mention the addition.
48287         * modules/idcache (Files): Add lib/idcache.h
48288         * lib/idcache.c: Include "idcache.h".
48289         Don't include <sys/types.h>.
48290         Add a FIXME comment.
48291         Move file-scoped "static" declarations to the top.
48292         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
48293
48294 2007-08-17  Bruno Haible  <bruno@clisp.org>
48295         and Paul Eggert  <eggert@cs.ucla.edu>
48296
48297         * MODULES.html.sh: Add diffseq.
48298         * modules/diffseq: New file.
48299         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
48300         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
48301
48302 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
48303
48304         Import changes from coreutils for bootstrap script.
48305
48306         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
48307
48308         * build-aux/bootstrap (slurp): Work even in environments where
48309         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
48310         current code does not slurp files whose names start with ".", and
48311         this looks like it might be a troublesome area.
48312
48313         2007-07-11  Jim Meyering  <jim@meyering.net>
48314
48315         If there's a GPL vN copyright comment, require that N == 3.
48316
48317         2007-07-08  Jim Meyering  <jim@meyering.net>
48318
48319         Run the coreutils-specific code only if tests/Makefile.am.in exists.
48320         * build-aux/bootstrap (mam_template): Move definition out of loop.
48321
48322         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
48323
48324         * build-aux/bootstrap (symlink_to_dir): Rename function from
48325         symlink_to_gnulib.  Add a directory parameter.  Update all
48326         callers.
48327         (cp_mark_as_generated): Also check for -- and link to -- files in
48328         gl/.
48329
48330         2007-07-08  Jim Meyering  <jim@meyering.net>
48331
48332         Adapt to deeper hierarchy in gnulib.
48333         * build-aux/bootstrap (symlink_to_dir): If the destination
48334         directory doesn't exist, create it. This is required at least for
48335         "lib/uniwidth/cjk.h".
48336
48337         2007-05-15  Jim Meyering  <jim@meyering.net>
48338
48339         * build-aux/bootstrap: Now that generated Makefile.am files
48340         are no longer under version control, they must be created at
48341         bootstrap time.
48342
48343 2007-08-14  Ben Pfaff  <blp@gnu.org>
48344
48345         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
48346
48347 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
48348
48349         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
48350         given the changes below.
48351         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
48352         even on hosts that have padding bits beyond the supported 64.
48353
48354 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
48355
48356         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
48357         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
48358         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
48359         depends on it.
48360         (xstrtol_error): Remove.
48361         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
48362         but with a different signature.
48363         (ATTRIBUTE_NORETURN, __attribute__): New macros.
48364         * lib/xstrtol-error.c: Include exitfail.h.
48365         (xstrtol_fatal): New function, with a different signature from the
48366         old xstrtol_error, so that the caller need not worry about passing
48367         in an exit status, or about storage management of the option argument.
48368         (xstrtol_error): Now a static function.  Redo signature to
48369         implement xstrtol_fatal.  Output the correct number of hyphens in
48370         front of the option so that the caller need not worry about
48371         storage management.
48372         (N_): New macro.
48373         (_): Remove; not used now.
48374         * modules/xstrtol: Depend on getopt.
48375         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
48376         of old STRTOL_FATAL_ERROR macro.
48377         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
48378         of test program.
48379         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
48380         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
48381
48382 2007-08-08  Eric Blake  <ebb9@byu.net>
48383
48384         * lib/xstrtol-error.c: Add missing include.
48385
48386         Move xstrtol messages into gnulib domain, when --pobase is used.
48387         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
48388         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
48389         * modules/xstrtol (Files): Distribute new file.
48390         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
48391         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
48392         * tests/test-xstrtol.c: ...into new file.
48393         * tests/test-xstrtoul.c: Also test xstrtoul.
48394         * tests/test-xstrtoimax.c: Also test xstrtoimax.
48395         * tests/test-xstrtoumax.c: Also test xstrtoumax.
48396         * tests/test-xstrtol.sh: Drive the tests.
48397         * tests/test-xstrtoimax.sh: Likewise.
48398         * tests/test-xstrtoumax.sh: Likewise.
48399         * modules/xstrtol-tests: New module.
48400         * modules/xstrtoimax-tests: Likewise.
48401         * modules/xstrtoumax-tests: Likewise.
48402
48403 2007-08-08  Jim Meyering  <jim@meyering.net>
48404
48405         New function: mfile_name_concat.
48406         * lib/filenamecat.c (mfile_name_concat): New function, just like
48407         file_name_concat, but return NULL upon failure rather than exiting
48408         with a diagnostic.
48409         * lib/filenamecat.h: Declare it.
48410
48411 2007-08-07  Bruno Haible  <bruno@clisp.org>
48412
48413         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
48414         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
48415         warning from gcc.
48416         Reported by Eric Blake.
48417
48418 2007-08-07  Simon Josefsson  <simon@josefsson.org>
48419
48420         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
48421         * modules/crypto/arcfour (License): Likewise.
48422         * modules/crypto/des-tests (License): Likewise.
48423         * modules/crypto/gc-arctwo-tests (License): Likewise.
48424         * modules/crypto/gc-des-tests (License): Likewise.
48425         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
48426         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
48427         * modules/crypto/gc-md2-tests (License): Likewise.
48428         * modules/crypto/gc-md4-tests (License): Likewise.
48429         * modules/crypto/gc-md5-tests (License): Likewise.
48430         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
48431         * modules/crypto/gc-rijndael-tests (License): Likewise.
48432         * modules/crypto/gc-sha1-tests (License): Likewise.
48433         * modules/crypto/gc-tests (License): Likewise.
48434         * modules/crypto/hmac-md5 (License): Likewise.
48435         * modules/crypto/hmac-sha1 (License): Likewise.
48436         * modules/crypto/md2-tests (License): Likewise.
48437         * modules/crypto/md4-tests (License): Likewise.
48438         * modules/crypto/md5 (License): Likewise.
48439         * modules/crypto/rijndael (License): Likewise.
48440         * modules/crypto/sha1 (License): Likewise.
48441         * modules/memxor (License): Likewise.
48442
48443 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
48444         and Bruno Haible  <bruno@clisp.org>
48445
48446         * NEWS: Describe interface changes to human, xstrtol.
48447         * lib/human.h: Include <xstrtol.h>.
48448         (human_options): Return enum strtol_error, not int.  Remove
48449         bool arg; take int * instead.
48450         * lib/human.c: Don't include "gettext.h".
48451         (_): Remove; no longer used.
48452         Don't include <xstrtol.h>, since human.h does it.
48453         (human_options): Adjust to abovementioned interface changes.
48454         Do not report error to stderr; that's now the caller's
48455         responsibility.
48456         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
48457         interface change.
48458         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
48459         Str, Argument_type_string.  All uses changed.  Put " argument"
48460         in diagnostics to make them clearer.  Change wording of suffix
48461         message for clarity.
48462         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
48463         Argument_type_string.
48464         (STRTOL_FATAL_WARN): Remove; no longer used.
48465         * modules/human (Depends-on): Remove gettext-h.
48466
48467 2007-08-06  Simon Josefsson  <simon@josefsson.org>
48468
48469         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
48470
48471 2007-07-31  Bruno Haible  <bruno@clisp.org>
48472
48473         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
48474         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
48475         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
48476
48477 2007-07-31  Bruno Haible  <bruno@clisp.org>
48478
48479         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
48480         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
48481
48482 2007-07-30  Bruno Haible  <bruno@clisp.org>
48483
48484         * modules/base64 (License): Use the synonymous term "LGPLv2+".
48485         * modules/c-ctype (License): Likewise.
48486         * modules/c-strcase (License): Likewise.
48487         * modules/check-version (License): Likewise.
48488         * modules/iconv (License): Likewise.
48489         * modules/iconv_open (License): Likewise.
48490         * modules/read-file (License): Likewise.
48491         * modules/striconv (License): Likewise.
48492         * modules/strverscmp (License): Likewise.
48493         * modules/vasprintf (License): Likewise.
48494         * modules/crypto/des (License): Likewise.
48495         * modules/crypto/gc (License): Likewise.
48496         * modules/crypto/gc-arcfour (License): Likewise.
48497         * modules/crypto/gc-arctwo (License): Likewise.
48498         * modules/crypto/gc-des (License): Likewise.
48499         * modules/crypto/gc-hmac-md5 (License): Likewise.
48500         * modules/crypto/gc-hmac-sha1 (License): Likewise.
48501         * modules/crypto/gc-md2 (License): Likewise.
48502         * modules/crypto/gc-md4 (License): Likewise.
48503         * modules/crypto/gc-md5 (License): Likewise.
48504         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
48505         * modules/crypto/gc-random (License): Likewise.
48506         * modules/crypto/gc-rijndael (License): Likewise.
48507         * modules/crypto/gc-sha1 (License): Likewise.
48508         * modules/crypto/md2 (License): Likewise.
48509         * modules/crypto/md4 (License): Likewise.
48510
48511 2007-07-30  Jim Meyering  <jim@meyering.net>
48512
48513         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
48514         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
48515         it has valid stat data.  This bug would cause du not to count the
48516         sizes of inaccessible directories.
48517         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
48518         in <http://bugzilla.redhat.com/250077>.
48519
48520 2007-07-25  Peter O'Gorman  <peter@pogma.com>
48521             Bruno Haible  <bruno@clisp.org>
48522
48523         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
48524         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
48525         #include_next, gives a diagnostic about it, but reports no error in
48526         the exit code.
48527         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
48528
48529 2007-07-24  Ben Pfaff  <blp@gnu.org>
48530
48531         Improve name: "count-one-bits" is better than "popcount".
48532         * MODULES.html.sh: Update name.
48533         * lib/popcount.h: Renamed lib/count-one-bits.h.
48534         (popcount): Renamed count_one_bits.
48535         (popcountl): Renamed count_one_bits_l.
48536         (popcountll): Renamed count_one_bits_ll.
48537         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
48538         * modules/popcount: Renamed module/count-one-bits.
48539         * modules/popcount-tests: Renamed module/count-one-bits-tests.
48540         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
48541
48542 2007-07-23  Ben Pfaff  <blp@gnu.org>
48543
48544         * lib/popcount.h (popcount32): Reduce size of constants, to allow
48545         better code generation, and add U to large constants to avoid
48546         warnings, in non-GCC case.
48547         Suggested by Bruno Haible.
48548
48549 2007-07-23  Ben Pfaff  <blp@gnu.org>
48550
48551         * lib/popcount.h: Use verify_true instead of if...abort.
48552         * modules/popcount: Depend on verify module.
48553         Suggested by Jim Meyering.
48554
48555 2007-07-23  Bruno Haible  <bruno@clisp.org>
48556
48557         * gnulib-tool (func_import): Create a .cvsignore file also when the
48558         directory is not yet in CVS but the toplevel directory is. When
48559         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
48560         Reported by Karl Berry.
48561
48562 2007-07-22  Ben Pfaff  <blp@gnu.org>
48563
48564         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
48565         case.
48566         Suggested by Eric Blake.
48567
48568 2007-07-22  Ben Pfaff  <blp@gnu.org>
48569
48570         New module: popcount.
48571         * MODULES.html.sh: Add popcount.
48572         * modules/popcount: New file.
48573         * modules/popcount-tests: New file.
48574         * tests/test-popcount.c: New file.
48575         * lib/popcount.h: New file.
48576         * m4/popcount.m4: New file.
48577
48578 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
48579
48580         * build-aux/announce-gen: Update to GPLv3.
48581
48582         * build-aux/config.guess: Update from config.
48583
48584 2007-07-21  Bruno Haible  <bruno@clisp.org>
48585
48586         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
48587         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
48588
48589 2007-07-20  Jim Meyering  <jim@meyering.net>
48590
48591         * check-module: Diagnose a self-dependency.
48592
48593 2007-07-19  Bruno Haible  <bruno@clisp.org>
48594
48595         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
48596         empty.
48597         Reported by Eric Blake.
48598
48599 2007-07-18  Bruno Haible  <bruno@clisp.org>
48600
48601         * gnulib-tool: New options --po-base, --po-domain.
48602         (func_usage): Document them.
48603         (pobase, po_domain): New variables.
48604         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
48605         DEFAULT_TEXT_DOMAIN.
48606         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
48607         (func_import): Consider pobase and po_domain. Create a po/ directory.
48608         (func_create_testdir): Set pobase and po_domain to empty.
48609         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
48610         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
48611
48612 2007-07-18  Bruno Haible  <bruno@clisp.org>
48613
48614         * gnulib-tool (func_get_automake_snippet): Synthesize also an
48615         EXTRA_DIST augmentation for files in build-aux/.
48616
48617 2007-07-16  Bruno Haible  <bruno@clisp.org>
48618
48619         * modules/lseek (License): Use the synonymous term "LGPLv2+".
48620         * modules/getdelim (License): Likewise.
48621
48622 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
48623
48624         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
48625         * modules/d-type (License): Likewise.
48626         * modules/extensions (License): Likewise.
48627         * modules/fnmatch (License): Likewise.
48628         * modules/fseeko (License): Likewise.
48629         * modules/getaddrinfo (License): Likewise.
48630         * modules/getline (License): Likewise.
48631         * modules/getlogin_r (License): Likewise.
48632         * modules/getpass (License): Likewise.
48633         * modules/gettimeofday (License): Likewise.
48634         * modules/glob (License): Likewise.
48635         * modules/inet_ntop (License): Likewise.
48636         * modules/malloc (License): Likewise.
48637         * modules/malloca (License): Likewise.
48638         * modules/memmem (License): Likewise.
48639         * modules/mempcpy (License): Likewise.
48640         * modules/memset (License): Likewise.
48641         * modules/minmax (License): Likewise.
48642         * modules/mktime (License): Likewise.
48643         * modules/netinet_in (License): Likewise.
48644         * modules/pathmax (License): Likewise.
48645         * modules/poll (License): Likewise.
48646         * modules/regex (License): Likewise.
48647         * modules/snprintf (License): Likewise.
48648         * modules/stdbool (License): Likewise.
48649         * modules/stdint (License): Likewise.
48650         * modules/stdio (License): Likewise.
48651         * modules/strcase (License): Likewise.
48652         * modules/strcasestr (License): Likewise.
48653         * modules/strdup (License): Likewise.
48654         * modules/string (License): Likewise.
48655         * modules/strndup (License): Likewise.
48656         * modules/strnlen (License): Likewise.
48657         * modules/strpbrk (License): Likewise.
48658         * modules/strptime (License): Likewise.
48659         * modules/strsep (License): Likewise.
48660         * modules/sys_select (License): Likewise.
48661         * modules/sys_socket (License): Likewise.
48662         * modules/sys_stat (License): Likewise.
48663         * modules/sys_time (License): Likewise.
48664         * modules/time (License): Likewise.
48665         * modules/time_r (License): Likewise.
48666         * modules/timegm (License): Likewise.
48667         * modules/unistd (License): Likewise.
48668         * modules/vsnprintf (License): Likewise.
48669         * modules/wctype (License): Likewise.
48670
48671 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48672
48673         * modules/argz (License): LGPLv2+.
48674
48675 2007-07-15  Karl Berry  <karl@gnu.org>
48676
48677         * doc/gnulib.texi: revise node structure per new fdl.texi.
48678
48679 2007-07-14  Bruno Haible  <bruno@clisp.org>
48680
48681         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
48682         the output file.
48683         * lib/uniname/uninames.h: Regenerated.
48684
48685 2007-07-14  Karl Berry  <karl@gnu.org>
48686
48687         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
48688         omitting sectioning and index commands.
48689
48690 2007-07-13  Bruno Haible  <bruno@clisp.org>
48691
48692         New gnulib-tool option --more-symlinks.
48693         * gnulib-tool (func_usage): Document --more-symlinks.
48694         (do_copyrights): New variable.
48695         Recognize option --more-symlinks.
48696         (func_import): Don't add a copyright notice transform to
48697         sed_transform_lib_file if do_copyrights is empty.
48698
48699 2007-07-13  Bruno Haible  <bruno@clisp.org>
48700
48701         * lib/vasnprintf.c (decimal_point_char): Define also if
48702         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
48703         && !NEED_PRINTF_DIRECTIVE_A.
48704         Reported by Clemens Koller <clemens.koller@anagramm.de> via
48705         Gary V. Vaughan <gary@gnu.org>.
48706
48707 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
48708
48709         * lib/inttypes_.h: Undo previous change, since it was fixed
48710         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
48711
48712 2007-07-13  Bruno Haible  <bruno@clisp.org>
48713
48714         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
48715         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
48716
48717 2007-07-13  Jim Meyering  <jim@meyering.net>
48718
48719         df: Don't fail for Tru64's "file-on-file mount".
48720         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
48721         so we fall through and use statfs instead.  Details here:
48722         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
48723         Reported by Albert Chin.
48724
48725 2007-07-13  Bruno Haible  <bruno@clisp.org>
48726
48727         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
48728         * modules/configmake (License): Likewise.
48729         * modules/gettext (License): Likewise.
48730         * modules/gettext-h (License): Likewise.
48731         * modules/include_next (License): Likewise.
48732         * modules/link-warning (License): Likewise.
48733         * modules/localcharset (License): Likewise.
48734         * modules/localename (License): Likewise.
48735         * modules/lock (License): Likewise.
48736         * modules/relocatable-lib-lgpl (License): Likewise.
48737         * modules/size_max (License): Likewise.
48738         * modules/vasnprintf (License): Likewise.
48739         * modules/wchar (License): Likewise.
48740         * modules/xsize (License): Likewise.
48741
48742 2007-07-13  Bruno Haible  <bruno@clisp.org>
48743
48744         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
48745         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
48746
48747 2007-07-12  Bruno Haible  <bruno@clisp.org>
48748
48749         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
48750         in the modules files.
48751
48752 2007-07-11  Karl Berry  <karl@gnu.org>
48753
48754         * MODULES.html.sh (func_module): use
48755          sed -e '\|^'"${includefile}"'$|d'
48756          instead of /.../d, to avoid errors on $includefile's containing /.
48757
48758 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
48759
48760         * gnulib-tool (func_import): Avoid duplication of --avoid
48761         statements
48762         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
48763         names to `_' in variable names.
48764
48765 2007-07-10  Eric Blake  <ebb9@byu.net>
48766
48767         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
48768         * NEWS: Document this change.
48769
48770 2007-07-08  Bruno Haible  <bruno@clisp.org>
48771
48772         Update to Unicode 5.0.
48773         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
48774         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
48775         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
48776         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
48777         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
48778         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
48779         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
48780         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
48781         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
48782         U+10A3F, U+1D242..U+1D244.
48783         (nonspacing_table_ind): Update.
48784         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
48785         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
48786
48787 2007-07-08  Bruno Haible  <bruno@clisp.org>
48788
48789         Update to Unicode 5.0.
48790         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
48791         code transform. Extend the name index field of unicode_name_to_code and
48792         unicode_code_to_name from 16 to 24 bits.
48793         * lib/uniname/uniname.c (unicode_character_name,
48794         unicode_name_character): Add the range 0x12xxx to the code transform.
48795         * lib/uniname/uninames.h: Regenerated.
48796         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
48797
48798 2007-07-07  Bruno Haible  <bruno@clisp.org>
48799
48800         * modules/wcwidth-tests: New file.
48801         * tests/test-wcwidth.c: New file.
48802
48803         Work around MacOS X wcwidth() bug.
48804         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
48805         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
48806         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
48807         original wcwidth in non-UTF-8 locales.
48808         * modules/wcwidth (Depends-on): Add localcharset, streq,
48809         uniwidth/width.
48810         * doc/functions/wcwidth.texi: Update.
48811
48812 2007-07-07  Bruno Haible  <bruno@clisp.org>
48813
48814         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
48815         (wcwidth): New declaration.
48816         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
48817         macros.
48818         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
48819         here. Prepare for creating <wchar.h> unconditionally.
48820         * modules/wchar (Depends-on): Add link-warning.
48821         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
48822         REPLACE_WCWIDTH, and GL_LINK_WARNING.
48823         * lib/wcwidth.h: Remove file.
48824         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
48825         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
48826         * modules/wcwidth (Files): Remove lib/wcwidth.h.
48827         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
48828         (Include): Replace wcwidth.h with <wchar.h>.
48829         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
48830         * lib/mbchar.h: Don't include wcwidth.h.
48831         * lib/mbswidth.c: Likewise.
48832         * NEWS: Mention the change.
48833
48834 2007-07-07  Bruno Haible  <bruno@clisp.org>
48835
48836         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
48837         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
48838         definition with an external declaration.
48839         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
48840         defined as a function. Remove AC_C_INLINE requirement.
48841         * modules/wcwidth (Files): Add lib/wcwidth.c.
48842         (Makefile.am): Remove redundant statement.
48843
48844 2007-07-07  Bruno Haible  <bruno@clisp.org>
48845
48846         * MODULES.html.sh (Unicode string functions): Add the new modules.
48847
48848         * tests/uniwidth/test-u32-strwidth.c: New file.
48849         * modules/uniwidth/u32-strwidth-tests: New file.
48850
48851         * lib/uniwidth/u32-strwidth.c: New file.
48852         * modules/uniwidth/u32-strwidth: New file.
48853
48854         * tests/uniwidth/test-u16-strwidth.c: New file.
48855         * modules/uniwidth/u16-strwidth-tests: New file.
48856
48857         * lib/uniwidth/u16-strwidth.c: New file.
48858         * modules/uniwidth/u16-strwidth: New file.
48859
48860         * tests/uniwidth/test-u8-strwidth.c: New file.
48861         * modules/uniwidth/u8-strwidth-tests: New file.
48862
48863         * lib/uniwidth/u8-strwidth.c: New file.
48864         * modules/uniwidth/u8-strwidth: New file.
48865
48866         * tests/uniwidth/test-u32-width.c: New file.
48867         * modules/uniwidth/u32-width-tests: New file.
48868
48869         * lib/uniwidth/u32-width.c: New file.
48870         * modules/uniwidth/u32-width: New file.
48871
48872         * tests/uniwidth/test-u16-width.c: New file.
48873         * modules/uniwidth/u16-width-tests: New file.
48874
48875         * lib/uniwidth/u16-width.c: New file.
48876         * modules/uniwidth/u16-width: New file.
48877
48878         * tests/uniwidth/test-u8-width.c: New file.
48879         * modules/uniwidth/u8-width-tests: New file.
48880
48881         * lib/uniwidth/u8-width.c: New file.
48882         * modules/uniwidth/u8-width: New file.
48883
48884         * tests/uniwidth/test-uc_width.c: New file.
48885         * modules/uniwidth/width-tests: New file.
48886
48887         * lib/uniwidth/width.c: New file, from GNU libiconv.
48888         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
48889         * modules/uniwidth/width: New file.
48890
48891         * lib/uniwidth.h: New file, from GNU libiconv.
48892         * modules/uniwidth/base: New file.
48893
48894 2007-07-07  Bruno Haible  <bruno@clisp.org>
48895
48896         * lib/uniname.h: New file, from GNU gettext.
48897         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
48898         * lib/uniname/uninames.h: New file, from GNU gettext.
48899         * lib/uniname/uniname.c: New file, from GNU gettext.
48900         * tests/uniname/test-uninames.sh: New file.
48901         * tests/uniname/test-uninames.c: New file, from GNU gettext.
48902         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
48903         * modules/uniname/base: New file.
48904         * modules/uniname/uniname: New file.
48905         * modules/uniname/uniname-tests: New file.
48906         * MODULES.html.sh (Unicode string functions): Add the new modules.
48907
48908 2007-07-06  Bruno Haible  <bruno@clisp.org>
48909
48910         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
48911
48912 2007-07-06  Bruno Haible  <bruno@clisp.org>
48913
48914         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
48915         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
48916         includes <cygwin/sys_time.h> which includes <sys/select.h> which
48917         include <sys/time.h>.
48918         Reported by Eric Blake.
48919
48920 2007-07-06  Eric Blake  <ebb9@byu.net>
48921
48922         Fix testing canonicalize on cygwin.
48923         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
48924         Revert patch from 2007-06-19.
48925         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
48926         canonicalize module is also in use.
48927         * tests/test-canonicalize.c: New file.
48928         * tests/test-canonicalize.sh: Likewise.
48929         * modules/canonicalize-tests: Likewise.
48930
48931 2007-07-06  Jim Meyering  <jim@meyering.net>
48932
48933         * lib/getugroups.c (getugroups): Detect getgrent failure.
48934         Adjust comment to reflect reality: this function may return -1.
48935
48936 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
48937
48938         * build-aux/bootstrap (TP_URL,get_translations): Update to use
48939         the new TP address.
48940         (usage): Fix typo
48941         (gnulib_mk): New variable.
48942
48943 2007-07-05  Jim Meyering  <jim@meyering.net>
48944
48945         Don't let endgrent clobber errno, no matter how improbable.
48946         * lib/getugroups.c (getugroups): Save and restore errno around
48947         endgrent call.
48948
48949         Close the group DB even when failing with 2^31 or more members.
48950         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
48951
48952 2007-07-04  Jim Meyering  <jim@meyering.net>
48953
48954         * lib/getugroups.h: New file.
48955         * lib/getugroups.c: Include "getugroups.h".
48956         Remove uses of "register" keyword.
48957         Move local variable, "cp", down into scope where used.
48958         Give "username" parameter the "const" attribute.
48959         * modules/getugroups (Files): Add lib/getugroups.h
48960
48961 2007-07-04  Karl Berry  <karl@gnu.org>
48962
48963         * MODULES.html.sh (func_all_modules): Complete rename of
48964         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
48965
48966 2007-07-02  Bruno Haible  <bruno@clisp.org>
48967
48968         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
48969         mode, when inttypes.h comes from gnulib.
48970         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
48971
48972 2007-07-02  Simon Josefsson  <simon@josefsson.org>
48973
48974         * NEWS: Mention lgpl module name change.
48975
48976         * modules/lgpl-2.1: Renamed from lgpl.
48977
48978         * NEWS: Mention gpl module name change.
48979
48980         * modules/gpl-3.0: New file, based on gpl-2.0.
48981
48982         * modules/gpl-2.0: Renamed from gpl.
48983
48984         * modules/gpl: Fix filename, doc/gpl.texi is now found at
48985         doc/gpl-2.0.texi.
48986
48987 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
48988
48989         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
48990         #define __STDC_LIMIT_MACROS temporarily while including
48991         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
48992         Problem reported by Joel E. Denny in
48993         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
48994
48995 2007-07-01  Bruno Haible  <bruno@clisp.org>
48996
48997         * lib/unistdio.h: New file.
48998         * lib/unistdio/u-asnprintf.h: New file.
48999         * lib/unistdio/u-asprintf.h: New file.
49000         * lib/unistdio/u-printf-args.c: New file.
49001         * lib/unistdio/u-printf-args.h: New file.
49002         * lib/unistdio/u-printf-parse.h: New file.
49003         * lib/unistdio/u-snprintf.h: New file.
49004         * lib/unistdio/u-sprintf.h: New file.
49005         * lib/unistdio/u-vasprintf.h: New file.
49006         * lib/unistdio/u-vsnprintf.h: New file.
49007         * lib/unistdio/u-vsprintf.h: New file.
49008         * lib/unistdio/ulc-asnprintf.c: New file.
49009         * lib/unistdio/ulc-asprintf.c: New file.
49010         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
49011         * lib/unistdio/ulc-printf-parse.c: New file.
49012         * lib/unistdio/ulc-snprintf.c: New file.
49013         * lib/unistdio/ulc-sprintf.c: New file.
49014         * lib/unistdio/ulc-vasnprintf.c: New file.
49015         * lib/unistdio/ulc-vasprintf.c: New file.
49016         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
49017         * lib/unistdio/ulc-vsnprintf.c: New file.
49018         * lib/unistdio/ulc-vsprintf.c: New file.
49019         * lib/unistdio/u8-asnprintf.c: New file.
49020         * lib/unistdio/u8-asprintf.c: New file.
49021         * lib/unistdio/u8-printf-parse.c: New file.
49022         * lib/unistdio/u8-snprintf.c: New file.
49023         * lib/unistdio/u8-sprintf.c: New file.
49024         * lib/unistdio/u8-vasnprintf.c: New file.
49025         * lib/unistdio/u8-vasprintf.c: New file.
49026         * lib/unistdio/u8-vsnprintf.c: New file.
49027         * lib/unistdio/u8-vsprintf.c: New file.
49028         * lib/unistdio/u8-u8-asnprintf.c: New file.
49029         * lib/unistdio/u8-u8-asprintf.c: New file.
49030         * lib/unistdio/u8-u8-snprintf.c: New file.
49031         * lib/unistdio/u8-u8-sprintf.c: New file.
49032         * lib/unistdio/u8-u8-vasnprintf.c: New file.
49033         * lib/unistdio/u8-u8-vasprintf.c: New file.
49034         * lib/unistdio/u8-u8-vsnprintf.c: New file.
49035         * lib/unistdio/u8-u8-vsprintf.c: New file.
49036         * lib/unistdio/u16-asnprintf.c: New file.
49037         * lib/unistdio/u16-asprintf.c: New file.
49038         * lib/unistdio/u16-printf-parse.c: New file.
49039         * lib/unistdio/u16-snprintf.c: New file.
49040         * lib/unistdio/u16-sprintf.c: New file.
49041         * lib/unistdio/u16-vasnprintf.c: New file.
49042         * lib/unistdio/u16-vasprintf.c: New file.
49043         * lib/unistdio/u16-vsnprintf.c: New file.
49044         * lib/unistdio/u16-vsprintf.c: New file.
49045         * lib/unistdio/u16-u16-asnprintf.c: New file.
49046         * lib/unistdio/u16-u16-asprintf.c: New file.
49047         * lib/unistdio/u16-u16-snprintf.c: New file.
49048         * lib/unistdio/u16-u16-sprintf.c: New file.
49049         * lib/unistdio/u16-u16-vasnprintf.c: New file.
49050         * lib/unistdio/u16-u16-vasprintf.c: New file.
49051         * lib/unistdio/u16-u16-vsnprintf.c: New file.
49052         * lib/unistdio/u16-u16-vsprintf.c: New file.
49053         * lib/unistdio/u32-asnprintf.c: New file.
49054         * lib/unistdio/u32-asprintf.c: New file.
49055         * lib/unistdio/u32-printf-parse.c: New file.
49056         * lib/unistdio/u32-snprintf.c: New file.
49057         * lib/unistdio/u32-sprintf.c: New file.
49058         * lib/unistdio/u32-vasnprintf.c: New file.
49059         * lib/unistdio/u32-vasprintf.c: New file.
49060         * lib/unistdio/u32-vsnprintf.c: New file.
49061         * lib/unistdio/u32-vsprintf.c: New file.
49062         * lib/unistdio/u32-u32-asnprintf.c: New file.
49063         * lib/unistdio/u32-u32-asprintf.c: New file.
49064         * lib/unistdio/u32-u32-snprintf.c: New file.
49065         * lib/unistdio/u32-u32-sprintf.c: New file.
49066         * lib/unistdio/u32-u32-vasnprintf.c: New file.
49067         * lib/unistdio/u32-u32-vasprintf.c: New file.
49068         * lib/unistdio/u32-u32-vsnprintf.c: New file.
49069         * lib/unistdio/u32-u32-vsprintf.c: New file.
49070         * tests/unistdio/test-ulc-asnprintf1.c: New file.
49071         * tests/unistdio/test-ulc-asnprintf1.h: New file.
49072         * tests/unistdio/test-ulc-printf1.h: New file.
49073         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
49074         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
49075         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
49076         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
49077         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
49078         * tests/unistdio/test-ulc-vasprintf1.c: New file.
49079         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
49080         * tests/unistdio/test-ulc-vsprintf1.c: New file.
49081         * tests/unistdio/test-u8-asnprintf1.c: New file.
49082         * tests/unistdio/test-u8-asnprintf1.h: New file.
49083         * tests/unistdio/test-u8-printf1.h: New file.
49084         * tests/unistdio/test-u8-vasnprintf1.c: New file.
49085         * tests/unistdio/test-u8-vasnprintf2.c: New file.
49086         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
49087         * tests/unistdio/test-u8-vasnprintf3.c: New file.
49088         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
49089         * tests/unistdio/test-u8-vasprintf1.c: New file.
49090         * tests/unistdio/test-u8-vsnprintf1.c: New file.
49091         * tests/unistdio/test-u8-vsprintf1.c: New file.
49092         * tests/unistdio/test-u16-asnprintf1.c: New file.
49093         * tests/unistdio/test-u16-asnprintf1.h: New file.
49094         * tests/unistdio/test-u16-printf1.h: New file.
49095         * tests/unistdio/test-u16-vasnprintf1.c: New file.
49096         * tests/unistdio/test-u16-vasnprintf2.c: New file.
49097         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
49098         * tests/unistdio/test-u16-vasnprintf3.c: New file.
49099         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
49100         * tests/unistdio/test-u16-vasprintf1.c: New file.
49101         * tests/unistdio/test-u16-vsnprintf1.c: New file.
49102         * tests/unistdio/test-u16-vsprintf1.c: New file.
49103         * tests/unistdio/test-u32-asnprintf1.c: New file.
49104         * tests/unistdio/test-u32-asnprintf1.h: New file.
49105         * tests/unistdio/test-u32-printf1.h: New file.
49106         * tests/unistdio/test-u32-vasnprintf1.c: New file.
49107         * tests/unistdio/test-u32-vasnprintf2.c: New file.
49108         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
49109         * tests/unistdio/test-u32-vasnprintf3.c: New file.
49110         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
49111         * tests/unistdio/test-u32-vasprintf1.c: New file.
49112         * tests/unistdio/test-u32-vsnprintf1.c: New file.
49113         * tests/unistdio/test-u32-vsprintf1.c: New file.
49114         * modules/unistdio/base: New file.
49115         * modules/unistdio/u-printf-args: New file.
49116         * modules/unistdio/ulc-asnprintf: New file.
49117         * modules/unistdio/ulc-asprintf: New file.
49118         * modules/unistdio/ulc-fprintf: New file.
49119         * modules/unistdio/ulc-printf-parse: New file.
49120         * modules/unistdio/ulc-snprintf: New file.
49121         * modules/unistdio/ulc-sprintf: New file.
49122         * modules/unistdio/ulc-vasnprintf: New file.
49123         * modules/unistdio/ulc-vasprintf: New file.
49124         * modules/unistdio/ulc-vfprintf: New file.
49125         * modules/unistdio/ulc-vsnprintf: New file.
49126         * modules/unistdio/ulc-vsprintf: New file.
49127         * modules/unistdio/u8-asnprintf: New file.
49128         * modules/unistdio/u8-asprintf: New file.
49129         * modules/unistdio/u8-printf-parse: New file.
49130         * modules/unistdio/u8-snprintf: New file.
49131         * modules/unistdio/u8-sprintf: New file.
49132         * modules/unistdio/u8-vasnprintf: New file.
49133         * modules/unistdio/u8-vasprintf: New file.
49134         * modules/unistdio/u8-vsnprintf: New file.
49135         * modules/unistdio/u8-vsprintf: New file.
49136         * modules/unistdio/u8-u8-asnprintf: New file.
49137         * modules/unistdio/u8-u8-asprintf: New file.
49138         * modules/unistdio/u8-u8-snprintf: New file.
49139         * modules/unistdio/u8-u8-sprintf: New file.
49140         * modules/unistdio/u8-u8-vasnprintf: New file.
49141         * modules/unistdio/u8-u8-vasprintf: New file.
49142         * modules/unistdio/u8-u8-vsnprintf: New file.
49143         * modules/unistdio/u8-u8-vsprintf: New file.
49144         * modules/unistdio/u16-asnprintf: New file.
49145         * modules/unistdio/u16-asprintf: New file.
49146         * modules/unistdio/u16-printf-parse: New file.
49147         * modules/unistdio/u16-snprintf: New file.
49148         * modules/unistdio/u16-sprintf: New file.
49149         * modules/unistdio/u16-vasnprintf: New file.
49150         * modules/unistdio/u16-vasprintf: New file.
49151         * modules/unistdio/u16-vsnprintf: New file.
49152         * modules/unistdio/u16-vsprintf: New file.
49153         * modules/unistdio/u16-u16-asnprintf: New file.
49154         * modules/unistdio/u16-u16-asprintf: New file.
49155         * modules/unistdio/u16-u16-snprintf: New file.
49156         * modules/unistdio/u16-u16-sprintf: New file.
49157         * modules/unistdio/u16-u16-vasnprintf: New file.
49158         * modules/unistdio/u16-u16-vasprintf: New file.
49159         * modules/unistdio/u16-u16-vsnprintf: New file.
49160         * modules/unistdio/u16-u16-vsprintf: New file.
49161         * modules/unistdio/u32-asnprintf: New file.
49162         * modules/unistdio/u32-asprintf: New file.
49163         * modules/unistdio/u32-printf-parse: New file.
49164         * modules/unistdio/u32-snprintf: New file.
49165         * modules/unistdio/u32-sprintf: New file.
49166         * modules/unistdio/u32-vasnprintf: New file.
49167         * modules/unistdio/u32-vasprintf: New file.
49168         * modules/unistdio/u32-vsnprintf: New file.
49169         * modules/unistdio/u32-vsprintf: New file.
49170         * modules/unistdio/u32-u32-asnprintf: New file.
49171         * modules/unistdio/u32-u32-asprintf: New file.
49172         * modules/unistdio/u32-u32-snprintf: New file.
49173         * modules/unistdio/u32-u32-sprintf: New file.
49174         * modules/unistdio/u32-u32-vasnprintf: New file.
49175         * modules/unistdio/u32-u32-vasprintf: New file.
49176         * modules/unistdio/u32-u32-vsnprintf: New file.
49177         * modules/unistdio/u32-u32-vsprintf: New file.
49178         * modules/unistdio/ulc-asnprintf-tests: New file.
49179         * modules/unistdio/ulc-vasnprintf-tests: New file.
49180         * modules/unistdio/ulc-vasprintf-tests: New file.
49181         * modules/unistdio/ulc-vsnprintf-tests: New file.
49182         * modules/unistdio/ulc-vsprintf-tests: New file.
49183         * modules/unistdio/u8-asnprintf-tests: New file.
49184         * modules/unistdio/u8-vasnprintf-tests: New file.
49185         * modules/unistdio/u8-vasprintf-tests: New file.
49186         * modules/unistdio/u8-vsnprintf-tests: New file.
49187         * modules/unistdio/u8-vsprintf-tests: New file.
49188         * modules/unistdio/u16-asnprintf-tests: New file.
49189         * modules/unistdio/u16-vasnprintf-tests: New file.
49190         * modules/unistdio/u16-vasprintf-tests: New file.
49191         * modules/unistdio/u16-vsnprintf-tests: New file.
49192         * modules/unistdio/u16-vsprintf-tests: New file.
49193         * modules/unistdio/u32-asnprintf-tests: New file.
49194         * modules/unistdio/u32-vasnprintf-tests: New file.
49195         * modules/unistdio/u32-vasprintf-tests: New file.
49196         * modules/unistdio/u32-vsnprintf-tests: New file.
49197         * modules/unistdio/u32-vsprintf-tests: New file.
49198         * MODULES.html.sh (Unicode string functions): Add the new modules.
49199
49200 2007-07-01  Bruno Haible  <bruno@clisp.org>
49201
49202         * lib/sprintf.c (sprintf): Limit the available length estimation,
49203         to avoid address wraparound.
49204         * lib/vsprintf.c (vsprintf): Likewise.
49205         * modules/sprintf-posix (Dependencies): Add stdint.
49206         * modules/vsprintf-posix (Dependencies): Likewise.
49207
49208 2007-07-01  Bruno Haible  <bruno@clisp.org>
49209
49210         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
49211         Windows PATH as well. Conservative double-quoting. Comments.
49212
49213 2007-07-01  Bruno Haible  <bruno@clisp.org>
49214             Eric Blake  <ebb9@byu.net>
49215             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49216
49217         * gnulib-tool (self_abspathname): Fix algorithm to cope with
49218         empty components in $PATH, denoting '.'.
49219
49220 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49221
49222         * gnulib-tool: Fix indentation.
49223         (func_create_megatestdir): Likewise.
49224         Report by Bruno Haible.
49225
49226 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49227
49228         Sync from Automake.
49229         * build-aux/gnupload: Fix shell portability issues with for loops.
49230         Report by Karl Berry.
49231
49232 2007-06-29  Simon Josefsson  <simon@josefsson.org>
49233
49234         * build-aux/maint.mk (POURL): Use translationproject.org.
49235
49236 2007-06-27  Simon Josefsson  <simon@josefsson.org>
49237             Bruno Haible  <bruno@clisp.org>
49238
49239         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
49240         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
49241         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
49242         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
49243         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
49244
49245 2007-06-27  Bruno Haible  <bruno@clisp.org>
49246
49247         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
49248         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
49249
49250 2007-06-26  Karl Berry  <karl@gnu.org>
49251
49252         * MODULES.html.sh: remove xreadlink-with-size.
49253
49254 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
49255
49256         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
49257         method that I hope also handles the double-include problem noted
49258         by Bruno Haible in
49259         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
49260
49261 2007-06-23  Bruno Haible  <bruno@clisp.org>
49262
49263         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
49264         Don't let the 'mostlyclean' target fail if the last subdirectory could
49265         not be removed.
49266         Reported by Karl Berry.
49267
49268 2007-06-23  Bruno Haible  <bruno@clisp.org>
49269
49270         * gnulib-tool (echo): Add a speedier workaround for ksh.
49271         * tests/test-echo.sh: Likewise.
49272
49273 2007-06-23  Bruno Haible  <bruno@clisp.org>
49274
49275         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
49276         * tests/test-echo.sh: Likewise.
49277
49278 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49279
49280         * gnulib-tool (IFS): Initialize early, so we don't set it to
49281         empty later.
49282         (self_abspathname): Rewrite algorithm to set it, reindent.
49283         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
49284         (func_create_megatestdir): Merge some sed scripts.
49285
49286 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
49287
49288         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
49289         exposed by Sun Studio 11 cc on Solaris 8.
49290
49291 2007-06-22  Bruno Haible  <bruno@clisp.org>
49292
49293         * gnulib-tool (echo): Ensure the echo primitive does not interpret
49294         backslashes.
49295         * tests/test-echo.sh: New file.
49296
49297 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49298
49299         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
49300         simplify `sed_replace_build_aux' scripts, they are portable but
49301         echoing them with `echo' is not.
49302         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
49303
49304 2007-06-21  Karl Berry  <karl@gnu.org>
49305
49306         * config/srclist.txt: guess we can't handle the licenses via
49307         srclist at the moment.
49308
49309 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
49310
49311         * MODULES.html.sh: Add include_next.
49312         * modules/include_next: New file.
49313
49314 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
49315
49316         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
49317         INCLUDE_NEXT.
49318         (gl_CHECK_NEXT_HEADERS): New macro.
49319         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
49320         the obsolescent gl_ABSOLUTE_HEADER.
49321         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
49322         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
49323         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
49324         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
49325         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
49326         * m4/math_h.m4 (gl_MATH_H): Likewise.
49327         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
49328         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
49329         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
49330         * m4/stdint.m4 (gl_STDINT_H): Likewise.
49331         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
49332         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
49333         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
49334         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
49335         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
49336         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
49337         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
49338         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
49339         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
49340         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
49341         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
49342         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
49343         * m4/inttypes.m4 (gl_INTTYPES_H): Define
49344         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
49345         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
49346         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
49347         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
49348         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
49349         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
49350         * lib/float_.h: Likewise.
49351         * lib/inttypes_.h: Likewise.
49352         * lib/math_.h: Likewise.
49353         * lib/search_.h: Likewise.
49354         * lib/signal_.h: Likewise.
49355         * lib/stdint_.h: Likewise.
49356         * lib/stdio_.h: Likewise.
49357         * lib/stdlib_.h: Likewise.
49358         * lib/string_.h: Likewise.
49359         * lib/sys_stat_.h: Likewise.
49360         * lib/sys_time_.h: Likewise.
49361         * lib/time_.h: Likewise.
49362         * lib/unistd_.h: Likewise.
49363         * lib/wchar_.h: Likewise.
49364         * lib/wctype_.h: Likewise.
49365         * lib/dirent_.h: Likewise.
49366         * lib/iconv_.h: Likewise.
49367         * lib/locale_.h: Likewise.
49368         * lib/netinet_in_.h: Likewise.
49369         * lib/sys_select_.h: Likewise.
49370         * lib/sys_socket_.h: Likewise.
49371         * lib/sysexits_.h: Likewise.
49372         * modules/fcntl (Depends-on): Depend on include_next, not
49373         absolute_header.
49374         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
49375         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
49376         * modules/fchdir: Likewise.
49377         * modules/float: Likewise.
49378         * modules/iconv_open: Likewise.
49379         * modules/inttypes: Likewise.
49380         * modules/locale: Likewise.
49381         * modules/math: Likewise.
49382         * modules/netinet_in: Likewise.
49383         * modules/search: Likewise.
49384         * modules/signal: Likewise.
49385         * modules/stdint: Likewise.
49386         * modules/stdio: Likewise.
49387         * modules/stdlib: Likewise.
49388         * modules/string: Likewise.
49389         * modules/sys_select: Likewise.
49390         * modules/sys_socket: Likewise.
49391         * modules/sys_stat: Likewise.
49392         * modules/sys_time: Likewise.
49393         * modules/sysexits: Likewise.
49394         * modules/time: Likewise.
49395         * modules/unistd: Likewise.
49396         * modules/wchar: Likewise.
49397         * modules/wctype: Likewise.
49398         * modules/sys_stat: Change maintainer to "all".
49399         * modules/unistd: Likewise.
49400
49401 2007-06-20  Karl Berry  <karl@gnu.org>
49402
49403         * config/srclist.txt: track www changes in license files.
49404
49405 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
49406
49407         * build-aux/bootstrap: Remove stray dot.
49408         Make sure build_aux settings are honored when linking
49409         gnulib_extra_files.
49410
49411 2007-06-19  Eric Blake  <ebb9@byu.net>
49412
49413         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
49414         Allow compilation on cygwin.
49415
49416 2007-06-19  Jim Meyering  <jim@meyering.net>
49417
49418         xreadlink-with-size: Remove module.  No longer used.
49419         Ex-callers now use xreadlink or mreadlink-with-size.
49420         * modules/xreadlink-with-size: Remove module.
49421         * lib/xreadlink-with-size.c: Remove file.
49422         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
49423         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
49424         just before the function definition *is* accurate.
49425
49426         Eliminate one way canonicalize_filename_mode could exit.
49427         * lib/canonicalize.c (canonicalize_filename_mode):
49428         Use mreadlink_with_size, not xreadlink_with_size.
49429
49430 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
49431
49432         Detect porting problems to FreeBSD/arm, which has time_t wider than
49433         long int.  Original problem reported for GNU diff by Xin Li in
49434         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
49435         * modules/getdate (Depends-on): Add intprops, verify.
49436         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
49437         is an integer type no wider than long int.
49438
49439 2007-06-18  Jim Meyering  <jim@meyering.net>
49440
49441         New module: mreadlink-with-size.
49442         * MODULES.html.sh: Add mreadlink-with-size.
49443         * modules/mreadlink-with-size: New module
49444         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
49445         not xreadlink-with-size.
49446         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
49447
49448 2007-06-16  Bruno Haible  <bruno@clisp.org>
49449
49450         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
49451         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
49452         Reported by Gary V. Vaughan <gary@gnu.org>.
49453
49454 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
49455
49456         Revamp lchown so that it lives in unistd.h where it belongs.
49457         * lib/lchown.h: Remove.
49458         * lib/dirchownmod.c: Don't include lib/lchown.h.
49459         * lib/fchownat.c: Likewise.
49460         * lib/openat.c: Likewise.
49461         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
49462         does not follow symlinks.
49463         (EOPNOTSUPP): Define if not defined.
49464         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
49465         is defined to 0.
49466         (lchown): New decl.
49467         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
49468         Do not check for lchown decl.
49469         Set REPLACE_LCHOWN.
49470         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
49471         REPLACE_LCHOWN.
49472         * modules/chown: Make it clear it follows symlinks.
49473         * modules/lchown: Make it clear it doesn't follow symlinks.
49474         (Files): Remove lib/lchown.h
49475         (Depends-on): Add unistd.
49476         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
49477         (Include): Include <unistd.h>, not "lchown.h".
49478         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
49479         REPLACE_LCHOWN.
49480
49481 2007-06-15  Jim Meyering  <jim@meyering.net>
49482
49483         Change license (GPL to LGPL) of fsusage and dependents.
49484         * modules/fsusage (License): Change to LGPL.
49485         * modules/full-read (License): Likewise.
49486         * modules/full-write (License): Likewise.
49487         * modules/safe-read (License): Likewise.
49488         * modules/safe-write (License): Likewise.
49489
49490 2007-06-14  Ben Pfaff  <blp@gnu.org>
49491
49492         Missing part of allocsa -> malloca transition.
49493         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
49494         gl_MALLOCA.
49495
49496 2007-06-12  Bruno Haible  <bruno@clisp.org>
49497
49498         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
49499         to ia64, x86_64, i386.
49500         Reported by Eric Blake.
49501
49502 2007-06-12  Bruno Haible  <bruno@clisp.org>
49503
49504         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
49505         cross-compiling to x86_64.
49506
49507 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
49508
49509         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
49510         glitch reported by Ralf Wildenhues in
49511         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
49512
49513         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
49514         Vin Shelton.
49515
49516 2007-06-11  Bruno Haible  <bruno@clisp.org>
49517
49518         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
49519         replacement string.
49520         Reported by Eric Blake.
49521
49522 2007-06-10  Bruno Haible  <bruno@clisp.org>
49523
49524         Prepare vasnprintf code for use with Unicode strings.
49525         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
49526         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
49527         TYPE_U32_STRING.
49528         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
49529         a_u32_string variants.
49530         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
49531         * lib/printf-args.c: Don't include config.h and the specification
49532         header if PRINTF_FETCHARGS is already defined.
49533         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
49534         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
49535         TYPE_U16_STRING, TYPE_U32_STRING.
49536         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
49537         u16_directive, u16_directives, u32_directive, u32_directives): New
49538         types.
49539         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
49540         New declarations.
49541         * lib/printf-parse.c: Don't include config.h and the specification
49542         header if PRINTF_PARSE is already defined. Eliminate the set of
49543         parameters for WIDE_CHAR_VERSION; the user of this file must provide
49544         them now. Include c-ctype.h.
49545         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
49546         directive and CHAR_T_ONLY_ASCII.
49547         * lib/vasnprintf.c: Don't include config.h and the specification header
49548         if VASNPRINTF is already defined.
49549         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
49550         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
49551         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
49552         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
49553         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
49554         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
49555         code accordingly.
49556         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
49557         pad_ourselves also in this case, with the 'c' and 's' directives, and
49558         with a different notion of "width".
49559         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
49560
49561 2007-06-10  Bruno Haible  <bruno@clisp.org>
49562
49563         * modules/unistr/u32-mbsnlen: New file.
49564         * lib/unistr/u32-mbsnlen.c: New file.
49565
49566         * modules/unistr/u16-mbsnlen: New file.
49567         * lib/unistr/u16-mbsnlen.c: New file.
49568
49569         * modules/unistr/u8-mbsnlen: New file.
49570         * lib/unistr/u8-mbsnlen.c: New file.
49571
49572         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
49573         declarations.
49574
49575 2007-06-10  Bruno Haible  <bruno@clisp.org>
49576
49577         * lib/string_.h (mbsnlen): New declaration.
49578         * lib/mbsnlen.c: New file.
49579         * m4/mbsnlen.m4: New file.
49580         * modules/mbsnlen: New file.
49581         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
49582         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
49583         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
49584
49585 2007-06-10  Bruno Haible  <bruno@clisp.org>
49586
49587         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
49588
49589 2007-06-10  Bruno Haible  <bruno@clisp.org>
49590
49591         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
49592         * lib/mbuiter.h: Likewise.
49593
49594 2007-06-10  Bruno Haible  <bruno@clisp.org>
49595
49596         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
49597         declaration.
49598
49599 2007-06-10  Karl Berry  <karl@gnu.org>
49600
49601         * config/srclist.txt: remove gettext entries, Bruno prefers
49602         to update individually.
49603
49604 2007-06-10  Bruno Haible  <bruno@clisp.org>
49605
49606         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
49607         'maxlen'. Ensure only length + width bytes are allocated, not
49608         length + 1 + width.
49609
49610 2007-06-09  Bruno Haible  <bruno@clisp.org>
49611
49612         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
49613         (CHAR_T): Remove macro.
49614         (VASNPRINTF): Update.
49615
49616 2007-06-09  Bruno Haible  <bruno@clisp.org>
49617
49618         * MODULES.html.sh (Unicode string functions): Add the new modules.
49619
49620         * modules/uniconv/u32-conv-to-enc: New file.
49621         * lib/uniconv/u32-conv-to-enc.c: New file.
49622         * modules/uniconv/u32-conv-to-enc-tests: New file.
49623         * tests/uniconv/test-u32-conv-to-enc.c: New file.
49624
49625         * modules/uniconv/u16-conv-to-enc: New file.
49626         * lib/uniconv/u16-conv-to-enc.c: New file.
49627         * lib/uniconv/u-conv-to-enc.h: New file.
49628         * modules/uniconv/u16-conv-to-enc-tests: New file.
49629         * tests/uniconv/test-u16-conv-to-enc.c: New file.
49630
49631         * modules/uniconv/u8-conv-to-enc: New file.
49632         * lib/uniconv/u8-conv-to-enc.c: New file.
49633         * modules/uniconv/u8-conv-to-enc-tests: New file.
49634         * tests/uniconv/test-u8-conv-to-enc.c: New file.
49635
49636         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
49637         u32_conv_to_encoding): New declarations.
49638
49639 2007-06-09  Bruno Haible  <bruno@clisp.org>
49640
49641         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
49642
49643 2007-06-09  Bruno Haible  <bruno@clisp.org>
49644
49645         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
49646         * modules/malloca: Renamed from modules/allocsa, updated.
49647         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
49648         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
49649         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
49650         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
49651         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
49652         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
49653         * modules/xmalloca: Renamed from modules/xallocsa, updated.
49654         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
49655         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
49656         * modules/c-strcasestr (Depends-on): Update.
49657         * lib/c-strcasestr.c: Update.
49658         * modules/c-strstr (Depends-on): Update.
49659         * lib/c-strstr.c: Update.
49660         * modules/canonicalize-lgpl (Depends-on): Update.
49661         * lib/canonicalize-lgpl.c: Update.
49662         * modules/clean-temp (Depends-on): Update.
49663         * lib/clean-temp.c: Update.
49664         * modules/csharpcomp (Depends-on): Update.
49665         * lib/csharpcomp.c: Update.
49666         * modules/csharpexec (Depends-on): Update.
49667         * lib/csharpexec.c: Update.
49668         * modules/javacomp (Depends-on): Update.
49669         * lib/javacomp.c: Update.
49670         * modules/javaexec (Depends-on): Update.
49671         * lib/javaexec.c: Update.
49672         * modules/mbscasestr (Depends-on): Update.
49673         * lib/mbscasestr.c: Update.
49674         * modules/mbsstr (Depends-on): Update.
49675         * lib/mbsstr.c: Update.
49676         * modules/setenv (Depends-on): Update.
49677         * lib/setenv.c: Update.
49678         * modules/strcasestr (Depends-on): Update.
49679         * lib/strcasestr.c: Update.
49680         * modules/striconveha (Depends-on): Update.
49681         * lib/striconveha.c: Update.
49682         * modules/relocatable-prog-wrapper (Files): Update.
49683         * lib/relocwrapper.c: Update.
49684         * build-aux/install-reloc: Update.
49685         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
49686
49687 2007-06-08  Bruno Haible  <bruno@clisp.org>
49688
49689         Port to uClibc.
49690         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
49691         * lib/fpurge.c (fpurge): Likewise.
49692         * lib/freading.c (freading): Likewise.
49693         * lib/fseeko.c (rpl_fseeko): Likewise.
49694         * lib/fseterr.c (fseterr): Likewise.
49695         * lib/fwriting.c (fwriting): Likewise.
49696         * tests/test-fflush.c (main): Avoid a failure on uClibc.
49697
49698 2007-06-08  Bruno Haible  <bruno@clisp.org>
49699
49700         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
49701         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
49702         * modules/gettext (Files): Add m4/intlmacosx.m4.
49703
49704 2007-06-07  Bruno Haible  <bruno@clisp.org>
49705
49706         * modules/localename-tests: New file.
49707         * tests/test-localename.c: New file.
49708
49709         New module 'localename'.
49710         * lib/localename.h: New file.
49711         * lib/localename.c: New file, from GNU gettext.
49712         * m4/localename.m4: New file.
49713         * modules/localename: New file.
49714
49715 2007-06-07  Bruno Haible  <bruno@clisp.org>
49716
49717         Work around the lack of <wchar.h> on some builds of uClibc.
49718         * doc/headers/wchar.texi: Update.
49719         * lib/wchar_.h: Include <wchar.h> only if it exists.
49720         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
49721         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
49722         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
49723         doesn't exist.
49724         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
49725         * modules/mbfile (Depends-on): Add wchar.
49726         * modules/mbiter (Depends-on): Likewise.
49727         * modules/mbuiter (Depends-on): Likewise.
49728         Reported by Simon Josefsson.
49729
49730 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
49731
49732         Work around problem reported by Steven M. Schweda in
49733         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
49734         Tru64 5.1B with the Compaq compiler environment installed declares
49735         an 'isblank' function but does not define it in the C library.
49736         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
49737         * lib/regex_internal.h (isblank): Likewise.
49738         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
49739         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
49740
49741 2007-06-05  Bruno Haible  <bruno@clisp.org>
49742
49743         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
49744         ia64.
49745         * modules/printf-safe: New file.
49746         * modules/fprintf-posix (Depends-on): Add printf-safe.
49747         * modules/printf-posix (Depends-on): Likewise.
49748         * modules/snprintf-posix (Depends-on): Likewise.
49749         * modules/sprintf-posix (Depends-on): Likewise.
49750         * modules/vasnprintf-posix (Depends-on): Likewise.
49751         * modules/vasprintf-posix (Depends-on): Likewise.
49752         * modules/vfprintf-posix (Depends-on): Likewise.
49753         * modules/vprintf-posix (Depends-on): Likewise.
49754         * modules/vsnprintf-posix (Depends-on): Likewise.
49755         * modules/vsprintf-posix (Depends-on): Likewise.
49756         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
49757         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
49758         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
49759         "no" on i386, x86_64, ia64.
49760         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
49761         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
49762         on i386, x86_64, ia64.
49763         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
49764         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
49765         on i386, x86_64, ia64.
49766         * tests/test-vasnprintf-posix.c: Include float.h.
49767         (LDBL80_WORDS): New macro.
49768         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
49769         on i386, x86_64, ia64.
49770         * tests/test-vasprintf-posix.c: Include float.h.
49771         (LDBL80_WORDS): New macro.
49772         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
49773         on i386, x86_64, ia64.
49774         * tests/test-snprintf-posix.c: Include float.h.
49775         * tests/test-sprintf-posix.c: Likewise.
49776         * tests/test-vsnprintf-posix.c: Likewise.
49777         * tests/test-vsprintf-posix.c: Likewise.
49778
49779 2007-06-05  Bruno Haible  <bruno@clisp.org>
49780
49781         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
49782         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
49783         non-IEEE numbers on i386, x86_64, ia64.
49784         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
49785         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
49786         * tests/test-isnanl.h: Include float.h.
49787         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
49788
49789 2007-06-05  Bruno Haible  <bruno@clisp.org>
49790
49791         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
49792         also the %a / %A. Handle the %a / %A code before this extra handling.
49793
49794 2007-06-05  Bruno Haible  <bruno@clisp.org>
49795
49796         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
49797         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
49798
49799 2007-06-05  Bruno Haible  <bruno@clisp.org>
49800
49801         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
49802         typo in variable name.
49803
49804 2007-06-05  Eric Blake  <ebb9@byu.net>
49805
49806         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
49807         Reported by Simon Josefsson.
49808
49809 2007-06-04  Bruno Haible  <bruno@clisp.org>
49810
49811         Avoid test failures on some PowerPC platforms.
49812         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
49813         Define differently for PowerPC.
49814         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
49815         Reported by Gary V. Vaughan <gary@gnu.org>.
49816
49817 2007-06-02  Bruno Haible  <bruno@clisp.org>
49818
49819         Fix test-stdint failure on FreeBSD/ia64.
49820         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
49821         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
49822         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
49823         * doc/headers/stdint.texi: Update.
49824
49825 2007-06-01  Bruno Haible  <bruno@clisp.org>
49826
49827         * tests/test-binary-io.c (main): Pass a third argument to open().
49828         Reported by Gary V. Vaughan <gary@gnu.org>.
49829
49830 2007-06-01  Bruno Haible  <bruno@clisp.org>
49831
49832         * doc/functions/frexpl.texi: Update for mingw.
49833
49834 2007-06-01  Bruno Haible  <bruno@clisp.org>
49835
49836         * tests/test-lseek.c (main): Disable test of errno for invalid third
49837         argument.
49838         * doc/functions/lseek.texi: Update.
49839         Reported by Gary V. Vaughan <gary@gnu.org>.
49840
49841 2007-05-28  Bruno Haible  <bruno@clisp.org>
49842
49843         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
49844
49845 2007-05-31  Eric Blake  <ebb9@byu.net>
49846
49847         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
49848         cross compiling.
49849
49850 2007-05-30  Eric Blake  <ebb9@byu.net>
49851         and Bruno Haible  <bruno@clisp.org>
49852
49853         Work around mingw test failures exposed by m4-1.4.9b.
49854         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
49855         * tests/test-unistd.c: Disable uid_t and git_t tests for the
49856         moment.
49857
49858 2007-05-30  Bruno Haible  <bruno@clisp.org>
49859
49860         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
49861         assuming that they are closed. Needed on HP-UX 11.
49862
49863 2007-05-29  Bruno Haible  <bruno@clisp.org>
49864
49865         Fix a problem with #include_next.
49866         * lib/dirent_.h: Split the double-inclusion guard.
49867         * lib/fcntl_.h: Likewise.
49868         * lib/float_.h: Likewise.
49869         * lib/iconv_.h: Likewise.
49870         * lib/inttypes_.h: Likewise.
49871         * lib/locale_.h: Likewise.
49872         * lib/math_.h: Likewise.
49873         * lib/netinet_in_.h: Likewise.
49874         * lib/search_.h: Likewise.
49875         * lib/signal_.h: Likewise.
49876         * lib/stdint_.h: Likewise.
49877         * lib/stdio_.h: Likewise.
49878         * lib/stdlib_.h: Likewise.
49879         * lib/string_.h: Likewise.
49880         * lib/sys_select_.h: Likewise.
49881         * lib/sys_socket_.h: Likewise.
49882         * lib/sys_stat_.h: Likewise.
49883         * lib/sys_time_.h: Likewise.
49884         * lib/sysexits_.h: Likewise.
49885         * lib/time_.h: Likewise.
49886         * lib/unistd_.h: Likewise.
49887         * lib/wchar_.h: Likewise.
49888         * lib/wctype_.h: Likewise.
49889
49890 2007-05-29  Bruno Haible  <bruno@clisp.org>
49891
49892         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
49893         for the moment.
49894
49895 2007-05-29  Bruno Haible  <bruno@clisp.org>
49896
49897         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
49898         invocation.
49899         Reported by Eric Blake.
49900
49901 2007-05-29  Bruno Haible  <bruno@clisp.org>
49902
49903         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
49904         compiling case.
49905
49906 2007-05-29  Eric Blake  <ebb9@byu.net>
49907             Bruno Haible  <bruno@clisp.org>
49908
49909         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
49910         cross compiles.
49911
49912 2007-05-28  Eric Blake  <ebb9@byu.net>
49913
49914         * modules/closein-tests (test_closein_LDADD): Support test on
49915         cygwin with libtool.
49916
49917 2007-05-28  Bruno Haible  <bruno@clisp.org>
49918
49919         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
49920         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
49921         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
49922         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
49923         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
49924         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
49925         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
49926         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
49927         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
49928
49929 2007-05-28  Eric Blake  <ebb9@byu.net>
49930
49931         Unconditionally include <config.h> in unit tests.
49932         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
49933         * tests/test-allocsa.c, tests/test-arcfour.c,
49934         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
49935         tests/test-array_list.c, tests/test-array_oset.c,
49936         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
49937         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
49938         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
49939         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
49940         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
49941         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
49942         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
49943         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
49944         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
49945         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
49946         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
49947         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
49948         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
49949         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
49950         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
49951         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
49952         test-md5.c, test-memmem.c, test-printf-posix.c,
49953         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
49954         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
49955         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
49956         test-strcasestr.c, test-striconv.c, test-striconveh.c,
49957         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
49958         test-vasnprintf-posix2.c, test-vasnprintf.c,
49959         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
49960         test-vfprintf-posix.c, test-vprintf-posix.c,
49961         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
49962         test-xvasprintf.c: Likewise.
49963
49964 2007-05-28  Bruno Haible  <bruno@clisp.org>
49965
49966         * gnulib-tool (func_import): Remember the --with-tests command-line
49967         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
49968         Reported by Eric Blake.
49969
49970 2007-05-28  Bruno Haible  <bruno@clisp.org>
49971
49972         * modules/ftell-tests: New file.
49973         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
49974         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
49975
49976         * lib/ftell.c: New file.
49977         * modules/ftell: New file.
49978         * m4/ftell.m4: New file.
49979         * doc/functions/ftell.texi: Update.
49980         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
49981         REPLACE_FTELL.
49982         * lib/stdio_.h (rpl_ftell): New declaration.
49983         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
49984         REPLACE_FTELL.
49985
49986 2007-05-28  Eric Blake  <ebb9@byu.net>
49987
49988         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
49989
49990 2007-05-28  Bruno Haible  <bruno@clisp.org>
49991
49992         * modules/fseek-tests: New file.
49993         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
49994         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
49995
49996         * lib/fseek.c: New file.
49997         * modules/fseek: New file.
49998         * m4/fseek.m4: New file.
49999         * doc/functions/fseek.texi: Update.
50000         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
50001         REPLACE_FSEEK.
50002         * lib/stdio_.h (rpl_fseek): New declaration.
50003         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
50004         REPLACE_FSEEK.
50005
50006 2007-05-28  Bruno Haible  <bruno@clisp.org>
50007
50008         * lib/stdio_.h (fflush): More comments.
50009
50010 2007-05-28  Bruno Haible  <bruno@clisp.org>
50011
50012         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
50013         runtime test.
50014
50015 2007-05-28  Eric Blake  <ebb9@byu.net>
50016
50017         Improve lseek module.
50018         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
50019         * lib/unistd_.h (lseek): Scale back link warning message.
50020         * tests/test-lseek.c: Beef up test.
50021         * tests/test-lseek.sh: Exercise more facets of lseek.
50022         Reported by Bruno Haible.
50023
50024 2007-05-28  Bruno Haible  <bruno@clisp.org>
50025
50026         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
50027         to define.
50028
50029 2007-05-27  Bruno Haible  <bruno@clisp.org>
50030
50031         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
50032
50033 2007-05-27  Bruno Haible  <bruno@clisp.org>
50034
50035         * modules/openmp: New file.
50036         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
50037         Noah Misch.
50038
50039 2007-05-26  Bruno Haible  <bruno@clisp.org>
50040
50041         * modules/chdir-long (Depends-on): Add fchdir.
50042         * modules/chdir-safer (Depends-on): Likewise.
50043         * modules/fts (Depends-on): Likewise.
50044         * modules/fts-lgpl (Depends-on): Likewise.
50045         * modules/openat (Depends-on): Likewise.
50046         * modules/savewd (Depends-on): Likewise.
50047
50048 2007-05-24  Eric Blake  <ebb9@byu.net>
50049
50050         Fix lseek on mingw.
50051         * modules/lseek: New module.
50052         * m4/lseek.m4: New file.
50053         * lib/lseek.c: New file.
50054         * modules/lseek-tests: New file.
50055         * tests/test-lseek.c: New file.
50056         * tests/test-lseek.sh: New file.
50057         * MODULES.html.sh: Document lseek module.
50058         * modules/fflush (Depends-on): Add lseek, fseeko.
50059         * modules/fseeko (Depends-on): Likewise.
50060         * modules/ftello (Depends-on): Likewise.
50061         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
50062         broken.
50063         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
50064         broken.
50065         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
50066         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
50067         * lib/ftello.c (rpl_ftello): Likewise.
50068         * tests/test-fseeko.c (main): Test this.
50069         * tests/test-fseeko.sh: Likewise.
50070         * tests/test-ftello.c (main): Likewise.
50071         * tests/test-ftello.sh: Likewise.
50072         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
50073         implies replacing fseek.
50074         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
50075         HAVE_FTELLO.
50076         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
50077         * modules/unistd (Makefile.am): Likewise.
50078         * lib/unistd_.h (lseek): Declare a replacement.
50079         * doc/functions/lseek.texi (lseek): Document this fix.
50080         * doc/functions/fseek.texi (fseek): Likewise.
50081         * doc/functions/ftell.texi (ftell): Likewise.
50082
50083 2007-05-24  Bruno Haible  <bruno@clisp.org>
50084
50085         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
50086         in the printed representation of a NaN.
50087         * tests/test-vasprintf-posix.c (test_function): Likewise.
50088         * tests/test-snprintf-posix.h (test_function): Likewise.
50089         * tests/test-sprintf-posix.h (test_function): Likewise.
50090         Reported by Eric Blake.
50091
50092 2007-05-23  Eric Blake  <ebb9@byu.net>
50093
50094         Fix fseeko/ftello on cygwin 1.5.24.
50095         * doc/functions/fseeko.texi (fseeko): Document the fix.
50096         * doc/functions/ftello.texi (ftello): Document the fix.
50097         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
50098         * doc/functions/stdout.text (stdout): New file.
50099         * doc/functions/stderr.text (stderr): New file.
50100         * doc/gnulib.texi (Function Substitutes): Use new files.
50101         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
50102         prior to 1.7.0.
50103         * tests/test-ftello.c (main): Likewise for ftello.
50104         * tests/test-fseeko.sh: New file.
50105         * tests/test-ftello.sh: New file.
50106         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
50107         with seekable stdin.
50108         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
50109         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
50110         (gl_REPLACE_FSEEKO): New macro.
50111         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
50112         * modules/fseeko (Files): Distribute fseeko.c.
50113         * modules/ftello (Files): Distribute ftello.c.
50114         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
50115         mode.
50116         * lib/ftello.c (rpl_ftello): New file.
50117         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
50118         fseeko, ftello.
50119         (gl_STDIN_LARGE_OFFSET): New macro.
50120         * modules/stdio (Makefile.am): Perform the replacement.
50121         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
50122
50123 2007-05-23  Bruno Haible  <bruno@clisp.org>
50124
50125         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
50126         GNULIB_POSIXCHECK is defined.
50127
50128 2007-05-21  Bruno Haible  <bruno@clisp.org>
50129
50130         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
50131         Check also the output for NaN arguments. When cross-compiling, guess
50132         no on IRIX.
50133         * lib/vasnprintf.c: Update comments.
50134         * tests/test-vasnprintf-posix.c (strisnan): New function.
50135         (test_function): Use it.
50136         * tests/test-vasprintf-posix.c (strisnan): New function.
50137         (test_function): Use it.
50138         * tests/test-snprintf-posix.h (strisnan): New function.
50139         (test_function): Use it.
50140         * tests/test-sprintf-posix.h (strisnan): New function.
50141         (test_function): Use it.
50142         Reported by Eric Blake.
50143
50144 2007-05-20  Bruno Haible  <bruno@clisp.org>
50145
50146         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
50147         numbers that fails on BeOS.
50148         * doc/functions/frexpl.texi: Update.
50149
50150 2007-05-20  Jim Meyering  <jim@meyering.net>
50151
50152         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
50153         forced upon us by glibc-2.6.
50154
50155 2007-05-20  Bruno Haible  <bruno@clisp.org>
50156
50157         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
50158         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
50159         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
50160         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
50161         NEED_PRINTF_INFINITE.
50162         (is_infinitel): New function.
50163         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
50164         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
50165         gl_PREREQ_VASNPRINTF_INFINITE.
50166         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
50167         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
50168         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
50169         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
50170         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
50171         gl_PREREQ_VASNPRINTF_INFINITE.
50172         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
50173         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
50174         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
50175         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
50176         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
50177         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
50178         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
50179         * doc/functions/fprintf.texi: Update.
50180         * doc/functions/printf.texi: Update.
50181         * doc/functions/snprintf.texi: Update.
50182         * doc/functions/sprintf.texi: Update.
50183         * doc/functions/vfprintf.texi: Update.
50184         * doc/functions/vprintf.texi: Update.
50185         * doc/functions/vsnprintf.texi: Update.
50186         * doc/functions/vsprintf.texi: Update.
50187
50188 2007-05-20  Bruno Haible  <bruno@clisp.org>
50189
50190         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
50191         was not found in libc.
50192         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
50193
50194 2007-05-20  Bruno Haible  <bruno@clisp.org>
50195
50196         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
50197         printed as "-nan" instead of "nan".
50198         * tests/test-vasprintf-posix.c (test_function): Likewise.
50199         * tests/test-snprintf-posix.h (test_function): Likewise.
50200         * tests/test-sprintf-posix.h (test_function): Likewise.
50201         Needed for HP-UX 11.
50202
50203 2007-05-20  Jim Meyering  <jim@meyering.net>
50204
50205         Fix buggy test for the fchownat-deref bug.
50206         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
50207         symlink required for the run-test.  Without it, this test would
50208         always declare that fchownat doesn't work, and client code would
50209         unnecessarily use the replacement function with fixed libc.
50210         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
50211         Reported by Greg Schafer.
50212
50213 2007-05-19  Bruno Haible  <bruno@clisp.org>
50214
50215         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
50216         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
50217         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
50218         Needed for IRIX 6.5 and Solaris 2.5.1.
50219
50220 2007-05-19  Bruno Haible  <bruno@clisp.org>
50221
50222         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
50223         (test_function): Skip tests involving -0.0 on platforms where
50224         -0.0 = 0.0.
50225         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
50226         (test_function): Skip tests involving -0.0 on platforms where
50227         -0.0 = 0.0.
50228         * tests/test-snprintf-posix.h (have_minus_zero): New function.
50229         (test_function): Skip tests involving -0.0 on platforms where
50230         -0.0 = 0.0.
50231         * tests/test-sprintf-posix.h (have_minus_zero): New function.
50232         (test_function): Skip tests involving -0.0 on platforms where
50233         -0.0 = 0.0.
50234         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
50235         tests.
50236         * tests/test-printf-posix.h (test_function): Likewise.
50237         * tests/test-printf-posix.output: Remove all -0.0 related results.
50238         Needed for IRIX 6.5.
50239
50240 2007-05-19  Bruno Haible  <bruno@clisp.org>
50241
50242         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
50243         printed as "nan0x7fffffff" instead of "nan".
50244         * tests/test-vasprintf-posix.c (test_function): Likewise.
50245         * tests/test-snprintf-posix.h (test_function): Likewise.
50246         * tests/test-sprintf-posix.h (test_function): Likewise.
50247         * tests/test-fprintf-posix.h (NaN): Remove macro.
50248         (test_function): Remove all NaN related tests.
50249         * tests/test-printf-posix.h (NaN): Remove macro.
50250         (test_function): Remove all NaN related tests.
50251         * tests/test-printf-posix.output: Remove all NaN related results.
50252         Needed for IRIX 6.5.
50253
50254 2007-05-19  Bruno Haible  <bruno@clisp.org>
50255
50256         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
50257         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
50258
50259 2007-05-19  Bruno Haible  <bruno@clisp.org>
50260
50261         * lib/float_.h: New file.
50262         * m4/float_h.m4: New file.
50263         * modules/float: New file.
50264         * modules/isnanl (Dependencies): Add float.
50265         * modules/isnanl-nolibm (Dependencies): Likewise.
50266         * modules/mathl (Dependencies): Likewise.
50267         * modules/printf-frexpl (Dependencies): Likewise.
50268         * modules/signbit (Dependencies): Likewise.
50269         * modules/vasnprintf (Dependencies): Likewise.
50270         * doc/headers/float.texi: Update.
50271
50272 2007-05-19  Jim Meyering  <jim@meyering.net>
50273
50274         * lib/utimens.c (gl_futimens): Rename from futimens,
50275         now that glibc-2.6 declares futimens.
50276         * lib/utimens.h: Likewise.
50277
50278 2007-05-19  Bruno Haible  <bruno@clisp.org>
50279
50280         Avoid test failures on mingw.
50281         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
50282         * tests/test-printf-posix.sh: Likewise.
50283         * tests/test-vfprintf-posix.sh: Likewise.
50284         * tests/test-vprintf-posix.sh: Likewise.
50285
50286 2007-05-19  Bruno Haible  <bruno@clisp.org>
50287
50288         Fix *printf result for NaN, Inf, -0.0 on mingw.
50289         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
50290         * lib/vasnprintf.c: Include math.h and isnan.h.
50291         (is_infinite_or_zero): New function.
50292         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
50293         values in the %f, %F, %e, %E, %g, %G directives.
50294         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
50295         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
50296         gl_PRINTF_INFINITE and test its result. Invoke
50297         gl_PREREQ_VASNPRINTF_INFINITE.
50298         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
50299         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
50300         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
50301         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
50302         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
50303         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
50304         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
50305         * doc/functions/fprintf.texi: Update.
50306         * doc/functions/printf.texi: Update.
50307         * doc/functions/snprintf.texi: Update.
50308         * doc/functions/sprintf.texi: Update.
50309         * doc/functions/vfprintf.texi: Update.
50310         * doc/functions/vprintf.texi: Update.
50311         * doc/functions/vsnprintf.texi: Update.
50312         * doc/functions/vsprintf.texi: Update.
50313
50314 2007-05-19  Bruno Haible  <bruno@clisp.org>
50315
50316         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
50317         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
50318         Instead of multiplying with 10^k, set extra_zeroes to k.
50319         (scale10_round_long_double): Remove function.
50320
50321 2007-05-18  Bruno Haible  <bruno@clisp.org>
50322
50323         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
50324         introduced on 2007-05-06.
50325
50326 2007-05-18  Bruno Haible  <bruno@clisp.org>
50327
50328         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
50329         %g directives.
50330         * tests/test-vasprintf-posix.c (test_function): Likewise.
50331         * tests/test-snprintf-posix.h (test_function): Likewise.
50332         * tests/test-sprintf-posix.h (test_function): Likewise.
50333
50334 2007-05-18  Bruno Haible  <bruno@clisp.org>
50335
50336         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
50337         (strmatch): New function.
50338         (test_function): Test the %f directive on numbers of various exponents.
50339         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
50340         (strmatch): New function.
50341         (test_function): Test the %f directive on numbers of various exponents.
50342         * tests/test-snprintf-posix.h (strmatch): New function.
50343         (test_function): Test the %f directive on numbers of various exponents.
50344         * tests/test-sprintf-posix.h (strmatch): New function.
50345         (test_function): Test the %f directive on numbers of various exponents.
50346         * tests/test-snprintf-posix.c (SIZEOF): New macro.
50347         * tests/test-sprintf-posix.c (SIZEOF): New macro.
50348         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
50349         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
50350
50351 2007-05-18  Bruno Haible  <bruno@clisp.org>
50352
50353         Add support for 'long double' number output.
50354         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
50355         * lib/vasnprintf.c: Include math.h and float+.h.
50356         (mp_limb_t): New type.
50357         (GMP_LIMB_BITS): New macro.
50358         (mp_twolimb_t): New type.
50359         (GMP_TWOLIMB_BITS): New macro.
50360         (mpn_t): New type.
50361         (multiply, divide, convert_to_decimal, decode_long_double,
50362         scale10_round_long_double, scale10_round_decimal_long_double,
50363         floorlog10l): New functions.
50364         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
50365         for the %f, %F, %e, %E, %g, %G directives.
50366         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
50367         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
50368         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
50369         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
50370         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
50371         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
50372         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
50373         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
50374         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
50375         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
50376         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
50377         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
50378         * modules/snprintf-posix (Depends-on): Likewise.
50379         * modules/sprintf-posix (Depends-on): Likewise.
50380         * modules/vasnprintf-posix (Depends-on): Likewise.
50381         * modules/vasprintf-posix (Depends-on): Likewise.
50382         * modules/vfprintf-posix (Depends-on): Likewise.
50383         * modules/vsnprintf-posix (Depends-on): Likewise.
50384         * modules/vsprintf-posix (Depends-on): Likewise.
50385         * modules/vasnprintf (Files): Add lib/float+.h.
50386         * doc/functions/fprintf.texi: Update.
50387         * doc/functions/printf.texi: Update.
50388         * doc/functions/snprintf.texi: Update.
50389         * doc/functions/sprintf.texi: Update.
50390         * doc/functions/vfprintf.texi: Update.
50391         * doc/functions/vprintf.texi: Update.
50392         * doc/functions/vsnprintf.texi: Update.
50393         * doc/functions/vsprintf.texi: Update.
50394
50395 2007-05-18  Bruno Haible  <bruno@clisp.org>
50396
50397         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
50398
50399 2007-05-18  Bruno Haible  <bruno@clisp.org>
50400
50401         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
50402         for printing 64-bit integers. Needed for mingw.
50403
50404 2007-05-18  Bruno Haible  <bruno@clisp.org>
50405
50406         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
50407         gl_FUNC_FREXPL_WORKS.
50408         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
50409
50410 2007-05-18  Bruno Haible  <bruno@clisp.org>
50411
50412         * modules/frexpl-nolibm-tests: New file.
50413
50414         * modules/frexpl-nolibm: New file.
50415         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
50416
50417 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
50418
50419         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
50420         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
50421         GCC 4.2, which otherwise issues a lot of warnings.
50422         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
50423         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
50424         Likewise.
50425         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
50426         * modules/iconv_open (iconv.h): Likewise.
50427         * modules/locale (locale.h): Likewise.
50428         * modules/netinet_in (netinet/in.h): Likewise.
50429         * modules/sys_select (sys_select.h): Likewise.
50430         * modules/sys_socket (sys/socket.h): Likewise.
50431         * modules/sys_stat (sys/stat.h): Likewise.
50432         * modules/sysexits (sysexits.h): Likewise.
50433         * modules/unistd (unistd.h): Likewise.
50434
50435 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50436
50437         * modules/closein-tests (Makefile.am): Distribute
50438         `test-closein.sh'.
50439
50440 2007-05-17  Bruno Haible  <bruno@clisp.org>
50441
50442         * tests/test-printf-posix.output: Renamed from
50443         tests/test-fprintf-posix.out.
50444         * modules/fprintf-posix-tests: Update.
50445         * modules/printf-posix-tests: Update.
50446         * modules/vfprintf-posix-tests: Update.
50447         * modules/vprintf-posix-tests: Update.
50448         * tests/test-fprintf-posix.sh: Update.
50449         * tests/test-printf-posix.sh: Update.
50450         * tests/test-vfprintf-posix.sh: Update.
50451         * tests/test-vprintf-posix.sh: Update.
50452         Reported by Ralf Wildenhues.
50453
50454 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
50455
50456         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
50457         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
50458         GCC 4.2, which otherwise issues a lot of warnings.
50459         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
50460         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
50461         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
50462         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
50463         it should no longer be needed.
50464         * lib/string_.h: Likewise.
50465         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
50466         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
50467         * modules/inttypes (inttypes.h): Likewise.
50468         * modules/math (math.h): Likewise.
50469         * modules/search (search.h): Likewise.
50470         * modules/signal (signal.h): Likewise.
50471         * modules/stdint (stdint.h): Likewise.
50472         * modules/stdio (stdio.h): Likewise.
50473         * modules/stdlib (stdlib.h): Likewise.
50474         * modules/string (string.h): Likewise.
50475         * modules/sys_time (sys/time.h): Likewise.
50476         * modules/time (time.h): Likewise.
50477         * modules/wchar (wchar.h): Likewise.
50478         * modules/wctype (wtype.h): Likewise.
50479
50480 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
50481
50482         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
50483
50484 2007-05-13  Bruno Haible  <bruno@clisp.org>
50485
50486         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
50487         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
50488         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
50489         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
50490         (gl_PREREQ_STRTOK_R): Don't require it here.
50491
50492 2007-05-13  Bruno Haible  <bruno@clisp.org>
50493
50494         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
50495         when used in C++ mode.
50496
50497 2007-05-12  Bruno Haible  <bruno@clisp.org>
50498
50499         * lib/linebuffer.h: Tweak doc.
50500         * lib/linebuffer.c: Likewise.
50501
50502 2007-05-12  James Youngman  <jay@gnu.org>
50503
50504         * lib/linebuffer.c (readlinebuffer_delim): New function,
50505         like readlinebuffer, but use a caller-specified delimiter.
50506         (readlinebuffer): Just call readlinebuffer_delim with '\n'
50507         as the delimiter.
50508         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
50509
50510 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
50511
50512         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
50513         * modules/openat (Files): Remove openat-die.c.
50514         (Depends-on): Add openat-die.
50515         * modules/openat-die: New module.
50516
50517 2007-05-06  Bruno Haible  <bruno@clisp.org>
50518
50519         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
50520         Update with info about Cygwin.
50521         * doc/functions/fprintf.texi: Update.
50522         * doc/functions/printf.texi: Update.
50523         * doc/functions/snprintf.texi: Update.
50524         * doc/functions/sprintf.texi: Update.
50525         * doc/functions/vfprintf.texi: Update.
50526         * doc/functions/vprintf.texi: Update.
50527         * doc/functions/vsnprintf.texi: Update.
50528         * doc/functions/vsprintf.texi: Update.
50529         Reported by Eric Blake.
50530
50531 2007-05-06  Bruno Haible  <bruno@clisp.org>
50532
50533         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
50534         padding ourselves for the floating-point directives.
50535         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
50536         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
50537         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
50538         gl_PRINTF_FLAG_ZERO and test its result. Invoke
50539         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
50540         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
50541         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
50542         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
50543         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
50544         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
50545         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
50546         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
50547         * tests/test-snprintf-posix.h (test_function): Also check the width
50548         and some flags in the %f directive.
50549         * tests/test-sprintf-posix.h (test_function): Likewise.
50550         * tests/test-vasnprintf-posix.c (test_function): Likewise.
50551         * tests/test-vasprintf-posix.c (test_function): Likewise.
50552         * doc/functions/fprintf.texi: Update.
50553         * doc/functions/printf.texi: Update.
50554         * doc/functions/snprintf.texi: Update.
50555         * doc/functions/sprintf.texi: Update.
50556         * doc/functions/vfprintf.texi: Update.
50557         * doc/functions/vprintf.texi: Update.
50558         * doc/functions/vsnprintf.texi: Update.
50559         * doc/functions/vsprintf.texi: Update.
50560
50561 2007-05-06  Bruno Haible  <bruno@clisp.org>
50562
50563         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
50564         pass the ' flag character to sprintf or snprintf.
50565         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
50566         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
50567         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
50568         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
50569         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
50570         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
50571         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
50572         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
50573         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
50574         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
50575         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
50576         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
50577         * tests/test-snprintf-posix.h (test_function): Also check the grouping
50578         flag.
50579         * tests/test-sprintf-posix.h (test_function): Likewise.
50580         * tests/test-vasnprintf-posix.c (test_function): Likewise.
50581         * tests/test-vasprintf-posix.c (test_function): Likewise.
50582         * doc/functions/fprintf.texi: Update.
50583         * doc/functions/printf.texi: Update.
50584         * doc/functions/snprintf.texi: Update.
50585         * doc/functions/sprintf.texi: Update.
50586         * doc/functions/vfprintf.texi: Update.
50587         * doc/functions/vprintf.texi: Update.
50588         * doc/functions/vsnprintf.texi: Update.
50589         * doc/functions/vsprintf.texi: Update.
50590
50591 2007-05-01  Bruno Haible  <bruno@clisp.org>
50592
50593         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
50594
50595 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
50596
50597         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
50598         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
50599
50600 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
50601
50602         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
50603         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
50604         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
50605
50606 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
50607
50608         * lib/argp-help.c (struct hol_entry): New member `ord'.
50609         (HOL_ENTRY_PTRCMP): Use ord for comparison
50610         (hol_sort): Initialize ord.
50611
50612 2007-05-01  Bruno Haible  <bruno@clisp.org>
50613
50614         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
50615         Reported by Eric Blake.
50616         * doc/gnulib.texi (Function Substitutes): Update.
50617
50618 2007-05-01  Bruno Haible  <bruno@clisp.org>
50619
50620         * doc/functions.texi: Remove file, now redundant through
50621         doc/functions/*.texi.
50622
50623 2007-05-01  Bruno Haible  <bruno@clisp.org>
50624
50625         * modules/argp (Depends-on): Add sleep.
50626
50627 2007-05-01  Bruno Haible  <bruno@clisp.org>
50628
50629         * modules/sleep-tests: New file.
50630         * tests/test-sleep.c: New file.
50631
50632         * modules/sleep: New file.
50633         * lib/sleep.c: New file.
50634         * m4/sleep.m4: New file.
50635         * lib/unistd_.h (sleep): New declaration.
50636         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
50637         HAVE_SLEEP.
50638         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
50639         * doc/functions/sleep.texi: Document the sleep module.
50640
50641 2007-05-01  Bruno Haible  <bruno@clisp.org>
50642
50643         * lib/sigprocmask.h: Remove file.
50644         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
50645         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
50646         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
50647         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
50648         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
50649         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
50650         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
50651         HAVE_SIGSET_T as a shell variable.
50652         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
50653         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
50654         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
50655         (Depends-on): Add signal. Remove verify.
50656         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
50657         (Include): Mention <signal.h> instead of sigprocmask.h.
50658         * NEWS: Mention the change.
50659         * lib/fatal-signal.c: Don't include sigprocmask.h.
50660
50661 2007-05-01  Bruno Haible  <bruno@clisp.org>
50662
50663         * modules/signal: New file.
50664         * lib/signal_.h: New file.
50665         * m4/signal_h.m4: New file.
50666
50667 2007-05-01  Bruno Haible  <bruno@clisp.org>
50668
50669         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
50670         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
50671         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
50672         HAVE_WCTYPE_CTMP_BUG into wctype.h.
50673
50674 2007-05-01  Bruno Haible  <bruno@clisp.org>
50675
50676         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
50677         configure time.
50678         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
50679         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
50680         * modules/sys_stat (Makefile.am): Substitute their values into
50681         sys/stat.h.
50682
50683 2007-05-01  Bruno Haible  <bruno@clisp.org>
50684
50685         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
50686         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
50687         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
50688
50689 2007-05-01  Bruno Haible  <bruno@clisp.org>
50690
50691         * doc/header/assert.texi: Undo last change: don't mention the gnulib
50692         'assert' module here.
50693
50694 2007-05-01  Bruno Haible  <bruno@clisp.org>
50695
50696         * doc/functions/*.texi: New files.
50697         * doc/functions/google-ranking.txt: New file.
50698         * doc/gnulib.texi (Function Substitutes): New chapter.
50699         (ctime, inet_ntoa): Remove sections.
50700         * doc/ctime.texi: Remove file.
50701         * doc/inet_ntoa.texi: Remove file.
50702         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
50703         dependencies.
50704         (%.info): New rule, specifying a --reference-limit.
50705
50706 2007-05-01  Bruno Haible  <bruno@clisp.org>
50707
50708         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
50709
50710 2007-05-01  Bruno Haible  <bruno@clisp.org>
50711
50712         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
50713         the portability of 'mkdir' to mingw systems.
50714
50715 2007-05-01  Bruno Haible  <bruno@clisp.org>
50716
50717         * doc/headers/google-ranking.txt: New file.
50718
50719 2007-04-30  Eric Blake  <ebb9@byu.net>
50720
50721         Prefer fseeko to fseek.
50722         * modules/getpass (Depends-on): Add fseeko.
50723         * lib/getpass.c (getpass): Use fseeko, not fseek.
50724
50725 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
50726
50727         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
50728         assumes the sorting is stable, while most qsort implementations
50729         are not.  Use argument addresses to ensure they never compare as
50730         equal.
50731
50732         * tests/test-argp-2.sh (usage-indent test): Fix output
50733         (func_compare): Restore diff options
50734         * tests/test-argp.c: Restore #include "progname.h"
50735
50736 2007-04-29  Bruno Haible  <bruno@clisp.org>
50737
50738         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
50739         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
50740         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
50741         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
50742         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
50743         (configure.ac): Define CHECK_SNPRINTF_POSIX.
50744         (TESTS, check_PROGRAMS): Add test-snprintf.
50745         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
50746         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
50747         (TESTS, check_PROGRAMS): Add test-vsnprintf.
50748         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
50749         assertions that fail on HP-UX, OSF/1, or IRIX.
50750         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
50751
50752 2007-04-29  Bruno Haible  <bruno@clisp.org>
50753
50754         * MODULES.html.sh (posix_functions): Remove 'contents'.
50755
50756 2007-04-29  Karl Berry  <karl@gnu.org>
50757
50758         * config/srclist.txt (gendocs_template_min): new entry.
50759
50760 2007-04-29  Bruno Haible  <bruno@clisp.org>
50761
50762         Work around fpurge bug on BSD systems.
50763         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
50764         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
50765         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
50766         fpurge to rpl_fpurge if the system already has this function.
50767         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
50768         the case where the system already has this function. Correct invariants
50769         on BSD systems.
50770         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
50771         BSD systems.
50772
50773 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
50774
50775         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
50776         proposed by Sven Verdoolaege.
50777
50778         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
50779         options.
50780         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
50781         (usage and help tests): Update
50782
50783 2007-04-29  Bruno Haible  <bruno@clisp.org>
50784
50785         * tests/test-fflush.c (main): Use a file of size 17, not 10.
50786         Print more information in case of failure. Disable a test on BeOS.
50787
50788 2007-04-29  Bruno Haible  <bruno@clisp.org>
50789
50790         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
50791         This helps debugging on systems on which no gdb is available.
50792
50793 2007-04-29  Bruno Haible  <bruno@clisp.org>
50794
50795         * lib/freading.h: Improve comments.
50796         * lib/fwriting.h: Likewise.
50797         * tests/test-freading.c (main): Don't check freading immediately after
50798         repositioning. Needed for glibc.
50799
50800 2007-04-29  Bruno Haible  <bruno@clisp.org>
50801
50802         * lib/freading.c (freading): Trivial simplification.
50803
50804 2007-04-28  Bruno Haible  <bruno@clisp.org>
50805
50806         * tests/test-fwriting.c (main): Also test the interaction between
50807         fflush and fwriting.
50808         * modules/fwriting-tests (Depends-on): Add fflush.
50809
50810         * tests/test-freading.c (main): Also test the interaction between
50811         fflush and freading.
50812         * modules/freading-tests (Depends-on): Add fflush.
50813
50814 2007-04-28  Bruno Haible  <bruno@clisp.org>
50815
50816         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
50817         fseeko and ftello.
50818         Suggested by Eric Blake.
50819
50820 2007-04-28  Jim Meyering  <jim@meyering.net>
50821
50822         Avoid false-negative in gl_STDINT_H's C99 conformance test.
50823         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
50824         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
50825
50826 2007-04-27  Eric Blake  <ebb9@byu.net>
50827
50828         * doc/headers/assert.texi (assert.h): Document assert module use.
50829
50830 2007-04-27  Bruno Haible  <bruno@clisp.org>
50831
50832         * doc/headers/*.texi: New files.
50833         * doc/gnulib.texi (Header File Substitutes): New chapter.
50834         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
50835         dependencies.
50836         (standards.info ,standards.html, standards.dvi): Update dependencies.
50837         (mostlyclean, clean): New targets.
50838
50839 2007-04-27  Bruno Haible  <bruno@clisp.org>
50840
50841         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
50842         * modules/sysexits (Files, Makefile.am): Update.
50843
50844         * lib/sys_socket_.h: Renamed from lib/socket_.h.
50845         * modules/sys_socket (Files, Makefile.am): Update.
50846
50847         * lib/sys_stat_.h: Renamed from lib/stat_.h.
50848         * modules/sys_stat (Files, Makefile.am): Update.
50849
50850 2007-04-27  Eric Blake  <ebb9@byu.net>
50851
50852         * lib/freading.h: Improve comments.
50853         * lib/fwriting.h: Likewise.
50854         * lib/fflush.c: Likewise.
50855
50856         Fix closein for mingw.
50857         * modules/closein-tests: Add tests for closein.
50858         * tests/test-closein.c: New file.
50859         * tests/test-closein.sh: Likewise.
50860         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
50861         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
50862
50863 2007-04-27  Bruno Haible  <bruno@clisp.org>
50864
50865         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
50866         version is < 6.
50867         * lib/math_.h [__DECC]: Likewise.
50868         * lib/stdio_.h [__DECC]: Likewise.
50869         * lib/stdlib_.h [__DECC]: Likewise.
50870         * lib/string_.h [__DECC]: Likewise.
50871         * lib/time_.h [__DECC]: Likewise.
50872         * lib/wchar_.h [__DECC]: Likewise.
50873         * lib/wctype_.h [__DECC]: Likewise.
50874
50875 2007-04-27  Bruno Haible  <bruno@clisp.org>
50876
50877         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
50878
50879 2007-04-27  Bruno Haible  <bruno@clisp.org>
50880
50881         * lib/fflush.c: Add comments.
50882         * modules/fpurge-tests (Depends-on): Add fflush.
50883         * modules/freadable-tests (Depends-on): Likewise.
50884         * modules/fwritable-tests (Depends-on): Likewise.
50885
50886 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
50887
50888         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
50889         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
50890         Report by Bruno Haible <bruno@clisp.org>.
50891
50892 2007-04-26  Eric Blake  <ebb9@byu.net>
50893
50894         Fix fflush on mingw.
50895         * modules/fflush (Depends-on): Add freading.
50896         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
50897         but unread data.
50898
50899 2007-04-26  Eric Blake  <ebb9@byu.net>
50900         and Bruno Haible  <bruno@clisp.org>
50901
50902         Implement freading and fwriting.
50903         * lib/freading.c: New file.
50904         * lib/freading.h: Likewise.
50905         * m4/freading.m4: Likewise.
50906         * modules/freading: Likewise.
50907         * modules/freading-tests: Likewise.
50908         * tests/test-freading.c: Likewise.
50909         * lib/fwriting.c: New file.
50910         * lib/fwriting.h: Likewise.
50911         * m4/fwriting.m4: Likewise.
50912         * modules/fwriting: Likewise.
50913         * modules/fwriting-tests: Likewise.
50914         * tests/test-fwriting.c: Likewise.
50915         * MODULES.html.sh (File stream based Input/Output): Mention them.
50916
50917 2007-04-26  Bruno Haible  <bruno@clisp.org>
50918
50919         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
50920         'long' when we assume it.
50921         Suggested by Eric Blake.
50922
50923 2007-04-26  Bruno Haible  <bruno@clisp.org>
50924
50925         Ensure fseeko, ftello are declared on glibc systems.
50926         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
50927         * modules/fseeko (configure.ac-early): Likewise.
50928         * modules/ftello (configure.ac-early): Likewise.
50929         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
50930         AC_FUNC_FSEEKO for this.
50931         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
50932         (gl_CHECK_FSEEKO): Remove macro.
50933
50934 2007-04-26  Bruno Haible  <bruno@clisp.org>
50935
50936         * tests/test-fflush.c (main): Also check the ftell result after
50937         fflush and fseek/fseeko.
50938         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
50939         file descriptor position cache in the stream.
50940         * lib/fseeko.c (rpl_fseeko): Likewise.
50941
50942 2007-04-26  Bruno Haible  <bruno@clisp.org>
50943
50944         * modules/fflush-tests (Depends-on): Add fseeko.
50945
50946 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
50947             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50948
50949         * lib/argz_.h: ensure error_t definition is obtained in same
50950         mechanism system argz.h would have.
50951         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
50952         argz facilities are known bad.  Err on the side of caution if
50953         cross-compiling.
50954
50955 2007-04-25  Eric Blake  <ebb9@byu.net>
50956
50957         * lib/fpurge.c (includes): Use stdlib.h for free.
50958         * tests/test-fflush.c (main): Also test fflush-fseeko.
50959
50960 2007-04-25  Bruno Haible  <bruno@clisp.org>
50961
50962         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
50963         * lib/fseeko.c: New file.
50964         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
50965         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
50966         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
50967         gl_FUNC_FSEEKO.
50968         (gl_FUNC_FSEEKO): Invoke it.
50969         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
50970         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
50971         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
50972
50973 2007-04-25  Bruno Haible  <bruno@clisp.org>
50974
50975         * modules/fflush (Depends-on): Add ftello.
50976
50977 2007-04-25  Bruno Haible  <bruno@clisp.org>
50978
50979         * modules/ftello-tests: New file.
50980         * tests/test-ftello.c: New file.
50981
50982         * modules/ftello: New file.
50983         * m4/ftello.m4: New file.
50984         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
50985         HAVE_FTELLO.
50986         * lib/stdio_.h (ftello): New declaration.
50987         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
50988         HAVE_FTELLO.
50989
50990 2007-04-25  Bruno Haible  <bruno@clisp.org>
50991
50992         * modules/fseeko-tests: New file.
50993         * tests/test-fseeko.c: New file.
50994
50995         * modules/fseeko: New file.
50996         * m4/fseeko.m4: New file.
50997         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
50998         HAVE_FSEEKO.
50999         * lib/stdio_.h (fseeko): New declaration.
51000         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
51001         HAVE_FSEEKO.
51002
51003 2007-04-25  Bruno Haible  <bruno@clisp.org>
51004
51005         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
51006
51007 2007-04-25  Bruno Haible  <bruno@clisp.org>
51008
51009         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
51010         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
51011         * tests/test-unistd.c: Likewise.
51012         * tests/test-fcntl.c: Likewise.
51013
51014 2007-04-23  Eric Blake  <ebb9@byu.net>
51015
51016         * lib/fflush.c: Fix missing include.
51017         Reported by Bruno Haible.
51018
51019 2007-04-23  Bruno Haible  <bruno@clisp.org>
51020
51021         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
51022         Reported by Eric Blake.
51023
51024 2007-04-23  Bruno Haible  <bruno@clisp.org>
51025
51026         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
51027
51028 2007-04-23  Bruno Haible  <bruno@clisp.org>
51029
51030         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
51031
51032 2007-04-23  Bruno Haible  <bruno@clisp.org>
51033
51034         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
51035         Needed on HP-UX 11.
51036
51037 2007-04-16  Eric Blake  <ebb9@byu.net>
51038
51039         Make fflush rely on fpurge.
51040         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
51041         open coding all variants.
51042         * modules/fflush (Depends-on): Add fpurge and unistd.
51043         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
51044         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
51045
51046         Fix --with-tests compilation on cygwin.
51047         * modules/argmatch-tests (Makefile.am): List gnulib library first
51048         in LDADD.
51049         * modules/argp-tests (Makefile.am): Likewise.
51050         * modules/array-list-tests (Makefile.am): Likewise.
51051         * modules/array-oset-tests (Makefile.am): Likewise.
51052         * modules/avltree-list-tests (Makefile.am): Likewise.
51053         * modules/avltree-oset-tests (Makefile.am): Likewise.
51054         * modules/avltreehash-list-tests (Makefile.am): Likewise.
51055         * modules/carray-list-tests (Makefile.am): Likewise.
51056         * modules/dirname-tests (Makefile.am): Likewise.
51057         * modules/frexp-tests (Makefile.am): Likewise.
51058         * modules/isnanl-tests (Makefile.am): Likewise.
51059         * modules/linked-list-tests (Makefile.am): Likewise.
51060         * modules/linkedhash-list-tests (Makefile.am): Likewise.
51061         * modules/lock-tests (Makefile.am): Likewise.
51062         * modules/rbtree-list-tests (Makefile.am): Likewise.
51063         * modules/rbtree-oset-tests (Makefile.am): Likewise.
51064         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
51065         * modules/tls-tests (Makefile.am): Likewise.
51066         * modules/tsearch-tests (Makefile.am): Likewise.
51067         * modules/xvasprintf-tests (Makefile.am): Likewise.
51068
51069         Fix fpurge for cygwin.
51070         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
51071         value.
51072         * modules/fpurge-tests (Depends-on): Clean up trash.
51073
51074 2007-04-16  Simon Josefsson  <simon@josefsson.org>
51075
51076         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
51077
51078         * m4/autobuild.m4: Re-indent.
51079
51080 2007-04-13  Bruno Haible  <bruno@clisp.org>
51081
51082         * modules/fpurge-tests: New file.
51083         * tests/test-fpurge.c: New file.
51084
51085         * modules/fpurge: New file.
51086         * lib/fpurge.h: New file.
51087         * lib/fpurge.c: New file.
51088         * m4/fpurge.m4: New file.
51089
51090 2007-04-13  Bruno Haible  <bruno@clisp.org>
51091
51092         * modules/fbufmode-tests: New file.
51093         * tests/test-fbufmode.c: New file.
51094
51095         * modules/fbufmode: New file.
51096         * lib/fbufmode.h: New file.
51097         * lib/fbufmode.c: New file.
51098         * m4/fbufmode.m4: New file.
51099
51100 2007-04-13  Bruno Haible  <bruno@clisp.org>
51101
51102         * modules/fwritable-tests: New file.
51103         * tests/test-fwritable.c: New file.
51104
51105         * modules/fwritable: New file.
51106         * lib/fwritable.h: New file.
51107         * lib/fwritable.c: New file.
51108         * m4/fwritable.m4: New file.
51109
51110 2007-04-13  Bruno Haible  <bruno@clisp.org>
51111
51112         * modules/freadable-tests: New file.
51113         * tests/test-freadable.c: New file.
51114
51115         * modules/freadable: New file.
51116         * lib/freadable.h: New file.
51117         * lib/freadable.c: New file.
51118         * m4/freadable.m4: New file.
51119
51120 2007-04-13  Bruno Haible  <bruno@clisp.org>
51121
51122         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
51123         MOSTLYCLEANFILES.
51124
51125 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
51126
51127         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
51128         gzip bootstrap.conf to avoid dragging in i18n machinery.
51129         (gnulib_tool_option): Use it.
51130
51131 2007-04-13  Bruno Haible  <bruno@clisp.org>
51132
51133         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
51134         %F directives.
51135         * tests/test-vasprintf-posix.c (test_function): Likewise.
51136         * tests/test-snprintf-posix.h (test_function): Likewise.
51137         * tests/test-sprintf-posix.h (test_function): Likewise.
51138         * tests/test-fprintf-posix.h (test_function): Likewise.
51139         * tests/test-printf-posix.h (test_function): Likewise.
51140         * tests/test-fprintf-posix.out: Likewise.
51141
51142 2007-04-13  Bruno Haible  <bruno@clisp.org>
51143
51144         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
51145         * modules/tls-tests (configure.ac): Likewise.
51146         Reported by Arto C. Nirkko <anirkko@insel.ch>.
51147
51148 2007-04-13  Bruno Haible  <bruno@clisp.org>
51149
51150         * lib/tls.c (glthread_tls_get): Fix return type.
51151         Patch by Arto C. Nirkko <anirkko@insel.ch>.
51152
51153 2007-04-12  Eric Blake  <ebb9@byu.net>
51154
51155         * modules/gettime (Depends-on): Remove gettime.
51156         Reported by Dmitry V. Levin.
51157
51158 2007-04-12  Bruno Haible  <bruno@clisp.org>
51159
51160         * modules/fflush (Include): Mention <stdio.h>.
51161         * modules/strtoimax (Include): Mention <inttypes.h>.
51162         * modules/strtoumax (Include): Likewise.
51163
51164 2007-04-12  Eric Blake  <ebb9@byu.net>
51165
51166         * .cvsignore: New file.
51167         * .gitignore: Likewise.
51168
51169 2007-04-12  Bruno Haible  <bruno@clisp.org>
51170
51171         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
51172         not before, since $(LDADD) often contains libgnu.a.
51173         * modules/striconv-tests (test_striconv_LDADD): Likewise.
51174         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
51175         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
51176         Needed on Cygwin.
51177
51178 2007-04-12  Eric Blake  <ebb9@byu.net>
51179
51180         Work around glibc's failure to flush stdin on fclose.
51181         * lib/closein.c (close_stdin): Flush stdin before closing.
51182
51183         Work around glibc's failure to reset seekable stdin on exit.
51184         * modules/closein: New module.
51185         * lib/closein.c: New file.
51186         * lib/closein.h: Likewise.
51187         * m4/closein.m4: Likewise.
51188         * MODULES.html.sh (File stream based Input/Output): Document it.
51189
51190 2007-04-12  Simon Josefsson  <simon@josefsson.org>
51191
51192         * gnulib-tool: Rename generated 'autobuild' script to
51193         'do-autobuild' in --create-megatestdir output.
51194
51195         * doc/gnulib.texi (Build robot for gnulib): Fix.
51196
51197 2007-04-12  Simon Josefsson  <simon@josefsson.org>
51198
51199         * modules/sysexits (Depends-on): Add absolute-header.
51200
51201 2007-04-12  Eric Blake  <ebb9@byu.net>
51202
51203         No need to preserve errno on success.
51204         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
51205         Reported by Bruno Haible.
51206
51207 2007-04-12  Simon Josefsson  <simon@josefsson.org>
51208
51209         * MODULES.html.sh (Support for maintaining and releasing
51210         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
51211
51212 2007-04-12  Simon Josefsson  <simon@josefsson.org>
51213
51214         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
51215
51216 2007-04-12  Simon Josefsson  <simon@josefsson.org>
51217
51218         * modules/autobuild: New module.
51219
51220         * m4/autobuild.m4: New file.
51221
51222 2007-04-11  Bruno Haible  <bruno@clisp.org>
51223
51224         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
51225         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
51226         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
51227         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
51228         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
51229         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
51230         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
51231         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
51232         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
51233         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
51234         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
51235         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
51236         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
51237         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
51238         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
51239         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
51240         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
51241         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
51242         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
51243         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
51244         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
51245         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
51246         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
51247         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
51248         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
51249         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
51250         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
51251         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
51252         Reported by Eric Blake.
51253
51254 2007-04-11  Bruno Haible  <bruno@clisp.org>
51255
51256         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
51257
51258 2007-04-10  Bruno Haible  <bruno@clisp.org>
51259
51260         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
51261         for NaN and Infinity. Needed on FreeBSD 6.1.
51262         * tests/test-vasnprintf-posix.c (test_function): Undo last change
51263         regarding results for "%010a" of Infinity and NaN.
51264         * tests/test-vasprintf-posix.c (test_function): Likewise.
51265         * tests/test-snprintf-posix.h (test_function): Likewise.
51266         * tests/test-sprintf-posix.h (test_function): Likewise.
51267         * tests/test-fprintf-posix.h (test_function): Likewise.
51268         * tests/test-printf-posix.h (test_function): Likewise.
51269         * tests/test-fprintf-posix.out: Likewise.
51270
51271 2007-04-10  Bruno Haible  <bruno@clisp.org>
51272
51273         * modules/locale-tests: New file.
51274         * tests/test-locale.c: New file.
51275
51276         * modules/locale: New file.
51277         * lib/locale_.h: New file.
51278         * m4/locale_h.m4: New file.
51279
51280 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
51281             Bruno Haible  <bruno@clisp.org>
51282
51283         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
51284         be determined, test for availability of the copysignf, copysign,
51285         copysignl functions.
51286         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
51287         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
51288         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
51289
51290 2007-04-09  Eric Blake  <ebb9@byu.net>
51291
51292         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
51293         * modules/stdio (Makefile.am): Support fflush.
51294         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
51295         * modules/fflush: New file.
51296         * lib/fflush.c: Likewise.
51297         * m4/fflush.m4: Likewise.
51298         * modules/fflush-tests: New test.
51299         * tests/test-fflush.c: Likewise.
51300         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
51301
51302 2007-04-06  Bruno Haible  <bruno@clisp.org>
51303
51304         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
51305         (VASNPRINTF): Use signbit for faster determination whether to print a
51306         minus sign.
51307         * modules/vasnprintf (Files): Remove lib/float+.h.
51308         * modules/fprintf-posix (Depends-on): Add signbit.
51309         * modules/snprintf-posix (Depends-on): Likewise.
51310         * modules/sprintf-posix (Depends-on): Likewise.
51311         * modules/vasnprintf-posix (Depends-on): Likewise.
51312         * modules/vasprintf-posix (Depends-on): Likewise.
51313         * modules/vfprintf-posix (Depends-on): Likewise.
51314         * modules/vsnprintf-posix (Depends-on): Likewise.
51315         * modules/vsprintf-posix (Depends-on): Likewise.
51316
51317 2007-04-06  Bruno Haible  <bruno@clisp.org>
51318
51319         * tests/test-frexp.c (main): Test also the sign bit of zero results.
51320         * tests/test-frexpl.c (main): Likewise.
51321         * tests/test-ldexpl.c (main): Likewise.
51322         * modules/frexp-tests (Depends-on): Add signbit.
51323         * modules/frexpl-tests (Depdends-on): Likewise.
51324         * modules/ldexpl-tests (Depdends-on): Likewise.
51325
51326 2007-04-06  Bruno Haible  <bruno@clisp.org>
51327
51328         * modules/signbit-tests: New file.
51329         * tests/test-signbit.c: New file.
51330
51331         * modules/signbit: New file.
51332         * lib/signbitf.c: New file.
51333         * lib/signbitd.c: New file.
51334         * lib/signbitl.c: New file.
51335         * m4/signbit.m4: New file.
51336         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
51337         (signbit): New macro.
51338         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
51339         REPLACE_SIGNBIT.
51340         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
51341         REPLACE_FREXPL into math.h.
51342
51343 2007-04-06  Bruno Haible  <bruno@clisp.org>
51344
51345         * modules/isnanf-nolibm-tests: New file.
51346         * tests/test-isnanf.c: New file.
51347
51348         * modules/isnanf-nolibm: New file.
51349         * lib/isnanf.h: New file.
51350         * lib/isnanf.c: New file.
51351         * lib/isnan.c: Consider the USE_FLOAT macro.
51352         * m4/isnanf.m4: New file.
51353
51354 2007-04-06  Bruno Haible  <bruno@clisp.org>
51355
51356         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
51357         (Link): New section.
51358
51359         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
51360
51361 2007-04-06  Bruno Haible  <bruno@clisp.org>
51362
51363         Assume the 'long double' type.
51364         * m4/longdouble.m4: Remove file.
51365         * config/srclist.txt: Don't mention longdouble.m4.
51366         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
51367         * lib/float+.h: Likewise.
51368         * lib/frexp.c: Likewise.
51369         * lib/printf-args.h: Likewise.
51370         * lib/printf-args.c: Likewise.
51371         * lib/printf-frexp.c: Likewise.
51372         * lib/printf-parse.c: Likewise.
51373         * lib/vasnprintf.c: Likewise.
51374         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
51375         * m4/intl.m4: Likewise.
51376         * m4/isnanl.m4: Likewise.
51377         * m4/printf.m4: Likewise.
51378         * m4/printf-frexpl.m4: Likewise.
51379         * m4/vasnprintf.m4: Likewise.
51380         * modules/allocsa (Files): Remove m4/longdouble.m4.
51381         * modules/gettext (Files): Likewise.
51382         * modules/relocatable-prog-wrapper (Files): Likewise.
51383         * modules/vasnprintf (Files): Likewise.
51384         * modules/isnanl (Files): Likewise.
51385         (Include): Simplify.
51386         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
51387         (Include): Simplify.
51388         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
51389         (Include): Simplify.
51390         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
51391         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
51392         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
51393         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
51394         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
51395         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
51396         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
51397         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
51398         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
51399         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
51400         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
51401         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
51402         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
51403         * tests/test-isnanl.c: Likewise.
51404         * tests/test-snprintf-posix.h: Likewise.
51405         * tests/test-sprintf-posix.h: Likewise.
51406         * tests/test-vasnprintf-posix.c: Likewise.
51407         * tests/test-vasnprintf-posix2.c: Likewise.
51408         * tests/test-vasprintf-posix.c: Likewise.
51409
51410 2007-04-06  Bruno Haible  <bruno@clisp.org>
51411
51412         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
51413         * lib/math_.h [__DECC]: Include the overridden include file through
51414         #include_next, outside the double-inclusion guard.
51415         * lib/stdio_.h [__DECC]: Likewise.
51416         * lib/stdlib_.h [__DECC]: Likewise.
51417         * lib/string_.h [__DECC]: Likewise.
51418         * lib/time_.h [__DECC]: Likewise.
51419         * lib/wchar_.h [__DECC]: Likewise.
51420         * lib/wctype_.h [__DECC]: Likewise.
51421         * lib/inttypes_.h [__DECC]: Likewise.
51422         Reported by Albert Chin <china@thewrittenword.com> in
51423         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
51424
51425 2007-04-04  Eric Blake  <ebb9@byu.net>
51426
51427         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
51428         1.5.x.
51429
51430 2007-04-04  Bruno Haible  <bruno@clisp.org>
51431
51432         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
51433         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
51434
51435 2007-04-04  Bruno Haible  <bruno@clisp.org>
51436
51437         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
51438         results for "%010a" of Infinity and NaN.
51439         * tests/test-vasprintf-posix.c (test_function): Likewise.
51440         * tests/test-snprintf-posix.h (test_function): Likewise.
51441         * tests/test-sprintf-posix.h (test_function): Likewise.
51442         * tests/test-fprintf-posix.h (test_function): Remove these tests.
51443         * tests/test-printf-posix.h (test_function): Likewise.
51444         * tests/test-fprintf-posix.out: Update.
51445         Needed for FreeBSD 6.1.
51446
51447 2007-04-04  Bruno Haible  <bruno@clisp.org>
51448
51449         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
51450         directly used by the gnulib modules nor by gnulib-tool.
51451
51452 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
51453
51454         * DEPENDENCIES: Give overall description of version dependency
51455         desirability.  Use more-typical names for apps.
51456         Add shell, coreutils, diffutils, grep, tar, gzip.
51457
51458 2007-04-04  Simon Josefsson  <simon@josefsson.org>
51459
51460         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
51461
51462 2007-04-04  Karl Berry  <karl@gnu.org>
51463
51464         * MODULES.html.sh (func_module): missing '.
51465
51466 2007-04-03  Bruno Haible  <bruno@clisp.org>
51467
51468         * modules/argmatch-tests (Makefile.am): New variable
51469         test_argmatch_LDADD.
51470         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
51471         * modules/array-list-tests (Makefile.am): New variable
51472         test_array_list_LDADD.
51473         * modules/array-oset-tests (Makefile.am): New variable
51474         test_array_oset_LDADD.
51475         * modules/avltree-list-tests (Makefile.am): New variable
51476         test_avltree_list_LDADD.
51477         * modules/avltree-oset-tests (Makefile.am): New variable
51478         test_avltree_oset_LDADD.
51479         * modules/avltreehash-list-tests (Makefile.am): New variable
51480         test_avltreehash_list_LDADD.
51481         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
51482         test_canonicalize_lgpl_LDADD.
51483         * modules/carray-list-tests (Makefile.am): New variable
51484         test_carray_list_LDADD.
51485         * modules/dirname-tests (Makefile.am): New variable
51486         test_dirname_LDADD.
51487         * modules/linked-list-tests (Makefile.am): New variable
51488         test_linked_list_LDADD.
51489         * modules/linkedhash-list-tests (Makefile.am): New variable
51490         test_linkedhash_list_LDADD.
51491         * modules/rbtree-list-tests (Makefile.am): New variable
51492         test_rbtree_list_LDADD.
51493         * modules/rbtree-oset-tests (Makefile.am): New variable
51494         test_rbtree_oset_LDADD.
51495         * modules/rbtreehash-list-tests (Makefile.am): New variable
51496         test_rbtreehash_list_LDADD.
51497         * modules/xvasprintf-tests (Makefile.am): New variable
51498         test_xvasprintf_LDADD.
51499         Reported by Eric Blake.
51500
51501 2007-04-03  Eric Blake  <ebb9@byu.net>
51502
51503         * DEPENDENCIES: Weaken m4 requirements.
51504
51505 2007-04-03  Bruno Haible  <bruno@clisp.org>
51506
51507         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
51508         * modules/isnanl-tests (configure.ac): Likewise.
51509
51510 2007-04-03  Ben Pfaff  <blp@gnu.org>
51511
51512         * modules/iconv_open: Add $(srcdir)/ to source directory
51513         references in Makefile fragments that call gperf, to fix VPATH
51514         builds.
51515
51516 2007-04-03  Bruno Haible  <bruno@clisp.org>
51517
51518         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
51519         * lib/ldexpl.c: Undo last change.
51520
51521 2007-04-03  Bruno Haible  <bruno@clisp.org>
51522
51523         * modules/printf-frexpl (Depends-on): Undo last change.
51524         (Files): Add m4/ldexpl.m4.
51525
51526 2007-04-03  Bruno Haible  <bruno@clisp.org>
51527
51528         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
51529         * modules/isnanl (Link): New section.
51530
51531         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
51532         * modules/frexp (Link): New section.
51533
51534         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
51535         * modules/frexpl (Link): New section.
51536
51537         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
51538         * modules/ldexpl (Link): New section.
51539
51540 2007-04-03  Bruno Haible  <bruno@clisp.org>
51541
51542         * modules/TEMPLATE-EXTENDED: New file.
51543         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
51544
51545 2007-04-03  Bruno Haible  <bruno@clisp.org>
51546
51547         * DEPENDENCIES: New file.
51548         Suggested by Simon Josefsson.
51549
51550 2007-04-03  Bruno Haible  <bruno@clisp.org>
51551
51552         * doc/gnulib.texi: Escape @.
51553
51554 2007-04-03  James Youngman  <jay@gnu.org>
51555         and Paul Eggert  <eggert@cs.ucla.edu>
51556
51557         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
51558         birthtime on all systems that have birthtime, not just those which
51559         use st_birthtimensec rather than st_birthtim.  Putting zero in
51560         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
51561         that the birth time is not available for files on an NFS mount.
51562
51563 2007-04-03  Simon Josefsson  <simon@josefsson.org>
51564
51565         * modules/memxor: Move back from crypto/, suggested by Bruno.
51566         * modules/crypto/hmac-sha1: Fix memxor dependency.
51567
51568         * modules/crypto/gc: Moved from ../.
51569
51570 2007-04-02  Eric Blake  <ebb9@byu.net>
51571
51572         * lib/ldexpl.c (includes): Avoid libm.
51573
51574         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
51575
51576 2007-04-02  Bruno Haible  <bruno@clisp.org>
51577
51578         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
51579         on IRIX.
51580
51581 2007-04-02  Bruno Haible  <bruno@clisp.org>
51582
51583         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
51584         x86 or x86_64 platforms running MacOS X.
51585         Reported by Ryan Schmidt <@ryandesign.com>.
51586
51587 2007-04-02  Bruno Haible  <bruno@clisp.org>
51588
51589         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
51590         i386.
51591
51592 2007-04-01  Simon Josefsson  <simon@josefsson.org>
51593
51594         * modules/crypto/arcfour: Moved from ../.
51595         * modules/crypto/arcfour-tests: Moved from ../.
51596         * modules/crypto/arctwo: Moved from ../.
51597         * modules/crypto/arctwo-tests: Moved from ../.
51598         * modules/crypto/des: Moved from ../.
51599         * modules/crypto/des-tests: Moved from ../.
51600         * modules/crypto/gc-arcfour: Moved from ../.
51601         * modules/crypto/gc-arcfour-tests: Moved from ../.
51602         * modules/crypto/gc-arctwo: Moved from ../.
51603         * modules/crypto/gc-arctwo-tests: Moved from ../.
51604         * modules/crypto/gc-des: Moved from ../.
51605         * modules/crypto/gc-des-tests: Moved from ../.
51606         * modules/crypto/gc-hmac-md5: Moved from ../.
51607         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
51608         * modules/crypto/gc-hmac-sha1: Moved from ../.
51609         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
51610         * modules/crypto/gc-md2: Moved from ../.
51611         * modules/crypto/gc-md2-tests: Moved from ../.
51612         * modules/crypto/gc-md4: Moved from ../.
51613         * modules/crypto/gc-md4-tests: Moved from ../.
51614         * modules/crypto/gc-md5: Moved from ../.
51615         * modules/crypto/gc-md5-tests: Moved from ../.
51616         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
51617         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
51618         * modules/crypto/gc-random: Moved from ../.
51619         * modules/crypto/gc-rijndael: Moved from ../.
51620         * modules/crypto/gc-rijndael-tests: Moved from ../.
51621         * modules/crypto/gc-sha1: Moved from ../.
51622         * modules/crypto/gc-sha1-tests: Moved from ../.
51623         * modules/crypto/gc-tests: Moved from ../.
51624         * modules/crypto/hmac-md5: Moved from ../.
51625         * modules/crypto/hmac-md5-tests: Moved from ../.
51626         * modules/crypto/hmac-sha1: Moved from ../.
51627         * modules/crypto/hmac-sha1-tests: Moved from ../.
51628         * modules/crypto/md2: Moved from ../.
51629         * modules/crypto/md2-tests: Moved from ../.
51630         * modules/crypto/md4: Moved from ../.
51631         * modules/crypto/md4-tests: Moved from ../.
51632         * modules/crypto/md5: Moved from ../.
51633         * modules/crypto/md5-tests: Moved from ../.
51634         * modules/crypto/memxor: Moved from ../.
51635         * modules/crypto/rijndael: Moved from ../.
51636         * modules/crypto/rijndael-tests: Moved from ../.
51637         * modules/crypto/sha1: Moved from ../.
51638
51639 2007-03-30  James Youngman  <jay@gnu.org>
51640
51641         * tests/test-stat-time.c (prepare_test): use chmod() rather than
51642         rename() to change the ctime of a file (because ctime is unaffected
51643         by rename on jfs2 on AIX 5.1).
51644         (main): Start by doing cleanup, in case a previous run failed leaving
51645         test files behind.
51646
51647 2007-03-31  Bruno Haible  <bruno@clisp.org>
51648
51649         Support old proprietary implementations of iconv.
51650         * modules/iconv_open: New file.
51651         * lib/iconv_.h: New file.
51652         * m4/iconv_h.m4: New file.
51653         * lib/iconv_open.c: New file.
51654         * lib/iconv_open-aix.gperf: New file.
51655         * lib/iconv_open-hpux.gperf: New file.
51656         * lib/iconv_open-irix.gperf: New file.
51657         * lib/iconv_open-osf.gperf: New file.
51658         * m4/iconv_open.m4: New file.
51659         * modules/linebreak (Depends-on): Add iconv_open.
51660         * modules/striconv (Depends-on): Likewise.
51661         * modules/striconveh (Depends-on): Likewise.
51662         * modules/unicodeio (Depends-on): Likewise.
51663         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
51664         (iconv_t)(-1).
51665         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
51666         conversion if cd is (iconv_t)(-1).
51667         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
51668         is not possible.
51669
51670 2007-03-31  Bruno Haible  <bruno@clisp.org>
51671
51672         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
51673         work on Solaris either. Protect also second use of "autodetect_jp".
51674
51675 2007-03-31  Bruno Haible  <bruno@clisp.org>
51676
51677         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
51678         the function is not present.
51679
51680 2007-03-31  Bruno Haible  <bruno@clisp.org>
51681
51682         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
51683         the function is not present.
51684
51685 2007-03-31  Bruno Haible  <bruno@clisp.org>
51686
51687         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
51688         a bug in HP-UX iconv_open().
51689
51690 2007-03-31  Bruno Haible  <bruno@clisp.org>
51691
51692         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
51693         (Mathematics <math.h>): New section, add fpieee.
51694         (Input/output <stdio.h>): Add fseterr.
51695         (Mathematics <math.h>): New section, add printf-frexp.
51696         (Container data structures): Add sublist.
51697         (Core language properties): Add fpucw, inline.
51698         (Functions for greatest-width integer types <inttypes.h>): Add
51699         imaxabs, imaxdiv, inttypes.
51700         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
51701         isnanl-nolibm, ldexp.
51702         (Mathematics <math.h>): New section, add printf-frexpl.
51703         (Support for systems lacking POSIX:2001): Add fprintf-posix,
51704         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
51705         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
51706         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
51707         (Unicode string functions): Add unistr/u*-mbtoucr.
51708         (Java): Add javacomp-script, javaexec-script.
51709         (C#): Add csharpcomp-script, csharpexec-script.
51710         (Support for building libraries and executables): Add havelib,
51711         relocatable-*.
51712         (Support for maintaining and releasing projects): Renamed from
51713         'Support for maintaining and release projects'. Add announce-gen.
51714
51715 2007-03-31  Bruno Haible  <bruno@clisp.org>
51716
51717         * README: Talk primarily about git.
51718         (git and CVS): Renamed from CVS.
51719         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
51720         gnulib is available through git.
51721         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
51722
51723 2007-03-30  Bruno Haible  <bruno@clisp.org>
51724
51725         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
51726         * lib/poll_.h: Likewise.
51727         * lib/stat_.h: Likewise.
51728         * lib/sys_time_.h: Likewise.
51729         * lib/sysexit_.h: Likewise.
51730         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
51731         * lib/stdbool_.h: Likewise.
51732         * lib/byteswap_.h: Add double-inclusion guard.
51733
51734 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
51735
51736         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
51737
51738 2007-03-30  Karl Berry  <karl@gnu.org>
51739
51740         * config/srclist-update: double space after USA in the license
51741         substitution, since that's how it's usually (?) written.
51742
51743 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
51744
51745         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
51746         reported by Bruno Haible.
51747
51748 2007-03-29  Bruno Haible  <bruno@clisp.org>
51749
51750         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
51751         a bug in AIX iconv().
51752
51753 2007-03-29  Bruno Haible  <bruno@clisp.org>
51754
51755         * modules/ldexpl-tests: New file.
51756         * tests/test-ldexpl.c: New file.
51757
51758 2007-03-29  Bruno Haible  <bruno@clisp.org>
51759
51760         * lib/ldexpl.c: Include fpucw.h.
51761         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
51762         multiplication.
51763         * modules/ldexpl (Depends-on): Add fpucw.
51764
51765 2007-03-29  Bruno Haible  <bruno@clisp.org>
51766
51767         * modules/ldexpl: New file.
51768         * m4/ldexpl.m4: New file.
51769         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
51770         set.
51771         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
51772         REPLACE_LDEXPL.
51773         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
51774         REPLACE_LDEXPL.
51775         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
51776         gl_FUNC_LDEXPL_WORKS.
51777         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
51778         * modules/mathl (Files): Remove lib/ldexpl.c.
51779         (Depends-on): Add ldexpl.
51780
51781 2007-03-29  Bruno Haible  <bruno@clisp.org>
51782
51783         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
51784
51785 2007-03-29  Bruno Haible  <bruno@clisp.org>
51786
51787         * tests/test-striconveh.c (main): Don't assume that a direct conversion
51788         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
51789         and possibly also HP-UX.
51790         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
51791         work on AIX, IRIX, HP-UX, OSF/1.
51792         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
51793         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
51794         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
51795         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
51796         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
51797         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
51798
51799 2007-03-29  Bruno Haible  <bruno@clisp.org>
51800
51801         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
51802
51803 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
51804
51805         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
51806         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
51807
51808 2007-03-29  Eric Blake  <ebb9@byu.net>
51809
51810         * lib/acl-internal.h: Remove redundant include.
51811         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
51812         Cygwin when a file is locked.
51813
51814 2007-03-29  Bruno Haible  <bruno@clisp.org>
51815
51816         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
51817         file.
51818         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
51819
51820 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
51821
51822         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
51823         try to remove a parent directory if the child couldn't be removed
51824         (except for the first rmdir, which could fail because the child
51825         doesn't exist).  Problem reported by Jeff Blaine in
51826         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
51827
51828 2007-03-28  Bruno Haible  <bruno@clisp.org>
51829
51830         * lib/striconveh.c (utf8conv_carefully): New function.
51831         (mem_cd_iconveh_internal): Invoke it.
51832
51833 2007-03-28  Bruno Haible  <bruno@clisp.org>
51834
51835         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
51836         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
51837         input.
51838         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
51839         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
51840         unistr/u8-uctomb.
51841
51842 2007-03-28  Bruno Haible  <bruno@clisp.org>
51843
51844         * modules/unistr/u8-mbtoucr: New file.
51845         * lib/unistr/u8-mbtoucr.c: New file.
51846         * modules/unistr/u16-mbtoucr: New file.
51847         * lib/unistr/u16-mbtoucr.c: New file.
51848         * modules/unistr/u16-mbtoucr: New file.
51849         * lib/unistr/u16-mbtoucr.c: New file.
51850         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
51851
51852 2007-03-27  Simon Josefsson  <simon@josefsson.org>
51853             Bruno Haible  <bruno@clisp.org>
51854
51855         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
51856         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
51857         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
51858
51859         * m4/stdio_h.m4: Add stubs for vasprintf too.
51860
51861         * modules/stdio: Support vasprintf in sed command.
51862
51863         * modules/vasprintf: Depend on stdio for prototypes.  Remove
51864         vasprintf.h.  Add stdio module indicator.
51865
51866         * lib/stdio_.h: Declare asprintf and vasprintf, based on
51867         vasprintf.h.
51868
51869         * lib/vasprintf.h: File removed.
51870
51871         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
51872         * lib/vasprintf.c: Ditto.
51873         * lib/xvasprintf.c: Ditto.
51874         * tests/test-vasprintf-posix.c: Ditto.
51875         * tests/test-vasprintf.c: Ditto.
51876
51877 2007-03-27  Bruno Haible  <bruno@clisp.org>
51878
51879         Make vasnprintf multithread-safe.
51880         * lib/vasnprintf.c (decimal_point_char): New function.
51881         (VASNPRINTF): Use it.
51882         Suggested by Simon Josefsson.
51883
51884 2007-03-27  Eric Blake  <ebb9@byu.net>
51885
51886         Support sub-second birthtime on cygwin.
51887         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
51888         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
51889         (get_stat_birthtime): Also work with st_birthtim.
51890
51891 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
51892
51893         * lib/stat-time.h (USE_BIRTHTIME): Remove.
51894         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
51895         (get_stat_birthtime_ns): Do not try to use "spare" fields.
51896         (get_stat_birthtime_ns): Simplify compile-time tests.
51897         (get_stat_birthtime): Change the API to look like
51898         get_stat_mtime etc., except return a negative tv_nsec on error.
51899         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
51900         Don't check for "spare" fields.
51901         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
51902         or for struct stat.st_birthtime, as these tests aren't used.
51903         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
51904
51905 2007-03-27  Bruno Haible  <bruno@clisp.org>
51906
51907         * lib/stat-time.h: Include <sys/stat.h>.
51908
51909 2007-03-27  James Youngman  <jay@gnu.org>
51910
51911         * lib/stat-time.h (get_stat_birthtime): New function for
51912           retrieving st_birthtime as provided by UFS2 (hence *BSD).
51913         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
51914           and its variants.
51915         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
51916         * modules/stat-time-test: New file.
51917         * tests/test-stat-time.c: New test, devised by Bruno Haible.
51918
51919 2007-03-26  Bruno Haible  <bruno@clisp.org>
51920
51921         Better support of signalling NaNs.
51922         * lib/atanl.c: Include isnanl.h.
51923         (atanl): Perform test for NaN at the beginning of the function and
51924         through a call to isnanl.
51925         * lib/cosl.c: Include isnanl.h.
51926         (cosl): Perform test for NaN at the beginning of the function and
51927         through a call to isnanl.
51928         * lib/ldexpl.c: Include isnanl.h.
51929         (ldexpl): Perform test for NaN through a call to isnanl.
51930         * lib/logl.c: Include isnanl.h.
51931         (logl): Perform test for NaN at the beginning of the function and
51932         through a call to isnanl.
51933         * lib/sinl.c: Include isnanl.h.
51934         (sinl): Perform test for NaN at the beginning of the function and
51935         through a call to isnanl.
51936         * lib/sqrtl.c: Include isnanl.h.
51937         (sqrtl): Perform test for NaN at the beginning of the function and
51938         through a call to isnanl.
51939         * lib/tanl.c: Include isnanl.h.
51940         (tanl): Perform test for NaN at the beginning of the function and
51941         through a call to isnanl.
51942         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
51943         * modules/mathl (Depends-on): Add isnanl.
51944
51945 2007-03-26  Eric Blake  <ebb9@byu.net>
51946
51947         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
51948         regression in logic sense of previous patch.
51949
51950 2007-03-26  Bruno Haible  <bruno@clisp.org>
51951
51952         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
51953         unportable shell command "if ! ...".
51954         Reported by Ralf Wildenhues.
51955
51956 2007-03-25  Bruno Haible  <bruno@clisp.org>
51957
51958         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
51959         <sysexits.h> file, and only add EX_CONFIG.
51960         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
51961         absolute file name and whether it is sufficient. Substitute also
51962         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
51963         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
51964         ABSOLUTE_SYSEXITS_H into sysexits.h.
51965
51966 2007-03-25  Bruno Haible  <bruno@clisp.org>
51967
51968         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
51969         hints is NULL.
51970
51971 2007-03-25  Bruno Haible  <bruno@clisp.org>
51972
51973         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
51974         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
51975
51976 2007-03-25  Bruno Haible  <bruno@clisp.org>
51977
51978         * lib/vasnprintf.c: Include langinfo.h.
51979         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
51980         multithread-safe.
51981         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
51982         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
51983         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
51984         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
51985         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
51986         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
51987         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
51988         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
51989         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
51990         Reported by Simon Josefsson.
51991
51992 2007-03-25  Bruno Haible  <bruno@clisp.org>
51993
51994         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
51995         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
51996         * modules/vasnprintf (Depends-on): Add stdint.
51997
51998 2007-03-25  Bruno Haible  <bruno@clisp.org>
51999
52000         * modules/fpieee: New file.
52001         * m4/fpieee.m4: New file.
52002         * modules/isnan-nolibm (Depends-on): Add fpieee.
52003         * modules/isnanl-nolibm (Depends-on): Add fpieee.
52004         * modules/isnanl (Depends-on): Add fpieee.
52005
52006 2007-03-25  Bruno Haible  <bruno@clisp.org>
52007
52008         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
52009
52010 2007-03-25  Bruno Haible  <bruno@clisp.org>
52011
52012         Avoid test failures on IRIX 6.5.
52013         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
52014         (main): Use it.
52015         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
52016         macros.
52017         (main): Use them.
52018
52019 2007-03-25  Bruno Haible  <bruno@clisp.org>
52020
52021         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
52022         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
52023         exists but doesn't work.
52024         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
52025         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
52026         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
52027         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
52028         math.h.
52029
52030 2007-03-25  Bruno Haible  <bruno@clisp.org>
52031
52032         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
52033         returns inf. Needed on IRIX 6.5.
52034
52035 2007-03-25  Bruno Haible  <bruno@clisp.org>
52036
52037         * tests/test-frexpl.c: Include isnanl-nolibm.h.
52038         (main): Use isnanl instead of x != x idiom.
52039         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
52040
52041         * tests/test-frexp.c: Include isnan.h.
52042         (main): Use isnan instead of x != x idiom.
52043         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
52044
52045 2007-03-25  Bruno Haible  <bruno@clisp.org>
52046
52047         * tests/test-frexp.c (NaN): New function/macro.
52048         (main): Use it instead of 0.0 / 0.0.
52049         * tests/test-isnan.c (NaN): New function/macro.
52050         (main): Use it instead of 0.0 / 0.0.
52051         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
52052         (test_function): Use it instead of 0.0 / 0.0.
52053         * tests/test-vasprintf-posix.c (NaN): New function/macro.
52054         (test_function): Use it instead of 0.0 / 0.0.
52055         * tests/test-snprintf-posix.h (NaN): New function/macro.
52056         (test_function): Use it instead of 0.0 / 0.0.
52057         * tests/test-sprintf-posix.h (NaN): New function/macro.
52058         (test_function): Use it instead of 0.0 / 0.0.
52059         * tests/test-fprintf-posix.h (NaN): New function/macro.
52060         (test_function): Use it instead of 0.0 / 0.0.
52061         * tests/test-printf-posix.h (NaN): New function/macro.
52062         (test_function): Use it instead of 0.0 / 0.0.
52063
52064         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
52065
52066 2007-03-25  Bruno Haible  <bruno@clisp.org>
52067
52068         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
52069
52070 2007-03-25  Bruno Haible  <bruno@clisp.org>
52071
52072         * lib/regexec.c (merge_state_with_log): Make static.
52073
52074 2007-03-25  Bruno Haible  <bruno@clisp.org>
52075
52076         * lib/trigl.c (kernel_rem_pio2): Make static.
52077
52078 2007-03-25  Bruno Haible  <bruno@clisp.org>
52079
52080         * lib/sincosl.c (sincosl_table): Make static.
52081
52082 2007-03-25  Bruno Haible  <bruno@clisp.org>
52083
52084         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
52085         if the compiler does not support C99.
52086
52087 2007-03-25  Bruno Haible  <bruno@clisp.org>
52088
52089         * modules/time (Makefile.am): Ensure all rule action lines start with a
52090         tab.
52091
52092 2007-03-24  Bruno Haible  <bruno@clisp.org>
52093
52094         * modules/tsearch-tests: New file.
52095         * tests/test-tsearch.sh: New file.
52096         * tests/test-tsearch.c: New file, mostly copied from glibc.
52097
52098         * modules/search-tests: New file.
52099         * tests/test-search.c: New file.
52100
52101         * modules/search: New file.
52102         * lib/search_.h: New file, incorporating lib/tsearch.h.
52103         * m4/search_h.m4: New file.
52104         * lib/tsearch.h: Remove file.
52105         * lib/tsearch.c: Include search.h instead of tsearch.h.
52106         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
52107         HAVE_TSEARCH.
52108         * modules/tsearch (Files): Remove lib/tsearch.h.
52109         (Depends-on): Add search.
52110         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
52111         (Include): Change tsearch.h into search.h.
52112
52113 2007-03-24  Bruno Haible  <bruno@clisp.org>
52114
52115         * modules/fpucw: New file.
52116         * lib/fpucw.h: New file.
52117         * lib/frexp.c: Include fpucw.h.
52118         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
52119         (FUNC): Use them.
52120         * lib/printf-frexp.c: Include fpucw.h.
52121         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
52122         (FUNC): Use them.
52123         * lib/vasnprintf.c: Include fpucw.h.
52124         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
52125         'long double' calculations.
52126         * tests/test-frexpl.c: Include fpucw.h.
52127         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
52128         * tests/test-printf-frexpl.c: Include fpucw.h.
52129         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
52130         * modules/frexpl (Depends-on): Add fpucw.
52131         * modules/printf-frexpl (Depends-on): Likewise.
52132         * modules/fprintf-posix (Depends-on): Likewise.
52133         * modules/snprintf-posix (Depends-on): Likewise.
52134         * modules/sprintf-posix (Depends-on): Likewise.
52135         * modules/vasnprintf-posix (Depends-on): Likewise.
52136         * modules/vasprintf-posix (Depends-on): Likewise.
52137         * modules/vfprintf-posix (Depends-on): Likewise.
52138         * modules/vsnprintf-posix (Depends-on): Likewise.
52139         * modules/vsprintf-posix (Depends-on): Likewise.
52140         * modules/frexpl-tests (Depends-on): Likewise.
52141         * modules/printf-frexpl-tests (Depends-on): Likewise.
52142
52143 2007-03-24  Bruno Haible  <bruno@clisp.org>
52144
52145         * lib/float+.h: New file.
52146         * lib/isnan.c: Include float+.h.
52147         (SIZE): New macro.
52148         (FUNC): Compare only SIZE bytes of the value.
52149         * lib/vasnprintf.c: Include float+.h.
52150         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
52151         SIZEOF_LDBL or SIZEOF_DBL bytes.
52152         * modules/isnan-nolibm (Files): Add lib/float+.h.
52153         * modules/isnanl-nolibm (Files): Add lib/float+.h.
52154         * modules/isnanl (Files): Add lib/float+.h.
52155         * modules/vasnprintf (Files): Add lib/float+.h.
52156
52157 2007-03-24  Bruno Haible  <bruno@clisp.org>
52158
52159         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
52160         include isnanl-nolibm.h.
52161
52162 2007-03-24  Bruno Haible  <bruno@clisp.org>
52163
52164         * tests/test-read-file.c (main): Don't produce spurious output for
52165         expected situations. Make the test fail if it encountered unexpected
52166         results.
52167
52168 2007-03-24  Bruno Haible  <bruno@clisp.org>
52169
52170         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
52171         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
52172
52173 2007-03-24  Bruno Haible  <bruno@clisp.org>
52174
52175         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
52176
52177 2007-03-24  Bruno Haible  <bruno@clisp.org>
52178
52179         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
52180         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
52181
52182         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
52183         * modules/utf8-ucs4: Turn into a symbolic link to module
52184         unistr/u8-mbtouc.
52185
52186         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
52187         utf8-ucs4-unsafe.
52188         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
52189         unistr/u8-mbtouc-unsafe.
52190
52191         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
52192         * modules/utf16-ucs4: Turn into a symbolic link to module
52193         unistr/u16-mbtouc.
52194
52195         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
52196         utf16-ucs4-unsafe.
52197         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
52198         unistr/u16-mbtouc-unsafe.
52199
52200         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
52201         * modules/ucs4-utf8: Turn into a symbolic link to module
52202         unistr/u8-ubtomb.
52203
52204         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
52205         * modules/ucs4-utf16: Turn into a symbolic link to module
52206         unistr/u16-ubtomb.
52207
52208 2007-03-24  Bruno Haible  <bruno@clisp.org>
52209
52210         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
52211         Enable the function only if HAVE_INLINE.
52212         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
52213         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
52214         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
52215         Enable the function only if HAVE_INLINE.
52216         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
52217         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
52218         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
52219         Enable the function only if HAVE_INLINE.
52220         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
52221         Enable the function only if HAVE_INLINE.
52222         * modules/utf8-ucs4: Update.
52223         * modules/utf8-ucs4-unsafe: Update.
52224         * modules/utf16-ucs4: Update.
52225         * modules/utf16-ucs4-unsafe: Update.
52226         * modules/ucs4-utf8: Update.
52227         * modules/ucs4-utf16: Update.
52228
52229 2007-03-24  Bruno Haible  <bruno@clisp.org>
52230
52231         * lib/utf8-ucs4.h: Remove file.
52232         * lib/utf8-ucs4-unsafe.h: Remove file.
52233         * lib/utf16-ucs4.h: Remove file.
52234         * lib/utf16-ucs4-unsafe.h: Remove file.
52235         * lib/ucs4-utf8.h: Remove file.
52236         * lib/ucs4-utf16.h: Remove file.
52237         * lib/unistr.h: Include their previous contents.
52238         * m4/utf-ucs4.m4: Remove file.
52239         * m4/ucs4-utf.m4: Remove file.
52240         * modules/utf8-ucs4 (Files): Remove lib/utf8-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/utf8-ucs4-unsafe (Files): Remove lib/utf8-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/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
52251         (Depends-on): Add unistr/base.
52252         (configure.ac): Remove gl_UTF_UCS4.
52253         (Makefile.am): Update.
52254         (Include): Change to unistr.h.
52255         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
52256         (Depends-on): Add unistr/base.
52257         (configure.ac): Remove gl_UTF_UCS4.
52258         (Makefile.am): Update.
52259         (Include): Change to unistr.h.
52260         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
52261         (Depends-on): Add unistr/base.
52262         (configure.ac): Remove gl_UCS4_UTF.
52263         (Makefile.am): Update.
52264         (Include): Change to unistr.h.
52265         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
52266         (Depends-on): Add unistr/base.
52267         (configure.ac): Remove gl_UCS4_UTF.
52268         (Makefile.am): Update.
52269         (Include): Change to unistr.h.
52270         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
52271         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
52272         utf8-ucs4-unsafe.h.
52273         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
52274         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
52275         utf16-ucs4-unsafe.h.
52276         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
52277         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
52278         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
52279         * lib/unistr/u8-strchr.c: Likewise.
52280         * lib/unistr/u8-strrchr.c: Likewise.
52281         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
52282         * lib/unistr/u16-strchr.c: Likewise.
52283         * lib/unistr/u16-strrchr.c: Likewise.
52284         * lib/striconveh.c: Update.
52285         * lib/linebreak.c: Update.
52286
52287 2007-03-24  Bruno Haible  <bruno@clisp.org>
52288
52289         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
52290         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
52291
52292 2007-03-22  Bruno Haible  <bruno@clisp.org>
52293
52294         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
52295
52296 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
52297
52298         * MODULES.html.sh (File system functions): New module write-any-file.
52299         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
52300         * m4/write-any-file.m4: New files.
52301
52302 2007-03-23  Eric Blake  <ebb9@byu.net>
52303
52304         * gnulib-tool: Rearrange space-tab sequences, since some editors
52305         like to eat them.
52306
52307 2007-03-23  Eric Blake  <ebb9@byu.net>
52308
52309         * lib/version-etc.c (version_etc_va): Update license wording to
52310         be more concise.  Recommended by Richard Stallman.
52311
52312 2007-03-22  Bruno Haible  <bruno@clisp.org>
52313
52314         * lib/poll.c (MSG_PEEK): New fallback definition.
52315
52316 2007-03-22  Bruno Haible  <bruno@clisp.org>
52317
52318         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
52319         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
52320         (main): Update.
52321         Fixes a compilation error on BeOS.
52322
52323 2007-03-22  Bruno Haible  <bruno@clisp.org>
52324
52325         * modules/frexpl-tests: New file.
52326         * tests/test-frexpl.c: New file.
52327
52328         * modules/frexpl: New file.
52329         * m4/frexpl.m4: New file.
52330         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
52331         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
52332         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
52333         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
52334         (Depends-on): Add frexpl. Remove isnanl-nolibm.
52335         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
52336
52337 2007-03-22  Bruno Haible  <bruno@clisp.org>
52338
52339         * lib/frexpl.c: Share code with lib/frexp.c.
52340         * modules/mathl (Files): Add lib/frexp.c.
52341         (Depends-on): Add isnanl-nolibm.
52342
52343 2007-03-22  Bruno Haible  <bruno@clisp.org>
52344
52345         * modules/printf-frexp (Files): Add m4/frexp.m4.
52346         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
52347         only if the found frexp function actually works.
52348
52349 2007-03-22  Bruno Haible  <bruno@clisp.org>
52350
52351         * lib/frexp.c: Remove older implementation that uses divisions.
52352
52353 2007-03-21  Bruno Haible  <bruno@clisp.org>
52354
52355         * modules/frexp-tests: New file.
52356         * tests/test-frexp.c: New file.
52357
52358         * modules/frexp: New file.
52359         * lib/frexp.c: New file.
52360         * m4/frexp.m4: New file.
52361         * lib/math_.h (frexp): New declaration.
52362         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
52363         REPLACE_FREXP.
52364         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
52365
52366 2007-03-21  Bruno Haible  <bruno@clisp.org>
52367
52368         * modules/isnanl-tests: New file.
52369         * tests/test-isnanl.c: New file.
52370
52371         * modules/isnanl: New file.
52372         * lib/isnanl.h: New file.
52373         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
52374         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
52375         gl_FUNC_ISNANL_WORKS.
52376         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
52377         New macros.
52378
52379 2007-03-21  Bruno Haible  <bruno@clisp.org>
52380
52381         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
52382         lib/isnanl.h.
52383         (Include): Update.
52384         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
52385         * lib/vasnprintf.c: Update.
52386         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
52387         tests/test-isnanl.h, remove tests/test-isnanl.c.
52388         (Makefile.am): Update.
52389         * tests/test-isnanl-nolibm.c: New file.
52390         * tests/test-isnanl.h: New file.
52391         * tests/test-isnanl.c: Remove file.
52392
52393 2007-03-21  Jim Meyering  <jim@meyering.net>
52394
52395         When trying to open ".", treat ESTALE like EACCES.
52396         * lib/savewd.c (savewd_save): Resort to forking not just upon
52397         failure with EACCES, but also when errno is ESTALE.
52398
52399 2007-03-20  Bruno Haible  <bruno@clisp.org>
52400
52401         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
52402         Needed on AIX 5.1. Reported by Matthew Woehlke.
52403
52404 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
52405
52406         Suggestions by Bruno Haible:
52407         * lib/acl-internal.h: Include "gettext.h" rather than rolling
52408         our own.
52409         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
52410         * modules/acl (Depends-on): Add gettext.
52411
52412 2007-03-19  Bruno Haible  <bruno@clisp.org>
52413
52414         * modules/iconvme: Remove file.
52415         * lib/iconvme.h: Remove file.
52416         * lib/iconvme.c: Remove file.
52417         * m4/iconvme.m4: Remove file.
52418
52419 2007-03-19  Bruno Haible  <bruno@clisp.org>
52420
52421         * doc/relocatable-maint.texi: Break long shell script line.
52422         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
52423
52424 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
52425
52426         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
52427         handle file_has_acl.
52428         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
52429         * lib/acl.c: Move header inclusions and related macro defns into
52430         lib/acl-internal.h.
52431         (S_ISLNK): Remove defn, since that's now done for us.
52432         (file_has_acl): Move to lib/file-has-acl.c.
52433         Call acl_trivial if available.  This is the crucial part of the fix.
52434         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
52435         shared within the library.  Rewrite a bit, partly to make it compatible
52436         with the GNU coding style.
52437         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
52438         Remove unnecessary double-quotes.
52439         Don't test for acl_to_text; the build will catch that.
52440         Replace acl_entries if it doesn't exist and it is needed.
52441         Check for -lsec and acl_trivial (as used on Solaris 10).
52442         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
52443         lib/file-has-acl.c.
52444         (Depends-on): Add sys_stat, for S_ISLNK.
52445
52446 2007-03-19  Ben Pfaff  <blp@gnu.org>
52447
52448         * doc/gnulib.texi: Fix typos.
52449         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
52450
52451 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
52452
52453         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
52454         If size is zero here, buf must be zero.
52455
52456 2007-03-19  Simon Josefsson  <simon@josefsson.org>
52457
52458         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
52459         <bruno@clisp.org>.
52460
52461 2007-03-18  Bruno Haible  <bruno@clisp.org>
52462
52463         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
52464         Suggested by Eric Blake.
52465
52466 2007-03-18  Ben Pfaff  <blp@gnu.org>
52467
52468         * doc/relocatable.texi: Recommend using as prefix a directory
52469         that does not exist and will never be created.  Based on
52470         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
52471         and others.
52472
52473 2007-03-17  Bruno Haible  <bruno@clisp.org>
52474
52475         * lib/fchownat.c: Include lchown.h.
52476
52477 2007-03-17  Bruno Haible  <bruno@clisp.org>
52478
52479         Fix endless loop when the given allocated size was > INT_MAX.
52480         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
52481         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
52482         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
52483         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
52484         * lib/sprintf.c (sprintf): Likewise.
52485
52486 2007-03-17  Bruno Haible  <bruno@clisp.org>
52487
52488         * tests/test-argp-2.sh (func_compare): Output a context diff.
52489
52490 2007-03-17  Bruno Haible  <bruno@clisp.org>
52491
52492         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
52493         locale's decimal-point character.
52494
52495 2007-03-17  Bruno Haible  <bruno@clisp.org>
52496
52497         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
52498         before comparing it. Needed because on some platforms (e.g. x86) a
52499         'long double' occupies less bytes than sizeof (long double).
52500
52501 2007-03-17  Bruno Haible  <bruno@clisp.org>
52502
52503         * tests/test-crc.c (main): Make printf statements 64-bit clean.
52504         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
52505         * tests/test-getaddrinfo.c (simple): Likewise.
52506         * tests/test-read-file.c (main): Likewise.
52507
52508 2007-03-17  Bruno Haible  <bruno@clisp.org>
52509
52510         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
52511
52512 2007-03-17  Bruno Haible  <bruno@clisp.org>
52513
52514         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
52515         unused variable.
52516
52517 2007-03-17  Bruno Haible  <bruno@clisp.org>
52518
52519         * tests/test-c-strcasecmp.c: Include c-strcase.h.
52520         * tests/test-c-strncasecmp.c: Likewise.
52521
52522 2007-03-17  Bruno Haible  <bruno@clisp.org>
52523
52524         * modules/stdlib (Depends-on): Add unistd.
52525         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
52526         Needed for MacOS X 10.3.
52527
52528 2007-03-17  Bruno Haible  <bruno@clisp.org>
52529
52530         * lib/unistr/u-strdup.h: Include <stdlib.h>.
52531
52532 2007-03-17  Bruno Haible  <bruno@clisp.org>
52533
52534         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
52535
52536 2007-03-17  Bruno Haible  <bruno@clisp.org>
52537
52538         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
52539         to reflect files copied from gnulib (with or without modifications).
52540         Suggested by Jim Meyering.
52541
52542 2007-03-17  Eric Blake  <ebb9@byu.net>
52543
52544         * NEWS: Document stdlib change from 2007-02-18.
52545
52546 2007-03-17  Jim Meyering  <jim@meyering.net>
52547
52548         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
52549         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
52550         someone uses a name containing shell meta-characters.
52551         Reported by Alfred M. Szmidt.
52552
52553         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
52554
52555 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
52556
52557         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
52558         and copy gettext configuration files only if configure.ac contains
52559         a use of AM_GNU_GETTEXT_VERSION.
52560
52561 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
52562
52563         * build-aux/bootstrap (gnulib_name): New variable.
52564         (gnulib_tool_options): Use it.
52565
52566 2007-03-13  Simon Josefsson  <simon@josefsson.org>
52567
52568         * tests/test-des.c: Use new namespace.
52569
52570 2007-03-15  Bruno Haible  <bruno@clisp.org>
52571
52572         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
52573         Reported by James Youngman <jay@gnu.org>.
52574
52575 2007-03-15  Bruno Haible  <bruno@clisp.org>
52576
52577         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
52578         declared prototype. Needed with cc on OSF/1 5.1.
52579
52580 2007-03-15  Bruno Haible  <bruno@clisp.org>
52581
52582         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
52583         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
52584         (struct gl_list_implementation): Add dispose_fn argument to the
52585         'create_empty', 'create' methods.
52586         (struct gl_list_impl_base): Add field 'dispose_fn'.
52587         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
52588         argument.
52589         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
52590         dispose_fn argument.
52591         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
52592         dispose_fn on the dropped values.
52593         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
52594         dispose_fn argument.
52595         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
52596         dropped values.
52597         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
52598         (gl_tree_remove_node): Call dispose_fn on the dropped value.
52599         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
52600         (gl_tree_remove_node): Call dispose_fn on the dropped value.
52601         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
52602         argument.
52603         (gl_tree_list_free): Call dispose_fn on the dropped values.
52604         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
52605         the dropped values.
52606         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
52607         Add dispose_fn argument.
52608         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
52609         Call dispose_fn on the dropped values.
52610         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
52611         Add dispose_fn argument.
52612         (gl_sublist_create): Initialize the 'dispose_fn' field.
52613         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
52614         * tests/test-array_list.c (main): Update.
52615         * tests/test-carray_list.c (main): Update.
52616         * tests/test-avltree_list.c (main): Update.
52617         * tests/test-rbtree_list.c (main): Update.
52618         * tests/test-avltreehash_list.c (main): Update.
52619         * tests/test-rbtreehash_list.c (main): Update.
52620         * tests/test-linked_list.c (main): Update.
52621         * tests/test-linkedhash_list.c (main): Update.
52622         * tests/test-array_oset.c (main): Update.
52623
52624 2007-03-15  Bruno Haible  <bruno@clisp.org>
52625
52626         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
52627         (gl_oset_create_empty): Add dispose_fn argument.
52628         (struct gl_oset_implementation): Add dispose_fn argument to
52629         'create_empty' method.
52630         (struct gl_oset_impl_base): Add dispose_fn field.
52631         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
52632         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
52633         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
52634         values.
52635         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
52636         (gl_tree_oset_free): Call dispose_fn on the dropped values.
52637         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
52638         dropped value.
52639         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
52640         dropped value.
52641         * tests/test-array_oset.c (main): Update.
52642         * tests/test-avltree_oset.c (main): Update.
52643         * tests/test-rbtree_oset.c (main): Update.
52644         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
52645
52646 2007-03-13  Bruno Haible  <bruno@clisp.org>
52647
52648         * tests/test-stdbool.c (i): Update after last patch.
52649
52650 2007-03-12  Bruno Haible  <bruno@clisp.org>
52651
52652         * lib/quotearg.c: Include <wctype.h> early, before the definition of
52653         the iswprint macro. Needed on Solaris 2.5.1.
52654
52655 2007-03-12  Bruno Haible  <bruno@clisp.org>
52656
52657         * tests/test-printf-frexp.c (main): Declare x as volatile.
52658
52659 2007-03-12  Simon Josefsson  <simon@josefsson.org>
52660
52661         * doc/gnulib.texi (Build robot for gnulib): New section.
52662
52663 2007-03-12  Jim Meyering  <jim@meyering.net>
52664
52665         * build-aux/bootstrap: New file.
52666         * build-aux/bootstrap.conf: New file, from coreutils.
52667
52668 2007-03-11  Bruno Haible  <bruno@clisp.org>
52669
52670         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
52671
52672 2007-03-12  Simon Josefsson  <simon@josefsson.org>
52673
52674         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
52675         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
52676         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
52677
52678 2007-03-11  Bruno Haible  <bruno@clisp.org>
52679
52680         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
52681         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
52682
52683 2007-03-11  Bruno Haible  <bruno@clisp.org>
52684
52685         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
52686         formula. Needed for SunPRO C 5.0.
52687
52688 2007-03-11  Bruno Haible  <bruno@clisp.org>
52689
52690         * modules/long-options (Depends-on): Add getopt.
52691
52692 2007-03-11  Bruno Haible  <bruno@clisp.org>
52693
52694         * modules/modechange (Depends-on): Add stdbool.
52695
52696 2007-03-11  Bruno Haible  <bruno@clisp.org>
52697
52698         * modules/i-ring (Depends-on): Add stdbool.
52699
52700 2007-03-11  Bruno Haible  <bruno@clisp.org>
52701
52702         * modules/gc-des (Depends-on): Add stdbool.
52703
52704 2007-03-11  Bruno Haible  <bruno@clisp.org>
52705
52706         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
52707
52708 2007-03-11  Bruno Haible  <bruno@clisp.org>
52709
52710         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
52711
52712 2007-03-11  Bruno Haible  <bruno@clisp.org>
52713
52714         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
52715
52716 2007-03-11  Bruno Haible  <bruno@clisp.org>
52717
52718         * lib/vasnprintf.c (sprintf): Undefine.
52719
52720 2007-03-11  Bruno Haible  <bruno@clisp.org>
52721
52722         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
52723         initializers in SunPRO C and Compaq C compilers.
52724
52725 2007-03-11  Bruno Haible  <bruno@clisp.org>
52726
52727         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
52728         decrementing code ANSI C compliant.
52729
52730 2007-03-11  Bruno Haible  <bruno@clisp.org>
52731
52732         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
52733         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
52734
52735 2007-03-11  Bruno Haible  <bruno@clisp.org>
52736
52737         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
52738         <stdbool.h> substitute doesn't pass.
52739
52740 2007-03-11  Bruno Haible  <bruno@clisp.org>
52741
52742         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
52743
52744 2007-03-11  Bruno Haible  <bruno@clisp.org>
52745
52746         * gnulib-tool (func_create_megatestdir): Create also an autobuild
52747         script, for submission to autobuild.josefsson.org.
52748
52749 2007-03-10  Bruno Haible  <bruno@clisp.org>
52750
52751         * modules/canonicalize-lgpl-tests: New file.
52752         * tests/test-canonicalize-lgpl.sh: New file.
52753         * tests/test-canonicalize-lgpl.c: New file.
52754
52755         * modules/c-strcase-tests: New file.
52756         * tests/test-c-strcase.sh: New file.
52757         * tests/test-c-strcasecmp.c: New file.
52758         * tests/test-c-strncasecmp.c: New file.
52759
52760         * modules/atexit-tests: New file.
52761         * tests/test-atexit.sh: New file.
52762         * tests/test-atexit.c: New file.
52763
52764 2007-03-10  Bruno Haible  <bruno@clisp.org>
52765
52766         * tests/test-binary-io.sh: Use temporary filenames that are not so
52767         likely to clash with those of other tests (in a parallel make).
52768         * tests/test-binary-io.c: Likewise.
52769
52770 2007-03-10  Bruno Haible  <bruno@clisp.org>
52771
52772         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
52773         fallback; use #error instead.
52774         Suggested by Simon Josefsson.
52775
52776 2007-03-10  Bruno Haible  <bruno@clisp.org>
52777
52778         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
52779         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
52780         first and the last.
52781
52782 2007-03-10  Bruno Haible  <bruno@clisp.org>
52783
52784         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
52785
52786 2007-03-10  Bruno Haible  <bruno@clisp.org>
52787
52788         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
52789         "make distcheck".
52790         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
52791         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
52792         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
52793
52794 2007-03-10  Bruno Haible  <bruno@clisp.org>
52795
52796         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
52797         variable.
52798         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
52799         variable.
52800
52801 2007-03-09  Eric Blake  <ebb9@byu.net>
52802         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
52803
52804         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
52805         types are not being provided by gnulib.
52806         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
52807         types are supported.
52808
52809 2007-03-10  Bruno Haible  <bruno@clisp.org>
52810
52811         * lib/stdio_.h (__attribute__): New macro.
52812         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
52813         vsprintf): Specify __attribute__ __format__ for GCC.
52814         Suggested by Eric Blake.
52815
52816 2007-03-09  Bruno Haible  <bruno@clisp.org>
52817
52818         * modules/printf-posix-tests: New file.
52819         * tests/test-printf-posix.sh: New file.
52820         * tests/test-printf-posix.c: New file.
52821
52822         * modules/printf-posix: New file.
52823         * lib/printf.c: New file.
52824         * m4/printf-posix-rpl.m4: New file.
52825         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
52826         REPLACE_PRINTF.
52827         * lib/stdio_.h (printf): New declaration.
52828         (format, __format__, ____printf____, ____scanf____, ____strftime____,
52829         ____strfmon____): New macros.
52830         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
52831         REPLACE_PRINTF.
52832
52833 2007-03-09  Bruno Haible  <bruno@clisp.org>
52834
52835         * tests/test-vasnprintf-posix2.sh: New file.
52836         * tests/test-vasnprintf-posix2.c: New file.
52837         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
52838         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
52839         (Makefile.am): Activate test-vasnprintf-posix2.sh.
52840
52841         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
52842         a locale dependent decimal point, rather than always '.'.
52843
52844 2007-03-09  Eric Blake  <ebb9@byu.net>
52845
52846         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
52847         spite of platforms like Tandem/NSK that define it to -1.
52848
52849 2007-03-08  Bruno Haible  <bruno@clisp.org>
52850
52851         * modules/vprintf-posix-tests: New file.
52852         * tests/test-vprintf-posix.sh: New file.
52853         * tests/test-vprintf-posix.c: New file.
52854         * tests/test-printf-posix.h: New file.
52855
52856         * modules/vprintf-posix: New file.
52857         * lib/vprintf.c: New file.
52858         * m4/vprintf-posix.m4: New file.
52859         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
52860         REPLACE_VPRINTF.
52861         * lib/stdio_.h (vprintf): New declaration.
52862         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
52863         REPLACE_VPRINTF.
52864
52865 2007-03-08  Bruno Haible  <bruno@clisp.org>
52866
52867         * modules/fprintf-posix-tests: New file.
52868         * tests/test-fprintf-posix.sh: New file.
52869         * tests/test-fprintf-posix.c: New file.
52870
52871         * modules/fprintf-posix: New file.
52872         * lib/fprintf.c: New file.
52873         * m4/fprintf-posix.m4: New file.
52874         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
52875         REPLACE_FPRINTF.
52876         * lib/stdio_.h (fprintf): New declaration.
52877         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
52878         REPLACE_FPRINTF.
52879
52880 2007-03-08  Bruno Haible  <bruno@clisp.org>
52881
52882         * modules/vfprintf-posix-tests: New file.
52883         * tests/test-vfprintf-posix.sh: New file.
52884         * tests/test-vfprintf-posix.c: New file.
52885         * tests/test-fprintf-posix.h: New file.
52886         * tests/test-fprintf-posix.out: New file.
52887
52888         * modules/vfprintf-posix: New file.
52889         * lib/vfprintf.c: New file.
52890         * m4/vfprintf-posix.m4: New file.
52891         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
52892         REPLACE_VFPRINTF.
52893         * lib/stdio_.h (vfprintf): New declaration.
52894         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
52895         REPLACE_VFPRINTF.
52896
52897 2007-03-08  Bruno Haible  <bruno@clisp.org>
52898
52899         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
52900
52901 2007-03-08  Bruno Haible  <bruno@clisp.org>
52902
52903         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
52904         instead of 'expr' invocations.
52905         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
52906         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
52907         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
52908         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
52909         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
52910         Suggested by Paul Eggert.
52911
52912 2007-03-08  Bruno Haible  <bruno@clisp.org>
52913
52914         * modules/fseterr-tests: New file.
52915         * tests/test-fseterr.c: New file.
52916
52917         * modules/fseterr: New file.
52918         * lib/fseterr.h: New file.
52919         * lib/fseterr.c: New file.
52920
52921 2007-03-08  Bruno Haible  <bruno@clisp.org>
52922
52923         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
52924         * lib/getopt_.h: Likewise.
52925         * lib/mbswidth.h: Likewise.
52926         * lib/setenv.h: Likewise.
52927         * lib/vasnprintf.h: Likewise.
52928         * lib/vasprintf.h: Likewise.
52929         * lib/verror.h: Likewise.
52930         * lib/xsetenv.h: Likewise.
52931         * lib/xvasprintf.h: Likewise.
52932
52933 2007-03-08  Jim Meyering  <jim@meyering.net>
52934
52935         * users.txt: Add parted.
52936
52937         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
52938
52939 2007-03-07  Bruno Haible  <bruno@clisp.org>
52940
52941         * m4/printf.m4: Make the shell script snippets copy&pastable.
52942
52943 2007-03-02  Bruno Haible  <bruno@clisp.org>
52944
52945         * lib/netinet_in_.h: New file.
52946         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
52947         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
52948         * modules/netinet_in (Files): Add lib/netinet_in_.h.
52949         (Depends-on): Add absolute-header.
52950         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
52951         into netinet/in.h.
52952
52953 2007-03-03  Bruno Haible  <bruno@clisp.org>
52954
52955         * lib/sys_select_.h: New file.
52956         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
52957         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
52958         * modules/sys_select (Files): Add lib/sys_select_.h.
52959         (Depends-on): Add absolute-header.
52960         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
52961         into sys/select.h.
52962
52963 2007-03-02  Bruno Haible  <bruno@clisp.org>
52964
52965         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
52966         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
52967         values.
52968         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
52969         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
52970         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
52971         * modules/sys_socket (Depends-on): Add absolute-header.
52972         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
52973         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
52974         (Include): Remove requirement of inclusion of <sys/types.h>.
52975
52976 2007-03-02  Bruno Haible  <bruno@clisp.org>
52977
52978         * lib/byteswap_.h (bswap_32): Fix formula.
52979
52980 2007-03-06  Bruno Haible  <bruno@clisp.org>
52981
52982         * modules/sprintf-posix-tests: New file.
52983         * tests/test-sprintf-posix.c: New file.
52984
52985         * modules/sprintf-posix: New file.
52986         * lib/sprintf.c: New file.
52987         * m4/sprintf-posix.m4: New file.
52988         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
52989         REPLACE_SPRINTF.
52990         * lib/stdio_.h (sprintf): New declaration.
52991         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
52992         REPLACE_SPRINTF.
52993
52994 2007-03-06  Bruno Haible  <bruno@clisp.org>
52995
52996         * modules/vsprintf-posix-tests: New file.
52997         * tests/test-vsprintf-posix.c: New file.
52998         * tests/test-sprintf-posix.h: New file.
52999
53000         * modules/vsprintf-posix: New file.
53001         * lib/vsprintf.c: New file.
53002         * m4/vsprintf-posix.m4: New file.
53003         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
53004         REPLACE_VSPRINTF.
53005         * lib/stdio_.h (vsprintf): New declaration.
53006         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
53007         REPLACE_VSPRINTF.
53008
53009 2007-03-06  Bruno Haible  <bruno@clisp.org>
53010
53011         * modules/vsnprintf (Depend-on): Remove minmax.
53012
53013 2007-03-06  Bruno Haible  <bruno@clisp.org>
53014
53015         * modules/snprintf-posix-tests: New file.
53016         * tests/test-snprintf-posix.c: New file.
53017
53018         * modules/snprintf-posix: New file.
53019         * m4/snprintf-posix.m4: New file.
53020         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
53021         gl_FUNC_SNPRINTF.
53022         (gl_FUNC_SNPRINTF): Invoke it.
53023         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
53024         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
53025         is set.
53026         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
53027
53028 2007-03-06  Bruno Haible  <bruno@clisp.org>
53029
53030         * modules/vsnprintf-posix-tests: New file.
53031         * tests/test-vsnprintf-posix.c: New file.
53032         * tests/test-snprintf-posix.h: New file.
53033
53034         * modules/vsnprintf-posix: New file.
53035         * m4/vsnprintf-posix.m4: New file.
53036         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
53037         gl_FUNC_VSNPRINTF.
53038         (gl_FUNC_VSNPRINTF): Invoke it.
53039         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
53040         * lib/stdio_.h (vsnprintf): Define as a replacement if
53041         REPLACE_VSNPRINTF is set.
53042         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
53043
53044 2007-03-06  Bruno Haible  <bruno@clisp.org>
53045
53046         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
53047         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
53048
53049 2007-03-06  Bruno Haible  <bruno@clisp.org>
53050
53051         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
53052         (asinl): Declare also if HAVE_DECL_ASINL is set.
53053         (atanl): Declare also if HAVE_DECL_ATANL is set.
53054         (ceill): Declare also if HAVE_DECL_CEILL is set.
53055         (cosl): Declare also if HAVE_DECL_COSL is set.
53056         (expl): Declare also if HAVE_DECL_EXPL is set.
53057         (floorl): Declare also if HAVE_DECL_FLOORL is set.
53058         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
53059         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
53060         (logl): Declare also if HAVE_DECL_LOGL is set.
53061         (sinl): Declare also if HAVE_DECL_SINL is set.
53062         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
53063         (tanl): Declare also if HAVE_DECL_TANL is set.
53064         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
53065         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
53066         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
53067         declaration of frexpl, ldexpl.
53068         * modules/printf-frexpl (Depends-on): Add math.
53069         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
53070
53071 2007-03-05  Bruno Haible  <bruno@clisp.org>
53072
53073         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
53074         frexpl and ldexpl are declared.
53075         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
53076
53077 2007-03-05  Bruno Haible  <bruno@clisp.org>
53078
53079         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
53080         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
53081
53082 2007-03-05  Bruno Haible  <bruno@clisp.org>
53083
53084         * lib/stdio_.h: Include <stddef.h>.
53085
53086 2007-03-05  Bruno Haible  <bruno@clisp.org>
53087
53088         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
53089
53090 2007-03-05  Bruno Haible  <bruno@clisp.org>
53091
53092         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
53093         NetBSD 4, from Ralf Wildenhues.
53094
53095 2007-03-04  Bruno Haible  <bruno@clisp.org>
53096
53097         * lib/vasprintf.h: Update #if logic for the case when the functions
53098         exist but are overridden.
53099
53100 2007-03-04  Bruno Haible  <bruno@clisp.org>
53101
53102         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
53103         implementations: glibc-2.4 and MacOS X 10.3.
53104         * tests/test-vasnprintf-posix.c (test_function): Test also the case
53105         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
53106         * tests/test-vasprintf-posix.c (test_function): Likewise.
53107
53108 2007-03-04  Bruno Haible  <bruno@clisp.org>
53109
53110         * modules/vasprintf-posix-tests: New file.
53111         * tests/test-vasprintf-posix.c: New file.
53112
53113         * modules/vasprintf-posix: New file.
53114         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
53115         defined.
53116         * m4/vasprintf-posix.m4: New file.
53117         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
53118         gl_FUNC_VASPRINTF.
53119         (gl_FUNC_VASPRINTF): Invoke it.
53120         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
53121         here.
53122         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
53123
53124 2007-03-04  Bruno Haible  <bruno@clisp.org>
53125
53126         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
53127         REPLACE_GETTIMEOFDAY.
53128         * modules/sys_time (Makefile.am): Likewise.
53129         * m4/sys_time_h.m4: Likewise.
53130         * m4/gettimeofday.m4: Likewise.
53131
53132 2007-03-04  Bruno Haible  <bruno@clisp.org>
53133
53134         * modules/vasnprintf-posix-tests: New file.
53135         * tests/test-vasnprintf-posix.c: New file.
53136
53137         * modules/vasnprintf-posix: New file.
53138         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
53139         printf-frexpl.h.
53140         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
53141         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
53142         REPLACE_VASNPRINTF is defined.
53143         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
53144         gl_FUNC_VASNPRINTF.
53145         (gl_FUNC_VASNPRINTF): Invoke it.
53146         * m4/vasnprintf-posix.m4: New file.
53147         * m4/printf.m4: New file.
53148
53149 2007-03-04  Bruno Haible  <bruno@clisp.org>
53150
53151         Compile progreloc.c only if --enable-relocatable is specified.
53152         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
53153         if --enable-relocatable was specified.
53154         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
53155         lib_SOURCES.
53156
53157 2007-03-04  Jim Meyering  <jim@meyering.net>
53158
53159         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
53160         Use it consistently, rather than enumerating errno constants.
53161
53162 2007-03-04  Bruno Haible  <bruno@clisp.org>
53163
53164         * modules/xvasprintf-tests: New file.
53165         * tests/test-xvasprintf.c: New file.
53166
53167         * modules/vasprintf-tests: New file.
53168         * tests/test-vasprintf.c: New file.
53169
53170         * modules/vasnprintf-tests: New file.
53171         * tests/test-vasnprintf.c: New file.
53172
53173         * modules/vsnprintf-tests: New file.
53174         * tests/test-vsnprintf.c: New file.
53175
53176         * modules/snprintf-tests: New file.
53177         * tests/test-snprintf.c: New file.
53178
53179 2007-03-04  Bruno Haible  <bruno@clisp.org>
53180
53181         Compile relocatable.c only if --enable-relocatable is specified.
53182         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
53183         gl_RELOCATABLE_LIBRARY.
53184         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
53185         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
53186         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
53187         gl_RELOCATABLE_LIBRARY.
53188         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
53189         (Makefile.am): Remove lib_SOURCES.
53190         * modules/relocatable-lib-lgpl (configure.ac): Invoke
53191         gl_RELOCATABLE_LIBRARY.
53192         (Makefile.am): Remove lib_SOURCES.
53193         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
53194         always.
53195         * modules/relocatable-prog-wrapper (configure.ac): Invoke
53196         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
53197
53198 2007-03-04  Bruno Haible  <bruno@clisp.org>
53199
53200         * modules/argmatch-tests: New file.
53201         * tests/test-argmatch.c: New file.
53202
53203         * tests/test-allocsa.c (main): Halve the number of loop runs.
53204
53205         * modules/alloca-opt-tests: New file.
53206         * tests/test-alloca-opt.c: New file.
53207
53208 2007-03-04  Jim Meyering  <jim@meyering.net>
53209
53210         Work around difference between Linux ACLs and Solaris 10 ZFS.
53211         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
53212         for EINVAL.
53213
53214 2007-03-03  Bruno Haible  <bruno@clisp.org>
53215
53216         * modules/relocatable-prog (Depends-on): Add back progreloc's
53217         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
53218
53219 2007-03-03  Bruno Haible  <bruno@clisp.org>
53220
53221         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
53222         * modules/relocatable-lib: New file.
53223
53224 2007-03-03  Bruno Haible  <bruno@clisp.org>
53225
53226         * modules/relocatable-prog: Renamed from modules/relocatable.
53227         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
53228
53229 2007-03-03  Bruno Haible  <bruno@clisp.org>
53230
53231         * modules/relocatable-script (Files): Add doc/relocatable.texi,
53232         m4/relocatable-lib.m4.
53233         (Depends-on): Remove 'relocatable'.
53234         (configure.ac): Add gl_RELOCATABLE_NOP.
53235
53236 2007-03-03  Bruno Haible  <bruno@clisp.org>
53237
53238         * modules/relocatable-prog-wrapper: New file.
53239         * modules/relocatable (Depends-on): Add it. Remove all other
53240         dependencies except progname.
53241         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
53242
53243         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
53244         (gl_FUNC_STRERROR): Nop.
53245         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
53246
53247         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
53248         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
53249
53250         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
53251         (gl_FUNC_READLINK): Update.
53252
53253         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
53254
53255 2007-03-03  Bruno Haible  <bruno@clisp.org>
53256
53257         * lib/xreadlink.c: Include <unistd.h> unconditionally.
53258         * modules/xreadlink (Depends-on): Add unistd.
53259         * modules/xreadlink-with-size (Depends-on): Likewise.
53260
53261 2007-03-03  Bruno Haible  <bruno@clisp.org>
53262
53263         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
53264         extracted from gt_FUNC_SETENV.
53265         (gt_FUNC_SETENV): Remove macro.
53266         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
53267         remove gt_FUNC_SETENV.
53268
53269 2007-03-03  Bruno Haible  <bruno@clisp.org>
53270
53271         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
53272         ENABLE_RELOCATABLE here.
53273         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
53274
53275 2007-03-03  Bruno Haible  <bruno@clisp.org>
53276
53277         * modules/rbtreehash-list-tests (Depends-on): Add progname.
53278         * tests/test-rbtreehash_list.c: Include progname.h.
53279         (main): Call set_program_name.
53280
53281         * modules/rbtree-oset-tests (Depends-on): Add progname.
53282         * tests/test-rbtree_oset.c: Include progname.h.
53283         (main): Call set_program_name.
53284
53285         * modules/rbtree-list-tests (Depends-on): Add progname.
53286         * tests/test-rbtree_list.c: Include progname.h.
53287         (main): Call set_program_name.
53288
53289         * modules/linked-list-tests (Depends-on): Add progname.
53290         * tests/test-linked_list.c: Include progname.h.
53291         (main): Call set_program_name.
53292
53293 2007-03-03  Bruno Haible  <bruno@clisp.org>
53294
53295         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
53296         All uses of __restrict changed to _Restrict_.
53297         * lib/glob_.h (__restrict): Remove macro.
53298
53299 2007-03-02  Bruno Haible  <bruno@clisp.org>
53300
53301         * modules/gettext (configure.ac): Require gettext infrastructure
53302         from version 0.16.1.
53303
53304 2007-03-02  Bruno Haible  <bruno@clisp.org>
53305
53306         * modules/linkedhash-list-tests (Depends-on): Add progname.
53307         * tests/test-linkedhash_list.c: Include progname.h.
53308         (main): Call set_program_name.
53309
53310         * modules/carray-list-tests (Depends-on): Add progname.
53311         * tests/test-carray_list.c: Include progname.h.
53312         (main): Call set_program_name.
53313
53314         * modules/avltreehash-list-tests (Depends-on): Add progname.
53315         * tests/test-avltreehash_list.c: Include progname.h.
53316         (main): Call set_program_name.
53317
53318         * modules/avltree-oset-tests (Depends-on): Add progname.
53319         * tests/test-avltree_oset.c: Include progname.h.
53320         (main): Call set_program_name.
53321
53322         * modules/avltree-list-tests (Depends-on): Add progname.
53323         * tests/test-avltree_list.c: Include progname.h.
53324         (main): Call set_program_name.
53325
53326         * modules/array-oset-tests (Depends-on): Add progname.
53327         * tests/test-array_oset.c: Include progname.h.
53328         (main): Call set_program_name.
53329
53330         * modules/array-list-tests (Depends-on): Add progname.
53331         * tests/test-array_list.c: Include progname.h.
53332         (main): Call set_program_name.
53333
53334         * modules/argp-tests (Depends-on): Add progname.
53335         * tests/test-argp.c: Include argp.h first. Include progname.h.
53336         (main): Call set_program_name.
53337
53338 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
53339
53340         * doc/gnulib-tool.texi (Initial import): Reword description of
53341         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
53342         limited effect even if defined after the first system include.
53343
53344 2007-03-01  Bruno Haible  <bruno@clisp.org>
53345
53346         * build-aux/config.libpath: Update to libtool-1.5.22.
53347         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
53348
53349 2007-03-01  Bruno Haible  <bruno@clisp.org>
53350
53351         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
53352         foo_CFLAGS.
53353         Reported by Ralf Wildenhues.
53354
53355 2007-03-01  Bruno Haible  <bruno@clisp.org>
53356
53357         * build-aux/install-reloc: Remove object files left over by some
53358         compilers.
53359         Reported by Ralf Wildenhues.
53360
53361 2007-03-01  Bruno Haible  <bruno@clisp.org>
53362
53363         * build-aux/install-reloc: Break long lines.
53364
53365 2007-03-01  Bruno Haible  <bruno@clisp.org>
53366
53367         * doc/relocatable.texi: Document that it may not work on OpenBSD.
53368         Reported by Ralf Wildenhues.
53369
53370 2007-03-01  Bruno Haible  <bruno@clisp.org>
53371
53372         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
53373         include ordering constraints.
53374
53375 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
53376
53377         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
53378         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
53379         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
53380         as another example.
53381         * lib/time_.h: Fix misspelling.
53382         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
53383         Require gl_HEADER_TIME_H_DEFAULTS.
53384         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
53385         * m4/time_r.m4 (gl_TIME_R): Likewise.
53386         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
53387
53388 2007-03-01  Bruno Haible  <bruno@clisp.org>
53389
53390         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
53391         * m4/utimens.m4 (gl_UTIMENS): Likewise.
53392
53393 2007-03-01  Jim Meyering  <jim@meyering.net>
53394
53395         * modules/xreadlink (Maintainer): Add my name.
53396         * modules/xreadlink-with-size (Depends-on): Alphabetize.
53397
53398 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
53399             Bruno Haible  <bruno@clisp.org>
53400
53401         * build-aux/install-reloc: Compile also c-ctype.c.
53402         * build-aux/relocatable.sh.in: New file.
53403         * doc/relocatable.texi: New file.
53404         * doc/relocatable-maint.texi: New file.
53405         * doc/gnulib.texi: Include relocatable-maint.texi.
53406         * lib/progreloc.c: Include unistd.h unconditionally.
53407         * lib/relocwrapper.c: Include unistd.h unconditionally.
53408         Include c-ctype.h.
53409         (add_dotbin): Use c_tolower.
53410         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
53411         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
53412         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
53413         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
53414         to m4/relocatable-lib.m4.
53415         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
53416         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
53417         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
53418         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
53419         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
53420         * modules/relocatable: New file.
53421         * modules/relocatable-lib: New file.
53422         * modules/relocatable-script: New file.
53423
53424 2007-02-28  Bruno Haible  <bruno@clisp.org>
53425
53426         Import --enable-relocatable infrastructure.
53427         * build-aux/config.libpath: New file, from GNU gettext.
53428         * build-aux/install-reloc: New file, from GNU gettext.
53429         * build-aux/reloc-ldflags: New file, from GNU gettext.
53430         * lib/relocatable.h: New file, from GNU gettext.
53431         * lib/relocatable.c: New file, from GNU gettext.
53432         * lib/relocwrapper.c: New file, from GNU gettext.
53433         * m4/relocatable.m4: New file, from GNU gettext.
53434
53435 2007-02-28  Bruno Haible  <bruno@clisp.org>
53436
53437         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
53438
53439         * modules/xreadlink: New file, from GNU gettext with modifications.
53440         * lib/xreadlink.c: New file, from GNU gettext.
53441         * lib/xreadlink.h: Add comments.
53442         (xreadlink): New declaration.
53443
53444         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
53445         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
53446         lib/xreadlink-with-size.c.
53447         (configure.ac): Remove gl_XREADLINK invocation.
53448         (Makefile.am): Augment lib_SOURCES.
53449         * m4/xreadlink.m4: Remove file.
53450         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
53451         (xreadlink_with_size): Renamed from xreadink.
53452         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
53453         * modules/canonicalize (Depends-on): Replace xreadlink with
53454         xreadlink-with-size.
53455         * lib/canonicalize.c (canonicalize_filename_mode): Update.
53456
53457 2007-02-25  Jim Meyering  <jim@meyering.net>
53458
53459         * build-aux/announce-gen: When complaining about excess arguments,
53460         list them.
53461
53462 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
53463
53464         * README: Document signed integer overflow situation more
53465         accurately.
53466
53467 2007-02-25  Bruno Haible  <bruno@clisp.org>
53468
53469         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
53470         'a' or 'A' conversion.
53471
53472 2007-02-25  Bruno Haible  <bruno@clisp.org>
53473
53474         * modules/filename: Renamed from modules/pathname.
53475         (Files): Replace lib/pathname.h with lib/filename.h. Replace
53476         lib/concatpath.c with lib/concat-filename.c.
53477         (Makefile.am): Update.
53478         (Include): Replace pathname.h with filename.h.
53479         * lib/filename.h: Renamed from lib/pathname.h.
53480         (concatenated_filename): Renamed from concatenated_pathname.
53481         * lib/concat-filename.c: Renamed from lib/concatpath.c.
53482         (concatenated_filename): Renamed from concatenated_pathname.
53483         * lib/findprog.c: Include filename.h instead of pathname.h.
53484         (find_in_path): Update.
53485         * lib/javacomp.c: Include filename.h instead of pathname.h.
53486         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
53487         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
53488         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
53489         is_oldgcj_14_13_usable, is_javac_usable): Update.
53490         * lib/javaexec.c: Include filename.h instead of pathname.h.
53491         (execute_java_class): Update.
53492         * modules/findprog: Update.
53493         * modules/javacomp: Update.
53494         * modules/javaexec: Update.
53495         * MODULES.html.sh (File system functions): Add 'filename', remove
53496         'pathname'.
53497
53498 2007-02-25  Bruno Haible  <bruno@clisp.org>
53499
53500         * modules/printf-frexpl-tests: New file.
53501         * tests/test-printf-frexpl.c: New file.
53502
53503         * modules/printf-frexpl: New file.
53504         * lib/printf-frexpl.h: New file.
53505         * lib/printf-frexpl.c: New file.
53506         * m4/printf-frexpl.m4: New file.
53507
53508 2007-02-25  Bruno Haible  <bruno@clisp.org>
53509
53510         * modules/printf-frexp-tests: New file.
53511         * tests/test-printf-frexp.c: New file.
53512
53513         * modules/printf-frexp: New file.
53514         * lib/printf-frexp.h: New file.
53515         * lib/printf-frexp.c: New file.
53516         * m4/printf-frexp.m4: New file.
53517
53518 2007-02-25  Bruno Haible  <bruno@clisp.org>
53519
53520         Assume automake >= 1.10 for the tests.
53521         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
53522         * modules/arctwo-tests: Likewise.
53523         * modules/argp-tests: Likewise.
53524         * modules/avltree-list-tests: Likewise.
53525         * modules/avltree-oset-tests: Likewise.
53526         * modules/avltreehash-list-tests: Likewise.
53527         * modules/carray-list-tests: Likewise.
53528         * modules/crc-tests: Likewise.
53529         * modules/des-tests: Likewise.
53530         * modules/gc-arcfour-tests: Likewise.
53531         * modules/gc-arctwo-tests: Likewise.
53532         * modules/gc-des-tests: Likewise.
53533         * modules/gc-hmac-md5-tests: Likewise.
53534         * modules/gc-hmac-sha1-tests: Likewise.
53535         * modules/gc-md2-tests: Likewise.
53536         * modules/gc-md4-tests: Likewise.
53537         * modules/gc-md5-tests: Likewise.
53538         * modules/gc-pbkdf2-sha1-tests: Likewise.
53539         * modules/gc-rijndael-tests: Likewise.
53540         * modules/gc-sha1-tests: Likewise.
53541         * modules/gc-tests: Likewise.
53542         * modules/getaddrinfo-tests: Likewise.
53543         * modules/hmac-md5-tests: Likewise.
53544         * modules/hmac-sha1-tests: Likewise.
53545         * modules/linked-list-tests: Likewise.
53546         * modules/linkedhash-list-tests: Likewise.
53547         * modules/lock-tests: Likewise.
53548         * modules/md2-tests: Likewise.
53549         * modules/md4-tests: Likewise.
53550         * modules/md5-tests: Likewise.
53551         * modules/rbtree-list-tests: Likewise.
53552         * modules/rbtree-oset-tests: Likewise.
53553         * modules/rbtreehash-list-tests: Likewise.
53554         * modules/read-file-tests: Likewise.
53555         * modules/rijndael-tests: Likewise.
53556         * modules/stdint-tests: Likewise.
53557         * modules/tls-tests: Likewise.
53558
53559 2007-02-24  Bruno Haible  <bruno@clisp.org>
53560
53561         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
53562         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
53563         function; instead check whether isnan with a double argument links.
53564         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
53565         function; instead check whether isnan with a 'long double' argument
53566         links.
53567         Reported by Eric Blake <ebb9@byu.net>.
53568
53569 2007-02-24  Bruno Haible  <bruno@clisp.org>
53570
53571         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
53572         defined.
53573         * lib/isnanl.c: Remove all code. Just include isnan.c.
53574         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
53575
53576 2007-02-25  Jim Meyering  <jim@meyering.net>
53577
53578         Avoid conflicting types for 'unsetenv' on FreeBSD.
53579         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
53580         conflicting with FreeBSD's (5.0 and 6.1) function declaration
53581         in stdlib.h.
53582
53583 2007-02-24  Bruno Haible  <bruno@clisp.org>
53584
53585         * modules/isnanl-nolibm-tests: New file.
53586         * tests/test-isnanl.c: New file.
53587
53588         * modules/isnanl-nolibm: New file.
53589         * lib/isnanl.h: New file.
53590         * lib/isnanl.c: New file.
53591         * m4/isnanl.m4: New file.
53592
53593 2007-02-24  Bruno Haible  <bruno@clisp.org>
53594
53595         * modules/isnan-nolibm-tests: New file.
53596         * tests/test-isnan.c: New file.
53597
53598         * modules/isnan-nolibm: New file.
53599         * lib/isnan.h: New file.
53600         * lib/isnan.c: New file.
53601         * m4/isnan.m4: New file.
53602
53603 2007-02-24  Bruno Haible  <bruno@clisp.org>
53604
53605         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
53606         assume that an exponent fits in 20 bits.
53607
53608 2007-02-24  Jim Meyering  <jim@meyering.net>
53609
53610         * m4/regex.m4: Update the description of the configure-time option,
53611         --without-included-regex, to state accurately what the defaults are,
53612         and perhaps to give people an idea why using this option is risky.
53613
53614 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
53615
53616         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
53617         loops on small arguments.  This attempts to avoid the problem
53618         Bruno Haible reported for AIX 4.3.2 in
53619         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
53620
53621 2007-02-23  Bruno Haible  <bruno@clisp.org>
53622
53623         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
53624         Needed for help2man.
53625
53626 2007-02-23  Karl Berry  <karl@gnu.org>
53627
53628         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
53629         exists, foo.h should be cvs-ignored, not committed.
53630
53631 2007-02-23  Eric Blake  <ebb9@byu.net>
53632
53633         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
53634         * lib/stat-time.h (includes): Likewise.
53635         * lib/utimecmp.c (includes): Likewise.
53636         * lib/utimens.h (includes): Likewise.
53637         * lib/getdate.y (includes): Also include "timespec.h" for use
53638         internal to the module.
53639         * modules/utimens (Depends-on): Revert yesterday's patch.
53640         * modules/nanosleep (Depends-on): Add missing dependency.
53641
53642 2007-02-22  Bruno Haible  <bruno@clisp.org>
53643
53644         * lib/glob.c: Don't include getlogin_r.h.
53645
53646 2007-02-22  Jim Meyering  <jim@meyering.net>
53647
53648         * modules/utimens (Depends-on): Add timespec, required for
53649         utimens.h's inclusion of timespec.h.
53650
53651 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
53652
53653         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
53654         long unreadable paths in GNU/Linux.  Problem reported by Andreas
53655         Schwab in
53656         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
53657         I'll try to think of a better way to fix the Solaris problem.
53658
53659         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
53660         like glibc; on Solaris 10, it fails with errno == EINVAL.
53661         POSIX says the behavior is unspecified if the first argument is NULL,
53662         so play it safe and never pass NULL to the system getcwd.
53663
53664 2007-02-21  Jim Meyering  <jim@meyering.net>
53665
53666         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
53667         of gettimeofday.  It would conflict with the one now always
53668         provided via sys_time_.h.  Reported by Matthew Woehlke, as
53669         an IRIX 6.5 build failure.
53670
53671 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
53672
53673         Minor fixups to port to Solaris 10 with Sun C 5.8.
53674         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
53675         * modules/getcwd (Depends-on): Add dirfd.
53676         * lib/putenv.c (putenv): #undef it.
53677         (rpl_putenv): New decl.
53678         (malloc, free): Include <stdlib.h> rather than prototyping separately.
53679
53680 2007-02-20  Bruno Haible  <bruno@clisp.org>
53681
53682         * modules/stdio-tests: New file.
53683         * tests/test-stdio.c: New file.
53684
53685         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
53686         (Depends-on): Add stdio.
53687         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
53688         (Include): Use <stdio.h> instead of vsnprintf.h.
53689         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
53690         HAVE_DECL_VSNPRINTF.
53691         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
53692
53693         * modules/snprintf (Files): Remove lib/snprintf.h.
53694         (Depends-on): Add stdio.
53695         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
53696         (Include): Use <stdio.h> instead of snprintf.h.
53697         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
53698         HAVE_DECL_SNPRINTF.
53699         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
53700         * lib/getaddrinfo.c: Likewise.
53701
53702         * modules/stdio: New file.
53703         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
53704         * lib/snprintf.h: Remove file.
53705         * lib/vsnprintf.h: Remove file.
53706         * lib/.cppi-disable: Remove snprintf.h.
53707         * m4/stdio_h.m4: New file.
53708         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
53709
53710 2007-02-20  Jim Meyering  <jim@meyering.net>
53711
53712         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
53713         used by e.g., mingw.  From Bruno Haible.
53714
53715 2007-02-19  Bruno Haible  <bruno@clisp.org>
53716
53717         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
53718         warnings.
53719         Reported by Ben Pfaff <blp@cs.stanford.edu>.
53720
53721 2007-02-19  Bruno Haible  <bruno@clisp.org>
53722
53723         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
53724         from mingw users.
53725
53726 2007-02-19  Bruno Haible  <bruno@clisp.org>
53727
53728         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
53729         warnings.
53730         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
53731
53732 2007-02-19  Jim Meyering  <jim@meyering.net>
53733
53734         Don't use FD after a successful "fdopendir (fd)".
53735         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
53736         Reset it by calling dirfd on the just-obtained DIR*.
53737
53738         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
53739         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
53740
53741 2007-02-18  Bruno Haible  <bruno@clisp.org>
53742
53743         * lib/readlink.c: Include <unistd.h>.
53744         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
53745         HAVE_READLINK.
53746         * modules/readlink (Depends-on): Add unistd.
53747         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
53748         (Include): Add <unistd.h>.
53749
53750         * lib/getlogin_r.h: Remove file.
53751         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
53752         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
53753         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
53754         HAVE_DECL_GETLOGIN_R.
53755         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
53756         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
53757         (Include): Use <unistd.h> instead of getlogin_r.h.
53758
53759         * lib/getcwd.h: Remove file.
53760         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
53761         * lib/xgetcwd.c: Likewise.
53762         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
53763         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
53764         * modules/getcwd (Files): Remove lib/getcwd.h.
53765         (Depends-on): Add unistd.
53766         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
53767         (Include): Use <unistd.h> instad of getcwd.h.
53768
53769         * lib/ftruncate.c: Include <unistd.h> first.
53770         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
53771         Set HAVE_FTRUNCATE.
53772         * modules/ftruncate (Depends-on): Add unistd.
53773         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
53774
53775         * lib/fchdir.c: Include <unistd.h> first.
53776         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
53777         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
53778         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
53779         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
53780         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
53781
53782         * lib/dup2.c: Include <unistd.h> first.
53783         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
53784         HAVE_DUP2.
53785         * modules/dup2 (Depends-on): Add unistd.
53786         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
53787
53788         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
53789         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
53790         REPLACE_CHOWN. Don't define chown as a macro here.
53791         * modules/chown (Depends-on): Add unistd.
53792         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
53793
53794         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
53795         Add definition for GL_LINK_WARNING.
53796         (chown, dup2): New declarations.
53797         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
53798         link warning.
53799         (ftruncate): New declaration.
53800         (getcwd): New declaration, taken from old getcwd.h.
53801         (getlogin_r): New declaration, taken from old getlogin_r.h.
53802         (readlink): New declaration.
53803         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
53804         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
53805         (gl_PREREQ_UNISTD): Remove macro.
53806         (gl_UNISTD_MODULE_INDICATOR): New macro.
53807         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
53808         many new variables. Don't set UNISTD_H.
53809         * modules/unistd (Description): Change.
53810         (Depends-on): Add link-warning.
53811         (configure.ac): Update.
53812         (Makefile.am): Create unistd.h always. Substitute many new variables
53813         into it.
53814
53815 2007-02-18  Bruno Haible  <bruno@clisp.org>
53816
53817         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
53818         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
53819         HAVE_GETSUBOPT.
53820         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
53821         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
53822         * lib/getsubopt.h: Remove file.
53823         * modules/getsubopt (Files): Remove lib/getsubopt.h.
53824         (Depends-on): Add stdlib.
53825         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
53826         (Includes): Use <stdlib.h> instead of getsubopt.h.
53827         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
53828         Set HAVE_GETSUBOPT.
53829         * lib/getsubopt.c: Don't include getsubopt.h.
53830
53831 2007-02-18  Bruno Haible  <bruno@clisp.org>
53832
53833         * modules/fchdir (Depends-on): Add dup2.
53834
53835 2007-02-18  Bruno Haible  <bruno@clisp.org>
53836
53837         * lib/stdlib_.h: Handle glibc's special invocation convention
53838         specially.
53839
53840 2007-02-18  Bruno Haible  <bruno@clisp.org>
53841
53842         * modules/stdlib-tests: New file.
53843         * tests/test-stdlib.c: New file.
53844
53845         * modules/mkstemp (Files): Remove lib/mkstemp.h.
53846         (Depends-on): Add stdlib.
53847         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
53848         (Includes): Use <stdlib.h> instead of mkstemp.h.
53849         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
53850         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
53851         * lib/mkstemp.c: Don't include mkstemp.h.
53852         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
53853         * lib/stdlib--.h: Don't include mkstemp.h.
53854
53855         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
53856         (Depends-on): Add stdlib.
53857         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
53858         (Includes): Use <stdlib.h> instead of mkdtemp.h.
53859         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
53860         HAVE_MKDTEMP.
53861         * lib/mkdtemp.c: Don't include mkdtemp.h.
53862         * lib/clean-temp.c: Don't include mkdtemp.h.
53863
53864         * modules/exit (Files): Remove lib/exit.h.
53865         (Depends-on): Add stdlib.
53866         (Makefile.am): Remove lib_SOURCES.
53867         (Include): Use <stdlib.h> instead of exit.h.
53868         * lib/argmatch.c: Don't include exit.h.
53869         * lib/execute.c: Likewise.
53870         * lib/pagealign_alloc.c: Likewise.
53871         * lib/pipe.c: Likewise.
53872         * lib/wait-process.c: Likewise.
53873         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
53874         * lib/exitfail.c: Likewise.
53875         * lib/savewd.c: Likewise.
53876         * lib/xsetenv.c: Likewise.
53877
53878         * modules/stdlib: New file.
53879         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
53880         and extra comments about mkstemp().
53881         * lib/exit.h: Remove file.
53882         * lib/mkdtemp.h: Remove file.
53883         * lib/mkstemp.h: Remove file.
53884         * m4/stdlib_h.m4: New file.
53885         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
53886
53887 2007-02-18  Bruno Haible  <bruno@clisp.org>
53888
53889         * modules/math-tests: New file.
53890         * tests/test-math.c: New file.
53891
53892         * modules/math: New file.
53893         * modules/mathl (Files): Remove lib/mathl.h.
53894         (Depends-on): Add math.
53895         (Makefile.am): Don't mention mathl.h.
53896         (Include): Use <math.h> instead of mathl.h.
53897         * lib/math_.h: New file.
53898         * lib/mathl.h: Remove file.
53899         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
53900         mathl.h.
53901         * lib/asinl.c: Likewise.
53902         * lib/atanl.c: Likewise.
53903         * lib/ceill.c: Likewise.
53904         * lib/cosl.c: Likewise.
53905         * lib/expl.c: Likewise.
53906         * lib/floorl.c: Likewise.
53907         * lib/frexpl.c: Likewise.
53908         * lib/ldexpl.c: Likewise.
53909         * lib/logl.c: Likewise.
53910         * lib/sincosl.c: Likewise.
53911         * lib/sinl.c: Likewise.
53912         * lib/sqrtl.c: Likewise.
53913         * lib/tanl.c: Likewise.
53914         * lib/trigl.c: Likewise.
53915         * m4/math_h.m4: New file.
53916         * MODULES.html.sh (Mathematics): Add math.
53917
53918 2007-02-17  Bruno Haible  <bruno@clisp.org>
53919
53920         * modules/wctype-tests: New file.
53921         * tests/test-wctype.c: New file.
53922
53923         * modules/wchar-tests: New file.
53924         * tests/test-wchar.c: New file.
53925
53926         * modules/unistd-tests: New file.
53927         * tests/test-unistd.c: New file.
53928
53929         * modules/time-tests: New file.
53930         * tests/test-time.c: New file.
53931
53932         * modules/sysexits-tests: New file.
53933         * tests/test-sysexits.c: New file.
53934
53935         * modules/sys_time-tests: New file.
53936         * tests/test-sys_time.c: New file.
53937
53938         * modules/sys_stat-tests: New file.
53939         * tests/test-sys_stat.c: New file.
53940
53941         * modules/sys_socket-tests: New file.
53942         * tests/test-sys_socket.c: New file.
53943
53944         * modules/sys_select-tests: New file.
53945         * tests/test-sys_select.c: New file.
53946
53947         * modules/string-tests: New file.
53948         * tests/test-string.c: New file.
53949
53950         * modules/stdbool-tests: New file.
53951         * tests/test-stdbool.c: New file.
53952
53953         * modules/netinet_in-tests: New file.
53954         * tests/test-netinet_in.c: New file.
53955
53956         * modules/inttypes-tests: New file.
53957         * tests/test-inttypes.c: New file.
53958
53959         * modules/fcntl-tests: New file.
53960         * tests/test-fcntl.c: New file.
53961
53962         * modules/byteswap-tests: New file.
53963         * tests/test-byteswap.c: New file.
53964
53965         * modules/arpa_inet-tests: New file.
53966         * tests/test-arpa_inet.c: New file.
53967
53968 2007-02-17  Bruno Haible  <bruno@clisp.org>
53969
53970         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
53971         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
53972         if the corresponding module is not enabled. Emit link warnings if
53973         the function is used nevertheless.
53974         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
53975         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
53976         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
53977         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
53978         * modules/inttypes (Depends-on): Add link-warning.
53979         (Makefile.am): Copy the contents of build-aux/link-warning.h into
53980         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
53981         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
53982         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
53983         * modules/imaxdiv (configure.ac): Likewise.
53984         * modules/strtoimax (configure.ac): Likewise.
53985         * modules/strtoumax (configure.ac): Likewise.
53986
53987 2007-02-17  Bruno Haible  <bruno@clisp.org>
53988
53989         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
53990         gl_STRING_MODULE_INDICATOR_DEFAULTS.
53991         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
53992         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
53993
53994 2007-02-17  Bruno Haible  <bruno@clisp.org>
53995
53996         * modules/link-warning: New file.
53997         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
53998         * lib/string_.h (GL_LINK_WARNING): Remove definition.
53999         * modules/string (Depends-on): Add link-warning.
54000         (Makefile.am): Copy the contents of build-aux/link-warning.h into
54001         string.h.
54002         * MODULES.html.sh (Support for building libraries and executables): Add
54003         link-warning.
54004
54005 2007-02-17  Bruno Haible  <bruno@clisp.org>
54006
54007         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
54008         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
54009         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
54010         long lines.
54011
54012 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
54013             Bruno Haible  <bruno@clisp.org>
54014
54015         * modules/tmpfile: New file.
54016         * lib/tmpfile.c: New file.
54017         * m4/tmpfile.m4: New file.
54018         * MODULES.html.sh (func_all_modules): New section "Input/output".
54019
54020 2007-02-15  Bruno Haible  <bruno@clisp.org>
54021
54022         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
54023         (supports_delete_on_close): New function.
54024         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
54025
54026 2007-02-14  Bruno Haible  <bruno@clisp.org>
54027
54028         * modules/mbspcasecmp-tests: New file.
54029         * tests/test-mbspcasecmp.sh: New file.
54030         * tests/test-mbspcasecmp.c: New file.
54031
54032         New module mbspcasecmp.
54033         * modules/mbspcasecmp: New file.
54034         * lib/mbspcasecmp.c: New file.
54035         * lib/string_.h (strncasecmp): Change warning message.
54036         (mbspcasecmp): New declaration.
54037         * m4/mbspcasecmp.m4: New file.
54038         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
54039         GNULIB_MBSPCASECMP.
54040         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
54041         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
54042
54043 2007-02-14  Bruno Haible  <bruno@clisp.org>
54044
54045         * modules/mbsncasecmp-tests: New file.
54046         * tests/test-mbsncasecmp.sh: New file.
54047         * tests/test-mbsncasecmp.c: New file.
54048
54049         New module mbsncasecmp.
54050         * modules/mbsncasecmp: New file.
54051         * lib/mbsncasecmp.c: New file.
54052         * lib/string_.h (mbsncasecmp): New declaration.
54053         * m4/mbsncasecmp.m4: New file.
54054         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
54055         GNULIB_MBSNCASECMP.
54056         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
54057         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
54058
54059 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
54060
54061         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
54062         Verify that it doesn't overlap with our flags.
54063         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
54064         do not have the desired effect in multibyte locales; instead, use
54065         mbscasecmp.
54066         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
54067         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
54068         we don't require GNU fnmatch ourselves (if our users require it, they
54069         should do so explicitly).
54070
54071         Fix regex code so it doesn't rely on strcasecmp.
54072         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
54073         Otherwise, include gnulib's langinfo.h.
54074         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
54075         undesirable behavior in non-C locales.  Instead, rely on localecharset.
54076         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
54077         * modules/regex (FILES): Remove m4/codeset.m4.
54078         (Depends-on): Add localcharset.  Remove strcase.
54079
54080 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54081
54082         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
54083         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
54084
54085 2007-02-13  Bruno Haible  <bruno@clisp.org>
54086
54087         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
54088         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
54089
54090 2007-02-12  Bruno Haible  <bruno@clisp.org>
54091
54092         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
54093         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
54094         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
54095         time warning rather than a link error.
54096
54097 2007-02-12  Bruno Haible  <bruno@clisp.org>
54098
54099         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
54100         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
54101         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
54102
54103 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
54104
54105         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
54106         args, not 2.
54107
54108 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
54109
54110         New module 'time', so that apps can include <time.h> as per
54111         POSIX and GNU instead of separate include files like time_r.h
54112         and timegm.h.  This implementation tries out a simpler approach
54113         for replacing decls in standard include files (as compared to
54114         the string module), somewhat as an experiment.
54115
54116         * config/srclist.txt: Comment out mktime.c for now.
54117         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
54118         since it doesn't apply any more.  Use generic wording instead.
54119         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
54120         'time'.
54121         * lib/time_.h, m4/time_h.m4, modules/time: New files.
54122         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
54123         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
54124         Don't include <sys/types.h>; no longer needed since we assume C89.
54125         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
54126         * lib/strftime.c: Likewise.
54127         * lib/time_r.c: Likewise.
54128         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
54129         * lib/nanosleep.c: Include <time.h> first, to check interface.
54130         * lib/strptime.c: Likewise.
54131         * lib/time_r.c: Likewise.
54132         * lib/timegm.c: Likewise.
54133         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
54134         needed.
54135         * lib/timegm.c: Don't include timegm.h; no longer needed.
54136         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
54137         time.h now handles any problems in that area.
54138         (struct timespec, nanosleep): Remove; time.h now arranges for these.
54139         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
54140         that time.h defines struct timespec.
54141         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
54142         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
54143         handles that.
54144         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
54145         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
54146         needed.  Set REPLACE_LOCALTIME.
54147         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
54148         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
54149         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
54150         nanosleep; time_h.m4 now does that.  Don't require
54151         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
54152         module handles this now.
54153         * modules/getdate (Depends-on): Remove timespec.  Add time.
54154         * modules/nanosleep (Depends-on): Likewise.
54155         * modules/stat-time (Depends-on): Likewise.
54156         * modules/nanosleep (Include): Include time.h, not timespec.h.
54157         * modules/strptime (Files): Remove lib/strptime.h.
54158         (Depends-on): Add extensions, time.
54159         (Include): Include time.h, not strptime.h.
54160         * modules/time_r (Files): Remove lib/time_r.h.
54161         (Depends-on): Add time.
54162         (Include): Include time.h, not time_r.h.
54163         * modules/timegm: Likewise.
54164         * modules/timespec (Description): Now does timespec-related decls
54165         of our own, instead of struct timespec itself.
54166         (Depends-on): Add time; remove extensions.
54167         (Maintainer): Add self.
54168         * modules/utimecmp (Depends-on): Add time; remove timespec.
54169         * modules/utimens (Depends-on): Likewise.
54170         * modules/xnanosleep (Depends-on): Likewise.
54171
54172 2007-02-11  Bruno Haible  <bruno@clisp.org>
54173
54174         * lib/c-strstr.c: Include allocsa.h.
54175         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
54176         * lib/c-strcasestr.c: Include allocsa.h.
54177         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
54178         * lib/strcasestr.c: Include allocsa.h.
54179         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
54180         * lib/mbsstr.c: Include allocsa.h.
54181         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
54182         allocsa/freesa instead of malloc/free.
54183         * lib/mbscasestr.c: Include allocsa.h.
54184         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
54185         allocsa/freesa instead of malloc/free.
54186         * modules/c-strstr (Depends-on): Add allocsa.
54187         * modules/c-strcasestr (Depends-on): Likewise.
54188         * modules/strcasestr (Depends-on): Likewise.
54189         * modules/mbsstr (Depends-on): Likewise.
54190         * modules/mbscasestr (Depends-on): Likewise.
54191
54192 2007-02-11  Bruno Haible  <bruno@clisp.org>
54193
54194         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
54195
54196         * modules/mbsspn-tests: New file.
54197         * tests/test-mbsspn.sh: New file.
54198         * tests/test-mbsspn.c: New file.
54199
54200 2007-02-11  Bruno Haible  <bruno@clisp.org>
54201
54202         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
54203
54204         * modules/mbspbrk-tests: New file.
54205         * tests/test-mbspbrk.sh: New file.
54206         * tests/test-mbspbrk.c: New file.
54207
54208 2007-02-11  Bruno Haible  <bruno@clisp.org>
54209
54210         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
54211         unneeded cast.
54212
54213         * modules/mbscspn-tests: New file.
54214         * tests/test-mbscspn.sh: New file.
54215         * tests/test-mbscspn.c: New file.
54216
54217 2007-02-11  Bruno Haible  <bruno@clisp.org>
54218
54219         * modules/mbscasecmp-tests: New file.
54220         * tests/test-mbscasecmp.sh: New file.
54221         * tests/test-mbscasecmp.c: New file.
54222
54223 2007-02-11  Bruno Haible  <bruno@clisp.org>
54224
54225         Ensure O(n) worst-case complexity of mbscasestr.
54226         * lib/mbscasestr.c: Include stdbool.h.
54227         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
54228         functions.
54229         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
54230         the bookkeeping indicates that it's worth it.
54231         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
54232
54233         * modules/mbscasestr-tests: New file.
54234         * tests/test-mbscasestr1.c: New file.
54235         * tests/test-mbscasestr2.sh: New file.
54236         * tests/test-mbscasestr2.c: New file.
54237         * tests/test-mbscasestr3.sh: New file.
54238         * tests/test-mbscasestr3.c: New file.
54239         * tests/test-mbscasestr4.sh: New file.
54240         * tests/test-mbscasestr4.c: New file.
54241         * m4/locale-tr.m4: New file.
54242
54243 2007-02-11  Bruno Haible  <bruno@clisp.org>
54244
54245         Ensure O(n) worst-case complexity of mbsstr.
54246         * lib/mbsstr.c: Include stdbool.h.
54247         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
54248         functions.
54249         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
54250         bookkeeping indicates that it's worth it.
54251         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
54252
54253         * modules/mbsstr-tests: New file.
54254         * tests/test-mbsstr1.c: New file.
54255         * tests/test-mbsstr2.sh: New file.
54256         * tests/test-mbsstr2.c: New file.
54257         * tests/test-mbsstr3.sh: New file.
54258         * tests/test-mbsstr3.c: New file.
54259         * m4/locale-fr.m4: New file.
54260
54261 2007-02-11  Bruno Haible  <bruno@clisp.org>
54262
54263         * lib/mbsrchr.c (mbsrchr): Fix bug.
54264
54265         * modules/mbsrchr-tests: New file.
54266         * tests/test-mbsrchr.sh: New file.
54267         * tests/test-mbsrchr.c: New file.
54268
54269 2007-02-11  Bruno Haible  <bruno@clisp.org>
54270
54271         * lib/mbschr.c (mbschr): Fix bug.
54272
54273         * modules/mbschr-tests: New file.
54274         * tests/test-mbschr.sh: New file.
54275         * tests/test-mbschr.c: New file.
54276         * m4/locale-zh.m4: New file.
54277
54278 2007-02-11  Bruno Haible  <bruno@clisp.org>
54279
54280         Support for copying multibyte string iterators.
54281         * lib/mbiter.h: Include <string.h>.
54282         (mbiter_multi_copy): New function.
54283         (mbi_copy): New macro.
54284         * lib/mbuiter.h: Include <string.h>.
54285         (mbuiter_multi_copy): New function.
54286         (mbui_copy): New macro.
54287
54288 2007-02-11  Bruno Haible  <bruno@clisp.org>
54289
54290         New module mbslen.
54291         * modules/mbslen: New file.
54292         * lib/mbslen.c: New file.
54293         * lib/string_.h (mbslen): New declaration.
54294         * m4/mbslen.m4: New file.
54295         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
54296         GNULIB_MBSLEN.
54297         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
54298         * MODULES.html.sh (Internationalization functions): Add mbslen.
54299
54300 2007-02-11  Bruno Haible  <bruno@clisp.org>
54301
54302         Ensure O(n) worst-case complexity of strcasestr substitute.
54303         * lib/strcasestr.c: Include stdbool.h.
54304         (knuth_morris_pratt): New function.
54305         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
54306         bookkeeping indicates that it's worth it.
54307         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
54308
54309         * modules/strcasestr-tests: New file.
54310         * tests/test-strcasestr.c: New file.
54311
54312 2007-02-11  Bruno Haible  <bruno@clisp.org>
54313
54314         Ensure O(n) worst-case complexity of c_strcasestr.
54315         * lib/c-strcasestr.c: Include stdbool.h, string.h.
54316         (knuth_morris_pratt): New function.
54317         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
54318         the bookkeeping indicates that it's worth it.
54319         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
54320
54321         * modules/c-strcasestr-tests: New file.
54322         * tests/test-c-strcasestr.c: New file.
54323
54324 2007-02-11  Bruno Haible  <bruno@clisp.org>
54325
54326         Ensure O(n) worst-case complexity of c_strstr.
54327         * lib/c-strstr.c: Include stdbool.h, string.h.
54328         (knuth_morris_pratt): New function.
54329         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
54330         bookkeeping indicates that it's worth it.
54331         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
54332
54333         * lib/c-strstr.c: Complete rewrite for maintainability.
54334
54335         * modules/c-strstr-tests: New file.
54336         * tests/test-c-strstr.c: New file.
54337
54338 2007-02-11  Bruno Haible  <bruno@clisp.org>
54339
54340         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
54341         5.2.1 and earlier, whereby \055 was treated just like the range
54342         delimiter '-'.
54343         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
54344
54345 2007-02-08  Bruno Haible  <bruno@clisp.org>
54346
54347         * modules/regex (Depends-on): Add stdbool.
54348         Reported by Dalibor Topic <robilad@kaffe.org>.
54349
54350 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
54351
54352         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
54353         Prefer returning from main to exiting from it.
54354         Remove unnecessary parens after sizeof.
54355
54356 2007-02-05  Bruno Haible  <bruno@clisp.org>
54357
54358         New module mbssep.
54359         * modules/mbssep: New file.
54360         * lib/mbssep.c: New file.
54361         * lib/string_.h (strsep): Add a conditional link warning.
54362         (mbssep): New declaration.
54363         * m4/mbssep.m4: New file.
54364         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
54365         GNULIB_MBSSEP.
54366         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
54367         * MODULES.html.sh (Internationalization functions): Add mbssep.
54368
54369 2007-02-05  Bruno Haible  <bruno@clisp.org>
54370
54371         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
54372         Optimize search in case of 1 delimiter.
54373
54374 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
54375
54376         * lib/acl.h: Include sys/types.h before sys/acl.h.
54377
54378 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
54379
54380         Merge upstream fix for glibc bugzilla #3957:
54381
54382         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
54383
54384         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
54385         bit for RE_HAT_LISTS_NOT_NEWLINE.
54386         (build_charclass_op): Remove bogus comment.
54387
54388 2007-02-05  Simon Josefsson  <simon@josefsson.org>
54389
54390         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
54391
54392 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
54393
54394         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
54395         * lib/memmem.c [!defined _LIBC]: Include config.h.
54396
54397 2007-02-04  Bruno Haible  <bruno@clisp.org>
54398
54399         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
54400         warning message.
54401
54402 2007-02-04  Bruno Haible  <bruno@clisp.org>
54403
54404         New module mbstok_r.
54405         * modules/mbstok_r: New file.
54406         * lib/mbstok_r.c: New file.
54407         * lib/string_.h (strtok_r): Change argument names to match the
54408         comments. Add a conditional link warning.
54409         (mbstok_r): New declaration.
54410         * m4/mbstok_r.m4: New file.
54411         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
54412         GNULIB_MBSTOK_R.
54413         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
54414         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
54415
54416 2007-02-04  Bruno Haible  <bruno@clisp.org>
54417
54418         New module mbsspn.
54419         * modules/mbsspn: New file.
54420         * lib/mbsspn.c: New file.
54421         * lib/string_.h (strspn): Add a conditional link warning.
54422         (mbsspn): New declaration.
54423         * m4/mbsspn.m4: New file.
54424         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
54425         GNULIB_MBSSPN.
54426         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
54427         * MODULES.html.sh (Internationalization functions): Add mbsspn.
54428
54429 2007-02-04  Bruno Haible  <bruno@clisp.org>
54430
54431         New module mbspbrk.
54432         * modules/mbspbrk: New file.
54433         * lib/mbspbrk.c: New file.
54434         * lib/string_.h (strpbrk): Add a conditional link warning.
54435         (mbspbrk): New declaration.
54436         * m4/mbspbrk.m4: New file.
54437         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
54438         GNULIB_MBSPBRK.
54439         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
54440         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
54441
54442 2007-02-04  Bruno Haible  <bruno@clisp.org>
54443
54444         New module mbscspn.
54445         * modules/mbscspn: New file.
54446         * lib/mbscspn.c: New file.
54447         * lib/string_.h (strcspn): Add a conditional link warning.
54448         (mbscspn): New declaration.
54449         * m4/mbscspn.m4: New file.
54450         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
54451         GNULIB_MBSCSPN.
54452         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
54453         * MODULES.html.sh (Internationalization functions): Add mbscspn.
54454
54455 2007-02-04  Bruno Haible  <bruno@clisp.org>
54456
54457         New module mbscasestr, reduced goal of strcasestr.
54458         * modules/mbscasestr: New file.
54459         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
54460         (mbscasestr): Renamed from strcasestr.
54461         * lib/strcasestr.c: Don't include mbuiter.h.
54462         (strcasestr): Remove support for multibyte locales.
54463         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
54464         Change the conditional link warning.
54465         (mbscasestr): New declaration.
54466         * m4/mbscasestr.m4: New file.
54467         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
54468         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
54469         REPLACE_STRCASESTR.
54470         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
54471         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
54472         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
54473         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
54474         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
54475         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
54476         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
54477         (Depends-on): Remove mbuiter.
54478         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
54479
54480 2007-02-04  Bruno Haible  <bruno@clisp.org>
54481
54482         Simplify handling of strncasecmp.
54483         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
54484         the conditional link warning.
54485         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
54486         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
54487         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
54488         * modules/strcase (configure.ac): Don't invoke
54489         gl_STRING_MODULE_INDICATOR.
54490         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
54491
54492 2007-02-04  Bruno Haible  <bruno@clisp.org>
54493
54494         New module mbscasecmp, reduced goal of strcasecmp.
54495         * modules/mbscasecmp: New file.
54496         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
54497         (mbscasecmp): Renamed from strcasecmp.
54498         * lib/strcasecmp.c: Don't include mbuiter.h.
54499         (strcasecmp): Remove support for multibyte locales.
54500         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
54501         Change the conditional link warning.
54502         (mbscasecmp): New declaration.
54503         * m4/mbscasecmp.m4: New file.
54504         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
54505         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
54506         REPLACE_STRCASECMP.
54507         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
54508         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
54509         GNULIB_MBSCASECMP.
54510         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
54511         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
54512         * modules/strcase (Files): Remove m4/mbrtowc.m4.
54513         (Depends-on): Remove mbuiter.
54514         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
54515
54516 2007-02-04  Bruno Haible  <bruno@clisp.org>
54517
54518         New module mbsstr. Remove module strstr.
54519         * modules/mbsstr: New file.
54520         * modules/strstr: Remove file.
54521         * lib/mbsstr.c: Renamed from lib/strstr.c.
54522         (mbsstr): Renamed from strstr.
54523         * lib/string_.h (strstr): Remove declaration. Change the conditional
54524         link warning.
54525         (mbsstr): New declaration.
54526         * m4/mbsstr.m4: New file.
54527         * m4/strstr.m4: Remove file.
54528         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
54529         REPLACE_STRSTR.
54530         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
54531         Don't initialize GNULIB_STRSTR.
54532         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
54533         substitute GNULIB_STRSTR and REPLACE_STRSTR.
54534         * MODULES.html.sh (Internationalization functions): Add mbsstr.
54535         (Support for systems lacking ANSI C 89): Remove strstr.
54536
54537 2007-02-04  Bruno Haible  <bruno@clisp.org>
54538
54539         New module mbsrchr.
54540         * modules/mbsrchr: New file.
54541         * lib/mbsrchr.c: New file.
54542         * lib/string_.h (strrchr): Add a conditional link warning.
54543         (mbsrchr): New declaration.
54544         * m4/mbsrchr.m4: New file.
54545         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
54546         GNULIB_MBSRCHR.
54547         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
54548         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
54549
54550 2007-02-04  Bruno Haible  <bruno@clisp.org>
54551
54552         New module mbschr.
54553         * modules/mbschr: New file.
54554         * lib/mbschr.c: New file.
54555         * lib/string_.h (strchr): Add a conditional link warning.
54556         (mbschr): New declaration.
54557         * m4/mbschr.m4: New file.
54558         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
54559         GNULIB_MBSCHR.
54560         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
54561         * MODULES.html.sh (Internationalization functions): Add mbschr.
54562
54563 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
54564
54565         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
54566
54567         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
54568
54569 2007-02-04  Bruno Haible  <bruno@clisp.org>
54570
54571         New module description section 'configure.ac-early'.
54572         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
54573         (func_get_autoconf_early_snippet): New function.
54574         (func_import, func_create_testdir): Use it. Remove special cases for
54575         modules 'extensions' and 'lock'.
54576         * modules/extensions (configure.ac-early): Require
54577         gl_USE_SYSTEM_EXTENSIONS.
54578         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
54579
54580 2007-02-04  Bruno Haible  <bruno@clisp.org>
54581
54582         Make use of gcj-4.3's -fsource and -ftarget option.
54583         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
54584         and if so try the options -fsource and -ftarget.
54585         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
54586         source_version, ftarget_option, target_version arguments.
54587         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
54588         (is_envjavac_oldgcj_14_14_usable): Renamed from
54589         is_envjavac_gcj_14_14_usable.
54590         (is_envjavac_oldgcj_14_13_usable): Renamed from
54591         is_envjavac_gcj_14_13_usable.
54592         (is_gcj_present): Update.
54593         (is_gcj_43, is_gcj43_usable): New functions.
54594         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
54595         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
54596         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
54597         try the options -fsource and -ftarget.
54598
54599 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
54600
54601         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
54602         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
54603         larger value.
54604
54605 2007-02-03  Jim Meyering  <jim@meyering.net>
54606
54607         Give tools a better chance to allocate space for very large buffers.
54608         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
54609
54610         Make pwd and readlink work also when run with an unreadable parent dir
54611         on systems with openat support.
54612         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
54613         provided getcwd function, even when we have openat support.
54614         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
54615
54616 2007-02-02  Bruno Haible  <bruno@clisp.org>
54617
54618         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
54619         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
54620         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
54621         portability problems if one of these functions is only used on specific
54622         platforms.
54623         Reported by Paul Eggert.
54624
54625 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
54626
54627         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
54628         is causing more trouble than it's curing.
54629         * lib/regex_internal.h (__mempcpy): Remove.
54630         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
54631         (and make the code a tad smaller to boot).
54632         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
54633
54634 2007-02-02  Jim Meyering  <jim@meyering.net>
54635
54636         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
54637         section, not in the Makefile.am: one.
54638
54639 2007-02-02  Eric Blake  <ebb9@byu.net>
54640
54641         * lib/strchrnul.c: Always include config.h first.
54642
54643         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
54644         gnulib strstr is not necessary here.
54645
54646 2007-02-02  Simon Josefsson  <simon@josefsson.org>
54647
54648         * m4/socklen.m4: Fix typo.
54649
54650 2007-02-02  Eric Blake  <ebb9@byu.net>
54651
54652         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
54653         * modules/netinet_in (Makefile.am): Likewise.
54654
54655 2007-02-01  Bruno Haible  <bruno@clisp.org>
54656
54657         * lib/string_.h (GL_LINK_WARNING): New macro.
54658         (strcasecmp, strstr, strcasestr): If provided by the system,
54659         conditionally define as a macro that leads to a warning instead of to
54660         an error.
54661         (strncasecmp): Conditionally define as a macro that leads to a warning.
54662
54663 2007-02-01  Karl Berry  <karl@gnu.org>
54664
54665         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
54666
54667 2007-02-01  Bruno Haible  <bruno@clisp.org>
54668
54669         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
54670         renamings.
54671
54672 2007-02-01  Eric Blake  <ebb9@byu.net>
54673
54674         * modules/regex (Depends-on): Revert dependence on mempcpy.
54675         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
54676         module's definition of mempcpy.
54677         Reported by Paul Eggert.
54678
54679 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
54680
54681         * lib/string_.h: If the gnulib module XYZ is not present, undefine
54682         the symbol XYZ before redefining it.  This fixes a problem with
54683         programs that don't use XYZ, when compiled on systems that define
54684         XYZ to something else.
54685
54686 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
54687
54688         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
54689         occurs when "mkdir -m foo" creates a setgid directory that is (1)
54690         writeable to group or other and (2) is intended to have a special
54691         mode bit that is set or cleared.  In such a case, the directory
54692         should be neither group- nor other-writeable until the special
54693         mode bits are right.
54694
54695 2007-01-31  Eric Blake  <ebb9@byu.net>
54696
54697         * modules/mountlist (Depends-on): Add strstr.
54698
54699         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
54700         bug.
54701         * modules/string (Makefile.am): Remove redundant replacement.
54702         * modules/regex (Depends-on): Add mempcpy.
54703
54704 2007-01-31  Bruno Haible  <bruno@clisp.org>
54705
54706         New module description field 'Link'.
54707         * gnulib-tool (func_usage): Document --extract-link-directive.
54708         (sed_extract_prog): Recognize 'Link' directive.
54709         (func_get_link_directive): New function.
54710         (func_import): Show summary of link directives.
54711         Handle --extract-link-directive option.
54712         * modules/acl (Link): New section.
54713         * modules/clock-time (Link): New section.
54714         * modules/euidaccess (Link): New section.
54715         * modules/gettext (Link): New section.
54716         * modules/iconv (Link): New section.
54717         * modules/lock (Link): New section.
54718         * modules/nanosleep (Link): New section.
54719         * modules/readline (Link): New section.
54720
54721 2007-01-27  Bruno Haible  <bruno@clisp.org>
54722
54723         Enforce the use of gnulib modules for unportable <string.h> functions.
54724         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
54725         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
54726         (gl_HEADER_STRING_H_BODY): Require it.
54727         * lib/string_.h: If the gnulib module XYZ is not present, redefine
54728         the symbol XYZ to one that gives a link error.
54729         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
54730         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
54731         * modules/mempcpy (configure.ac): Likewise.
54732         * modules/memrchr (configure.ac): Likewise.
54733         * modules/stpcpy (configure.ac): Likewise.
54734         * modules/stpncpy (configure.ac): Likewise.
54735         * modules/strcase (configure.ac): Likewise.
54736         * modules/strcasestr (configure.ac): Likewise.
54737         * modules/strchrnul (configure.ac): Likewise.
54738         * modules/strdup (configure.ac): Likewise.
54739         * modules/strndup (configure.ac): Likewise.
54740         * modules/strnlen (configure.ac): Likewise.
54741         * modules/strpbrk (configure.ac): Likewise.
54742         * modules/strsep (configure.ac): Likewise.
54743         * modules/strstr (configure.ac): Likewise.
54744         * modules/strtok_r (configure.ac): Likewise.
54745
54746 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
54747
54748         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
54749
54750 2007-01-30  Jim Meyering  <jim@meyering.net>
54751
54752         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
54753
54754 2007-01-29  Bruno Haible  <bruno@clisp.org>
54755
54756         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
54757         * lib/execute.c: Likewise.
54758         * lib/pipe.c: Likewise.
54759         * lib/printf-args.h: Likewise.
54760         * lib/printf-args.c: Likewise.
54761         * lib/printf-parse.c: Likewise.
54762         * lib/vasnprintf.c: Likewise.
54763
54764 2007-01-29  Eric Blake  <ebb9@byu.net>
54765
54766         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
54767         declaration.
54768
54769 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
54770
54771         * lib/strptime.h (strptime): Use 'restrict' for args where
54772         POSIX requires this.
54773         * lib/strptime.c (strptime): Likewise.
54774         Change license notice from LGPL to GPL, since gnulib-tool will
54775         change this as needed.
54776         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
54777         defined.
54778         Include "strptime.h" first, to check interface.
54779         Do not #undef _LIBC and _NL_CURRENT.
54780         Do not include <stdlib.h>; no longer needed.
54781         Include "time_r.h" and declare ptime_locale_status
54782         only if _LIBC is not defined.
54783         (__P): Remove unused macro.
54784         (match_string): Bring back glibc version, but use it only if _LIBC
54785         is defined.
54786         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
54787         Remove unnecessary assertion and abort() call.
54788         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
54789         * m4/strptime.m4: Fix serial number comment.
54790         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
54791         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
54792         (Depends-on): Add time_r.
54793
54794 2007-01-29  Bruno Haible  <bruno@clisp.org>
54795
54796         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
54797         strptime.
54798         * modules/strptime (Depends-on): Add stdbool.
54799         * lib/strptime.h: Include <time.h> always. Add comments.
54800
54801 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
54802
54803         * modules/strptime: New file.
54804         * lib/strptime.h: New file.
54805         * lib/strptime.c: New file.
54806         * m4/strptime.m4: New file.
54807
54808 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
54809
54810         * MODULES.html.sh: New module mpsort.
54811         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
54812
54813         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
54814         a circularity problem with HP-UX ia64 reported by Bob Proulx in
54815         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
54816         All uses changed.
54817         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
54818         All uses changed.
54819         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
54820         to _Restrict_.
54821         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
54822         the parameter matches the prototype.
54823
54824 2007-01-28  Jim Meyering  <jim@meyering.net>
54825
54826         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
54827         sys/time.h here, reverting that part of the previous patch:
54828         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
54829
54830 2007-01-28  Bruno Haible  <bruno@clisp.org>
54831
54832         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
54833         value of $(SYS_TIME_H).
54834         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
54835         remove it conditionally, too. [added by Jim Meyering]
54836         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
54837         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
54838         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
54839         GETTIMEOFDAY_REPLACEMENT to 1.
54840
54841 2007-01-28  Bruno Haible  <bruno@clisp.org>
54842
54843         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
54844         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
54845         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
54846         Set UNISTD_H instead of UNISTD_H2.
54847         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
54848
54849 2007-01-28  Bruno Haible  <bruno@clisp.org>
54850
54851         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
54852         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
54853
54854 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54855
54856         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
54857         (func_create_testdir): Ensure C locale for `grep' and `tr'
54858         character ranges.
54859         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
54860         ACLOCAL_AMFLAGS parsing state machine.
54861
54862 2007-01-27  Bruno Haible  <bruno@clisp.org>
54863
54864         * modules/unistr/base: Update.
54865
54866 2007-01-27  Bruno Haible  <bruno@clisp.org>
54867
54868         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
54869         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
54870         * modules/unistr/u32-mbtouc-unsafe: Renamed from
54871         modules/unistr/u32-mbtouc.
54872         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
54873         * lib/unistr.h: Update.
54874         * lib/linebreak.c: Update.
54875         * modules/unistr/u32-mbtouc: Renamed from
54876         modules/unistr/u32-mbtouc-safe.
54877         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
54878         * lib/unistr.h: Update.
54879         * lib/unistr/u32-to-u8.c: Update.
54880         * lib/unistr/u32-to-u16.c: Update.
54881
54882 2007-01-27  Bruno Haible  <bruno@clisp.org>
54883
54884         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
54885         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
54886         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
54887         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
54888         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
54889         * modules/unistr/u16-mbtouc-unsafe: Renamed from
54890         modules/unistr/u16-mbtouc.
54891         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
54892         * lib/unistr.h: Update.
54893         * lib/linebreak.c: Update.
54894         * modules/linebreak: Update.
54895         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
54896         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
54897         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
54898         * modules/unistr/u16-mbtouc: Renamed from
54899         modules/unistr/u16-mbtouc-safe.
54900         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
54901         * lib/unistr.h: Update.
54902         * lib/unistr/u16-to-u8.c: Update.
54903         * modules/unistr/u16-to-u8: Update.
54904         * lib/unistr/u16-to-u32.c: Update.
54905         * modules/unistr/u16-to-u32: Update.
54906
54907 2007-01-27  Bruno Haible  <bruno@clisp.org>
54908
54909         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
54910         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
54911         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
54912         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
54913         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
54914         * modules/unistr/u8-mbtouc-unsafe: Renamed from
54915         modules/unistr/u8-mbtouc.
54916         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
54917         * lib/unistr.h: Update.
54918         * lib/striconveh.c: Update.
54919         * modules/striconveh: Update.
54920         * lib/linebreak.c: Update.
54921         * modules/linebreak: Update.
54922         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
54923         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
54924         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
54925         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
54926         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
54927         * lib/unistr.h: Update.
54928         * lib/striconveh.c: Update.
54929         * modules/striconveh: Update.
54930         * lib/unistr/u8-to-u16.c: Update.
54931         * modules/unistr/u8-to-u16: Update.
54932         * lib/unistr/u8-to-u32.c: Update.
54933         * modules/unistr/u8-to-u32: Update.
54934
54935 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54936
54937         Sync from Libtool.
54938         * lib/argz.c: Do not include strings.h nor memory.h, include
54939         string.h unconditionally.  Patch by Simon Josefsson.
54940
54941 2007-01-27  Bruno Haible  <bruno@clisp.org>
54942
54943         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
54944         from gl_HEADER_STRING_H_BODY.
54945         (gl_HEADER_STRING_H_BODY): Require it.
54946         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
54947         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
54948         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
54949         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
54950         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
54951         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
54952         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
54953         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
54954         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
54955         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
54956         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
54957         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
54958         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
54959         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
54960         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
54961
54962 2007-01-27  Bruno Haible  <bruno@clisp.org>
54963
54964         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
54965         check_PROGRAMS into noinst_PROGRAMS.
54966         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
54967         check_PROGRAMS in this case.
54968         (func_import): Set for_test to false.
54969         (func_create_testdir): Set for_test to true.
54970
54971 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
54972             Bruno Haible  <bruno@clisp.org>
54973
54974         * modules/strcasestr (Files): Remove lib/strcasestr.h.
54975         (Depends-on): Add string.
54976         (Includes): Use <string.h> instead of strcasestr.h.
54977         * modules/string (Makefile.am): Also substitute the value of
54978         REPLACE_STRCASESTR.
54979         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
54980         assume strcasestr is declared in <string.h> not <strings.h>. Also
54981         set REPLACE_STRCASESTR.
54982         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
54983         REPLACE_STRCASESTR.
54984         * lib/strcasestr.h: Remove file.
54985         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
54986         * lib/string_.h (strcasestr): New declaration.
54987
54988 2007-01-27  Bruno Haible  <bruno@clisp.org>
54989
54990         * lib/string_.h: Use 'extern'.
54991
54992 2007-01-27  Jim Meyering  <jim@meyering.net>
54993
54994         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
54995         of set-but-not-used local, "q".
54996
54997         * lib/mempcpy.c: Include <config.h> before <string.h>.
54998         This fixes a compilation error on HP-UX, due to the system's
54999         "restrict"-using mempcpy prototype.
55000
55001 2007-01-26  Bruno Haible  <bruno@clisp.org>
55002
55003         Small optimization.
55004         * lib/javacomp.c: Include c-strstr.h.
55005          (is_envjavac_gcj): Use c_strstr instead of strstr.
55006         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
55007
55008 2007-01-26  Bruno Haible  <bruno@clisp.org>
55009
55010         * MODULES.html.sh (Unicode string functions): Add the new modules.
55011
55012         * modules/uniconv/u32-strconv-to-locale: New file.
55013         * lib/uniconv/u32-strconv-to-locale.c: New file.
55014
55015         * modules/uniconv/u16-strconv-to-locale: New file.
55016         * lib/uniconv/u16-strconv-to-locale.c: New file.
55017
55018         * modules/uniconv/u8-strconv-to-locale: New file.
55019         * lib/uniconv/u8-strconv-to-locale.c: New file.
55020
55021         * modules/uniconv/u32-strconv-from-locale: New file.
55022         * lib/uniconv/u32-strconv-from-locale.c: New file.
55023
55024         * modules/uniconv/u16-strconv-from-locale: New file.
55025         * lib/uniconv/u16-strconv-from-locale.c: New file.
55026
55027         * modules/uniconv/u8-strconv-from-locale: New file.
55028         * lib/uniconv/u8-strconv-from-locale.c: New file.
55029
55030         * modules/uniconv/u32-strconv-to-enc: New file.
55031         * lib/uniconv/u32-strconv-to-enc.c: New file.
55032         * modules/uniconv/u32-strconv-to-enc-tests: New file.
55033         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
55034
55035         * modules/uniconv/u16-strconv-to-enc: New file.
55036         * lib/uniconv/u16-strconv-to-enc.c: New file.
55037         * lib/uniconv/u-strconv-to-enc.h: New file.
55038         * modules/uniconv/u16-strconv-to-enc-tests: New file.
55039         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
55040
55041         * modules/uniconv/u8-strconv-to-enc: New file.
55042         * lib/uniconv/u8-strconv-to-enc.c: New file.
55043         * modules/uniconv/u8-strconv-to-enc-tests: New file.
55044         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
55045
55046         * modules/uniconv/u32-strconv-from-enc: New file.
55047         * lib/uniconv/u32-strconv-from-enc.c: New file.
55048         * modules/uniconv/u32-strconv-from-enc-tests: New file.
55049         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
55050
55051         * modules/uniconv/u16-strconv-from-enc: New file.
55052         * lib/uniconv/u16-strconv-from-enc.c: New file.
55053         * modules/uniconv/u16-strconv-from-enc-tests: New file.
55054         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
55055
55056         * modules/uniconv/u8-strconv-from-enc: New file.
55057         * lib/uniconv/u8-strconv-from-enc.c: New file.
55058         * lib/uniconv/u-strconv-from-enc.h: New file.
55059         * modules/uniconv/u8-strconv-from-enc-tests: New file.
55060         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
55061
55062         * modules/uniconv/u32-conv-from-enc: New file.
55063         * lib/uniconv/u32-conv-from-enc.c: New file.
55064         * modules/uniconv/u32-conv-from-enc-tests: New file.
55065         * tests/uniconv/test-u32-conv-from-enc.c: New file.
55066
55067         * modules/uniconv/u16-conv-from-enc: New file.
55068         * lib/uniconv/u16-conv-from-enc.c: New file.
55069         * lib/uniconv/u-conv-from-enc.h: New file.
55070         * modules/uniconv/u16-conv-from-enc-tests: New file.
55071         * tests/uniconv/test-u16-conv-from-enc.c: New file.
55072
55073         * modules/uniconv/u8-conv-from-enc: New file.
55074         * lib/uniconv/u8-conv-from-enc.c: New file.
55075         * modules/uniconv/u8-conv-from-enc-tests: New file.
55076         * tests/uniconv/test-u8-conv-from-enc.c: New file.
55077
55078         * modules/uniconv/base: New file.
55079         * lib/uniconv.h: New file.
55080
55081 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
55082
55083         * doc/gnulib-tool.texi (Initial import): Update to match current
55084         behavior with strdup module.
55085         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
55086         * lib/memmem.h: Remove; all uses removed.  This is now done
55087         by <string.h>.
55088         * lib/mempcpy.h: Likewise.
55089         * lib/memrchr.h: Likewise.
55090         * lib/stpcpy.h: Likewise.
55091         * lib/stpncpy.h: Likewise.
55092         * lib/strcase.h: Likewise.
55093         * lib/strchrnul.h: Likewise.
55094         * lib/strdup.h: Likewise.
55095         * lib/strndup.h: Likewise.
55096         * lib/strnlen.h: Likewise.
55097         * lib/strpbrk.h: Likewise.
55098         * lib/strsep.h: Likewise.
55099         * lib/strstr.h: Likewise.
55100         * lib/strtok_r.h: Likewise.
55101         * lib/string_.h: New file.
55102         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
55103         Rely on <string.h> instead.
55104         * lib/canon-host.c: Likewise.
55105         * lib/chdir-long.c: Likewise.
55106         * lib/concatpath.c: Likewise.
55107         * lib/exclude.c: Likewise.
55108         * lib/fchdir.c: Likewise.
55109         * lib/getaddrinfo.c: Likewise.
55110         * lib/getcwd.c: Likewise.
55111         * lib/getsubopt.c: Likewise.
55112         * lib/glob.c: Likewise.
55113         * lib/hard-locale.c: Likewise.
55114         * lib/iconvme.c: Likewise.
55115         * lib/javacomp.c: Likewise.
55116         * lib/mempcpy.c: Likewise.
55117         * lib/memrchr.c: Likewise.
55118         * lib/regex_internal.h: Likewise.
55119         * lib/stpncpy.c: Likewise.
55120         * lib/strcasecmp.c: Likewise.
55121         * lib/strchrnul.c: Likewise.
55122         * lib/strdup.c: Likewise.
55123         * lib/striconv.c: Likewise.
55124         * lib/striconveh.c: Likewise.
55125         * lib/striconveha.c: Likewise.
55126         * lib/strncasecmp.c: Likewise.
55127         * lib/strndup.c: Likewise.
55128         * lib/strnlen.c: Likewise.
55129         * lib/strsep.c: Likewise.
55130         * lib/strstr.c: Likewise.
55131         * lib/strtok_r.c: Likewise.
55132         * lib/userspec.c: Likewise.
55133         * lib/w32spawn.h: Likewise.
55134         * lib/xstrndup.c: Likewise.
55135         * lib/mountlist.c (strstr): Remove decl.
55136         * m4/string_h.m4: New file.
55137         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
55138         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
55139         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
55140         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
55141         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
55142         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
55143         Set REPLACE_STRCASECMP if necessary.
55144         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
55145         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
55146         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
55147         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
55148         HAVE_DECL_STRDUP if necessary.
55149         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
55150         since gl_FUNC_STRNDUP does that now.
55151         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
55152         Check for decl here...
55153         (gl_PREREQ_STRNLEN): ... not here.
55154         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
55155         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
55156         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
55157         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
55158         necessary.
55159         * modules/string: New file.
55160         * modules/memmem (Files): Remove special-purpose include file.
55161         (Depends-on): Add string.
55162         (Include): Include <string.h>, not the removed file.
55163         * modules/mempcpy: Likewise.
55164         * modules/memrchr: Likewise.
55165         * modules/stpcpy: Likewise.
55166         * modules/stpncpy: Likewise.
55167         * modules/strcase: Likewise.
55168         * modules/strchrnul: Likewise.
55169         * modules/strdup: Likewise.
55170         * modules/strndup: Likewise.
55171         * modules/strnlen: Likewise.
55172         * modules/strpbrk: Likewise.
55173         * modules/strsep: Likewise.
55174         * modules/strstr: Likewise.
55175         * modules/strtok_r: Likewise.
55176         * tests/test-dirname.c: Don't include "strdup.h", since
55177         <string.h> now suffices.
55178         * tests/test-memmem.c: Don't include "memmem.h", since
55179         <string.h> now suffices.
55180
55181 2007-01-25  Bruno Haible  <bruno@clisp.org>
55182
55183         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
55184         *resultp is 0.
55185
55186         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
55187         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
55188         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
55189         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
55190
55191         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
55192         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
55193         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
55194         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
55195         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
55196         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
55197
55198 2007-01-24  Bruno Haible  <bruno@clisp.org>
55199
55200         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
55201         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
55202         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
55203         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
55204         gl_FUNC_FTS_CORE.
55205         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
55206         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
55207         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
55208         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
55209         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
55210         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
55211         gl_FUNC_FCHOWNAT.
55212         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
55213         gl_FUNC_STRFTIME.
55214         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
55215         Reported by Ralf Wildenhues.
55216
55217 2007-01-24  Bruno Haible  <bruno@clisp.org>
55218
55219         Drop AC_REQUIRE calls that are redundant with the module dependencies.
55220         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
55221         gl_GETADDRINFO.
55222         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
55223         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
55224         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
55225
55226 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
55227
55228         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
55229         Don't use 'exit'; just return from 'main'.
55230         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
55231
55232         * lib/fnmatch_.h: Readjust white space and comments to match
55233         glibc, to avoid spurious diffs.
55234
55235 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
55236
55237         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
55238         2004-12-01 change by Jakub Jelinek, since this code won't compile
55239         if !LIBC.  Problem reported by Bob Proulx.
55240
55241 2007-01-23  Bruno Haible  <bruno@clisp.org>
55242
55243         * lib/striconveh.c: Include c-strcaseeq.h.
55244         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
55245         * modules/striconveh (Depends-on): Add c-strcaseeq.
55246
55247 2007-01-23  Bruno Haible  <bruno@clisp.org>
55248
55249         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
55250
55251         * modules/c-strcaseeq: New file.
55252         * lib/c-strcaseeq.h: New file.
55253
55254         * modules/streq: New file.
55255         * lib/streq.h: New file.
55256
55257 2007-01-23  Bruno Haible  <bruno@clisp.org>
55258
55259         * modules/striconveha-tests: New file.
55260         * tests/test-striconveha.c: New file.
55261
55262         * lib/striconveha.h: Include <stdbool.h>.
55263         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
55264         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
55265         (mem_iconveha_notranslit): Renamed from mem_iconveha.
55266         (mem_iconveha): New function.
55267         (str_iconveha_notranslit): Renamed from str_iconveha.
55268         (str_iconveha): New function.
55269         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
55270         c-strcase.
55271
55272 2007-01-23  Bruno Haible  <bruno@clisp.org>
55273
55274         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
55275         encodings without forgiving before trying any encoding with handler.
55276         (str_iconveha): Try all encodings without forgiving before trying any
55277         encoding with handler.
55278
55279 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
55280
55281         Import the following changes from libc.
55282
55283         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
55284
55285         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
55286
55287         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
55288
55289         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
55290         normal_bracket label.
55291
55292         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
55293
55294         [BZ #361]
55295         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
55296         to normal_bracket after fetching the next character.
55297
55298 2007-01-22  Bruno Haible  <bruno@clisp.org>
55299
55300         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
55301         argument.
55302         * lib/striconveh.c (iconv_carefully_1): New function.
55303         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
55304         argument.
55305         (str_cd_iconveh): Update.
55306         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
55307         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
55308         * tests/test-striconveh.c (MAGIC): New macro.
55309         (new_offsets): New function.
55310         (main): Test call with and without offsets.
55311
55312 2007-01-22  Bruno Haible  <bruno@clisp.org>
55313
55314         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
55315         * modules/sys_select (Makefile.am): Likewise.
55316         * modules/sys_socket (Makefile.am): Likewise.
55317         * modules/sys_time (Makefile.am): Likewise.
55318
55319 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
55320
55321         * modules/gettimeofday (License): Change from GPL to LGPL, since
55322         gettimeofday is a library function.
55323
55324 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
55325
55326         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
55327
55328 2007-01-21  Bruno Haible  <bruno@clisp.org>
55329
55330         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
55331
55332 2007-01-21  Bruno Haible  <bruno@clisp.org>
55333
55334         * modules/striconveha: New file.
55335         * lib/striconveha.h: New file.
55336         * lib/striconveha.c: New file.
55337         * MODULES.html.sh (Internationalization functions): Add striconveha.
55338         * lib/striconv.c (str_iconv): Optimize the case of an empty input
55339         string.
55340         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
55341
55342 2007-01-21  Bruno Haible  <bruno@clisp.org>
55343
55344         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
55345         * lib/striconveh.c (str_iconveh): Likewise.
55346
55347 2007-01-21  Bruno Haible  <bruno@clisp.org>
55348
55349         * lib/striconveh.h (mem_iconveh): New declaration.
55350         * lib/striconveh.c (mem_iconveh): New function.
55351         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
55352
55353 2007-01-21  Bruno Haible  <bruno@clisp.org>
55354
55355         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
55356
55357         * lib/striconveh.h (mem_cd_iconveh): Change specification.
55358         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
55359         original result buffer.
55360         (str_cd_iconveh): Update.
55361         * tests/test-striconveh.c (main): Update.
55362
55363         * lib/striconv.h (mem_cd_iconv): Change specification.
55364         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
55365         result buffer.
55366         (str_cd_iconv): Update.
55367         * tests/test-striconv.c (main): Update.
55368
55369 2007-01-21  Bruno Haible  <bruno@clisp.org>
55370
55371         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
55372
55373 2007-01-20  Jim Meyering  <jim@meyering.net>
55374
55375         * lib/userspec.c (parse_with_separator): If a user or group string
55376         starts with "+", skip the corresponding name-to-ID look-up, since
55377         such a look-up must fail: user and group names may not include "+".
55378
55379 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
55380
55381         * lib/poll.c: Include sys/time.h and time.h unconditionally,
55382         since we now assume the sys_time module.
55383         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
55384         check for sys/time.h; no longer needed.
55385         * modules/poll (Depends-on): Depend on sys_time.
55386
55387 2007-01-18  Bruno Haible  <bruno@clisp.org>
55388
55389         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
55390         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
55391
55392         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
55393         gettimeofday.
55394
55395         * tests/test-gettimeofday.c: Include <time.h>.
55396         (dummy): Remove variable.
55397
55398         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
55399         gl_HEADER_SYS_TIME_H.
55400         (gl_HEADER_SYS_TIME_H): New macro.
55401
55402         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
55403         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
55404         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
55405         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
55406         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
55407         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
55408         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
55409         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
55410         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
55411         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
55412         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
55413
55414         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
55415         last change; it caused a compilation error when cross-compiling to
55416         Cygwin.
55417
55418 2007-01-18  Jim Meyering  <jim@meyering.net>
55419
55420         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
55421         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
55422         than the race-prone "test -d sys || mkdir sys".
55423         (configure.ac): Use AC_PROG_MKDIR_P.
55424         * modules/sys_select: Likewise.
55425         * modules/sys_socket: Likewise.
55426         * modules/sys_time: Likewise.
55427
55428 2007-01-18  Eric Blake  <ebb9@byu.net>
55429
55430         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
55431         replace gettimeofday.
55432         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
55433         name, to avoid infinite recursion.
55434
55435 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
55436
55437         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
55438         module sys_time.
55439         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
55440         assume timespec.h defines struct timeval.
55441         * lib/settime.c: Likewise.
55442         * lib/utimens.c: Likewise.
55443         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
55444         since we now assume the gettimeofday module.
55445         * lib/tempname.c (__gen_tempname): Likewise.
55446         * lib/gettimeofday.h: Remove.
55447         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
55448         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
55449         Include <time.h>, for 'time()'.
55450         (localtime_buffer_addr): Also use this workaround if
55451         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
55452         to simplify the uses.  All uses changed.
55453         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
55454         that #undef is inside {}, and 'const' follows type name consistently.
55455         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
55456         (gettimeofday): Do not use the maximum possible value for
55457         tv->tv_usec, since that might break usages other than ls.c.
55458         Instead, we'll leave ls.c alone.  This undoes today's patch
55459         by Bruno.  Add a compile-time warning for 1s-clock resolution;
55460         we've never observed the problem but might as well keep the
55461         canary.
55462         * lib/nanosleep.c: Include timespec.h first, for interface check.
55463         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
55464         now assume the sys_time module.
55465         * lib/tempname.c: Likewise.
55466         * lib/timespec.h: Likewise.
55467         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
55468         needed.
55469         * lib/strftime.c: Likewise.
55470         * lib/timespec.h: Likewise.
55471         * lib/posixtm.c: Include posixtm.h first, for interface check.
55472         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
55473         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
55474         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
55475         * lib/sys_time_.h: New file.
55476         * lib/timespec.h (struct timespec): Use long int, not long.
55477         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
55478         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
55479         Remove obsolescent call to AC_HEADER_TIME.
55480         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
55481         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
55482         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
55483         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
55484         Likewise.
55485         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
55486         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
55487         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
55488         into the sys_time module.  Check for gettimeofday just once.
55489         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
55490         for gettimeofday signature to just check the signature.  Merely
55491         compile it, since linking doesn't test signature.  Improve test for
55492         whether gettimeofday.o is actually needed.
55493         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
55494         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
55495         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
55496         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
55497         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
55498         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
55499         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
55500         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
55501         than worrying about sys/time.h.
55502         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
55503         Don't bother worrying about TIME_WITH_SYS_TIME.
55504         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
55505         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
55506         * m4/sys_time_h.m4: New file.
55507         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
55508         Don't include sys/time.h.  Return from main rather than exiting.
55509         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
55510         all uses changed.
55511         * modules/gethrxtime (Depends-on): Add sys_time.
55512         * modules/gettime (Depends-on): Likewise.
55513         * modules/gettimeofday (Depends-on): Likewise.
55514         * modules/nanosleep (Depends-on): Likewise.
55515         * modules/settime (Depends-on): Likewise.
55516         * modules/tempname (Depends-on): Likewise.
55517         * modules/utimens (Depends-on): Likewise.
55518         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
55519         (Include): Change back to <sys/time.h>.
55520         (Maintainer): Add self.
55521         * modules/sys_time: New file.
55522         * modules/tempname (Depends-on): Add gettimeofday.
55523         * tests/test-gettimeofday.c: Include <sys/time.h>
55524         rather than gettimeofday.h.
55525
55526 2007-01-17  Bruno Haible  <bruno@clisp.org>
55527
55528         * gnulib-tool (func_get_license): Revert last patch. Instead, let
55529         the license default to GPL.
55530         (func_create_testdir): Don't complain if a module is LGPL and its
55531         tests module depends on GPLed modules.
55532
55533 2007-01-17  Bruno Haible  <bruno@clisp.org>
55534
55535         * lib/gettimeofday.c (gettimeofday): Add code for the case
55536         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
55537         maximum possible value for tv->tv_usec, rather than the minimum one.
55538
55539 2005-10-08  Martin Lambers  <marlam@marlam.de>
55540 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
55541 2007-01-16  Bruno Haible  <bruno@clisp.org>
55542
55543         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
55544         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
55545         gl_FUNC_GETTIMEOFDAY.
55546         (Include): Add gettimeofday.h.
55547         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
55548         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
55549         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
55550         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
55551         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
55552         * lib/gettimeofday.h: New file.
55553         * lib/gettimeofday.c: Include <sys/timeb.h>.
55554         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
55555         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
55556         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
55557         fall back on time().
55558
55559         * tests/test-gettimeofday.c: New file.
55560         * modules/gettimeofday-tests: New file.
55561
55562 2007-01-16  Eric Blake  <ebb9@byu.net>
55563
55564         * modules/fnmatch (Depends-on): Depend on wchar.
55565         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
55566         * m4/fnmatch.m4: Likewise.
55567         * modules/mbchar (Makefile.am): Assume <wchar.h>.
55568         * m4/mbchar.m4: Likewise.
55569         * modules/mbswidth (Depends-on): Depend on wchar.
55570         * lib/mbswidth.c: Assume <wchar.h>.
55571         * m4/mbswidth.m4: Likewise.
55572         * modules/quotearg (Depends-on): Depend on wchar.
55573         * lib/quotearg.c: Assume <wchar.h>.
55574         * m4/quotearg.m4: Likewise.
55575         * modules/regex (Depends-on): Depend on wchar.
55576         * lib/regex_internal.h: Assume <wchar.h>.
55577         * m4/regex.m4: Likewise.
55578         * modules/stdint (Depends-on): Depend on wchar.
55579         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
55580         * m4/stdint.m4: Likewise.
55581         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
55582         * modules/strftime (Depends-on): Depend on wchar.
55583         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
55584         * modules/strtol (Depends-on): Depend on wchar.
55585         * lib/strtol.c: Assume <wchar.h>.
55586         * modules/wcwidth (Depends-on): Depend on wchar.
55587         * lib/wcwidth.h: Assume <wchar.h>.
55588         * m4/wcwidth.m4: Likewise.
55589
55590 2007-01-16  Bruno Haible  <bruno@clisp.org>
55591
55592         * modules/csharpexec-script: New, created from...
55593         * modules/csharpexec: ... this.
55594
55595 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
55596
55597         * modules/javaexec-script: New, created from...
55598         * modules/javaexec: ... this.
55599
55600 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
55601
55602         * modules/poll (Dependencies): Add sys_select.
55603
55604 2007-01-15  Jim Meyering  <jim@meyering.net>
55605
55606         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
55607         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
55608         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
55609         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
55610
55611 2007-01-15  Bruno Haible  <bruno@clisp.org>
55612
55613         * modules/striconveh: New file.
55614         * lib/striconveh.h: New file.
55615         * lib/striconveh.c: New file.
55616         * MODULES.html.sh (Internationalization functions): Add striconveh.
55617
55618         * modules/striconveh-tests: New file.
55619         * tests/test-striconveh.c: New file.
55620
55621 2007-01-15  Bruno Haible  <bruno@clisp.org>
55622
55623         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
55624         not from GNU libiconv or GNU libc.
55625
55626 2007-01-15  Bruno Haible  <bruno@clisp.org>
55627
55628         * doc/gnulib-intro.texi (Copyright): Explain the different license
55629         terms for module descriptions, autoconf macros, tests, documentation.
55630
55631 2007-01-14  Bruno Haible  <bruno@clisp.org>
55632
55633         * modules/striconv-tests: New file.
55634         * tests/test-striconv.c: New file.
55635
55636 2007-01-14  Bruno Haible  <bruno@clisp.org>
55637
55638         * modules/iconv-tests: New file.
55639         * tests/test-iconv.c: New file.
55640
55641 2007-01-14  Bruno Haible  <bruno@clisp.org>
55642
55643         * gnulib-tool (func_get_license): For test modules, use the license of
55644         the main module.
55645
55646 2007-01-14  Bruno Haible  <bruno@clisp.org>
55647
55648         * modules/iconv (Include): Clarify that <iconv.h> can only be included
55649         if iconv is found to exist.
55650
55651 2007-01-14  Bruno Haible  <bruno@clisp.org>
55652
55653         * modules/c-ctype-tests: New file.
55654         * tests/test-c-ctype.c: New file.
55655
55656 2007-01-14  Bruno Haible  <bruno@clisp.org>
55657
55658         * modules/binary-io-tests: New file.
55659         * tests/test-binary-io.sh: New file.
55660         * tests/test-binary-io.c: New file.
55661
55662 2007-01-14  Bruno Haible  <bruno@clisp.org>
55663
55664         * modules/array-oset-tests: New file.
55665         * tests/test-array_oset.c: New file.
55666
55667 2007-01-14  Bruno Haible  <bruno@clisp.org>
55668
55669         * modules/array-list-tests: New file.
55670         * tests/test-array_list.c: New file.
55671
55672 2007-01-14  Bruno Haible  <bruno@clisp.org>
55673
55674         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
55675         and make.
55676         Reported by Simon Josefsson in
55677         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
55678
55679 2007-01-14  Bruno Haible  <bruno@clisp.org>
55680
55681         * modules/allocsa-tests: New file.
55682         * tests/test-allocsa.c: New file.
55683
55684 2007-01-14  Bruno Haible  <bruno@clisp.org>
55685
55686         * modules/fchdir (Depends-on): Add absolute-header.
55687         * modules/unistd (Depends-on): Likewise.
55688
55689 2006-12-30  Bruno Haible  <bruno@clisp.org>
55690
55691         * modules/fchdir: New file.
55692         * modules/unistd (Files): Add lib/unistd_.h.
55693         (Makefile.am): Generate unistd.h from unistd_.h.
55694         * lib/fchdir.c: New file.
55695         * lib/dirent_.h: New file.
55696         * lib/unistd_.h: New file.
55697         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
55698         * m4/fchdir.m4: New file.
55699         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
55700         (gl_HEADER_UNISTD): Invoke it.
55701         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
55702         function.
55703         * lib/backupfile.c (opendir, closedir): Undefine.
55704         * lib/chown.c (open, close): Undefine.
55705         * lib/clean-temp.c (open, close): Undefine.
55706         * lib/copy-file.c (open, close): Undefine.
55707         * lib/execute.c (open, close): Undefine.
55708         * lib/fsusage.c (open, close): Undefine.
55709         * lib/gc-gnulib.c (open, close): Undefine.
55710         * lib/getcwd.c (opendir, closedir): Undefine.
55711         * lib/glob.c (opendir, closedir): Undefine.
55712         * lib/javacomp.c (open, close): Undefine.
55713         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
55714         * lib/openat-proc.c (open, close): Undefine.
55715         * lib/pagealign_alloc.c (open, close): Undefine.
55716         * lib/pipe.c (open, close): Undefine.
55717         * lib/progreloc.c (open, close): Undefine.
55718         * lib/savedir.c (opendir, closedir): Undefine.
55719         * lib/utime.c (open, close): Undefine.
55720         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
55721
55722 2007-01-10  Bruno Haible  <bruno@clisp.org>
55723
55724         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
55725
55726 2007-01-12  Eric Blake  <ebb9@byu.net>
55727
55728         Provide a robust <wchar.h>.  Further simplifications are now
55729         possible in other modules, but not included here.
55730         * modules/wchar: New module.
55731         * m4/wchar.m4: New file.
55732         * lib/wchar_.h: Likewise.
55733         * modules/mbchar (Depends-on): Depend on wchar, as the first use
55734         of the new module.
55735         * MODULES.html.sh (Extended multibyte and wide character utilities):
55736         New section.
55737
55738 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
55739
55740         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
55741         to a reasonable default for memory allocation.
55742         (xreadlink): Don't allocate a huge buffer, to work around a buggy
55743         file system that reports garbage st_size values for symlinks.
55744         Problem reported by Liyang Hu.
55745
55746 2007-01-11  Simon Josefsson  <simon@josefsson.org>
55747
55748         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
55749         Emacs .#* auto-save files).
55750
55751 2007-01-11  Bruno Haible  <bruno@clisp.org>
55752
55753         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
55754         directory.
55755
55756 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
55757
55758         Use @...@ consistently in lib/wctype_.h.
55759         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
55760         on it being set to 1 or 0.
55761         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
55762         go back to AC_SUBSTing it.
55763         * modules/wctype (Makefile.am): Undo previous change.
55764
55765 2007-01-10  Eric Blake  <ebb9@byu.net>
55766
55767         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
55768         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
55769         * modules/wctype (Makefile.am): Likewise.
55770         Reported by Chris McGuire.
55771
55772 2007-01-10  Jim Meyering  <jim@meyering.net>
55773
55774         fts.c: a small readability/maintainability improvement
55775         * lib/fts.c (fts_read): Make this code slightly more readable and
55776         maintainable by hoisting the "sp->fts_cur = p" assignments to
55777         immediately follow the statements that set P.  Derived from
55778         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
55779
55780 2007-01-10  Eric Blake  <ebb9@byu.net>
55781
55782         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
55783         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
55784         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
55785         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
55786         Reported by Chris McGuire.
55787
55788 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55789
55790         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
55791         in sed script.
55792
55793 2007-01-09  Bruno Haible  <bruno@clisp.org>
55794
55795         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
55796         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
55797         variables.
55798         (func_module): Use them.
55799
55800 2007-01-09  Bruno Haible  <bruno@clisp.org>
55801
55802         * modules/unistr/base: New file.
55803         * lib/unistr.h: New file.
55804
55805         * modules/unistr/u8-to-u16: New file.
55806         * lib/unistr/u8-to-u16.c: New file.
55807
55808         * modules/unistr/u8-to-u32: New file.
55809         * lib/unistr/u8-to-u32.c: New file.
55810
55811         * modules/unistr/u16-to-u8: New file.
55812         * lib/unistr/u16-to-u8.c: New file.
55813
55814         * modules/unistr/u16-to-u32: New file.
55815         * lib/unistr/u16-to-u32.c: New file.
55816
55817         * modules/unistr/u32-to-u8: New file.
55818         * lib/unistr/u32-to-u8.c: New file.
55819
55820         * modules/unistr/u32-to-u16: New file.
55821         * lib/unistr/u32-to-u16.c: New file.
55822
55823         * modules/unistr/u8-check: New file.
55824         * modules/unistr/u16-check: New file.
55825         * modules/unistr/u32-check: New file.
55826         * lib/unistr/u8-check.c: New file.
55827         * lib/unistr/u16-check.c: New file.
55828         * lib/unistr/u32-check.c: New file.
55829
55830         * modules/unistr/u8-chr: New file.
55831         * modules/unistr/u16-chr: New file.
55832         * modules/unistr/u32-chr: New file.
55833         * lib/unistr/u8-chr.c: New file.
55834         * lib/unistr/u16-chr.c: New file.
55835         * lib/unistr/u32-chr.c: New file.
55836
55837         * modules/unistr/u8-cmp: New file.
55838         * modules/unistr/u16-cmp: New file.
55839         * modules/unistr/u32-cmp: New file.
55840         * lib/unistr/u8-cmp.c: New file.
55841         * lib/unistr/u16-cmp.c: New file.
55842         * lib/unistr/u32-cmp.c: New file.
55843
55844         * modules/unistr/u8-cpy: New file.
55845         * modules/unistr/u16-cpy: New file.
55846         * modules/unistr/u32-cpy: New file.
55847         * lib/unistr/u8-cpy.c: New file.
55848         * lib/unistr/u16-cpy.c: New file.
55849         * lib/unistr/u32-cpy.c: New file.
55850         * lib/unistr/u-cpy.h: New file.
55851
55852         * modules/unistr/u8-cpy-alloc: New file.
55853         * modules/unistr/u16-cpy-alloc: New file.
55854         * modules/unistr/u32-cpy-alloc: New file.
55855         * lib/unistr/u8-cpy-alloc.c: New file.
55856         * lib/unistr/u16-cpy-alloc.c: New file.
55857         * lib/unistr/u32-cpy-alloc.c: New file.
55858         * lib/unistr/u-cpy-alloc.h: New file.
55859
55860         * modules/unistr/u8-endswith: New file.
55861         * modules/unistr/u16-endswith: New file.
55862         * modules/unistr/u32-endswith: New file.
55863         * lib/unistr/u8-endswith.c: New file.
55864         * lib/unistr/u16-endswith.c: New file.
55865         * lib/unistr/u32-endswith.c: New file.
55866         * lib/unistr/u-endswith.h: New file.
55867
55868         * modules/unistr/u8-mblen: New file.
55869         * modules/unistr/u16-mblen: New file.
55870         * modules/unistr/u32-mblen: New file.
55871         * lib/unistr/u8-mblen.c: New file.
55872         * lib/unistr/u16-mblen.c: New file.
55873         * lib/unistr/u32-mblen.c: New file.
55874
55875         * modules/unistr/u8-mbtouc: New file.
55876         * modules/unistr/u16-mbtouc: New file.
55877         * modules/unistr/u32-mbtouc: New file.
55878         * lib/unistr/u8-mbtouc.c: New file.
55879         * lib/unistr/u16-mbtouc.c: New file.
55880         * lib/unistr/u32-mbtouc.c: New file.
55881
55882         * modules/unistr/u8-mbtouc-safe: New file.
55883         * modules/unistr/u16-mbtouc-safe: New file.
55884         * modules/unistr/u32-mbtouc-safe: New file.
55885         * lib/unistr/u8-mbtouc-safe.c: New file.
55886         * lib/unistr/u16-mbtouc-safe.c: New file.
55887         * lib/unistr/u32-mbtouc-safe.c: New file.
55888
55889         * modules/unistr/u8-move: New file.
55890         * modules/unistr/u16-move: New file.
55891         * modules/unistr/u32-move: New file.
55892         * lib/unistr/u8-move.c: New file.
55893         * lib/unistr/u16-move.c: New file.
55894         * lib/unistr/u32-move.c: New file.
55895         * lib/unistr/u-move.h: New file.
55896
55897         * modules/unistr/u8-next: New file.
55898         * modules/unistr/u16-next: New file.
55899         * modules/unistr/u32-next: New file.
55900         * lib/unistr/u8-next.c: New file.
55901         * lib/unistr/u16-next.c: New file.
55902         * lib/unistr/u32-next.c: New file.
55903
55904         * modules/unistr/u8-prev: New file.
55905         * modules/unistr/u16-prev: New file.
55906         * modules/unistr/u32-prev: New file.
55907         * lib/unistr/u8-prev.c: New file.
55908         * lib/unistr/u16-prev.c: New file.
55909         * lib/unistr/u32-prev.c: New file.
55910
55911         * modules/unistr/u8-set: New file.
55912         * modules/unistr/u16-set: New file.
55913         * modules/unistr/u32-set: New file.
55914         * lib/unistr/u8-set.c: New file.
55915         * lib/unistr/u16-set.c: New file.
55916         * lib/unistr/u32-set.c: New file.
55917         * lib/unistr/u-set.h: New file.
55918
55919         * modules/unistr/u8-startswith: New file.
55920         * modules/unistr/u16-startswith: New file.
55921         * modules/unistr/u32-startswith: New file.
55922         * lib/unistr/u8-startswith.c: New file.
55923         * lib/unistr/u16-startswith.c: New file.
55924         * lib/unistr/u32-startswith.c: New file.
55925         * lib/unistr/u-startswith.h: New file.
55926
55927         * modules/unistr/u8-stpcpy: New file.
55928         * modules/unistr/u16-stpcpy: New file.
55929         * modules/unistr/u32-stpcpy: New file.
55930         * lib/unistr/u8-stpcpy.c: New file.
55931         * lib/unistr/u16-stpcpy.c: New file.
55932         * lib/unistr/u32-stpcpy.c: New file.
55933         * lib/unistr/u-stpcpy.h: New file.
55934
55935         * modules/unistr/u8-stpncpy: New file.
55936         * modules/unistr/u16-stpncpy: New file.
55937         * modules/unistr/u32-stpncpy: New file.
55938         * lib/unistr/u8-stpncpy.c: New file.
55939         * lib/unistr/u16-stpncpy.c: New file.
55940         * lib/unistr/u32-stpncpy.c: New file.
55941         * lib/unistr/u-stpncpy.h: New file.
55942
55943         * modules/unistr/u8-strcat: New file.
55944         * modules/unistr/u16-strcat: New file.
55945         * modules/unistr/u32-strcat: New file.
55946         * lib/unistr/u8-strcat.c: New file.
55947         * lib/unistr/u16-strcat.c: New file.
55948         * lib/unistr/u32-strcat.c: New file.
55949         * lib/unistr/u-strcat.h: New file.
55950
55951         * modules/unistr/u8-strchr: New file.
55952         * modules/unistr/u16-strchr: New file.
55953         * modules/unistr/u32-strchr: New file.
55954         * lib/unistr/u8-strchr.c: New file.
55955         * lib/unistr/u16-strchr.c: New file.
55956         * lib/unistr/u32-strchr.c: New file.
55957
55958         * modules/unistr/u8-strcmp: New file.
55959         * modules/unistr/u16-strcmp: New file.
55960         * modules/unistr/u32-strcmp: New file.
55961         * lib/unistr/u8-strcmp.c: New file.
55962         * lib/unistr/u16-strcmp.c: New file.
55963         * lib/unistr/u32-strcmp.c: New file.
55964
55965         * modules/unistr/u8-strcpy: New file.
55966         * modules/unistr/u16-strcpy: New file.
55967         * modules/unistr/u32-strcpy: New file.
55968         * lib/unistr/u8-strcpy.c: New file.
55969         * lib/unistr/u16-strcpy.c: New file.
55970         * lib/unistr/u32-strcpy.c: New file.
55971         * lib/unistr/u-strcpy.h: New file.
55972
55973         * modules/unistr/u8-strcspn: New file.
55974         * modules/unistr/u16-strcspn: New file.
55975         * modules/unistr/u32-strcspn: New file.
55976         * lib/unistr/u8-strcspn.c: New file.
55977         * lib/unistr/u16-strcspn.c: New file.
55978         * lib/unistr/u32-strcspn.c: New file.
55979         * lib/unistr/u-strcspn.h: New file.
55980
55981         * modules/unistr/u8-strdup: New file.
55982         * modules/unistr/u16-strdup: New file.
55983         * modules/unistr/u32-strdup: New file.
55984         * lib/unistr/u8-strdup.c: New file.
55985         * lib/unistr/u16-strdup.c: New file.
55986         * lib/unistr/u32-strdup.c: New file.
55987         * lib/unistr/u-strdup.h: New file.
55988
55989         * modules/unistr/u8-strlen: New file.
55990         * modules/unistr/u16-strlen: New file.
55991         * modules/unistr/u32-strlen: New file.
55992         * lib/unistr/u8-strlen.c: New file.
55993         * lib/unistr/u16-strlen.c: New file.
55994         * lib/unistr/u32-strlen.c: New file.
55995         * lib/unistr/u-strlen.h: New file.
55996
55997         * modules/unistr/u8-strmblen: New file.
55998         * modules/unistr/u16-strmblen: New file.
55999         * modules/unistr/u32-strmblen: New file.
56000         * lib/unistr/u8-strmblen.c: New file.
56001         * lib/unistr/u16-strmblen.c: New file.
56002         * lib/unistr/u32-strmblen.c: New file.
56003
56004         * modules/unistr/u8-strmbtouc: New file.
56005         * modules/unistr/u16-strmbtouc: New file.
56006         * modules/unistr/u32-strmbtouc: New file.
56007         * lib/unistr/u8-strmbtouc.c: New file.
56008         * lib/unistr/u16-strmbtouc.c: New file.
56009         * lib/unistr/u32-strmbtouc.c: New file.
56010
56011         * modules/unistr/u8-strncat: New file.
56012         * modules/unistr/u16-strncat: New file.
56013         * modules/unistr/u32-strncat: New file.
56014         * lib/unistr/u8-strncat.c: New file.
56015         * lib/unistr/u16-strncat.c: New file.
56016         * lib/unistr/u32-strncat.c: New file.
56017         * lib/unistr/u-strncat.h: New file.
56018
56019         * modules/unistr/u8-strncmp: New file.
56020         * modules/unistr/u16-strncmp: New file.
56021         * modules/unistr/u32-strncmp: New file.
56022         * lib/unistr/u8-strncmp.c: New file.
56023         * lib/unistr/u16-strncmp.c: New file.
56024         * lib/unistr/u32-strncmp.c: New file.
56025
56026         * modules/unistr/u8-strncpy: New file.
56027         * modules/unistr/u16-strncpy: New file.
56028         * modules/unistr/u32-strncpy: New file.
56029         * lib/unistr/u8-strncpy.c: New file.
56030         * lib/unistr/u16-strncpy.c: New file.
56031         * lib/unistr/u32-strncpy.c: New file.
56032         * lib/unistr/u-strncpy.h: New file.
56033
56034         * modules/unistr/u8-strnlen: New file.
56035         * modules/unistr/u16-strnlen: New file.
56036         * modules/unistr/u32-strnlen: New file.
56037         * lib/unistr/u8-strnlen.c: New file.
56038         * lib/unistr/u16-strnlen.c: New file.
56039         * lib/unistr/u32-strnlen.c: New file.
56040         * lib/unistr/u-strnlen.h: New file.
56041
56042         * modules/unistr/u8-strpbrk: New file.
56043         * modules/unistr/u16-strpbrk: New file.
56044         * modules/unistr/u32-strpbrk: New file.
56045         * lib/unistr/u8-strpbrk.c: New file.
56046         * lib/unistr/u16-strpbrk.c: New file.
56047         * lib/unistr/u32-strpbrk.c: New file.
56048         * lib/unistr/u-strpbrk.h: New file.
56049
56050         * modules/unistr/u8-strrchr: New file.
56051         * modules/unistr/u16-strrchr: New file.
56052         * modules/unistr/u32-strrchr: New file.
56053         * lib/unistr/u8-strrchr.c: New file.
56054         * lib/unistr/u16-strrchr.c: New file.
56055         * lib/unistr/u32-strrchr.c: New file.
56056
56057         * modules/unistr/u8-strspn: New file.
56058         * modules/unistr/u16-strspn: New file.
56059         * modules/unistr/u32-strspn: New file.
56060         * lib/unistr/u8-strspn.c: New file.
56061         * lib/unistr/u16-strspn.c: New file.
56062         * lib/unistr/u32-strspn.c: New file.
56063         * lib/unistr/u-strspn.h: New file.
56064
56065         * modules/unistr/u8-strstr: New file.
56066         * modules/unistr/u16-strstr: New file.
56067         * modules/unistr/u32-strstr: New file.
56068         * lib/unistr/u8-strstr.c: New file.
56069         * lib/unistr/u16-strstr.c: New file.
56070         * lib/unistr/u32-strstr.c: New file.
56071         * lib/unistr/u-strstr.h: New file.
56072
56073         * modules/unistr/u8-strtok: New file.
56074         * modules/unistr/u16-strtok: New file.
56075         * modules/unistr/u32-strtok: New file.
56076         * lib/unistr/u8-strtok.c: New file.
56077         * lib/unistr/u16-strtok.c: New file.
56078         * lib/unistr/u32-strtok.c: New file.
56079         * lib/unistr/u-strtok.h: New file.
56080
56081         * modules/unistr/u8-uctomb: New file.
56082         * modules/unistr/u16-uctomb: New file.
56083         * modules/unistr/u32-uctomb: New file.
56084         * lib/unistr/u8-uctomb.c: New file.
56085         * lib/unistr/u16-uctomb.c: New file.
56086         * lib/unistr/u32-uctomb.c: New file.
56087
56088         * MODULES.html.sh (Unicode string functions): Add the new modules.
56089
56090 2007-01-08  Bruno Haible  <bruno@clisp.org>
56091
56092         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
56093         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
56094         subdirectories.
56095
56096 2007-01-08  Karl Berry  <karl@gnu.org>
56097
56098         * doc/error.texi: mention that main() fns must set program_name
56099         when progname is used.
56100
56101 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
56102
56103         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
56104         WCTYPE_H is empty, for the benefit of builds from non-distclean
56105         directories.  Problem reported by Eric Blake in
56106         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
56107
56108 2007-01-08  Bruno Haible  <bruno@clisp.org>
56109
56110         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
56111         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
56112         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
56113         PROVIDE_CANONICALIZE_FILENAME_MODE.
56114         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
56115
56116 2007-01-08  Bruno Haible  <bruno@clisp.org>
56117
56118         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
56119         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
56120         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
56121         * lib/fts.c: Likewise.
56122         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
56123
56124 2006-12-25  Bruno Haible  <bruno@clisp.org>
56125
56126         * modules/utf8-ucs4-safe: New file.
56127         * lib/utf8-ucs4-safe.h: New file.
56128         * lib/unistr/utf8-ucs4-safe.c: New file.
56129
56130         * modules/utf16-ucs4-safe: New file.
56131         * lib/utf16-ucs4-safe.h: New file.
56132         * lib/unistr/utf16-ucs4-safe.c: New file.
56133
56134         * MODULES.html.sh (Unicode string functions): Add the new modules.
56135
56136 2007-01-08  Bruno Haible  <bruno@clisp.org>
56137
56138         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
56139         (Depends-on): Add unitypes.
56140         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
56141         (u8_mbtouc_aux): Move out to separate file.
56142         (u8_mbtouc): Use ucs4_t, uint8_t types.
56143         * lib/unistr/utf8-ucs4.c: New file.
56144
56145         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
56146         (Depends-on): Add unitypes.
56147         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
56148         (u16_mbtouc_aux): Move out to separate file.
56149         (u16_mbtouc): Use ucs4_t, uint16_t types.
56150         * lib/unistr/utf16-ucs4.c: New file.
56151
56152         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
56153         (Depends-on): Add unitypes.
56154         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
56155         (u8_uctomb_aux): Move out to separate file.
56156         (u8_uctomb): Use ucs4_t, uint8_t types.
56157         * lib/unistr/ucs4-utf8.c: New file.
56158
56159         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
56160         (Depends-on): Add unitypes.
56161         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
56162         (u16_uctomb_aux): Move out to separate file.
56163         (u16_uctomb): Use ucs4_t, uint16_t types.
56164         * lib/unistr/ucs4-utf16.c: New file.
56165
56166 2006-12-25  Bruno Haible  <bruno@clisp.org>
56167
56168         * modules/unitypes: New file.
56169         * lib/unitypes.h: New file.
56170         * MODULES.html.sh (func_all_modules): New section "Unicode string
56171         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
56172         this section. Add unitypes.
56173
56174 2007-01-08  Bruno Haible  <bruno@clisp.org>
56175
56176         Avoid variable names that conflict with those from libtool.
56177         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
56178         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
56179         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
56180         library_names_spec to acl_library_names_spec, hardcode_* to
56181         acl_hardcode_*.
56182         Reported by Ralf Wildenhues.
56183
56184 2007-01-08  Bruno Haible  <bruno@clisp.org>
56185
56186         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
56187         definition.
56188         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
56189         definition.
56190         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
56191         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
56192         definition.
56193         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
56194         definition.
56195         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
56196         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
56197         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
56198         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
56199         definition.
56200         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
56201         definition.
56202         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
56203         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
56204         GC_USE_<algorithm>.
56205         * lib/gc-libgcrypt.c: Likewise.
56206         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
56207         * modules/gc-arctwo (configure.ac): Likewise.
56208         * modules/gc-des (configure.ac): Likewise.
56209         * modules/gc-hmac-md5 (configure.ac): Likewise.
56210         * modules/gc-hmac-sha1 (configure.ac): Likewise.
56211         * modules/gc-md2 (configure.ac): Likewise.
56212         * modules/gc-md4 (configure.ac): Likewise.
56213         * modules/gc-md5 (configure.ac): Likewise.
56214         * modules/gc-random (configure.ac): Likewise.
56215         * modules/gc-rijndael (configure.ac): Likewise.
56216         * modules/gc-sha1 (configure.ac): Likewise.
56217
56218 2007-01-08  Bruno Haible  <bruno@clisp.org>
56219
56220         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
56221         macro definition.
56222         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
56223         definition.
56224         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
56225         definition.
56226         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
56227         * modules/fcntl-safer (configure.ac): Likewise.
56228         * modules/fopen-safer (configure.ac): Likewise.
56229         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
56230         GNULIB_FWRITEERROR macro definition.
56231
56232 2007-01-08  Bruno Haible  <bruno@clisp.org>
56233
56234         * m4/gnulib-common.m4: New file.
56235         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
56236         (func_get_filelist): Add m4/gnulib-common.m4.
56237
56238 2007-01-08  Bruno Haible  <bruno@clisp.org>
56239
56240         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
56241         command.
56242
56243 2007-01-08  Jim Meyering  <jim@meyering.net>
56244
56245         Use a more robust test for a "can't happen" condition.
56246         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
56247         narrowed the st_size value.  Presuming the "can't happen" condition
56248         is true, that narrowing could conceivably convert an invalid st_size
56249         value into a valid one.  Instead, use a change based on Matthew
56250         Woehlke's original patch.
56251
56252         Slight readability improvement: use an assert-like macro
56253         in place of literal "abort ()" uses.
56254         * lib/fts.c (fts_assert): Define.
56255         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
56256         Use this macro instead of a bare 'abort'.
56257
56258 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
56259
56260         Don't worry about using IRIX 5.3's wctype.h broken definitions;
56261         simply work around them.
56262         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
56263         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
56264         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
56265         declaring.
56266         Don't bother to define as macros, since the standard doesn't require it.
56267         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
56268         longer worry about IRIX 5.3.
56269         (HAVE_WCTYPE_CTMP_BUG): Remove.
56270
56271 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
56272
56273         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
56274         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
56275         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
56276         Problems reported by Georg Schwarz for IRIX 5.3.
56277
56278         * gnulib-tool (autoconf_minversion): Take the maximum version number
56279         found, not the minimum.  Problem reported by James Youngman.
56280
56281 2007-01-03  Karl Berry  <karl@gnu.org>
56282
56283         * doc/error.texi: new file, explaining interaction with progname.
56284         * doc/gnulib.texi: include it.  Update copyright.
56285
56286 2007-01-03  Simon Josefsson  <simon@josefsson.org>
56287
56288         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
56289         AC_CANONICAL_HOST, to improve autobuild outputs.
56290
56291 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
56292             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
56293
56294         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
56295         sockets, server sockets, and other file descriptors.  Count errors
56296         to compute the return value.  Reorder the code a bit to be easier
56297         to follow.  Don't set event bits that were not requested (except
56298         POLLERR and POLLHUP).
56299
56300 2007-01-01  Bruno Haible  <bruno@clisp.org>
56301
56302         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
56303
56304 2007-01-03  Jim Meyering  <jim@meyering.net>
56305
56306         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
56307
56308 2007-01-02  Bruno Haible  <bruno@clisp.org>
56309
56310         * modules/settime (Include): Require timespec.h.
56311         * modules/nanosleep (Include): Likewise.
56312
56313 2007-01-01  Bruno Haible  <bruno@clisp.org>
56314
56315         * gnulib-tool (func_emit_copyright_notice): Bump year.
56316         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
56317
56318 2007-01-01  Bruno Haible  <bruno@clisp.org>
56319
56320         Improve support for OpenBSD.
56321         * build-aux/config.rpath (libname_spec): Export.
56322         (library_names_spec): New variable. Export.
56323         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
56324         library_names_spec from the config.rpath output. Locate shared library
56325         through the name pattern in library_names_spec.
56326
56327 2007-01-01  Eric Blake  <ebb9@byu.net>
56328
56329         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
56330
56331 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
56332
56333         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
56334         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
56335         assume the C locale, and avoid an "eval" that could cause trouble.
56336         Problem with SORT reported by Bob Proulx.
56337
56338         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
56339         Define.  Trivial patch from Henning Nielsen Lund, originally
56340         sent to bug-grep@gnu.org today.
56341
56342 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
56343
56344         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
56345         struct stat.  Problem reported by Henning Nielsen Lund.
56346         * lib/acl.c: Include acl.h first, to check interface.  Don't
56347         bother to include sys/types.h and sys/stat.h again.
56348
56349 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
56350
56351         Import the following change from libc; problem reported by
56352         Sven Verdoolaege.
56353
56354         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
56355
56356         [BZ #1373]
56357         * lib/argp.h: Remove __NTH for __argp_usage inline function.
56358
56359 2006-12-28  Jim Meyering  <jim@meyering.net>
56360
56361         * build-aux/announce-gen: Do not assume that the package
56362         builds any of tar.gz, tar.bz2, and .xdelta files.
56363         Suggestion from Simon Josefsson.
56364
56365 2006-12-28  Simon Josefsson  <simon@josefsson.org>
56366
56367         * modules/announce-gen: New file.
56368
56369 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
56370
56371         * lib/mbchar.h: Just include <wctype.h>; the wctype module
56372         handles its gotchas now.
56373         * lib/mbswidth.c: Likewise.
56374         * lib/wcwidth.h: Likewise.
56375         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
56376         and iswcntrl; the wctype module does this stuff now.
56377         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
56378         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
56379         * modules/mbchar (Depends-on): Add wctype.
56380         * modules/mbswidth (Depends-on): Likewise.
56381         * modules/wcwidth (Depends-on): Likewise.
56382
56383 2006-12-27  Eric Blake  <ebb9@byu.net>
56384
56385         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
56386         module uses more than what <wctype.h> is required to provide.
56387
56388 2006-12-26  Eric Blake  <ebb9@byu.net>
56389
56390         * gnulib-tool (sed_extract_prog): Avoid space-tab.
56391
56392 2006-12-26  Eric Blake  <ebb9@byu.net>
56393
56394         * modules/absolute-header: New module.
56395         * modules/fcntl (Depends-on): Depend on it.
56396         * modules/inttypes (Depends-on): Likewise.
56397         * modules/stdint (Depends-on): Likewise.
56398         * modules/sys_stat (Depends-on): Likewise.
56399         * modules/wctype (Depends-on): Likewise.
56400         * MODULES.html.sh (Support for building libraries and
56401         executables): Document it.
56402
56403 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
56404
56405         * gnulib-tool (SED): Remove, undoing previous change.
56406         The problem was that it broke coreutils on Solaris, because
56407         "sed --posix" leaked into a makefile.
56408         (sed): New alias, if 'alias' and GNU sed.
56409
56410 2006-12-24  Jim Meyering  <jim@meyering.net>
56411
56412         Work around an fchownat bug in glibc-2.4:
56413         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
56414         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
56415         in spite of the -P option.
56416         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
56417         New macros.
56418         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
56419         * modules/openat (Files): Add lib/fchownat.c.
56420         * lib/openat.c (fchownat): Don't define here.  Move to...
56421         * lib/fchownat.c: ...this new file.
56422
56423 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
56424
56425         Fix bug reported by Bruno Haible in
56426         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
56427         where quotearg.c didn't compile on Mac OS X 10.2 because it
56428         lacks <wchar.h> and wint_t.
56429         * lib/wctype_.h (__wctype_wint_t): New type.
56430         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
56431         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
56432         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
56433         Arg is now of type __wctype_wint_t, not wint_t.
56434         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
56435         substitute HAVE_WINT_T.
56436         * modules/wctype (Files): Add m4/wint_t.m4.
56437         (wctype.h): Substitute HAVE_WINT_T.
56438
56439 2006-12-23  Bruno Haible  <bruno@clisp.org>
56440
56441         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
56442
56443 2006-12-23  Bruno Haible  <bruno@clisp.org>
56444
56445         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
56446         S_ISLNK.
56447         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
56448         mingw.
56449
56450 2006-12-22  Bruno Haible  <bruno@clisp.org>
56451
56452         * lib/copy-file.c: Include acl.h.
56453         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
56454         Close the file descriptors only after being done with copy_acl.
56455         * modules/copy-file (Depends-on): Add acl.
56456
56457 2006-12-22  Bruno Haible  <bruno@clisp.org>
56458
56459         * gnulib-tool (SED): New variable.
56460         Use $SED instead of sed everywhere.
56461
56462 2006-12-22  Bruno Haible  <bruno@clisp.org>
56463
56464         * modules/no-c++: New file.
56465         * m4/no-c++.m4: New file.
56466         * MODULES.html.sh (Support for building libraries and executables):
56467         Add no-c++.
56468
56469 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
56470
56471         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
56472         Include <limits.h>, and use its INT_MAX to rewrite the
56473         j loop so that it does not overflow 'int'.  Problem reported by
56474         Ralf Wildenhues in
56475         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
56476         Play it safe by shifting left by 1 rather than multiplying by 2,
56477         as GCC is less likely to optimize this away when the value
56478         is signed (when it assumes overflow leads to undefined behavior).
56479         Also, don't assume time_t uses two's complement.
56480
56481 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
56482
56483         * MODULES.html.sh: New module wctype.
56484         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
56485         * lib/fnmatch.c: Don't bother to include <wchar.h> before
56486         <wctype.h>, since the new wctype module should fix this.
56487         * lib/quotearg.c: Include <wctype.h> unconditionally, since
56488         the wctype module should arrange for it.
56489         * lib/regex_internal.h: Likewise.
56490         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
56491         since the wctype module should handle this now.
56492         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
56493         * modules/fnmatch (Depends-on): Add wctype.
56494         * modules/quotearg (Depends-on): Likewise.
56495         * modules/regex (Depends-on): Likewise.
56496
56497 2006-12-19  Bruno Haible  <bruno@clisp.org>
56498
56499         * lib/strdup.h [C++]: Wrap definitions in extern "C".
56500         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
56501
56502 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56503
56504         * modules/savewd (Depends-on): Fix dependency on fcntl.
56505
56506 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
56507
56508         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
56509         conforms to C99, rather than relying on the user's environment
56510         setting of STDINT_H.
56511
56512 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
56513         and Eric Blake  <ebb9@byu.net>
56514
56515         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
56516         This is more consistent with the other defines here.
56517         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
56518         Port to z/OS.  Problem reported by Paul Gilmartin.
56519         Change local vars to use gl_ prefix rather than ac_.
56520         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
56521         with other defines.
56522         * modules/double-slash-root: New module.
56523         * modules/dirname (Files): Remove m4/double-slash-root.m4.
56524         (Depends-on): Add double-slash-root.
56525         * MODULES.html.sh (File system functions): Mention new module.
56526
56527 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
56528
56529         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
56530         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
56531         This is for the benefit of gzip, which doesn't do i18n.
56532
56533 2006-12-12  Jim Meyering  <jim@meyering.net>
56534
56535         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
56536         Reported by Andreas Schwab <schwab@suse.de>.
56537
56538 2006-12-12  Bruno Haible  <bruno@clisp.org>
56539
56540         Merge these changes.
56541         2006-09-05  Bruno Haible  <bruno@clisp.org>
56542         * lib/iconvme.c (iconv_string): No need to save and restore errno when
56543         iconv_alloc succeeded.
56544         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
56545         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
56546         test for " && dest " at the end - dest is always != NULL there. Call
56547         iconv with 4xNULL arguments initially, to reset the state. Call iconv
56548         with 2xNULL arguments, also to flush the state storage. Handle the
56549         IRIX iconv behaviour. Realloc the final result, to throw away unused
56550         memory.
56551
56552 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
56553
56554         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
56555         and fchmodat unconditionally, since glibc 2.4 has them.
56556         Problem reported by Arkadiusz Miskiewicz.
56557
56558 2006-12-10  Bruno Haible  <bruno@clisp.org>
56559
56560         * gnulib-tool (func_import): Show the include files only for those
56561         modules that are copied and specified.
56562         Reported by Karl Berry.
56563
56564 2006-12-08  Jim Meyering  <jim@meyering.net>
56565
56566         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
56567         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
56568
56569         * build-aux/announce-gen: Add two new options, both optional:
56570         --bootstrap-tools=TOOL_LIST
56571               a comma-separated list of tools, e.g.,
56572               autoconf,automake,bison,gnulib
56573         --gnulib-snapshot-date=DATE
56574               if gnulib is in the bootstrap tool list,
56575               then report this as the snapshot date.
56576               If not specified, use the current date/time.
56577               If you specify a date here, be sure it's UTC.
56578
56579 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56580
56581         * tests/test-argp-2.sh: Fix test to match actual output.
56582         (func_compare): Fix sed script to be portable.
56583
56584 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
56585
56586         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
56587         workaround for this case.  It is not autoconfigured now; offhand
56588         it's hard to see how to autoconfigure it.
56589
56590 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
56591
56592         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
56593         a directory that is about to be chowned.  Such a directory's
56594         initial file permissions should permit the owner only and this
56595         should not be changed until after the chown, since the group and
56596         other bits would be incorrect if they granted permission before
56597         the chown.
56598
56599         Fix porting problem for iswctype reported by Georg Schwarz in:
56600         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
56601         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
56602         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
56603         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
56604         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
56605
56606 2006-12-03  Jim Meyering  <jim@meyering.net>
56607
56608         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
56609         p->fts_statp may not yet be defined.
56610         (fts_read): Instead, set it in the caller, once p->fts_statp is
56611         sure to be defined, and corresponds to a top-level directory.
56612         This bug made du -x fail.  Here's the coreutils test case:
56613         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
56614         Reported by Mike Frysinger.
56615
56616 2006-12-01  Jim Meyering  <jim@meyering.net>
56617
56618         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
56619         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
56620         Reported by Simon Josefsson.
56621
56622 2006-11-30  Jim Meyering  <jim@meyering.net>
56623
56624         * m4/warning.m4: Use the all-permissive copyright notice
56625         recommended by RMS (rather than LGPL).
56626         * m4/vararrays.m4: Likewise.
56627         * m4/flexmember.m4: Likewise.
56628
56629 2006-11-29  Bruno Haible  <bruno@clisp.org>
56630
56631         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
56632         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
56633         using +=.
56634         Reported by Simon Josefsson <simon@josefsson.org>.
56635
56636 2006-11-28  James Youngman <jay@gnu.org>
56637
56638         * README: Advise users that they might find the bug-gnulib@gnu.org
56639         and autotools-announce@gnu.org mailing lists useful.
56640
56641 2006-11-28  Bruno Haible  <bruno@clisp.org>
56642
56643         * m4/ptrdiff_max.m4: Remove file.
56644
56645 2006-11-21  Bruno Haible  <bruno@clisp.org>
56646
56647         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
56648         _AC_COMPUTE_INT.
56649         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
56650         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
56651         _AC_COMPUTE_INT.
56652         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
56653         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
56654         _AC_COMPUTE_INT.
56655         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
56656
56657 2006-11-28  Jim Meyering  <jim@meyering.net>
56658
56659         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
56660         warning from "gcc -Wshadow" about shadowing the builtin.
56661
56662 2006-11-27  Bruno Haible  <bruno@clisp.org>
56663
56664         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
56665         _AC_COMPUTE_INT.
56666         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
56667
56668 2006-11-27  Bruno Haible  <bruno@clisp.org>
56669             Paul Eggert  <eggert@cs.ucla.edu>
56670
56671         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
56672
56673 2006-11-26  Bruno Haible  <bruno@clisp.org>
56674
56675         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
56676         noinst_LTLIBRARIES.
56677
56678 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
56679             Bruno Haible  <bruno@clisp.org>
56680
56681         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
56682         if compiling with "gcc -ansi".
56683
56684 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
56685
56686         Fix some incompatibilities with gcc -ansi -pedantic.
56687         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
56688         if compiling pedantically with GCC, unless it's C99 or later.
56689         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
56690         it mishandles gcc -ansi -pedantic as well.
56691         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
56692         if gcc -pedantic.
56693         * lib/regexec.c (check_node_accept_bytes): Don't use auto
56694         initializers for struct if -pedantic, unless it's C99 or later.
56695
56696 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
56697
56698         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
56699         Don't close an fd more than once. Identical atimes indicate
56700         success, not failure.
56701
56702 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
56703
56704         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
56705
56706 2006-11-23  Jim Meyering  <jim@meyering.net>
56707
56708         * build-aux/announce-gen: New file.  From coreutils.
56709
56710 2006-11-22  Jim Meyering  <jim@meyering.net>
56711
56712         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
56713         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
56714         (fts_read): Use a temporary to narrow the overused st_size member
56715         before using it in a switch statement.  Reported by Matthew Woehlke.
56716
56717         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
56718         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
56719
56720 2006-11-20  Bruno Haible  <bruno@clisp.org>
56721
56722         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
56723         changequote instead of pairs of brackets.
56724         Reported by Andreas Schwab <schwab@suse.de>.
56725
56726 2006-11-21  Jim Meyering  <jim@meyering.net>
56727
56728         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
56729         so as to remain compatible with older compilers.
56730         Patch from Michael Deutschmann.
56731
56732 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
56733
56734         * MODULES.html.sh (File system functions): Add openat.
56735
56736         * lib/openat.h (rpl_fstatat): New macro, if
56737         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
56738         (fstatat): Define to rpl_fstatat under the same conditions,
56739         unless COMPILING_FSTATAT.
56740         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
56741         seems to have the bug.
56742         * lib/fstatat.c: New file.
56743         * modules/openat (Files): Add it.
56744
56745 2006-11-20  Bruno Haible  <bruno@clisp.org>
56746
56747         * Makefile: New file.
56748
56749 2006-11-20  Jim Meyering  <jim@meyering.net>
56750
56751         The beginnings of syntax-related checks for gnulib.
56752         * lib/Makefile: New file.
56753         * lib/t-idcache: New script.  Ensure that the two halves of
56754         idcache.c stay in sync.
56755
56756         * lib/idcache.c: Adjust comments in user- and group- portions to
56757         be more accurate, and to be consistent with one another.
56758
56759 2006-11-20  Jim Meyering  <jim@meyering.net>
56760
56761         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
56762         continue using the flexible array member (thus, this module performs
56763         half as many malloc calls), with the addition that...
56764         (getgroup, getuser): Consistently record a non-match via an empty
56765         "name" string, and map an empty string match to a NULL return value.
56766         * modules/idcache (Depends-on): Re-add flexmember.
56767
56768         * lib/idcache.c (getuser): Remove all uses of the register keyword.
56769         (getuidbyname, getgroup, getgidbyname): Likewise.
56770
56771         Use cleaner syntax: NULL rather than 0.
56772         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
56773
56774 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
56775
56776         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
56777         It mishandled the case where the group was missing.
56778         Problem reported by Greg Schafer.
56779         * modules/idcache: Likewise.
56780
56781 2006-11-18  Jim Meyering  <jim@meyering.net>
56782
56783         * check-module (%exempt_header): Add exception for some
56784         conditionally-included headers.
56785
56786         * modules/i-ring (Depends-on): Add verify.
56787         (License): Change to LGPL.
56788
56789 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
56790
56791         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
56792         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
56793         and inttostr.h.  Use snprintf rather than uinttostr, so that
56794         LGPLed code doesn't depend on GPLed.
56795
56796 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
56797
56798         * modules/inline (License): Change from GPL to LGPL.
56799
56800 2006-11-17  Jim Meyering  <jim@meyering.net>
56801
56802         * modules/d-type (License): Switch to LGPL.
56803
56804 2006-11-15  Bruno Haible  <bruno@clisp.org>
56805
56806         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
56807
56808 2006-11-15  Eric Blake  <ebb9@byu.net>
56809
56810         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
56811         the module dependency.
56812
56813 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56814             Bruno Haible  <bruno@clisp.org>
56815
56816         * gnulib-tool (func_create_testdir): Add license consistency check.
56817
56818 2006-11-15  Eric Blake  <ebb9@byu.net>
56819
56820         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
56821         random "(cached)" in configure output.
56822
56823 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56824
56825         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
56826         test for conforming inttypes.h is both announced and cached.
56827
56828         * MODULES.html.sh (seen_modules, seen_files): New variables.
56829         (func_module): Rewrite to use a few less gnulib-tool and sed
56830         invocations.  Avoid a couple of quadratic algorithms for ...
56831         (missed_modules, missed_files): ... these, with ...
56832         (func_append, func_tmpdir): ... these new functions, from
56833         gnulib-tool.  Analogously, install traps for cleanup.
56834
56835         * tests/test-gc.c (main): Remove unused variables.
56836         * tests/test-read-file.c: Include stdlib.h, for 'free'.
56837
56838 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
56839
56840         * modules/inttostr (License): Change to LGPL.
56841
56842 2006-11-14  Eric Blake  <ebb9@byu.net>
56843
56844         * modules/tempname (License): Change to LGPL.
56845
56846 2006-11-14  Eric Blake  <ebb9@byu.net>
56847
56848         * doc/functions.texi (Function Portability): *printf functions on
56849         Cygwin now understand all POSIX size specifiers.
56850
56851 2006-11-14  Bruno Haible  <bruno@clisp.org>
56852
56853         * modules/c-ctype (License): Change to LGPL.
56854
56855 2006-11-12  Bruno Haible  <bruno@clisp.org>
56856
56857         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
56858         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
56859         for GNOME libraries, for which the include files are installed in
56860         subdirectories of $prefix/include.
56861
56862 2006-11-12  Bruno Haible  <bruno@clisp.org>
56863
56864         * m4/lib-link.m4: Require at least autoconf-2.54.
56865         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
56866         name to underscores for the --with option.
56867
56868 2006-11-13  Bruno Haible  <bruno@clisp.org>
56869
56870         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
56871         the tests directory.
56872         Reported by Ralf Wildenhues.
56873
56874 2006-11-13  Bruno Haible  <bruno@clisp.org>
56875
56876         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
56877         (func_emit_initmacro_end): Undo the override here.
56878         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
56879         Works around the famous automake error in coreutils.
56880
56881 2006-11-13  Eric Blake  <ebb9@byu.net>
56882
56883         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
56884         element, not its node.
56885
56886 2006-11-12  Bruno Haible  <bruno@clisp.org>
56887
56888         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
56889         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
56890
56891 2006-11-12  Bruno Haible  <bruno@clisp.org>
56892
56893         * gnulib-tool: New option --local-symlink.
56894         (func_usage): Document it.
56895         (lsymbolic): New variable.
56896         (func_import, func_create_testdir): If --symlink was not specified,
56897         test whether --local-symlink was specified and the file comes from
56898         the local_gnulib_dir.
56899
56900 2006-11-12  Bruno Haible  <bruno@clisp.org>
56901
56902         * gnulib-tool (func_ln): New function.
56903         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
56904
56905 2006-11-12  Bruno Haible  <bruno@clisp.org>
56906
56907         Finish support for source files in subdirectories.
56908         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
56909         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
56910         AUTOMAKE_OPTIONS.
56911         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
56912
56913 2006-11-12  Bruno Haible  <bruno@clisp.org>
56914
56915         * gnulib-tool (func_get_automake_snippet): Synthesize also an
56916         EXTRA_lib_SOURCES augmentation.
56917         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
56918
56919 2006-11-12  Jim Meyering  <jim@meyering.net>
56920
56921         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
56922         file descriptors.  This also averts a failure on systems with
56923         native openat support when a traversed directory lacks "x" access.
56924         * lib/fts_.h: Include "i-ring.h"
56925         (struct FTS) [fts_fd_ring]: New member.
56926         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
56927         (FCHDIR): Add parentheses.
56928         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
56929         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
56930         When descending, rather than simply closing the previous
56931         fts_cwd_fd value, push that file descriptor onto the ring.
56932         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
56933         (fts_open): Initialize the new fd_ring member.
56934         (fts_close): Clear the ring.
56935         (fts_safe_changedir): When possible, use our new fd_ring to skip
56936         the diropen and fstat and dev/ino comparison that would normally
56937         accompany a virtual `chdir ("..")'.
56938
56939         * modules/fts (Depends-on): Add i-ring.
56940         * modules/i-ring: New module.
56941         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
56942         * m4/i-ring.m4: New file.
56943
56944 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56945
56946         * gnulib-tool (func_create_testdir): Fix replacement of
56947         `build-aux' in configure.ac.  Run autotools in gltests
56948         subdirectory.
56949         (func_create_testdir, func_create_megatestdir, test): There is
56950         no need for '--force' in most autotool invocations in a new
56951         tree.  Actually fail the whole test if any of the tools, or the
56952         configure or make stages fail.
56953
56954         Sync from Automake.
56955         * build-aux/gnupload: Revert last change.  Add pointer to upload
56956         instructions of the GNU Maintenance Instructions.
56957         Suggestion by Karl Berry.
56958
56959 2006-11-10  Jim Meyering  <jim@meyering.net>
56960
56961         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
56962
56963 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
56964
56965         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
56966         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
56967         (bind_textdomain_codeset) [! ENABLE_NLS]:
56968         Evaluate all the arguments.  That way, callers get compatible behavior
56969         if the arguments have side effects.  Also, it avoids some GCC
56970         diagnostics in some cases; Joel E. Denny reported problems when Bison
56971         was configured with --enable-gcc-warnigs.
56972
56973 2006-11-10  Jim Meyering  <jim@meyering.net>
56974
56975         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
56976         relevant options in CFLAGS (like -O, -fno-inline) are taken into
56977         account.
56978
56979 2006-11-10  Jim Meyering  <jim@meyering.net>
56980
56981         * modules/inline: New file/module.
56982         * modules/xalloc (Files): Remove m4/inline.m4.
56983         (Depends-on): Add inline, instead.
56984         * modules/oset: Likewise.
56985         * modules/list: Likewise.
56986
56987 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
56988
56989         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
56990         Problem reported by Matthew Woehlke.
56991
56992 2006-11-09  Bruno Haible  <bruno@clisp.org>
56993
56994         * lib/tempname.c (gen_tempname): Remove variant that invokes
56995         __gen_tempname.
56996         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
56997         __gen_tempname.
56998
56999 2006-11-08  Bruno Haible  <bruno@clisp.org>
57000
57001         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
57002         to 'yes' instead of 'cross-compiling'.
57003
57004 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
57005
57006         * lib/quotearg.h (quotearg_free): New decl.
57007         * lib/quotearg.c (quotearg_free): New function.
57008         (slot0, nslots, slotvec0, slotvec):
57009         Now file-scope so that quotearg_free can get at them.
57010
57011 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57012
57013         Sync from Automake.
57014         * build-aux/gnupload: Add missing 'gnu' to example URL.
57015         Report by Karl Berry.
57016
57017 2006-11-08  Bruno Haible  <bruno@clisp.org>
57018
57019         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
57020         Suggested by Paul Eggert.
57021
57022 2006-11-08  Jim Meyering  <jim@meyering.net>
57023
57024         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
57025         It's already included if !_LIBC.
57026         (fts_safe_changedir): Add a comment.
57027
57028 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
57029
57030         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
57031         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
57032         Matthew Woehlke.
57033
57034         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
57035         definitions up, to avoid colliding with change below.
57036         (static_inline) [HAVE_INLINE]: New macro.
57037         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
57038         Provide extern decls when !HAVE_INLINE.  Do not define unless
57039         static_inline is defined, either by us or by xmalloc.c.  Use
57040         static_inline rather than static inline.
57041         (XCALLOC): Optimize sizeof(T) = 1 case.
57042         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
57043
57044 2006-11-07  Bruno Haible  <bruno@clisp.org>
57045
57046         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
57047         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
57048         AC_C_INLINE.
57049         * modules/xalloc (Files): Add m4/inline.m4.
57050
57051 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57052
57053         * README: Fix typo.
57054         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
57055         (Miscellanous Notes): ...from this.
57056
57057 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
57058
57059         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
57060         Mention that offsetof should be used instead of sizeof.
57061         From Bruno Haible.
57062
57063 2006-11-07  Bruno Haible  <bruno@clisp.org>
57064
57065         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
57066
57067 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
57068
57069         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
57070         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
57071         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
57072         (gl_tree_add_before, gl_tree_add_after):
57073         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
57074         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
57075         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
57076         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
57077         (gl_linked_add_after, gl_linked_add_at): Likewise.
57078         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
57079         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
57080         (gl_tree_add_before, gl_tree_add_after): Likewise.
57081         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
57082         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
57083         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
57084
57085 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57086
57087         * lib/gl_oset.h: Use C comment style, not C++ comment style.
57088
57089 2006-11-06  Bruno Haible  <bruno@clisp.org>
57090
57091         * m4/inline.m4: New file.
57092         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
57093         * modules/list (Files): Add m4/inline.m4.
57094         * modules/oset (Files): Likewise.
57095
57096 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
57097
57098         * lib/idcache.c: Include <stddef.h>, for offsetof.
57099         (struct userid.name): Change from char * to a flexible array member.
57100         All uses changed.
57101         * modules/idcache (Depends-on): Add flexmember.
57102
57103         * MODULES.html.sh (Core language properties): New module flexmember.
57104         * modules/flexmember, m4/flexmember.m4: New files.
57105
57106         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
57107         inline functions that are identical with the old xnmalloc_inline,
57108         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
57109         that we can avoid some unnecessary integer multiplications and
57110         divisions in the common case where the element size is known at
57111         compile time.
57112         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
57113         needed.
57114         (xnboundedmalloc): Remove.
57115         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
57116         arguments, for consistency with rest of this header.
57117         (xcharalloc): Rewrite using XNMALLOC.
57118         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
57119         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
57120         versions have been moved to lib/xalloc.h and renamed to be the
57121         non-*_inline versions.
57122         (xmalloc, xrealloc): Implement without reference to the xnmalloc
57123         and xnrealloc functions, since those functions are now inline and
57124         now call us.
57125         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
57126         renaming described above.
57127         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
57128         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
57129         captures the dependency in AC_C_INLINE.
57130
57131         New module canonicalize-lgpl, proposed by Charles Wilson in
57132         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
57133         with a few small changes afterwards.
57134         * MODULES.html.sh (File system functions): New module
57135         canonicalize-lgpl.
57136         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
57137         and canonicalize_file_name.
57138         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
57139         * modules/canonicalize-lgpl: New files.
57140
57141 2006-11-05  Bruno Haible  <bruno@clisp.org>
57142
57143         * gnulib-tool (func_import, func_create_testdir): Create directories
57144         also for files in subdirectories of lib/.
57145
57146 2006-11-05  Bruno Haible  <bruno@clisp.org>
57147
57148         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
57149         ANSI C compliant.
57150
57151 2006-11-03  Bruno Haible  <bruno@clisp.org>
57152
57153         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
57154         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
57155         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
57156         (xnboundedmalloc): New inline function.
57157         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
57158         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
57159         xmalloc.
57160         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
57161         xmalloc.
57162         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
57163         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
57164         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
57165         xmalloc.
57166         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
57167         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
57168         xmalloc.
57169         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
57170         gl_tree_add_after): Use XMALLOC instead of xmalloc.
57171         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
57172         xmalloc.
57173         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
57174         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
57175         gl_tree_add_after): Use XMALLOC instead of xmalloc.
57176         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
57177         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
57178         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
57179         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
57180
57181 2006-11-03  Bruno Haible  <bruno@clisp.org>
57182
57183         * lib/c-ctype.h [C++]: Define functions without name mangling.
57184         * lib/fwriteerror.h [C++]: Likewise.
57185         * lib/gcd.h [C++]: Likewise.
57186         * lib/linebreak.h [C++]: Likewise.
57187
57188 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
57189
57190         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
57191         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
57192         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
57193         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
57194         Check for functions and headers just once.
57195         Check for declaration of canonicalize_file_name.
57196         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
57197
57198 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
57199
57200         * gnulib-tool (func_import): Fix typo in actioncmd.
57201
57202 2006-11-02  Bruno Haible  <bruno@clisp.org>
57203
57204         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
57205         newline sequence in the Makefile.am snippet as a space, like "make"
57206         does.
57207         Reported by Roger Persson <perrog@gmail.com>.
57208
57209 2006-11-01  Bruno Haible  <bruno@clisp.org>
57210
57211         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
57212         already declared in <string.h>.
57213         * lib/strcase.h (strncasecmp): Don't declare it if yes.
57214
57215 2006-11-01  Bruno Haible  <bruno@clisp.org>
57216
57217         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
57218         * lib/strcase.h: Include <string.h>.
57219         (strcasecmp): Define to rpl_strcasecmp here.
57220
57221 2006-11-01  Bruno Haible  <bruno@clisp.org>
57222
57223         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
57224
57225 2006-11-01  Eric Blake  <ebb9@byu.net>
57226
57227         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
57228
57229         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
57230
57231 2006-10-29  Bruno Haible  <bruno@clisp.org>
57232
57233         Make it compile in C++ mode.
57234         * lib/full-write.c (full_rw): Add a cast.
57235
57236 2006-11-01  Bruno Haible  <bruno@clisp.org>
57237
57238         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
57239         be POSIX compliant.
57240         Reported by Roger Persson <perrog@gmail.com>.
57241
57242 2006-11-01  Eric Blake  <ebb9@byu.net>
57243
57244         * lib/getopt_.h: Fix comments.
57245
57246 2006-10-31  Eric Blake  <ebb9@byu.net>
57247
57248         * modules/tmpdir (Depends-on): Add sys_stat.
57249         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
57250         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
57251         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
57252         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
57253         tempname.
57254
57255 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
57256
57257         Avoid some C++ diagnostics reported by Bruno Haible.
57258         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
57259         xmalloc.
57260         (quotearg_alloc): Use xcharalloc rather than xmalloc.
57261         (struct slotvec): Move to top level.
57262         (quotearg_n_options): Rewrite to avoid xmalloc.
57263         * lib/xalloc.h (xcharalloc): New function.
57264         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
57265         [defined __cplusplus]: Add function template that provides result
57266         type propagation.  This part of the change is from Bruno Haible.
57267
57268 2006-10-29  Bruno Haible  <bruno@clisp.org>
57269
57270         Make it compile in C++ mode.
57271         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
57272         * lib/strnlen1.c (strnlen1): Cast memchr result.
57273         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
57274         * lib/clean-temp.c (string_equals, string_hash): Add casts.
57275         (create_temp_dir): Rename local variable 'template'.
57276         (compile_csharp_using_sscli): Add cast.
57277         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
57278         * lib/findprog.c (find_in_path): Likewise.
57279         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
57280         * lib/wait-process.c (register_slave_subprocess): Likewise.
57281
57282 2006-10-22  Bruno Haible  <bruno@clisp.org>
57283
57284         * modules/tsearch: New file.
57285         * lib/tsearch.h: New file.
57286         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
57287         * m4/tsearch.m4: New file.
57288         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
57289
57290 2006-10-29  Eric Blake  <ebb9@byu.net>
57291
57292         * lib/arcfour.c: Assume config.h.
57293         * lib/arctwo.c: Likewise.
57294         * lib/base64.c: Likewise.
57295         * lib/check-version.c: Likewise.
57296         * lib/crc.c: Likewise.
57297         * lib/des.c: Likewise.
57298         * lib/gc-gnulib.c: Likewise.
57299         * lib/gc-libgcrypt.c: Likewise.
57300         * lib/gc-pbkdf2-sha1.c: Likewise.
57301         * lib/getaddrinfo.c: Likewise.
57302         * lib/getdelim.c: Likewise.
57303         * lib/getline.c: Likewise.
57304         * lib/hmac-md5.c: Likewise.
57305         * lib/hmac-sha1.c: Likewise.
57306         * lib/iconvme.c: Likewise.
57307         * lib/md2.c: Likewise.
57308         * lib/md4.c: Likewise.
57309         * lib/memxor.c: Likewise.
57310         * lib/read-file.c: Likewise.
57311         * lib/readline.c: Likewise.
57312         * lib/rijndael-alg-fst.c: Likewise.
57313         * lib/rijndael-api-fst.c: Likewise.
57314         * lib/xgetdomainname.c: Likewise.
57315
57316 2006-10-28  Eric Blake  <ebb9@byu.net>
57317
57318         * lib/xstrndup.c: Assume config.h.
57319
57320 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
57321
57322         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
57323         stat-macros.h is now for our own macros, whereas stat_h is for
57324         macros in the <sys/stat.h> name space.
57325         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
57326         (STAT_MACROS_H): Remove.
57327         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
57328         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
57329         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
57330         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
57331         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
57332         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
57333         Move these macros to ...
57334         * lib/stat_.h: here.  Don't include stat-macros.h.
57335         * lib/canonicalize.c: Don't include stat-macros.h.
57336         * lib/chown.c: Likewise.
57337         * lib/euidaccess.c: Likewise.
57338         * lib/file-type.c: Likewise.
57339         * lib/filemode.c: Likewise.
57340         * lib/glob.c: Likewise.
57341         * lib/isapipe.c: Likewise.
57342         * lib/lchown.c: Likewise.
57343         * lib/lstat.c: Likewise.
57344         * lib/mkdir-p.c: Likewise.
57345         * lib/rmdir.c: Likewise.
57346         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
57347         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
57348         unless mkdir isn't declared, to speed up 'configure'.
57349         Always create sys/stat.h, since it's unlikely any real sys/stat.h
57350         would define all the S_* symbols.
57351         * modules/canonicalize (Depends-on):
57352         Depend on sys_stat, not stat-macros.
57353         * modules/chown: Likewise.
57354         * modules/euidaccess: Likewise.
57355         * modules/filemode: Likewise.
57356         * modules/file-type: Likewise.
57357         * modules/glob: Likewise.
57358         * modules/isapipe: Likewise.
57359         * modules/lchown: Likewise.
57360         * modules/lstat: Likewise.
57361         * modules/mkancesdirs: Likewise.
57362         * modules/rmdir: Likewise.
57363         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
57364         * modules/modechange: Likewise.
57365         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
57366         (configure.ac): Remove gl_STAT_MACROS.
57367         * modules/sys_stat (Depends-on): Remove stat-macros.
57368
57369 2006-10-27  Bruno Haible  <bruno@clisp.org>
57370
57371         * m4/signed.m4: Remove file.
57372         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
57373         invocation.
57374         * modules/vasnprintf (Files): Remove m4/signed.m4.
57375
57376 2006-10-27  Bruno Haible  <bruno@clisp.org>
57377
57378         Update to GNU gettext 0.16.
57379         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
57380         m4/inttypes-h.m4, m4/signed.m4.
57381         * m4/gettext.m4: Update to GNU gettext 0.16.
57382         * m4/intl.m4: New file, from GNU gettext.
57383         * m4/intldir.m4: New file, from GNU gettext.
57384         * config/srclist.txt: Update
57385
57386 2006-10-27  Eric Blake  <ebb9@byu.net>
57387
57388         * MODULES.html.sh: Document tempname.
57389         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
57390         dependencies.
57391         (Files): Move lib/tempname.c...
57392         * modules/tempname: ...to this new module.
57393         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
57394         (gl_PREREQ_TEMPNAME): Move...
57395         * m4/tempname.m4: ...to this new file.
57396         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
57397         * modules/sys_stat (Depends-on): Add stat-macros.
57398         * lib/stat_.h (includes): Pick up stat macros.
57399         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
57400         if stat macros are broken.
57401         * lib/tempname.c (includes): No need to include "stat-macros.h".
57402         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
57403         (direxists, __path_search) [!_LIBC]: Don't compile these in
57404         gnulib; the tmpdir module covers that.
57405         * lib/tempname.h: New file.
57406
57407 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
57408
57409         * COPYING: Explain how gnulib-tool converts licence headers.
57410         Almost all wording by Eric Blake.
57411
57412 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
57413
57414         * lib/mbchar.h (is_basic_table): Make read-only.
57415         * lib/mbchar.c (is_basic_table): Likewise.
57416         Reported by John Darrington.
57417
57418 2006-10-25  Bruno Haible  <bruno@clisp.org>
57419
57420         * lib/progname.h (set_program_name): Undefine before defining.
57421
57422 2006-10-25  Bruno Haible  <bruno@clisp.org>
57423
57424         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
57425         false for non-gcc C++ compilers.
57426         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
57427
57428 2006-10-24  Bruno Haible  <bruno@clisp.org>
57429
57430         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
57431         iconv implementations like Irix iconv.
57432
57433 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
57434
57435         * modules/vararrays: New file.
57436         * m4/vararrays.m4: New file, taken from diffutils.
57437         * MODULES.html.sh: New module vararrays.
57438
57439 2006-10-24  Karl Berry  <karl@gnu.org>
57440
57441         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
57442         Don't call GNU Unix.
57443
57444 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57445
57446         * users.txt: Add Libtool.
57447
57448         Sync from Libtool:
57449
57450         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
57451
57452         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
57453         to gnulib's policy of including config.h unconditionally.
57454
57455 2006-10-24  Bruno Haible  <bruno@clisp.org>
57456
57457         * modules/wcwidth (Files): Add m4/wint_t.m4.
57458         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
57459         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
57460
57461 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
57462
57463         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
57464         to pacify GCC with some -W flags enabled.  Problem reported by
57465         Bruno Haible.
57466
57467 2006-10-24  Jim Meyering  <jim@meyering.net>
57468
57469         * MODULES.html.sh: Remove uinttostr.  It's not a module.
57470         Reported by Karl Berry.
57471
57472 2006-10-23  Bruno Haible  <bruno@clisp.org>
57473
57474         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
57475
57476 2006-10-24  Bruno Haible  <bruno@clisp.org>
57477
57478         * lib/gl_list.h: Use C comment style, not C++ comment style.
57479
57480 2006-10-23  Eric Blake  <ebb9@byu.net>
57481
57482         * lib/getaddrinfo.c (includes): Add missing include.
57483
57484 2006-10-23  Bruno Haible  <bruno@clisp.org>
57485             Paul Eggert  <eggert@cs.ucla.edu>
57486
57487         Ability to rename obstack_free.
57488         * lib/obstack.h (__obstack_free): New macro. Declare instead of
57489         obstack_free.
57490         (obstack_free): Invoke the __obstack_free macro.
57491         * lib/obstack.c (obstack_free): Use __obstack_free macro.
57492
57493 2006-10-23  Bruno Haible  <bruno@clisp.org>
57494             Paul Eggert  <eggert@cs.ucla.edu>
57495
57496         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
57497         __argc, __argv from the declaration. (They are defined as macros on
57498         mingw.)
57499
57500 2006-10-22  Bruno Haible  <bruno@clisp.org>
57501
57502         * doc/gnulib-intro.texi: New file.
57503         * doc/gnulib.texi: Include it.
57504
57505 2006-10-21  Bruno Haible  <bruno@clisp.org>
57506
57507         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
57508         "Introduction", "Miscellanous Notes", "Particular Modules".
57509
57510 2006-10-21  Bruno Haible  <bruno@clisp.org>
57511
57512         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
57513         Change mostlyclean-local rule to avoid sh syntax error from bash
57514         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
57515
57516 2006-10-23  Jim Meyering  <jim@meyering.net>
57517
57518         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
57519         in place of snprintf.
57520
57521         * modules/inttostr (Files): Add lib/uinttostr.c.
57522         * lib/uinttostr.c (inttostr): New file/function.
57523         * lib/inttostr.h (uinttostr): Declare.
57524         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
57525         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
57526         Add uinttostr.
57527         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
57528
57529 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
57530
57531         * lib/canonicalize.c (ELOOP): Define if not already defined.
57532         Problem reported by Bruno Haible in
57533         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
57534
57535 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
57536
57537         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
57538         Problem reported by Perry Smith and Ville Laurikari.
57539
57540         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
57541         uses.
57542
57543 2006-10-19  Bruno Haible  <bruno@clisp.org>
57544
57545         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
57546         for mingw.
57547
57548 2006-10-19  Bruno Haible  <bruno@clisp.org>
57549
57550         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
57551         Needed for mingw.
57552
57553 2006-10-19  Bruno Haible  <bruno@clisp.org>
57554
57555         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
57556
57557 2006-10-19  Bruno Haible  <bruno@clisp.org>
57558
57559         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
57560         it.
57561
57562 2006-10-19  Bruno Haible  <bruno@clisp.org>
57563
57564         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
57565         invocation.
57566
57567 2006-10-19  Bruno Haible  <bruno@clisp.org>
57568
57569         * gnulib-tool (func_create_testdir): Don't include ftruncate and
57570         mountlist by default.
57571
57572 2006-10-16  Bruno Haible  <bruno@clisp.org>
57573
57574         * lib/c-strstr.c: Include c-strstr.h.
57575
57576 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
57577
57578         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
57579         in a slash.
57580
57581 2006-10-18  Bruno Haible  <bruno@clisp.org>
57582
57583         * lib/lock.h [C++]: Wrap definitions in extern "C".
57584
57585 2006-10-18  Bruno Haible  <bruno@clisp.org>
57586
57587         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
57588         gl_LIBOBJS list.
57589
57590 2006-10-18  Bruno Haible  <bruno@clisp.org>
57591
57592         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
57593
57594 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
57595
57596         * lib/xstrtol.h: Include gettext.h.
57597         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
57598         Problem reported by Eric Blake.
57599         * modules/xstrtol (Depends-on): Add gettext-h.
57600
57601 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
57602
57603         * lib/strftime.c (advance): New macro.
57604         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
57605         incomplete type, so you can't add 0 to it.  Problem and patch
57606         reported by Eelco Dolstra for dietlibc.
57607
57608 2006-10-18  Jim Meyering  <jim@meyering.net>
57609
57610         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
57611         type for a local, and rename it: s/up/user_proc/.
57612
57613 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
57614
57615         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
57616         READ_UTMP_USER_PROCESS.
57617         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
57618
57619 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
57620
57621         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
57622         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
57623
57624 2006-10-17  Eric Blake  <ebb9@byu.net>
57625
57626         * lib/sigprocmask.c (sigprocmask): Fix typo.
57627
57628         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
57629
57630         * modules/clean-temp (Makefile.am): Don't add to make output...
57631         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
57632         config.h.
57633
57634 2006-10-17  Bruno Haible  <bruno@clisp.org>
57635
57636         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
57637         differently if DEFAULT_TEXT_DOMAIN is set.
57638
57639 2006-10-16  Bruno Haible  <bruno@clisp.org>
57640
57641         * lib/clean-temp.c: Include fwriteerror.h.
57642
57643 2006-10-16  Bruno Haible  <bruno@clisp.org>
57644
57645         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
57646
57647 2006-10-16  Bruno Haible  <bruno@clisp.org>
57648
57649         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
57650         * lib/sigprocmask.h: Include <sys/types.h>.
57651         (sigset_t): Use the system's definition if present.
57652
57653 2006-10-17  Eric Blake  <ebb9@byu.net>
57654
57655         * lib/xvasprintf.c (includes): Assume config.h.
57656         * lib/xasprintf.c (includes): Likewise.
57657
57658 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
57659
57660         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
57661         at least as wide as intmax_t.
57662
57663 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
57664
57665         (Imported from Automake.)
57666         * build-aux/gnupload: Update to version 1.1 of directive file.
57667
57668 2006-10-16  Eric Blake  <ebb9@byu.net>
57669
57670         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
57671         match Automake 1.10a.
57672
57673 2006-10-14  Bruno Haible  <bruno@clisp.org>
57674
57675         * modules/sigprocmask: New file.
57676         * lib/sigprocmask.h: New file.
57677         * lib/sigprocmask.c: New file.
57678         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
57679         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
57680         request sigprocmask.o.
57681         (gl_PREREQ_SIGPROCMASK): New macro.
57682         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
57683         (Depends-on): Add sigprocmask.
57684         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
57685         gt_SIGNALBLOCKING. Test for 'raise' only once.
57686         * lib/fatal-signal.c: Include sigprocmask.h.
57687         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
57688         unblock_fatal_signals): Define always.
57689         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
57690         sigprocmask.
57691
57692 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
57693
57694         Sync from Automake.
57695         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
57696         which incorrectly sets the mode of an existing destination
57697         directory.  In some cases the unpatched install-sh could do the
57698         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
57699         system.  We hope this is rare in practice, but it's clearly worth
57700         fixing.  Problem reported by Alex Unleashed in
57701         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
57702         Also, don't bother to check for -m bugs unless we're using -m;
57703         suggested by Stepan Kasal.
57704
57705 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57706
57707         Sync from Automake.
57708         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
57709         `-c' flag, so they appear at the same position as in %FASTDEP%
57710         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
57711         which ignores unknown options only after the first non-option.
57712         Bug report against M4 by Nelson H. F. Beebe.
57713
57714 2006-10-13  Jim Meyering  <jim@meyering.net>
57715
57716         Fix a bug in yesterday's change.
57717         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
57718         p->fts_statp->st_dev would be used uninitialized.
57719         Ensures that we always call fts_stat on the very first entry.
57720         Miklos Szeredi reported that find -xdev stopped working.
57721
57722 2006-10-12  Bruno Haible  <bruno@clisp.org>
57723
57724         * gnulib-tool (func_get_automake_snippet): Append an automatically
57725         computed EXTRA_DIST augmentation.
57726         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
57727         * modules/alloca-opt (Makefile.am): Likewise.
57728         * modules/allocsa (Makefile.am): Likewise.
57729         * modules/arcfour (Makefile.am): Likewise.
57730         * modules/arctwo (Makefile.am): Likewise.
57731         * modules/argmatch (Makefile.am): Likewise.
57732         * modules/argz (Makefile.am): Likewise.
57733         * modules/atexit (Makefile.am): Likewise.
57734         * modules/backupfile (Makefile.am): Likewise.
57735         * modules/byteswap (Makefile.am): Likewise.
57736         * modules/c-strtod (Makefile.am): Likewise.
57737         * modules/c-strtold (Makefile.am): Likewise.
57738         * modules/calloc (Makefile.am): Likewise.
57739         * modules/canon-host (Makefile.am): Likewise.
57740         * modules/canonicalize (Makefile.am): Likewise.
57741         * modules/chdir-long (Makefile.am): Likewise.
57742         * modules/chdir-safer (Makefile.am): Likewise.
57743         * modules/check-version (Makefile.am): Likewise.
57744         * modules/chown (Makefile.am): Likewise.
57745         * modules/cloexec (Makefile.am): Likewise.
57746         * modules/close-stream (Makefile.am): Likewise.
57747         * modules/closeout (Makefile.am): Likewise.
57748         * modules/crc (Makefile.am): Likewise.
57749         * modules/csharpexec (Makefile.am): Likewise.
57750         * modules/cycle-check (Makefile.am): Likewise.
57751         * modules/des (Makefile.am): Likewise.
57752         * modules/dev-ino (Makefile.am): Likewise.
57753         * modules/dirfd (Makefile.am): Likewise.
57754         * modules/dirname (Makefile.am): Likewise.
57755         * modules/dup2 (Makefile.am): Likewise.
57756         * modules/eealloc (Makefile.am): Likewise.
57757         * modules/error (Makefile.am): Likewise.
57758         * modules/euidaccess (Makefile.am): Likewise.
57759         * modules/exclude (Makefile.am): Likewise.
57760         * modules/exitfail (Makefile.am): Likewise.
57761         * modules/fcntl-safer (Makefile.am): Likewise.
57762         * modules/fcntl (Makefile.am): Likewise.
57763         * modules/file-type (Makefile.am): Likewise.
57764         * modules/fileblocks (Makefile.am): Likewise.
57765         * modules/filemode (Makefile.am): Likewise.
57766         * modules/filenamecat (Makefile.am): Likewise.
57767         * modules/fnmatch (Makefile.am): Likewise.
57768         * modules/fopen-safer (Makefile.am): Likewise.
57769         * modules/fpending (Makefile.am): Likewise.
57770         * modules/fprintftime (Makefile.am): Likewise.
57771         * modules/free (Makefile.am): Likewise.
57772         * modules/fsusage (Makefile.am): Likewise.
57773         * modules/ftruncate (Makefile.am): Likewise.
57774         * modules/fts (Makefile.am): Likewise.
57775         * modules/gc-arcfour (Makefile.am): Likewise.
57776         * modules/gc-des (Makefile.am): Likewise.
57777         * modules/gc-hmac-md5 (Makefile.am): Likewise.
57778         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
57779         * modules/gc-md4 (Makefile.am): Likewise.
57780         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
57781         * modules/gc-sha1 (Makefile.am): Likewise.
57782         * modules/gc (Makefile.am): Likewise.
57783         * modules/getaddrinfo (Makefile.am): Likewise.
57784         * modules/getcwd (Makefile.am): Likewise.
57785         * modules/getdelim (Makefile.am): Likewise.
57786         * modules/getdomainname (Makefile.am): Likewise.
57787         * modules/getgroups (Makefile.am): Likewise.
57788         * modules/gethostname (Makefile.am): Likewise.
57789         * modules/gethrxtime (Makefile.am): Likewise.
57790         * modules/getline (Makefile.am): Likewise.
57791         * modules/getloadavg (Makefile.am): Likewise.
57792         * modules/getlogin_r (Makefile.am): Likewise.
57793         * modules/getndelim2 (Makefile.am): Likewise.
57794         * modules/getopt (Makefile.am): Likewise.
57795         * modules/getpagesize (Makefile.am): Likewise.
57796         * modules/getpass-gnu (Makefile.am): Likewise.
57797         * modules/getpass (Makefile.am): Likewise.
57798         * modules/getsubopt (Makefile.am): Likewise.
57799         * modules/gettime (Makefile.am): Likewise.
57800         * modules/gettimeofday (Makefile.am): Likewise.
57801         * modules/getugroups (Makefile.am): Likewise.
57802         * modules/getusershell (Makefile.am): Likewise.
57803         * modules/glob (Makefile.am): Likewise.
57804         * modules/group-member (Makefile.am): Likewise.
57805         * modules/hard-locale (Makefile.am): Likewise.
57806         * modules/hash (Makefile.am): Likewise.
57807         * modules/hmac-md5 (Makefile.am): Likewise.
57808         * modules/hmac-sha1 (Makefile.am): Likewise.
57809         * modules/human (Makefile.am): Likewise.
57810         * modules/idcache (Makefile.am): Likewise.
57811         * modules/imaxabs (Makefile.am): Likewise.
57812         * modules/imaxdiv (Makefile.am): Likewise.
57813         * modules/inet_ntop (Makefile.am): Likewise.
57814         * modules/inet_pton (Makefile.am): Likewise.
57815         * modules/intprops (Makefile.am): Likewise.
57816         * modules/inttostr (Makefile.am): Likewise.
57817         * modules/inttypes (Makefile.am): Likewise.
57818         * modules/isapipe (Makefile.am): Likewise.
57819         * modules/javaversion (Makefile.am): Likewise.
57820         * modules/lchmod (Makefile.am): Likewise.
57821         * modules/lchown (Makefile.am): Likewise.
57822         * modules/localcharset (Makefile.am): Likewise.
57823         * modules/long-options (Makefile.am): Likewise.
57824         * modules/lstat (Makefile.am): Likewise.
57825         * modules/malloc (Makefile.am): Likewise.
57826         * modules/mathl (Makefile.am): Likewise.
57827         * modules/mbchar (Makefile.am): Likewise.
57828         * modules/md2 (Makefile.am): Likewise.
57829         * modules/md4 (Makefile.am): Likewise.
57830         * modules/md5 (Makefile.am): Likewise.
57831         * modules/memcasecmp (Makefile.am): Likewise.
57832         * modules/memchr (Makefile.am): Likewise.
57833         * modules/memcmp (Makefile.am): Likewise.
57834         * modules/memcoll (Makefile.am): Likewise.
57835         * modules/memcpy (Makefile.am): Likewise.
57836         * modules/memmem (Makefile.am): Likewise.
57837         * modules/memmove (Makefile.am): Likewise.
57838         * modules/mempcpy (Makefile.am): Likewise.
57839         * modules/memrchr (Makefile.am): Likewise.
57840         * modules/memset (Makefile.am): Likewise.
57841         * modules/memxor (Makefile.am): Likewise.
57842         * modules/mkancesdirs (Makefile.am): Likewise.
57843         * modules/mkdir-p (Makefile.am): Likewise.
57844         * modules/mkdir (Makefile.am): Likewise.
57845         * modules/mkdtemp (Makefile.am): Likewise.
57846         * modules/mkstemp (Makefile.am): Likewise.
57847         * modules/mktime (Makefile.am): Likewise.
57848         * modules/modechange (Makefile.am): Likewise.
57849         * modules/mountlist (Makefile.am): Likewise.
57850         * modules/nanosleep (Makefile.am): Likewise.
57851         * modules/obstack (Makefile.am): Likewise.
57852         * modules/openat (Makefile.am): Likewise.
57853         * modules/pagealign_alloc (Makefile.am): Likewise.
57854         * modules/pathmax (Makefile.am): Likewise.
57855         * modules/physmem (Makefile.am): Likewise.
57856         * modules/poll (Makefile.am): Likewise.
57857         * modules/posixtm (Makefile.am): Likewise.
57858         * modules/posixver (Makefile.am): Likewise.
57859         * modules/putenv (Makefile.am): Likewise.
57860         * modules/quote (Makefile.am): Likewise.
57861         * modules/quotearg (Makefile.am): Likewise.
57862         * modules/raise (Makefile.am): Likewise.
57863         * modules/read-file (Makefile.am): Likewise.
57864         * modules/readline (Makefile.am): Likewise.
57865         * modules/readlink (Makefile.am): Likewise.
57866         * modules/readtokens (Makefile.am): Likewise.
57867         * modules/readutmp (Makefile.am): Likewise.
57868         * modules/realloc (Makefile.am): Likewise.
57869         * modules/regex (Makefile.am): Likewise.
57870         * modules/rename-dest-slash (Makefile.am): Likewise.
57871         * modules/rename (Makefile.am): Likewise.
57872         * modules/rijndael (Makefile.am): Likewise.
57873         * modules/rmdir (Makefile.am): Likewise.
57874         * modules/rpmatch (Makefile.am): Likewise.
57875         * modules/safe-read (Makefile.am): Likewise.
57876         * modules/safe-write (Makefile.am): Likewise.
57877         * modules/same-inode (Makefile.am): Likewise.
57878         * modules/same (Makefile.am): Likewise.
57879         * modules/save-cwd (Makefile.am): Likewise.
57880         * modules/savedir (Makefile.am): Likewise.
57881         * modules/setenv (Makefile.am): Likewise.
57882         * modules/settime (Makefile.am): Likewise.
57883         * modules/sha1 (Makefile.am): Likewise.
57884         * modules/sig2str (Makefile.am): Likewise.
57885         * modules/snprintf (Makefile.am): Likewise.
57886         * modules/stat-macros (Makefile.am): Likewise.
57887         * modules/stat-time (Makefile.am): Likewise.
57888         * modules/stdbool (Makefile.am): Likewise.
57889         * modules/stdint (Makefile.am): Likewise.
57890         * modules/stdlib-safer (Makefile.am): Likewise.
57891         * modules/stpcpy (Makefile.am): Likewise.
57892         * modules/stpncpy (Makefile.am): Likewise.
57893         * modules/strcase (Makefile.am): Likewise.
57894         * modules/strcasestr (Makefile.am): Likewise.
57895         * modules/strchrnul (Makefile.am): Likewise.
57896         * modules/strcspn (Makefile.am): Likewise.
57897         * modules/strdup (Makefile.am): Likewise.
57898         * modules/strerror (Makefile.am): Likewise.
57899         * modules/strftime (Makefile.am): Likewise.
57900         * modules/strndup (Makefile.am): Likewise.
57901         * modules/strnlen (Makefile.am): Likewise.
57902         * modules/strpbrk (Makefile.am): Likewise.
57903         * modules/strsep (Makefile.am): Likewise.
57904         * modules/strstr (Makefile.am): Likewise.
57905         * modules/strtod (Makefile.am): Likewise.
57906         * modules/strtoimax (Makefile.am): Likewise.
57907         * modules/strtok_r (Makefile.am): Likewise.
57908         * modules/strtol (Makefile.am): Likewise.
57909         * modules/strtoll (Makefile.am): Likewise.
57910         * modules/strtoul (Makefile.am): Likewise.
57911         * modules/strtoull (Makefile.am): Likewise.
57912         * modules/strtoumax (Makefile.am): Likewise.
57913         * modules/strverscmp (Makefile.am): Likewise.
57914         * modules/sys_socket (Makefile.am): Likewise.
57915         * modules/sys_stat (Makefile.am): Likewise.
57916         * modules/sysexits (Makefile.am): Likewise.
57917         * modules/time_r (Makefile.am): Likewise.
57918         * modules/timegm (Makefile.am): Likewise.
57919         * modules/timespec (Makefile.am): Likewise.
57920         * modules/tmpfile-safer (Makefile.am): Likewise.
57921         * modules/trim (Makefile.am): Likewise.
57922         * modules/unistd-safer (Makefile.am): Likewise.
57923         * modules/unlinkdir (Makefile.am): Likewise.
57924         * modules/unlocked-io (Makefile.am): Likewise.
57925         * modules/userspec (Makefile.am): Likewise.
57926         * modules/utime (Makefile.am): Likewise.
57927         * modules/utimecmp (Makefile.am): Likewise.
57928         * modules/utimens (Makefile.am): Likewise.
57929         * modules/vasnprintf (Makefile.am): Likewise.
57930         * modules/vasprintf (Makefile.am): Likewise.
57931         * modules/vsnprintf (Makefile.am): Likewise.
57932         * modules/xalloc (Makefile.am): Likewise.
57933         * modules/xgetcwd (Makefile.am): Likewise.
57934         * modules/xnanosleep (Makefile.am): Likewise.
57935         * modules/xreadlink (Makefile.am): Likewise.
57936         * modules/xstrtod (Makefile.am): Likewise.
57937         * modules/xstrtol (Makefile.am): Likewise.
57938         * modules/xstrtold (Makefile.am): Likewise.
57939         * modules/yesno (Makefile.am): Likewise.
57940         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
57941
57942 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
57943
57944         * modules/error (Makefile.am): Distribute files through
57945         EXTRA_DIST, not lib_SOURCES.
57946
57947 2006-10-12  Eric Blake  <ebb9@byu.net>
57948
57949         * modules/error (Makefile.am): Distribute files in /lib.
57950         * modules/obstack (Makefile.am): Likewise.
57951
57952 2006-10-12  Bruno Haible  <bruno@clisp.org>
57953
57954         * modules/acl (Makefile.am): Distribute all files in lib/ through
57955         EXTRA_DIST.
57956         * modules/arcfour (Makefile.am): Likewise.
57957         * modules/arctwo (Makefile.am): Likewise.
57958         * modules/argmatch (Makefile.am): Likewise.
57959         * modules/argz (Makefile.am): Likewise.
57960         * modules/atexit (Makefile.am): Likewise.
57961         * modules/backupfile (Makefile.am): Likewise.
57962         * modules/c-strtod (Makefile.am): Likewise.
57963         * modules/c-strtold (Makefile.am): Likewise.
57964         * modules/calloc (Makefile.am): Likewise.
57965         * modules/canon-host (Makefile.am): Likewise.
57966         * modules/canonicalize (Makefile.am): Likewise.
57967         * modules/chdir-long (Makefile.am): Likewise.
57968         * modules/chdir-safer (Makefile.am): Likewise.
57969         * modules/check-version (Makefile.am): Likewise.
57970         * modules/chown (Makefile.am): Likewise.
57971         * modules/cloexec (Makefile.am): Likewise.
57972         * modules/close-stream (Makefile.am): Likewise.
57973         * modules/closeout (Makefile.am): Likewise.
57974         * modules/crc (Makefile.am): Likewise.
57975         * modules/cycle-check (Makefile.am): Likewise.
57976         * modules/des (Makefile.am): Likewise.
57977         * modules/dirfd (Makefile.am): Likewise.
57978         * modules/dirname (Makefile.am): Likewise.
57979         * modules/dup2 (Makefile.am): Likewise.
57980         * modules/euidaccess (Makefile.am): Likewise.
57981         * modules/exclude (Makefile.am): Likewise.
57982         * modules/exitfail (Makefile.am): Likewise.
57983         * modules/fcntl-safer (Makefile.am): Likewise.
57984         * modules/file-type (Makefile.am): Likewise.
57985         * modules/fileblocks (Makefile.am): Likewise.
57986         * modules/filemode (Makefile.am): Likewise.
57987         * modules/filenamecat (Makefile.am): Likewise.
57988         * modules/fnmatch (Makefile.am): Likewise.
57989         * modules/fopen-safer (Makefile.am): Likewise.
57990         * modules/fpending (Makefile.am): Likewise.
57991         * modules/fprintftime (Makefile.am): Likewise.
57992         * modules/free (Makefile.am): Likewise.
57993         * modules/fsusage (Makefile.am): Likewise.
57994         * modules/ftruncate (Makefile.am): Likewise.
57995         * modules/fts (Makefile.am): Likewise.
57996         * modules/gc (Makefile.am): Likewise.
57997         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
57998         * modules/getaddrinfo (Makefile.am): Likewise.
57999         * modules/getcwd (Makefile.am): Likewise.
58000         * modules/getdelim (Makefile.am): Likewise.
58001         * modules/getdomainname (Makefile.am): Likewise.
58002         * modules/getgroups (Makefile.am): Likewise.
58003         * modules/gethostname (Makefile.am): Likewise.
58004         * modules/gethrxtime (Makefile.am): Likewise.
58005         * modules/getline (Makefile.am): Likewise.
58006         * modules/getloadavg (Makefile.am): Likewise.
58007         * modules/getlogin_r (Makefile.am): Likewise.
58008         * modules/getopt (Makefile.am): Likewise.
58009         * modules/getpass (Makefile.am): Likewise.
58010         * modules/getpass-gnu (Makefile.am): Likewise.
58011         * modules/getsubopt (Makefile.am): Likewise.
58012         * modules/gettime (Makefile.am): Likewise.
58013         * modules/gettimeofday (Makefile.am): Likewise.
58014         * modules/getugroups (Makefile.am): Likewise.
58015         * modules/getusershell (Makefile.am): Likewise.
58016         * modules/glob (Makefile.am): Likewise.
58017         * modules/group-member (Makefile.am): Likewise.
58018         * modules/hard-locale (Makefile.am): Likewise.
58019         * modules/hash (Makefile.am): Likewise.
58020         * modules/hmac-md5 (Makefile.am): Likewise.
58021         * modules/hmac-sha1 (Makefile.am): Likewise.
58022         * modules/human (Makefile.am): Likewise.
58023         * modules/idcache (Makefile.am): Likewise.
58024         * modules/imaxabs (Makefile.am): Likewise.
58025         * modules/imaxdiv (Makefile.am): Likewise.
58026         * modules/inet_ntop (Makefile.am): Likewise.
58027         * modules/inet_pton (Makefile.am): Likewise.
58028         * modules/inttostr (Makefile.am): Likewise.
58029         * modules/isapipe (Makefile.am): Likewise.
58030         * modules/lchown (Makefile.am): Likewise.
58031         * modules/long-options (Makefile.am): Likewise.
58032         * modules/lstat (Makefile.am): Likewise.
58033         * modules/malloc (Makefile.am): Likewise.
58034         * modules/mathl (Makefile.am): Likewise.
58035         * modules/mbchar (Makefile.am): Likewise.
58036         * modules/md2 (Makefile.am): Likewise.
58037         * modules/md4 (Makefile.am): Likewise.
58038         * modules/md5 (Makefile.am): Likewise.
58039         * modules/memcasecmp (Makefile.am): Likewise.
58040         * modules/memchr (Makefile.am): Likewise.
58041         * modules/memcmp (Makefile.am): Likewise.
58042         * modules/memcoll (Makefile.am): Likewise.
58043         * modules/memcpy (Makefile.am): Likewise.
58044         * modules/memmem (Makefile.am): Likewise.
58045         * modules/memmove (Makefile.am): Likewise.
58046         * modules/mempcpy (Makefile.am): Likewise.
58047         * modules/memrchr (Makefile.am): Likewise.
58048         * modules/memset (Makefile.am): Likewise.
58049         * modules/memxor (Makefile.am): Likewise.
58050         * modules/mkancesdirs (Makefile.am): Likewise.
58051         * modules/mkdir (Makefile.am): Likewise.
58052         * modules/mkdir-p (Makefile.am): Likewise.
58053         * modules/mkdtemp (Makefile.am): Likewise.
58054         * modules/mkstemp (Makefile.am): Likewise.
58055         * modules/mktime (Makefile.am): Likewise.
58056         * modules/modechange (Makefile.am): Likewise.
58057         * modules/mountlist (Makefile.am): Likewise.
58058         * modules/nanosleep (Makefile.am): Likewise.
58059         * modules/openat (Makefile.am): Likewise.
58060         * modules/pagealign_alloc (Makefile.am): Likewise.
58061         * modules/physmem (Makefile.am): Likewise.
58062         * modules/poll (Makefile.am): Likewise.
58063         * modules/posixtm (Makefile.am): Likewise.
58064         * modules/posixver (Makefile.am): Likewise.
58065         * modules/putenv (Makefile.am): Likewise.
58066         * modules/quote (Makefile.am): Likewise.
58067         * modules/quotearg (Makefile.am): Likewise.
58068         * modules/raise (Makefile.am): Likewise.
58069         * modules/read-file (Makefile.am): Likewise.
58070         * modules/readline (Makefile.am): Likewise.
58071         * modules/readlink (Makefile.am): Likewise.
58072         * modules/readtokens (Makefile.am): Likewise.
58073         * modules/readutmp (Makefile.am): Likewise.
58074         * modules/realloc (Makefile.am): Likewise.
58075         * modules/regex (Makefile.am): Likewise.
58076         * modules/rename (Makefile.am): Likewise.
58077         * modules/rename-dest-slash (Makefile.am): Likewise.
58078         * modules/rijndael (Makefile.am): Likewise.
58079         * modules/rmdir (Makefile.am): Likewise.
58080         * modules/rpmatch (Makefile.am): Likewise.
58081         * modules/safe-read (Makefile.am): Likewise.
58082         * modules/safe-write (Makefile.am): Likewise.
58083         * modules/same (Makefile.am): Likewise.
58084         * modules/save-cwd (Makefile.am): Likewise.
58085         * modules/savedir (Makefile.am): Likewise.
58086         * modules/setenv (Makefile.am): Likewise.
58087         * modules/settime (Makefile.am): Likewise.
58088         * modules/sha1 (Makefile.am): Likewise.
58089         * modules/sig2str (Makefile.am): Likewise.
58090         * modules/snprintf (Makefile.am): Likewise.
58091         * modules/stdlib-safer (Makefile.am): Likewise.
58092         * modules/stpcpy (Makefile.am): Likewise.
58093         * modules/stpncpy (Makefile.am): Likewise.
58094         * modules/strcase (Makefile.am): Likewise.
58095         * modules/strcasestr (Makefile.am): Likewise.
58096         * modules/strchrnul (Makefile.am): Likewise.
58097         * modules/strcspn (Makefile.am): Likewise.
58098         * modules/strdup (Makefile.am): Likewise.
58099         * modules/strerror (Makefile.am): Likewise.
58100         * modules/strftime (Makefile.am): Likewise.
58101         * modules/strndup (Makefile.am): Likewise.
58102         * modules/strnlen (Makefile.am): Likewise.
58103         * modules/strpbrk (Makefile.am): Likewise.
58104         * modules/strsep (Makefile.am): Likewise.
58105         * modules/strstr (Makefile.am): Likewise.
58106         * modules/strtod (Makefile.am): Likewise.
58107         * modules/strtoimax (Makefile.am): Likewise.
58108         * modules/strtok_r (Makefile.am): Likewise.
58109         * modules/strtol (Makefile.am): Likewise.
58110         * modules/strtoll (Makefile.am): Likewise.
58111         * modules/strtoul (Makefile.am): Likewise.
58112         * modules/strtoull (Makefile.am): Likewise.
58113         * modules/strtoumax (Makefile.am): Likewise.
58114         * modules/strverscmp (Makefile.am): Likewise.
58115         * modules/time_r (Makefile.am): Likewise.
58116         * modules/timegm (Makefile.am): Likewise.
58117         * modules/tmpfile-safer (Makefile.am): Likewise.
58118         * modules/unistd-safer (Makefile.am): Likewise.
58119         * modules/unlinkdir (Makefile.am): Likewise.
58120         * modules/userspec (Makefile.am): Likewise.
58121         * modules/utime (Makefile.am): Likewise.
58122         * modules/utimecmp (Makefile.am): Likewise.
58123         * modules/utimens (Makefile.am): Likewise.
58124         * modules/vasnprintf (Makefile.am): Likewise.
58125         * modules/vasprintf (Makefile.am): Likewise.
58126         * modules/vsnprintf (Makefile.am): Likewise.
58127         * modules/xalloc (Makefile.am): Likewise.
58128         * modules/xgetcwd (Makefile.am): Likewise.
58129         * modules/xnanosleep (Makefile.am): Likewise.
58130         * modules/xreadlink (Makefile.am): Likewise.
58131         * modules/xstrtod (Makefile.am): Likewise.
58132         * modules/xstrtol (Makefile.am): Likewise.
58133         * modules/xstrtold (Makefile.am): Likewise.
58134         * modules/yesno (Makefile.am): Likewise.
58135
58136 2006-10-12  Jim Meyering  <jim@meyering.net>
58137
58138         * m4/getloadavg.m4: Revert the change below.
58139
58140         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
58141         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
58142         fail with a symlink, which is what coreutils' ./bootstrap now
58143         creates by default.
58144
58145 2006-10-12  Bruno Haible  <bruno@clisp.org>
58146
58147         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
58148         mingw.
58149         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
58150         MSVC and mingw explicitly.
58151
58152 2006-10-11  Simon Josefsson  <jas@extundo.com>
58153             Bruno Haible  <bruno@clisp.org>
58154
58155         Add support for multiple gnulib-tool invocations in the scope of a
58156         single configure.ac file.
58157         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
58158         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
58159         with the same contents as the _LIBADD variable.
58160         (func_emit_initmacro_start, func_emit_initmacro_end,
58161         func_emit_initmacro_done): New functions.
58162         (func_import, func_create_testdir): Invoke them. Allow the identifiers
58163         gl_LIBOBJS and gl_LTLIBOBJS.
58164
58165 2006-10-11  Bruno Haible  <bruno@clisp.org>
58166
58167         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
58168         (func_create_testdir): Don't create po/Makefile.am, don't invoke
58169         autoreconf. Instead, invoke autopoint explicitly but move back the
58170         *.m4 files from gnulib.
58171
58172 2006-10-11  Bruno Haible  <bruno@clisp.org>
58173
58174         * gnulib-tool (func_usage): Make module names after --create-testdir
58175         optional.
58176         (func_create_testdir): If no module was specified, use nearly all
58177         modules.
58178
58179 2006-10-12  Jim Meyering  <jim@meyering.net>
58180
58181         Big performance improvement for fts-based tools that use FTS_NOSTAT.
58182         Avoid spurious inode-mismatch problems on non-POSIX file systems.
58183         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
58184         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
58185         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
58186         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
58187         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
58188         (fts_set_stat_required): New function.
58189         (fts_open): Defer the calls to fts_stat, if possible or requested.
58190         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
58191         into fts_stat itself.
58192         (fts_read): Perform any required (deferred) fts_stat call.
58193         (fts_build): Likewise, for the directory we're about to open and read.
58194         In the readdir loop, carefully decide whether each entry will require
58195         an eventual call to fts_stat, using dirent.d_type info if available.
58196         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
58197         a command line argument into this function.  Update all callers.
58198         Map a return value of FTS_DOT to FTS_D for a command line argument.
58199         * modules/fts (Depends-on): Add d-type.  Alphabetize.
58200         Thanks to Miklos Szeredi for his tenacity and for the initial
58201         bug report about "find" failing on a FUSE-based file system.
58202
58203         * lib/fts.c (fts_open): Use consistent indentation.
58204
58205 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
58206
58207         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
58208         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
58209         reported by Jim Meyering.  All uses of cache variables renamed
58210         to match Autoconf's.
58211         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
58212         the other one.
58213
58214         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
58215         Fix misspelling in diagnostic.
58216
58217 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
58218
58219         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
58220         defined.  Problem reported by Matthew Woehlke.
58221
58222         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
58223         Add support for Tandem NonStop R series.
58224         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
58225         Use new macro.
58226
58227         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
58228         (has_trailing_slash): Omit size arg; all callers changed.
58229         Omit 'inline', since it doesn't help performance and we'd
58230         need to configure it.
58231         Don't count //, ///, etc. as having a trailing slash.
58232         As a side effect, this removes a C99ism reported by Matthew Woehlke.
58233         (rpl_rename_dest_slash): On failure, use rename's errno rather
58234         than (in some cases) an incorrect or junk errno.
58235         Simplify code by removing need to compute length; this does
58236         cause it to make two passes instead of one over the file name,
58237         but it's worth it.
58238
58239         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
58240         change, since Autoconf's version may no longer be appropriate now
58241         that we are using CVS Autoconf's version.  Add support for Tandem.
58242
58243 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
58244             Bruno Haible  <bruno@clisp.org>
58245
58246         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
58247         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
58248         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
58249         gl_AC_TYPE_LONG_LONG.
58250
58251         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
58252         instead of HAVE_LONG_LONG.
58253         * lib/printf-args.c (printf_fetchargs): Likewise.
58254         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
58255         * lib/vasnprintf.c (VASNPRINTF): Likewise.
58256         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
58257         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
58258         gl_AC_TYPE_LONG_LONG.
58259
58260 2006-10-11  Bruno Haible  <bruno@clisp.org>
58261
58262         * m4/longlong.m4: Add comments.
58263         * m4/ulonglong.m4: Likewise.
58264
58265 2006-10-10  Bruno Haible  <bruno@clisp.org>
58266
58267         Make it possible to #define stpcpy, strdup to aliases.
58268         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
58269         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
58270
58271 2006-10-10  Bruno Haible  <bruno@clisp.org>
58272
58273         Make it possible to #define gcd to an alias.
58274         * lib/gcd.c: Include config.h.
58275
58276 2006-10-10  Bruno Haible  <bruno@clisp.org>
58277
58278         Make it possible to #define c_isascii to an alias.
58279         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
58280         defined. Undefine the macros before defining them, to avoid gcc
58281         warnings.
58282         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
58283         define NO_C_CTYPE_MACROS early.
58284
58285 2006-10-10  Bruno Haible  <bruno@clisp.org>
58286
58287         Make it possible to #define set_program_name to an alias.
58288         * lib/progname.c: Don't undefine set_program_name; instead, undefine
58289         ENABLE_RELOCATABLE early.
58290
58291 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
58292
58293         Port to Tandem NSK OSS, which has 64-bit signed int but at most
58294         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
58295         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
58296         More generally, don't assume that 64-bit signed int is available
58297         if unsigned int is, and vice versa.
58298         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
58299         unsigned symbols, not on their signed counterparts.
58300         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
58301         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
58302         (UINT64_C, UINTMAX_C):
58303         Likewise.
58304         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
58305         unsigned counterparts.
58306         (Have_long_long, Unsigned): New macros.
58307         (Int): Renamed from INT.
58308         (strtoimax): Use the new macros.
58309         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
58310         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
58311         * modules/inttypes (inttypes.h): Substitute
58312         HAVE_UNSIGNED_LONG_LONG_INT.
58313         * modules/stdint (stdint.h): Likewise.
58314         (Files): Add m4/ulonglong.m4.
58315
58316 2006-10-10  Bruno Haible  <bruno@clisp.org>
58317
58318         Fix a gcc -Wshadow warning.
58319         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
58320         to 'bucket'.
58321         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
58322         gl_linked_indexof_from_to): Likewise.
58323         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
58324         Likewise.
58325         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
58326         Likewise.
58327         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
58328         Reported by Eric Blake.
58329
58330 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
58331
58332         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
58333         for NetBSD.  Problem reported by Bruno Haible.
58334
58335 2006-10-09  Jim Meyering  <jim@meyering.net>
58336
58337         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
58338         Patch from Bruno Haible.
58339
58340 2006-10-09  Jim Meyering  <jim@meyering.net>
58341
58342         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
58343         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
58344         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
58345
58346 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
58347
58348         Don't include <config.h> twice; this doesn't work in some cases,
58349         e.g., when config.h has "#define intmax_t long long int" and
58350         we include <config.h>, <inttypes.h>, <config.h> in that order.
58351         Problem reported by Matthew Woehlke in:
58352         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
58353         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
58354         * lib/fts-cycle.c: Don't include config.h.
58355         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
58356         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
58357         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
58358         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
58359         inttypes.h.
58360         * lib/xstrtoumax.c: Likewise.
58361         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
58362         __strtol and the like, so that this module is more like its siblings.
58363         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
58364         Remove; no longer needed now that we assume gnulib inttypes.h.
58365
58366 2006-10-08  Bruno Haible  <bruno@clisp.org>
58367
58368         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
58369         option.
58370
58371 2006-10-07  Jim Meyering  <jim@meyering.net>
58372
58373         * modules/inttypes (inttypes.h): Revert what seems to have been
58374         an inadvertent part of today's change: use "|", not "/" in the
58375         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
58376
58377 2006-10-07  Bruno Haible  <bruno@clisp.org>
58378
58379         * modules/sublist: New file.
58380
58381 2006-10-07  Bruno Haible  <bruno@clisp.org>
58382
58383         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
58384         * modules/argz (argz.h): Likewise.
58385         * modules/arpa_inet (arpa/inet.h): Likewise.
58386         * modules/byteswap (byteswap.h): Likewise.
58387         * modules/configmake (configmake.h): Likewise.
58388         * modules/fcntl (fcntl.h): Likewise.
58389         * modules/fnmatch (fnmatch.h): Likewise.
58390         * modules/getopt (getopt.h): Likewise.
58391         * modules/glob (glob.h): Likewise.
58392         * modules/inttypes (inttypes.h): Likewise.
58393         * modules/netinet_in (netinet/in.h): Likewise.
58394         * modules/poll (poll.h): Likewise.
58395         * modules/stdbool (stdbool.h): Likewise.
58396         * modules/stdint (stdint.h): Likewise.
58397         * modules/sys_select (sys/select.h): Likewise.
58398         * modules/sys_socket (sys/socket.h): Likewise.
58399         * modules/sys_stat (sys/stat.h): Likewise.
58400         * modules/sysexits (sysexits.h): Likewise.
58401         * modules/unistd (unistd.h): Likewise.
58402         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
58403         Add a "DO NOT EDIT" comment to the generated file.
58404         (func_import): Likewise for gnulib-comp.m4.
58405
58406 2006-10-07  Bruno Haible  <bruno@clisp.org>
58407
58408         * lib/gl_sublist.h: New file.
58409         * lib/gl_sublist.c: New file.
58410
58411 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
58412
58413         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
58414         name (relative to the original working directory) and the file
58415         name component (relative to the temporary working directory).  All
58416         callers changed.
58417         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
58418         * lib/mkdir-p.c (make_dir_parents): Likewise.
58419         * lib/mkdir-p.h (make_dir_parents): Likewise.
58420
58421 2006-10-06  Eric Blake  <ebb9@byu.net>
58422
58423         Define several macros for use by the clean-temp module.
58424         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
58425         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
58426         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
58427
58428         * lib/clean-temp.h (close_stream_temp): New declaration.
58429         * lib/clean-temp.c (includes): Pull in headers according to what
58430         other modules are in use.
58431         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
58432
58433 2006-10-06  Bruno Haible  <bruno@clisp.org>
58434
58435         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
58436         instead of fopen, fwriteerror.
58437
58438 2006-10-06  Bruno Haible  <bruno@clisp.org>
58439
58440         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
58441         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
58442         int.
58443         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
58444         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
58445         Return an error indicator.
58446         Suggested by Eric Blake.
58447
58448 2006-10-06  Bruno Haible  <bruno@clisp.org>
58449
58450         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
58451         Reported by Eric Blake.
58452
58453 2006-10-06  Bruno Haible  <bruno@clisp.org>
58454
58455         * modules/closeout (Description): Mention stderr too.
58456
58457 2006-10-06  Bruno Haible  <bruno@clisp.org>
58458         and Paul Eggert  <eggert@cs.ucla.edu>
58459
58460         * lib/closeout.c (close_stdout): Also close stderr.
58461         * lib/closeout.h: Update comment.
58462
58463 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
58464
58465         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
58466         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
58467         * lib/dirchownmod.c: Include lchown.h.
58468         * lib/lchown.c: Don't include files that lchown.h now includes.
58469         Don't declare chown, since lchown.h now does that.
58470         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
58471         (lchown): Define to rpl_chown if lchown is declared but
58472         does not exist.  Declare using a prototype if lchown is not
58473         declared.  Add a copyright notice.
58474         * lib/mkstemp.h: Include <unistd.h>.
58475         * lib/openat.c: Include lchown.h.
58476
58477         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
58478         we now test for that separately.
58479         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
58480         rather than O_NOFOLLOW, when testing whether it's possible to
58481         avoid a race condition reliably.
58482         * lib/savewd.c (savewd_chdir): Likewise.
58483
58484         Remove macros that are no longer needed now that stdint.h is
58485         reliable.
58486         * lib/fsusage.c (UINTMAX_MAX): Remove.
58487         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
58488         * lib/utimecmp.c (SIZE_MAX): Remove.
58489
58490         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
58491
58492         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
58493         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
58494         O_NOATIME works.
58495
58496 2006-10-05  Bruno Haible  <bruno@clisp.org>
58497
58498         * lib/gl_list.h (gl_sortedlist_search_from_to,
58499         gl_sortedlist_indexof_from_to): New declarations.
58500         (gl_list_implementation): New fields sortedlist_search_from_to,
58501         sortedlist_indexof_from_to.
58502         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
58503         inline functions.
58504         * lib/gl_list.c (gl_sortedlist_search_from_to,
58505         gl_sortedlist_indexof_from_to): New functions.
58506         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
58507         function.
58508         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
58509         (gl_array_sortedlist_search_from_to): New function.
58510         (gl_array_list_implementation): Update.
58511         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
58512         function.
58513         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
58514         (gl_carray_sortedlist_search_from_to): New function.
58515         (gl_carray_list_implementation): Update.
58516         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
58517         gl_linked_sortedlist_indexof_from_to): New functions.
58518         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
58519         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
58520         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
58521         gl_tree_sortedlist_indexof_from_to): New functions.
58522         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
58523         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
58524         Update.
58525         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
58526         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
58527         Update.
58528
58529 2006-10-05  Bruno Haible  <bruno@clisp.org>
58530
58531         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
58532         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
58533         (struct gl_list_implementation): Add fields search_from_to,
58534         indexof_from_to. Remove fields search, indexof.
58535         (gl_list_search): Use the search_from_to method.
58536         (gl_list_search_from, gl_list_search_from_to): New functions.
58537         (gl_list_indexof): Use the indexof_from_to method.
58538         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
58539         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
58540         (gl_list_search_from, gl_list_search_from_to): New functions.
58541         (gl_list_indexof): Use the indexof_from_to method.
58542         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
58543         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
58544         gl_array_indexof. Add start_index, end_index arguments.
58545         (gl_array_search_from_to): Renamed from gl_array_search. Add
58546         start_index, end_index arguments.
58547         (gl_array_remove, gl_array_list_implementation): Update.
58548         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
58549         gl_carray_indexof. Add start_index, end_index arguments.
58550         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
58551         start_index, end_index arguments.
58552         (gl_carray_remove, gl_carray_list_implementation): Update.
58553         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
58554         gl_linked_search. Add start_index, end_index arguments.
58555         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
58556         start_index, end_index arguments.
58557         (gl_linked_remove): Update.
58558         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
58559         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
58560         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
58561         field to 'size_t'.
58562         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
58563         gl_tree_search. Add start_index, end_index arguments.
58564         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
58565         start_index, end_index arguments.
58566         (gl_tree_remove): Update.
58567         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
58568         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
58569         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
58570         function.
58571         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
58572         gl_tree_search. Add start_index, end_index arguments.
58573         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
58574         start_index, end_index arguments.
58575         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
58576         Update.
58577         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
58578
58579 2006-10-05  Bruno Haible  <bruno@clisp.org>
58580
58581         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
58582
58583         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
58584         fwriteerror_temp): New declarations.
58585         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
58586         (descriptors): New variable.
58587         (cleanup): First, close the descriptors.
58588         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
58589         fclose_temp, fwriteerror_temp): New functions.
58590
58591 2006-10-04  Jim Meyering  <jim@meyering.net>
58592
58593         * lib/fts.c (fts_open): Tiny comment change.
58594
58595 2006-10-04  Bruno Haible  <bruno@clisp.org>
58596
58597         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
58598         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
58599         gl_LOCK_BODY.
58600         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
58601         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
58602         gl_LOCK_EARLY_BODY.
58603         (gl_LOCK): Require gl_LOCK_BODY.
58604
58605 2006-10-04  Bruno Haible  <bruno@clisp.org>
58606
58607         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
58608         (gl_oset_search_atleast): New declaration.
58609         (struct gl_oset_implementation): Add field 'search_atleast'.
58610         (gl_oset_search_atleast): New inline function.
58611         * lib/gl_oset.c (gl_oset_search_atleast): New function.
58612         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
58613         (gl_array_oset_implementation): Update.
58614         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
58615         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
58616         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
58617
58618 2006-10-04  Bruno Haible  <bruno@clisp.org>
58619
58620         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
58621
58622 2006-10-03  Bruno Haible  <bruno@clisp.org>
58623
58624         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
58625         from gl_avltreehash_list_implementation.
58626
58627 2006-10-03  Bruno Haible  <bruno@clisp.org>
58628
58629         * lib/gl_oset.c (gl_oset_add): Fix return type.
58630
58631 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
58632
58633         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
58634
58635 2006-10-02  Eric Blake  <ebb9@byu.net>
58636
58637         * modules/strnlen (Depends-on): Add extensions.
58638
58639 2006-10-02  Eric Blake  <ebb9@byu.net>
58640
58641         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
58642         definition in 2.60+.
58643
58644 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
58645
58646         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
58647         checks.
58648
58649 2006-10-02  Bruno Haible  <bruno@clisp.org>
58650
58651         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
58652         to the AUTOMAKE_OPTIONS.
58653         Reported by Jim Meyering.
58654
58655 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
58656
58657         Work around bug in Solaris 10 /proc file system:
58658         /proc/self/fd/NNN/.. isn't the parent directory of
58659         the directory whose file descriptor is NNN.  This needs to
58660         be worked around at run time, not compile time, since a
58661         program might be built on Solaris 8, where things work, and
58662         run on Solaris 10.
58663         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
58664         to use the following interface instead:
58665         (OPENAT_BUFFER_SIZE): New macro.
58666         (openat_proc_name): New function.
58667         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
58668         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
58669         Likewise.
58670         * lib/openat-proc.c: New file.
58671         * modules/openat (Files): Add lib/openat-proc.c.
58672         (Depends-on): Add same-inode, stdbool.
58673         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
58674
58675 2006-09-29  Bruno Haible  <bruno@clisp.org>
58676
58677         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
58678         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
58679         argument. Set stdout_closed before testing for ferror, not after.
58680         (fwriteerror, fwriteerror_no_ebadf): New functions.
58681
58682 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58683
58684         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
58685
58686 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
58687
58688         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
58689         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
58690
58691 2006-09-28  Jim Meyering  <jim@meyering.net>
58692
58693         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
58694         Include <unistd.h>.
58695
58696 2006-09-28  Bruno Haible  <bruno@clisp.org>
58697
58698         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
58699         * modules/linkedhash-list (Depends-on): Likewise.
58700         * modules/rbtreehash-list (Depends-on): Likewise.
58701
58702 2006-09-28  Bruno Haible  <bruno@clisp.org>
58703
58704         * lib/strndup.h: Simplify the redefinition of strndup.
58705         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
58706         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
58707
58708 2006-09-28  Bruno Haible  <bruno@clisp.org>
58709
58710         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
58711         * lib/gl_linkedhash_list.c: Likewise.
58712         * lib/gl_rbtreehash_list.c: Likewise.
58713
58714 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
58715
58716         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
58717         getaddrinfo.
58718
58719         * lib/__fpending.h: Don't include <stdio_ext.h> unless
58720         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
58721         it causes <stdio_ext.h> to cause a compile-time error.
58722         Problem reported by Nelson H. F. Beebe.
58723         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
58724         of HAVE_DECL___PENDING.
58725
58726         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
58727         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
58728         declaration.
58729
58730 2006-09-27  Jim Meyering  <jim@meyering.net>
58731
58732         This file could end up with a definition for a function
58733         named __strndup, rather than rpl_strndup on a system with
58734         incomplete weak_alias support.
58735         * lib/strndup.c (strndup): Rename from __strndup.
58736         Remove #defines that used to map __strndup to strndup.
58737         Don't use K&R prototypes.
58738         Remove LIBC-related code, since this file is not sync'd with glibc.
58739         * lib/strndup.h: Revamp, accordingly.
58740         * m4/strndup.m4: Modernize.
58741
58742 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
58743
58744         * modules/savewd (Depends-on): Add 'raise'.
58745         * lib/savewd.c: Include <signal.h>, for 'raise'.
58746
58747 2006-09-26  Jim Meyering  <jim@meyering.net>
58748
58749         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
58750         when we detect Darwin 8.7.0's acl_get_file bug.
58751         Rearrange to perform the new (below) run-test while $LIBS
58752         contains any acl-related library.  Set USE_ACL at the end.
58753         (gl_ACL_GET_FILE): New function.
58754
58755 2006-09-26  Eric Blake  <ebb9@byu.net>
58756
58757         * lib/verror.c: Include <config.h> unconditionally.
58758
58759 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
58760
58761         * modules/clock-time (Maintainer): Add self.
58762         * modules/getlogin_r (Depends-on): Add extensions.
58763
58764 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58765
58766         * modules/clock-time: New module.
58767         * modules/nanosleep (Depends-on): Add clock-time.
58768         * modules/gethrxtime (Depends-on): Likewise.
58769         * modules/gettime (Depends-on): Likewise.
58770         * modules/settime (Depends-on): Likewise.
58771
58772         * modules/fts-lgpl: Depend on openat.
58773         * modules/mkancesdirs: Depend on savewd.
58774         * modules/mkdir-p: Likewise.
58775
58776 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58777
58778         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
58779
58780         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
58781         `gl_have_arbitrary_file_name_length_limit' to
58782         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
58783         actually works between configure runs.
58784
58785 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58786             Bruno Haible  <bruno@clisp.org>
58787
58788         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
58789
58790 2006-09-25  Jim Meyering  <jim@meyering.net>
58791
58792         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
58793         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
58794
58795 2006-09-25  Eric Blake  <ebb9@byu.net>
58796
58797         * gnulib-tool (func_import, func_create_testdir): Fix typos in
58798         exec's in 2006-09-18 patch when shuffling fds.
58799
58800 2006-09-25  Bruno Haible  <bruno@clisp.org>
58801
58802         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
58803         Reported by Jim Meyering.
58804
58805 2006-09-24  Jim Meyering  <jim@meyering.net>
58806
58807         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
58808         compare a pointer against a literal "0".  That caused failures with
58809         at least HP-UX's hpcc.
58810
58811 2006-09-22  Simon Josefsson  <jas@extundo.com>
58812
58813         * modules/gc-sha1:
58814         * modules/gc-md4:
58815         * modules/gc-hmac-sha1:
58816         * modules/gc-hmac-md5:
58817         * modules/gc-des:
58818         * modules/gc-arcfour: Distribute more files.
58819
58820 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58821
58822         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
58823         (gl_linked_iterator_from_to): Initialize struct completely.
58824         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
58825         (gl_tree_iterator_from_to): Likewise
58826         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
58827         * lib/gl_array_list.c [lint] (gl_array_iterator)
58828         (gl_array_iterator_from_to): Likewise.
58829         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
58830         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
58831         (gl_carray_iterator_from_to): Likewise.
58832
58833         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
58834         * lib/md4.c (md4_process_block): Remove unused variable.
58835         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
58836         parentheses for clarity.
58837
58838 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58839
58840         * modules/bison-i18n (Depends-on): Add gettext.
58841
58842 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58843
58844         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
58845         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
58846         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
58847         also add missing comma that caused broken test.
58848         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
58849         stdlib.h, for `abort'.
58850         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
58851         variables.
58852         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
58853         include unistd.h if present, for `rmdir'.
58854         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
58855         variables.
58856         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
58857         in the process include standard headers for prototypes.
58858         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
58859         gets declared on GNU/Linux.
58860         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
58861         unistd.h, for `rmdir'.
58862         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
58863
58864         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
58865         always true.
58866         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
58867
58868         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
58869
58870 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58871
58872         * gnulib-tool (func_version): Create output all at once.  This
58873         may help avoid triggering unnecessary SIGPIPEs, and at any
58874         rate it doesn't hurt.
58875
58876 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58877             Bruno Haible  <bruno@clisp.org>
58878
58879         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
58880         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
58881         * m4/signed.m4 (bh_C_SIGNED): Likewise.
58882
58883         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
58884         (gl_FUNC_VASPRINTF): Invoke it.
58885
58886 2006-09-22  Bruno Haible  <bruno@clisp.org>
58887
58888         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
58889         getloadavg.c as first argument.
58890
58891 2006-09-22  Bruno Haible  <bruno@clisp.org>
58892
58893         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
58894         at the beginning of the gl_INIT macro.
58895         * modules/getloadavg (configure.ac): Pass $gl_source_base to
58896         gl_GETLOADAVG.
58897
58898 2006-09-22  Bruno Haible  <bruno@clisp.org>
58899
58900         * gnulib-tool (func_create_megatestdir): Don't include the config-h
58901         module.
58902         Suggested by Ralf Wildenhues.
58903
58904 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
58905
58906         Import this patch from libc:
58907
58908         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
58909
58910         * lib/regex_internal.c (re_string_reconstruct): Handle
58911         offset < pstr->valid_raw_len && pstr->offsets_needed case.
58912         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
58913         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
58914         re_string_context_at.
58915
58916         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
58917         now requires it.
58918         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
58919         gl_REGEX now does it for us.
58920         (gl_REGEX): Add test taken from
58921         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
58922
58923         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
58924         Check that large offsets work.  Modernize Autoconf usages.
58925         Prefer "yes" to mean a good thing rather than a bad.
58926         Don't put "#define mkstemp" in config.h, as this might interfere
58927         with standard system headers that "#define mkstemp mkstemp64".
58928
58929         * modules/mkstemp (Depends-on): Add extensions, so that
58930         mkstemp is visible on some platforms.
58931         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
58932         (Include): Change to "mkstemp.h" from <stdlib.h>.
58933         (Files): Add mkstemp.h.
58934
58935         * lib/mkstemp.h: New file, since some standard headers
58936         #define mkstemp.
58937         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
58938         Include "mkstemp.h".
58939         Make the _LIBC code resemble glibc original more,
58940         e.g., use K&R style.
58941         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
58942         (mkstemp): Remove, since mkstemp.h does this for us.
58943         * lib/stdlib--.h: Include mkstemp.h.
58944
58945         Import this patch from libc:
58946
58947         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
58948
58949         * lib/tempname.c (__gen_tempname): Change attempts_min
58950         into a macro.  Use preprocessor to decide how to initialize
58951         attempts [Coverity CID 67].
58952
58953 2006-09-20  Bruno Haible  <bruno@clisp.org>
58954
58955         * lib/mkdtemp.c: Import from libc.
58956         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
58957                 * sysdeps/posix/tempname.c (__gen_tempname): Change
58958                 attempts_min into a macro.  Use preprocessor to decide how to
58959                 initialize attempts [Coverity CID 67].
58960         2001-11-27  Paul Eggert  <eggert@twinsun.com>
58961                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
58962                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
58963
58964 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58965
58966         * gnulib-tool (func_exit): New function, to allow to pass the
58967         exit status portably through the trap.  Use everywhere.
58968         (--help, --version): Signal a write error.
58969         (trap): catch SIGPIPE, for write errors.
58970         Exit at the end of the trap, with the correct exit status.
58971
58972 2006-09-19  Karl Berry  <karl@gnu.org>
58973
58974         * doc/gnulib.texi: note about the license texinfo files.
58975
58976 2006-09-19  Eric Blake  <ebb9@byu.net>
58977
58978         * gnulib-tool: Avoid space-tab.
58979
58980 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
58981
58982         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
58983         that prevented coreutils 6.1 from building.  Problem reported
58984         by Petter Reinholdtsen.
58985
58986 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
58987
58988         * gnulib-tool (avoidlist): Fix typo that broke options like
58989         --avoid=lock that are used by coreutils bootstrap.
58990
58991 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
58992
58993         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
58994         more systematically.
58995
58996 2006-09-18  Jim Meyering  <jim@meyering.net>
58997
58998         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
58999
59000 2006-09-18  Bruno Haible  <bruno@clisp.org>
59001
59002         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
59003
59004 2006-09-18  Bruno Haible  <bruno@clisp.org>
59005
59006         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
59007         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
59008         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
59009         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
59010         * m4/gettext.m4: Require autoconf >= 2.52.
59011         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
59012         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
59013         of gl_cv_header_inttypes_h.
59014
59015 2006-09-18  Bruno Haible  <bruno@clisp.org>
59016
59017         * lib/javaversion.c: Include configmake.h.
59018
59019 2006-09-18  Bruno Haible  <bruno@clisp.org>
59020
59021         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
59022         avoid that the while loops be executed in a subshell.
59023
59024 2006-09-18  Bruno Haible  <bruno@clisp.org>
59025
59026         * MODULES.html.sh (func_module): Break long lines.
59027         Suggested by Bruce Korb <bkorb@gnu.org>.
59028
59029 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59030
59031         Speed up by a factor of 1.12.
59032         * gnulib-tool (nl): New variable.
59033         (func_import): Rewrite include directive extraction to only read each
59034         directive once.
59035
59036 2006-09-17  Bruno Haible  <bruno@clisp.org>
59037
59038         * modules/javaversion (Makefile.am): Remove DEFS setting.
59039         (Depends-on): Add configmake, for PKGDATADIR definition.
59040
59041 2006-09-17  Bruno Haible  <bruno@clisp.org>
59042
59043         * gnulib-tool (func_create_testdir): Rewrite all files at once.
59044
59045 2006-09-17  Bruno Haible  <bruno@clisp.org>
59046
59047         * gnulib-tool (func_append): New function, stolen from libtool.m4.
59048         (func_modules_transitive_closure, func_modules_add_dummy,
59049         func_modules_to_filelist, func_import, func_create_testdir,
59050         func_create_megatestdir, ...): Use it wherever possible.
59051         Suggested by Ralf Wildenhues.
59052
59053 2006-09-16  Karl Berry  <karl@gnu.org>
59054
59055         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
59056         to avoid sectioning errors.
59057         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
59058         [ifinfo]: blank line after @center-ed titles.
59059         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
59060         Spell FSF address consistently with others.
59061         (These changes approved by rms.)
59062
59063 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59064
59065         Speed up by a factor of 1.61.
59066         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
59067         already checked module names again.
59068
59069 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59070
59071         Speed up by a factor of 1.13.
59072         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
59073         for new_files, and the input to func_add_or_update.
59074
59075 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59076
59077         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
59078         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
59079
59080 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
59081
59082         * modules/mkancesdirs (Depends-on): Add fcntl.
59083         * modules/savewd: New file.
59084         * MODULES.html.sh (File system functions): Add savewd.
59085
59086         * modules/configmake (Makefile.am): Add support for the
59087         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
59088
59089 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
59090
59091         * m4/savewd.m4: New file.
59092
59093 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
59094
59095         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
59096         (dirchownmod): New arg FD.  All callers changed.
59097         Use FD rather than opening the directory ourself, as opening is
59098         now the caller's responsibility.
59099         * lib/dirchownmod.h: Likewise.
59100         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
59101         hosts that require <sys/types.h> before <sys/stat.h>.  Include
59102         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
59103         (test_dir): Remove.
59104         (mkancesdirs): Return length of prefix of FILE that has already
59105         been made, or -2 if there is a child doing the work.  Redo
59106         algorithm so that it is O(N) rather than O(N**2).  Optimize away
59107         ".", and treat ".." specially since it might stray back into
59108         already-created areas.  Use a subprocess if necessary.  New arg
59109         WD; all users changed.  MAKE_DIR function should now return 1
59110         if it creates a directory that is not readable.  Return -2 if
59111         a child process is spun off.
59112         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
59113         Adjust signature to match code.
59114         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
59115         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
59116         all users changed.
59117         * lib/savewd.c, lib/savewd.h: New files.
59118
59119 2006-09-15  Jim Meyering  <jim@meyering.net>
59120
59121         * modules/rename-dest-slash: New module.
59122         * MODULES.html.sh (posix_compat): Add it here.
59123
59124         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
59125
59126 2006-09-15  Jim Meyering  <jim@meyering.net>
59127
59128         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
59129         file.
59130
59131         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
59132
59133 2006-09-15  Jim Meyering  <jim@meyering.net>
59134
59135         * lib/rename-dest-slash.c (has_trailing_slash): Use
59136         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
59137         (rpl_rename_dest_slash): Perform the cheaper trailing slash
59138         test before testing whether SRC is a directory.
59139         Suggestions from Bruno Haible.
59140
59141         Avoid a warning about an unused variable.
59142         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
59143         into the #ifdef block where it's used.
59144
59145         * lib/rename-dest-slash.c: New file.
59146
59147 2006-09-14  Bruno Haible  <bruno@clisp.org>
59148
59149         * lib/allocsa.c: Include <config.h> unconditionally.
59150         * lib/asnprintf.c: Likewise.
59151         * lib/asprintf.c: Likewise.
59152         * lib/c-strcasecmp.c: Likewise.
59153         * lib/c-strcasestr.c: Likewise.
59154         * lib/c-strncasecmp.c: Likewise.
59155         * lib/c-strstr.c: Likewise.
59156         * lib/classpath.c: Likewise.
59157         * lib/clean-temp.c: Likewise.
59158         * lib/concatpath.c: Likewise.
59159         * lib/copy-file.c: Likewise.
59160         * lib/csharpcomp.c: Likewise.
59161         * lib/csharpexec.c: Likewise.
59162         * lib/execute.c: Likewise.
59163         * lib/fatal-signal.c: Likewise.
59164         * lib/findprog.c: Likewise.
59165         * lib/fwriteerror.c: Likewise.
59166         * lib/gl_array_list.c: Likewise.
59167         * lib/gl_array_oset.c: Likewise.
59168         * lib/gl_avltree_list.c: Likewise.
59169         * lib/gl_avltree_oset.c: Likewise.
59170         * lib/gl_avltreehash_list.c: Likewise.
59171         * lib/gl_carray_list.c: Likewise.
59172         * lib/gl_linked_list.c: Likewise.
59173         * lib/gl_linkedhash_list.c: Likewise.
59174         * lib/gl_list.c: Likewise.
59175         * lib/gl_oset.c: Likewise.
59176         * lib/gl_rbtree_list.c: Likewise.
59177         * lib/gl_rbtree_oset.c: Likewise.
59178         * lib/gl_rbtreehash_list.c: Likewise.
59179         * lib/imaxabs.c: Likewise.
59180         * lib/imaxdiv.c: Likewise.
59181         * lib/javacomp.c: Likewise.
59182         * lib/javaexec.c: Likewise.
59183         * lib/javaversion.c: Likewise.
59184         * lib/linebreak.c: Likewise.
59185         * lib/localcharset.c: Likewise.
59186         * lib/lock.c: Likewise.
59187         * lib/mbchar.c: Likewise.
59188         * lib/mbswidth.c: Likewise.
59189         * lib/mkdtemp.c: Likewise.
59190         * lib/pipe.c: Likewise.
59191         * lib/printf-args.c: Likewise.
59192         * lib/printf-parse.c: Likewise.
59193         * lib/progname.c: Likewise.
59194         * lib/progreloc.c: Likewise.
59195         * lib/readlink.c: Likewise.
59196         * lib/sh-quote.c: Likewise.
59197         * lib/stpcpy.c: Likewise.
59198         * lib/stpncpy.c: Likewise.
59199         * lib/strcasecmp.c: Likewise.
59200         * lib/strcasestr.c: Likewise.
59201         * lib/strcspn.c: Likewise.
59202         * lib/striconv.c: Likewise.
59203         * lib/strncasecmp.c: Likewise.
59204         * lib/strnlen1.c: Likewise.
59205         * lib/strstr.c: Likewise.
59206         * lib/strtok_r.c: Likewise.
59207         * lib/tls.c: Likewise.
59208         * lib/tmpdir.c: Likewise.
59209         * lib/unicodeio.c: Likewise.
59210         * lib/unsetenv.c: Likewise.
59211         * lib/vasnprintf.c: Likewise.
59212         * lib/vasprintf.c: Likewise.
59213         * lib/wait-process.c: Likewise.
59214         * lib/xallocsa.c: Likewise.
59215         * lib/xsetenv.c: Likewise.
59216         * lib/xstriconv.c: Likewise.
59217
59218 2006-09-13  Simon Josefsson  <jas@extundo.com>
59219
59220         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
59221         that internally, suggested by Ralf Wildenhues
59222         <Ralf.Wildenhues@gmx.de>.
59223
59224 2006-09-13  Simon Josefsson  <jas@extundo.com>
59225
59226         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
59227         @LIBOBJS@.
59228         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
59229
59230 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
59231
59232         * lib/_fpending.c: Include <config.h> unconditionally, since we no
59233         longer worry about uses that don't define HAVE_CONFIG_H.
59234         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
59235         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
59236         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
59237         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
59238         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
59239         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
59240         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
59241         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
59242         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
59243         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
59244         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
59245         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
59246         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
59247         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
59248         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
59249         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
59250         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
59251         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
59252         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
59253         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
59254         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
59255         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
59256         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
59257         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
59258         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
59259         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
59260         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
59261         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
59262         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
59263         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
59264         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
59265         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
59266         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
59267         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
59268         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
59269         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
59270         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
59271         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
59272         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
59273         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
59274         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
59275         Likewise.
59276
59277 2006-09-13  Eric Blake  <ebb9@byu.net>
59278
59279         * lib/getopt.c: Fix typo in last commit.
59280
59281 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
59282
59283         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
59284         dgettext.
59285
59286 2006-09-12  Jim Meyering  <jim@meyering.net>
59287
59288         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
59289         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
59290         Reported by Nelson H. F. Beebe.
59291
59292 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
59293
59294         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
59295         program_invocation_name and program_invocation_short_name are
59296         initialized.
59297         * lib/argp-namefrob.h: Move declarations of program_invocation_name
59298         and program_invocation_short_name to argp.h, so they are visible
59299         to user programs.
59300         * lib/argp.h: Likewise
59301
59302 2006-09-10  Bruno Haible  <bruno@clisp.org>
59303
59304         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
59305         m4/inttypes_h.m4, m4/uintmax_t.m4.
59306
59307 2006-09-10  Bruno Haible  <bruno@clisp.org>
59308
59309         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
59310         gl_AC_TYPE_UINTMAX_T.
59311
59312 2006-09-10  Bruno Haible  <bruno@clisp.org>
59313
59314         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
59315
59316 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
59317
59318         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
59319         convention.  Text proposed by Bruno Haible.
59320         (struct argp_option): Document the use of N_() wrappers.
59321
59322         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
59323         '\v', and translate the two parts separately, instead of feeding
59324         the whole string to gettext.  This allows to exclude
59325         '\v' from the strings visible to the translator by writing doc
59326         strings as N_("..") "\v" N_("..").
59327
59328 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
59329
59330         * config/srclist.txt: Undo latest change; the bug was fixed.
59331
59332 2006-09-09  Bruno Haible  <bruno@clisp.org>
59333
59334         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
59335         assignments if building a library without libtool.
59336         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
59337         in func_emit_lib_Makefile_am.
59338         (func_import): When building a static library libfoo.a, arrange to
59339         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
59340         (func_create_testdir): Likewise.
59341         * modules/gc (configure.ac, Makefile.am): If building statically,
59342         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
59343         * modules/iconvme (configure.ac, Makefile.am): Likewise.
59344         * modules/striconv (configure.ac, Makefile.am): Likewise.
59345         Based on a suggestion by Ralf Wildenhues.
59346
59347 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
59348
59349         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
59350         Check for unistd.h too, since Autoconf doesn't assume POSIX.
59351         Also:
59352
59353         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
59354         Add year_2050_test to catch glibc bug 2821
59355         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
59356
59357         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
59358         Prefer #ifdef to #if.
59359
59360         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
59361         Return from 'main' instead of calling 'exit'.
59362
59363 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
59364
59365         * lib/mktime.c (guess_time_tm): Fix bug where mktime
59366         returned the maximum time_t value rather than (time_t) -1.
59367         Problem originally reported by William Bardwell
59368         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
59369
59370         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
59371         Moved to here ...
59372         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
59373         ... from here.
59374
59375 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
59376
59377         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
59378         2821 is fixed.
59379
59380 2006-09-08  Jim Meyering  <jim@meyering.net>
59381
59382         Don't make generated files read-only.  That would bother too many
59383         people.  However, do retain the ability to work when targets are
59384         read-only: remove the destination and temporary files before writing
59385         them (when generated via sed or echo), or by using the -f option for
59386         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
59387         * modules/alloca-opt, modules/argz, modules/arpa_inet:
59388         * modules/byteswap, modules/configmake, modules/fcntl:
59389         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
59390         * modules/localcharset, modules/netinet_in, modules/poll:
59391         * modules/stdbool, modules/stdint, modules/sys_select:
59392         * modules/sys_socket, modules/sys_stat, modules/sysexits:
59393
59394 2006-09-08  Jim Meyering  <jim@meyering.net>
59395
59396         Avoid new build failure on FreeBSD 6.0.
59397         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
59398         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
59399         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
59400
59401 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59402
59403         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
59404
59405 2006-09-07  Jim Meyering  <jim@meyering.net>
59406
59407         Fix global typo in last change: use chmod u-w, not chmod u-x.
59408         Spotted by Paul Eggert and Bruce Korb.
59409         * modules/alloca-opt, modules/argz, modules/arpa_inet:
59410         * modules/byteswap, modules/configmake, modules/fcntl:
59411         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
59412         * modules/localcharset, modules/netinet_in, modules/poll:
59413         * modules/stdbool, modules/stdint, modules/sys_select:
59414         * modules/sys_socket, modules/sys_stat, modules/sysexits:
59415
59416 2006-09-06  Jim Meyering  <jim@meyering.net>
59417
59418         Make generated files be read-only.
59419         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
59420         Ensure that each generated file is now read-only.
59421         * modules/argz: Likewise.
59422         * modules/arpa_inet: Likewise.
59423         * modules/byteswap: Likewise.
59424         * modules/configmake: Likewise.
59425         * modules/fcntl: Likewise.
59426         * modules/fnmatch: Likewise.
59427         * modules/getopt: Likewise.
59428         * modules/glob: Likewise.
59429         * modules/inttypes: Likewise.
59430         * modules/netinet_in: Likewise.
59431         * modules/poll: Likewise.
59432         * modules/stdbool: Likewise.
59433         * modules/stdint: Likewise.
59434         * modules/sys_select: Likewise.
59435         * modules/sys_socket: Likewise.
59436         * modules/sys_stat: Likewise.
59437         * modules/sysexits: Likewise.
59438         * modules/localcharset: Same as above, but continue using temporary
59439         file named "t-$@" (why different?) rather than the "$@-t" used
59440         everywhere else.
59441
59442         * modules/sysexits (Makefile.am): Replace literal occurrences
59443         of "sysexit.h" more readable, and more consistent, "$@".
59444
59445 2006-09-06  Bruno Haible  <bruno@clisp.org>
59446
59447         * modules/striconv: New file.
59448         * modules/xstriconv: New file.
59449         * MODULES.html.sh (Internationalization functions): Add striconv,
59450         xstriconv.
59451
59452 2006-09-06  Bruno Haible  <bruno@clisp.org>
59453
59454         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
59455         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
59456         not using libtool correctly.
59457
59458 2006-09-06  Bruno Haible  <bruno@clisp.org>
59459
59460         * lib/striconv.h: New file.
59461         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
59462         iconvstring.c.
59463         * lib/xstriconv.h: New file.
59464         * lib/xstriconv.c: New file.
59465
59466 2006-09-06  Bruno Haible  <bruno@clisp.org>
59467
59468         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
59469         lib_..._LDFLAGS.
59470
59471 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59472
59473         * lib/argz_.h: Sync from Libtool.
59474
59475         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
59476                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
59477
59478         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
59479
59480 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
59481
59482         * modules/trim: New file.
59483
59484 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
59485
59486         * lib/trim.h: New file.
59487         * lib/trim.c: New file.
59488
59489 2006-09-05  Bruno Haible  <bruno@clisp.org>
59490
59491         * MODULES.html.sh (String handling): Add trim.
59492
59493 2006-09-04  Karl Berry  <karl@gnu.org>
59494
59495         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
59496         until next release.
59497
59498 2006-09-03  Bruno Haible  <bruno@clisp.org>
59499
59500         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
59501         correctly.
59502
59503 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
59504
59505         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
59506         not gl_GETLOADAVG.  Omit unneeded semicolons.
59507         Problems reported by Ralf Wildenhues in
59508         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
59509         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
59510         at the end, which is the usual gnulib style.
59511
59512         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
59513         of doing all the work ourselves.
59514         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
59515         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
59516
59517 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
59518
59519         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
59520         Problem reported by Ralf Wildenhues in
59521         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
59522
59523         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
59524         HAVE_STRUCT_STATFS_F_FSTYPENAME.
59525
59526 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
59527
59528         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
59529         yesterday's patch by changing test -n to test -z.
59530
59531 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
59532
59533         * modules/getloadavg (Files): Add m4/getloadavg.m4.
59534         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
59535         the former is now obsolescent.
59536
59537         * modules/chdir-long (Depends-on): Add fcntl.
59538
59539 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
59540
59541         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
59542         obsolescent, and programs should use gnulib instead.
59543         * m4/getloadavg.m4: New file, with contents taken from Autoconf
59544         but with prefixes changed.
59545
59546 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
59547
59548         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
59549         or stdbool.h, because they might not exist while configuring.
59550
59551         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
59552         Don't include unistd.h or limits.h; not needed, since chdir-long.h
59553         does that for us.
59554         (O_DIRECTORY): Remove.
59555
59556 2006-08-31  Eric Blake  <ebb9@byu.net>
59557
59558         * gnulib-tool: Don't let emacs change spaces to TAB.
59559
59560 2006-08-31  Bruno Haible  <bruno@clisp.org>
59561
59562         * gnulib-tool: When calling func_import more than once, do it in a
59563         subshell.
59564         Reported by Eric Blake <ebb9@byu.net>.
59565
59566 2006-08-31  Bruno Haible  <bruno@clisp.org>
59567
59568         * gnulib-tool (nl): Remove variable.
59569         (sed_transform_lib_file): Use more robust test for config-h module.
59570         (func_import): Fix typo in 2006-08-25 patch.
59571
59572 2006-08-31  Bruno Haible  <bruno@clisp.org>
59573
59574         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
59575         specified, augment Makefile.am variables instead of assigning them.
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         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
59584         Check for nanosleep bug.
59585         (LIB_NANOSLEEP): Append clock_gettime library if needed.
59586
59587 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
59588
59589         Work around a bug in both the Linux and SunOS 64-bit kernels:
59590         nanosleep mishandles sleeps for longer than 2**31 seconds.
59591         Problem reported by Frank v Waveren in
59592         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
59593         * lib/nanosleep.c (BILLION): New constant.
59594         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
59595         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
59596         implementation.
59597
59598 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
59599
59600         * modules/nanosleep (Depends-on): Add gettime.
59601
59602 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
59603         and Simon Josefsson  <jas@extundo.com>
59604         and Oskar Liljeblad  <oskar@osk.mine.nu>
59605
59606         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
59607         * gnulib-tool (func_import): New license type 'unmodifiable license
59608         text'.
59609         * modules/fdl: Use it.  Longer description.
59610         * module/gpl, module/lgpl: New files.
59611
59612 2006-08-30  Jim Meyering  <jim@meyering.net>
59613
59614         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
59615         shadowing the parameter.
59616
59617 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59618
59619         Sync from Libtool:
59620
59621         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59622
59623         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
59624         sharing with gnulib.  Report by Eric Blake.
59625
59626 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
59627
59628         * modules/isapipe: New file.
59629         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
59630
59631 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
59632
59633         * modules/configmake (Makefile.am): Add a comment, and omit
59634         the CONFIGMAKE_ prefix from generated macro names.  Suggested
59635         by Bruno Haible.
59636
59637 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
59638
59639         * m4/isapipe.m4: New file.
59640
59641 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
59642
59643         * lib/isapipe.c, lib/isapipe.h: New files.
59644
59645 2006-08-29  Jim Meyering  <jim@meyering.net>
59646
59647         * modules/configmake (Makefile.am): Make configmake.h depend on
59648         Makefile.  Otherwise, a stale configmake.h could hang around.
59649
59650 2006-08-29  Eric Blake  <ebb9@byu.net>
59651
59652         * lib/error.c (error_at_line, print_errno_message): Match libc, after
59653         resolution of upstream bug 3044.
59654
59655 2006-08-29  Bruno Haible  <bruno@clisp.org>
59656
59657         * modules/localcharset (Depends-on): Add configmake.
59658         (Makefile.am): Remove setting of LIBDIR through DEFS.
59659
59660 2006-08-29  Bruno Haible  <bruno@clisp.org>
59661
59662         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
59663         defined.
59664
59665 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
59666
59667         * modules/fcntl: New file.
59668         * modules/chdir-safer (Depends-on): Add fcntl.
59669         * modules/fts: Likewise.
59670         * modules/mkdir-p: Likewise.
59671
59672         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
59673         This undoes the most recent change, since we're now addressing the
59674         problem in a different way.
59675
59676         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
59677         into output, since the output might be called Makefile.am even
59678         if $makefile_name is something different.
59679         (func_import): Use $makefile_am rather than
59680         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
59681         empty.
59682
59683         * modules/inttypes (Files): Add m4/inttypes-h.m4.
59684
59685 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
59686
59687         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
59688         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
59689         recent change to stdint.m4, since we're now addressing the problem in a
59690         different way.
59691
59692 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
59693
59694         * m4/fcntl_h.m4: New file.
59695
59696 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
59697
59698         * lib/fcntl_.h: New file.
59699         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
59700         the fcntl module.
59701         * lib/dirchownmod.c: Likewise.
59702         * lib/fts.c: Likewise.
59703
59704         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
59705         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
59706         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
59707         just before including <inttypes.h>, to avoid circular inclusion.
59708
59709 2006-08-28  Jim Meyering  <jim@meyering.net>
59710
59711         * doc/visibility.texi: Actually read and correct the grammar of the
59712         sentence affected by yesterday's change.
59713
59714 2006-08-28  Eric Blake  <ebb9@byu.net>
59715
59716         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
59717         needs wrapper.
59718
59719 2006-08-28  Eric Blake  <ebb9@byu.net>
59720
59721         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
59722
59723 2006-08-28  Eric Blake  <ebb9@byu.net>
59724
59725         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
59726
59727 2006-08-28  Bruno Haible  <bruno@clisp.org>
59728
59729         * modules/c-strstr: New file, from GNU gettext.
59730         * MODULES.html.sh (String handling): Add c-strstr.
59731
59732 2006-08-28  Bruno Haible  <bruno@clisp.org>
59733
59734         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
59735         macros.
59736         Reported by Eric Blake.
59737
59738 2006-08-28  Bruno Haible  <bruno@clisp.org>
59739
59740         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
59741         (VASNPRINTF): Return a string of length > INT_MAX without failing.
59742         * lib/vasprintf.c: Include errno.h, limits.h.
59743         (EOVERFLOW): New fallback definition.
59744         (vasprintf): Test here whether the string length is > INT_MAX.
59745         * lib/vsnprintf.c: Include errno.h, limits.h.
59746         (EOVERFLOW): New fallback definition.
59747         (vsnprintf): Fix bug when generated string was too long for the buffer.
59748         Test here whether the string length is > INT_MAX.
59749
59750 2006-08-28  Bruno Haible  <bruno@clisp.org>
59751
59752         * lib/inttypes_.h (SCNX*): Remove definitions.
59753         Reported by Eric Blake.
59754
59755 2006-08-28  Bruno Haible  <bruno@clisp.org>
59756
59757         * lib/c-strstr.h: New file, from GNU gettext.
59758         * lib/c-strstr.c: New file, from GNU gettext.
59759
59760 2006-08-28  Bruno Haible  <bruno@clisp.org>
59761
59762         * gnulib-tool: Reorder some statements.
59763
59764 2006-08-28  Bruno Haible  <bruno@clisp.org>
59765
59766         * gnulib-tool: New option --makefile-name.
59767         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
59768         $makefile_name.
59769         (func_import): Write $makefile_name to the cache file, and read it from
59770         there unless explicitly specified. Use $makefile_name as file name
59771         instead of Makefile.am. Adjust the recommendations accordingly.
59772
59773 2006-08-28  Bruno Haible  <bruno@clisp.org>
59774
59775         * gnulib-tool (func_verify_module): Check against misapplying patch.
59776
59777 2006-08-28  Bruno Haible  <bruno@clisp.org>
59778
59779         * gnulib-tool (func_relativize, func_relconcat): New functions.
59780         Give an error if --local-dir is given with --update.
59781         Remove trailing slashes from $local_gnulib_dir.
59782         (func_import): Store the relativized $local_gnulib_dir in
59783         gnulib-cache.m4, and read it from there if not specified explicitly.
59784
59785 2006-08-28  Bruno Haible  <bruno@clisp.org>
59786
59787         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
59788         is the current directory. Respect also $local_gnulib_dir.
59789
59790 2006-08-28  Bruno Haible  <bruno@clisp.org>
59791             Simon Josefsson  <jas@extundo.com>
59792
59793         BeOS portability.
59794         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
59795
59796 2006-08-27  Jim Meyering  <jim@meyering.net>
59797
59798         * doc/visibility.texi: Remove duplicate word: "pointer".
59799
59800 2006-08-26  Bruno Haible  <bruno@clisp.org>
59801
59802         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
59803         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
59804         (Makefile.am): Create inttypes.h from inttypes_.h.
59805         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
59806
59807         * modules/imaxabs: New file.
59808
59809         * modules/imaxdiv: New file.
59810
59811 2006-08-26  Bruno Haible  <bruno@clisp.org>
59812
59813         * m4/inttypes.m4: New file.
59814         * m4/_inttypes_h.m4: Remove file.
59815         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
59816         PRI_MACROS_BROKEN.
59817         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
59818
59819         * m4/imaxabs.m4: New file.
59820
59821         * m4/imaxdiv.m4: New file.
59822
59823 2006-08-26  Bruno Haible  <bruno@clisp.org>
59824
59825         * lib/inttypes_.h: New file.
59826         * lib/inttypes.h: Remove file.
59827         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
59828
59829         * lib/imaxabs.c: New file.
59830
59831         * lib/imaxdiv.c: New file.
59832
59833 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
59834
59835         New config-h module, so that "make" output needn't be cluttered
59836         by -DHAVE_CONFIG_H.
59837         * MODULES.html.sh (Support for building libraries and executables):
59838         Add config-h.
59839         * modules/config-h: New file.
59840         * gnulib-tool (nl, sed_transform_lib_file): New vars.
59841         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
59842         the config-h module is used.
59843
59844         New configmake module, so that "make" output needn't be cluttered
59845         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
59846         * MODULES.html.sh (Support for building libraries and executables):
59847         Add configmake.
59848         * modules/configmake: New file.
59849
59850 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
59851
59852         * m4/config-h.m4: New file.
59853
59854 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
59855
59856         * config/srclist.txt: Add elisp-comp.
59857
59858 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
59859
59860         * MODULES.html.sh (Support for building libraries and executables):
59861         Add elisp-comp.
59862         * build-aux/elisp-comp: New file.
59863         * modules/elisp-comp: New file.
59864
59865 2006-08-24  Bruno Haible  <bruno@clisp.org>
59866
59867         * gnulib-tool (func_create_testdir): Use non-default values of
59868         sourcebase and m4base.
59869
59870 2006-08-24  Bruno Haible  <bruno@clisp.org>
59871
59872         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
59873         HTML structure.
59874
59875 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
59876
59877         * modules/openat (Depends-on): Add lchown.
59878
59879 2006-08-23  Bruno Haible  <bruno@clisp.org>
59880
59881         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
59882         of gl_LOCK_EARLY instead of gl_LOCK.
59883
59884 2006-08-23  Bruno Haible  <bruno@clisp.org>
59885
59886         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
59887         on OSF/1 to no.
59888         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
59889
59890 2006-08-23  Bruno Haible  <bruno@clisp.org>
59891
59892         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
59893         as unusable.
59894
59895         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
59896         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
59897         (gl_LOCK): New macro.
59898
59899 2006-08-22  Simon Josefsson  <jas@extundo.com>
59900
59901         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
59902         to md5 module.
59903
59904 2006-08-22  Simon Josefsson  <jas@extundo.com>
59905
59906         * MODULES.html.sh: Add "Support for maintaining and release
59907         projects".
59908
59909         * build-aux/gnupload: New file, from coreutils.
59910
59911 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
59912
59913         Avoid the need for AC_LIBSOURCES in m4 macros.
59914         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
59915         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
59916         * modules/check-version (EXTRA_DIST): Add check-version.h.
59917         * modules/crc (EXTRA_DIST): Add crc.h.
59918         * modules/des (EXTRA_DIST): Add des.h.
59919         * modules/gc (EXTRA_DIST): Add gc.h.
59920         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
59921         * modules/getline (EXTRA_DIST): Add getline.h.
59922         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
59923         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
59924         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
59925         * modules/md2 (EXTRA_DIST): Add md2.h.
59926         * modules/md4 (EXTRA_DIST): Add md4.h.
59927         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
59928         * modules/read-file (EXTRA_DIST): Add read-file.h.
59929         * modules/readline (EXTRA_DIST): Add readline.h.
59930         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
59931         rijndael-api-fst.h.
59932
59933 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
59934
59935         * m4/rijndael.m4 (gl_ARCFOUR):
59936         * m4/arctwo.m4 (gl_ARCTWO):
59937         * m4/check-version.m4 (gl_CHECK_VERSION):
59938         * m4/crc.m4 (gl_CRC):
59939         * m4/des.m4 (gl_DES):
59940         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
59941         * m4/gc.m4 (gl_GC):
59942         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
59943         * m4/getline.m4 (gl_FUNC_GETLINE):
59944         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
59945         * m4/hmac-md5.m4 (gl_HMAC_MD5):
59946         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
59947         * m4/md2.m4 (gl_MD2):
59948         * m4/md4.m4 (gl_MD4):
59949         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
59950         * m4/read-file.m4 (gl_FUNC_READ_FILE):
59951         * m4/readline.m4 (gl_FUNC_READLINE):
59952         * m4/rijndael.m4 (gl_RIJNDAEL):
59953         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
59954         to get the necessary .h files and whatnot.
59955
59956 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
59957
59958         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
59959         gnulib rather than the other way around.
59960         * config/srclistvars.sh (COREUTILS): Remove.
59961
59962 2006-08-22  Jim Meyering  <jim@meyering.net>
59963
59964         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
59965
59966         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
59967
59968 2006-08-22  Eric Blake  <ebb9@byu.net>
59969
59970         * modules/regexprops-generic: New file.
59971         * MODULES.html.sh (Support for building documentation): List it.
59972
59973 2006-08-22  Eric Blake  <ebb9@byu.net>
59974
59975         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
59976         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
59977         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
59978         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
59979
59980 2006-08-22  Bruno Haible  <bruno@clisp.org>
59981
59982         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
59983         and lib_LTLIBRARIES like the other lib_* variables.
59984
59985 2006-08-22  Bruno Haible  <bruno@clisp.org>
59986
59987         * build-aux/x-to-1.in: New file, from GNU gettext.
59988
59989 2006-08-22  Bruno Haible  <bruno@clisp.org>
59990
59991         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
59992         <utmpx.h> exists.
59993
59994 2006-08-22  Bruno Haible  <bruno@clisp.org>
59995
59996         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
59997         <utmpx.h> exists.
59998
59999 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
60000
60001         BeOS portability.
60002         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
60003         exist.
60004         Problem reported by Bruno Haible.
60005
60006 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
60007
60008         Avoid the need for AC_LIBSOURCES in m4 macros.
60009         * modules/acl (EXTRA_DIST): Add acl.h.
60010         * modules/argmatch (Files): Add m4/argmatch.m4.
60011         (configure.ac): Add gl_ARGMATCH.
60012         (EXTRA_DIST): Renamed from lib_SOURCES, for
60013         consistency with the other modules.  Remove argmatch.c.
60014         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
60015         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
60016         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
60017         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
60018         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
60019         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
60020         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
60021         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
60022         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
60023         * modules/closeout (EXTRA_DIST): Add closeout.h.
60024         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
60025         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
60026         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
60027         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
60028         dirname.h; remove basename.c and stripslash.c.
60029         * modules/exclude (EXTRA_DIST): Add exclude.h.
60030         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
60031         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
60032         * modules/file-type (EXTRA_DIST): Add file-type.h.
60033         * modules/filemode (EXTRA_DIST): Add filemode.h.
60034         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
60035         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
60036         * modules/fpending (EXTRA_DIST): Add __fpending.h.
60037         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
60038         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
60039         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
60040         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
60041         * modules/getdate (EXTRA_DIST): Add getdate.c.
60042         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
60043         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
60044         * modules/getpass (EXTRA_DIST): Add getpass.h.
60045         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
60046         * modules/group-member (EXTRA_DIST): Add group-member.h.
60047         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
60048         * modules/hash (EXTRA_DIST): Add hash.h.
60049         * modules/human (EXTRA_DIST): Add human.h.
60050         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
60051         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
60052         * modules/lchown (EXTRA_DIST): Add lchown.h.
60053         * modules/long-options (EXTRA_DIST): Add long-options.h.
60054         * modules/lstat (EXTRA_DIST): Add lstat.h.
60055         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
60056         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
60057         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
60058         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
60059         * modules/memxor (EXTRA_DIST): Add memxor.h.
60060         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
60061         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
60062         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
60063         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
60064         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
60065         * modules/physmem (EXTRA_DIST): Add physmem.h.
60066         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
60067         * modules/posixver (EXTRA_DIST): Add posixver.h.
60068         * modules/quote (EXTRA_DIST): Add quote.h.
60069         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
60070         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
60071         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
60072         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
60073         regex_internal.h regexec.c.
60074         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
60075         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
60076         * modules/same (EXTRA_DIST): Add same.h.
60077         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
60078         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
60079         * modules/savedir (EXTRA_DIST): Add savedir.h.
60080         * modules/sha1 (EXTRA_DIST): Add sha1.h.
60081         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
60082         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
60083         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
60084         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
60085         * modules/strdup (EXTRA_DIST): Add strdup.h.
60086         * modules/strftime (EXTRA_DIST): Add strftime.h.
60087         * modules/strndup (EXTRA_DIST): Add strndup.h.
60088         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
60089         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
60090         * modules/time_r (EXTRA_DIST): Add time_r.h.
60091         * modules/timespec (EXTRA_DIST): Add timespec.h.
60092         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
60093         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
60094         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
60095         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
60096         * modules/userspec (EXTRA_DIST): Add userspec.h.
60097         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
60098         * modules/utimens (EXTRA_DIST): Add utimens.h.
60099         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
60100         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
60101         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
60102         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
60103         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
60104         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
60105         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
60106         * modules/yesno (EXTRA_DIST): Add yesno.h.
60107
60108 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
60109
60110         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
60111
60112         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
60113         * m4/dev-ino.m4, same-inode.m4: Remove.
60114
60115         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
60116         * m4/acl.m4 (AC_FUNC_ACL):
60117         * m4/backupfile.m4 (gl_BACKUPFILE):
60118         * m4/c-strtod.m4 (gl_C99_STRTOLD):
60119         * m4/canon-host.m4 (gl_CANON_HOST):
60120         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
60121         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
60122         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
60123         * m4/cloexec.m4 (gl_CLOEXEC):
60124         * m4/close-stream.m4 (gl_CLOSE_STREAM):
60125         * m4/closeout.m4 (gl_CLOSEOUT):
60126         * m4/dirfd.m4 (gl_FUNC_DIRFD):
60127         * m4/dirname.m4 (gl_DIRNAME):
60128         * m4/exclude.m4 (gl_EXCLUDE):
60129         * m4/exitfail.m4 (gl_EXITFAIL):
60130         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
60131         * m4/file-type.m4 (gl_FILE_TYPE):
60132         * m4/filemode.m4 (gl_FILEMODE):
60133         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
60134         * m4/fpending.m4 (gl_FUNC_FPENDING):
60135         * m4/fprintftime.m4 (gl_FPRINTFTIME):
60136         * m4/fts.m4 (gl_FUNC_FTS):
60137         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
60138         * m4/getdate.m4 (gl_GETDATE):
60139         * m4/gethrxtime.m4 (gl_GETHRXTIME):
60140         * m4/getpagesize.m4 (gl_GETPAGESIZE):
60141         * m4/getpass.m4 (gl_FUNC_GETPASS):
60142         * m4/gettime.m4 (gl_GETTIME):
60143         * m4/getugroups.m4 (gl_GETUGROUPS):
60144         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
60145         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
60146         * m4/hard-locale.m4 (gl_HARD_LOCALE):
60147         * m4/hash.m4 (gl_HASH):
60148         * m4/idcache.m4 (gl_IDCACHE):
60149         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
60150         * m4/lchown.m4 (gl_FUNC_LCHOWN):
60151         * m4/long-options.m4 (gl_LONG_OPTIONS):
60152         * m4/lstat.m4 (gl_FUNC_LSTAT):
60153         * m4/md5.m4 (gl_MD5):
60154         * m4/memcasecmp.m4 (gl_MEMCASECMP):
60155         * m4/memcoll.m4 (gl_MEMCOLL):
60156         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
60157         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
60158         * m4/memxor.m4 (gl_MEMXOR):
60159         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
60160         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
60161         * m4/modechange.m4 (gl_MODECHANGE):
60162         * m4/mountlist.m4 (gl_MOUNTLIST):
60163         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
60164         * m4/openat.m4 (gl_FUNC_OPENAT):
60165         * m4/pathmax.m4 (gl_PATHMAX):
60166         * m4/physmem.m4 (gl_PHYSMEM):
60167         * m4/posixtm.m4 (gl_POSIXTM):
60168         * m4/posixver.m4 (gl_POSIXVER):
60169         * m4/quote.m4 (gl_QUOTE):
60170         * m4/quotearg.m4 (gl_QUOTEARG):
60171         * m4/readtokens.m4 (gl_READTOKENS):
60172         * m4/readutmp.m4 (gl_READUTMP):
60173         * m4/regex.m4 (gl_REGEX):
60174         * m4/safe-read.m4 (gl_SAFE_READ):
60175         * m4/safe-write.m4 (gl_SAFE_WRITE):
60176         * m4/same.m4 (gl_SAME):
60177         * m4/save-cwd.m4 (gl_SAVE_CWD):
60178         * m4/savedir.m4 (gl_SAVEDIR):
60179         * m4/settime.m4 (gl_SETTIME):
60180         * m4/sha1.m4 (gl_SHA1):
60181         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
60182         * m4/stat-macros.m4 (gl_STAT_MACROS):
60183         * m4/stat-time.m4 (gl_STAT_TIME):
60184         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
60185         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
60186         * m4/strdup.m4 (gl_FUNC_STRDUP):
60187         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
60188         * m4/strndup.m4 (gl_FUNC_STRNDUP):
60189         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
60190         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
60191         * m4/time_r.m4 (gl_TIME_R):
60192         * m4/timespec.m4 (gl_TIMESPEC):
60193         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
60194         * m4/unlinkdir.m4 (gl_UNLINKDIR):
60195         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
60196         * m4/userspec.m4 (gl_USERSPEC):
60197         * m4/utimecmp.m4 (gl_UTIMECMP):
60198         * m4/utimens.m4 (gl_UTIMENS):
60199         * m4/xalloc.m4 (gl_XALLOC):
60200         * m4/xgetcwd.m4 (gl_XGETCWD):
60201         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
60202         * m4/xreadlink.m4 (gl_XREADLINK):
60203         * m4/xstrtod.m4 (gl_XSTRTOD):
60204         * m4/yesno.m4 (gl_YESNO):
60205         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
60206         to get the necessary .h files and whatnot.
60207
60208 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
60209             Bruno Haible  <bruno@clisp.org>
60210
60211         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
60212         /bin/sh understanding of '!' conditional negation.
60213
60214 2006-08-21  Jim Meyering  <jim@meyering.net>
60215
60216         * modules/openat (Depends-on): Really alphabetize.
60217
60218         * modules/acl (Depends-on): Add error and quote.
60219
60220         * check-module (find_included_lib_files): Add at-func.c to the
60221         ok-to-include-more-than-once white list.
60222
60223         * modules/openat (Depends-on): Add lstat.  Alphabetize.
60224
60225 2006-08-21  Bruno Haible  <bruno@clisp.org>
60226
60227         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
60228         Emit a pkgdata_DATA variable only if some snippets add contents to it.
60229         Reported by Martin Lambers <marlam@marlam.de>.
60230
60231 2006-08-21  Bruno Haible  <bruno@clisp.org>
60232
60233         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
60234         specify an installation location, don't emit a noinst_LIBRARIES or
60235         noinst_LTLIBRARIES assignment.
60236
60237 2006-08-21  Bruno Haible  <bruno@clisp.org>
60238
60239         BeOS portability.
60240         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
60241         BeOS has mbrtowc() but no <wctype.h>.
60242
60243 2006-08-21  Bruno Haible  <bruno@clisp.org>
60244
60245         BeOS portability.
60246         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
60247         exist.
60248
60249 2006-08-21  Bruno Haible  <bruno@clisp.org>
60250
60251         BeOS portability.
60252         * lib/mbchar.h: Include <wctype.h> only if it exists.
60253
60254 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
60255
60256         Remove files that are no longer needed by their respective modules.
60257         * m4/obstack.m4: Remove.
60258         * m4/strerror_r.m4: Remove.
60259         * m4/uint32_t.m4: Remove.
60260         * m4/uintptr_t.m4: Remove.
60261         * m4/ullong_max.m4: Remove.
60262         * m4/xstrtoimax.m4: Remove.
60263         * m4/xstrtoumax.m4: Remove.
60264
60265         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
60266         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
60267         dependencies now capture this.
60268
60269         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
60270         Do not use AC_LIBSOURCES, since gnulib modules now do this.
60271         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
60272         * m4/human.m4 (gl_HUMAN): Likewise.
60273         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
60274         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
60275
60276         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
60277
60278         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
60279         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
60280         stdint.
60281         * m4/human.m4 (gl_HUMAN): Likewise.
60282         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
60283         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
60284         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
60285         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
60286         * m4/xstrtol (gl_XSTRTOL): Likewise.
60287
60288         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
60289         AC_TYPE_LONG_LONG_INT.
60290         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
60291         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
60292         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
60293         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
60294
60295         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
60296         on stdbool.
60297
60298         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
60299         (gl_PREREQ_XSTRTOUL): Remove.
60300
60301         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
60302
60303         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
60304         mode.
60305
60306 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
60307
60308         Add and change modules to make it easier for coreutils to use
60309         gnulib-tool.
60310         * modules/backupfile (Files): Remove m4/d-ino.m4.
60311         (Depends-on): Add d-ino.
60312         * modules/cycle-check (Depends-on): Add stdint.
60313         (lib_SOURCES): Add cycle-check.h.
60314         * modules/d-ino: New module.
60315         * modules/d-type: New module.
60316         * modules/error (Files): Remove m4/strerror_r.m4.
60317         * modules/filemode (Files): Add m4/st_dm_mode.m4.
60318         * modules/fsuage (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 fsusage.h.
60322         * modules/getcwd (Files): Remove d-ino.m4.
60323         (Depends-on): Add d-ino.
60324         * modules/getndelim2 (Depends-on): Add stdint.
60325         * modules/glob (Files): Remove m4/d-type.m4.
60326         (Depends-on): Add d-type.
60327         * modules/host-os: New module.
60328         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
60329         m4/inttypes_h.m4, m4/uintmax_t.m4.
60330         * Depends-on: Add stdint.
60331         (lib_SOURCES): Add human.h.
60332         * modules/inttostr (Files): Remove m4/intmax_t.m4,
60333         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
60334         m4/uintmax_t.m4, m4/ulonglong.m4.
60335         (Depends-on): Add stdint.
60336         (EXTRA_DIST): Add inttostr.h.
60337         * modules/lchmod: New module.
60338         * modules/link-follow: New module.
60339         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
60340         (Depends-on): Add lchmod.
60341         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
60342         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
60343         (Depends-on): Add stdint.
60344         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
60345         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
60346         (Depends-on): Add stdint.
60347         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
60348         * modules/perl: New module.
60349         * modules/regex (Depends-on): Add stdint.
60350         * modules/rmdir-errno: New module.
60351         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
60352         m4/intmax_t.m4.
60353         (Depends-on): Add stdint.
60354         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
60355         m4/uintmax_t.m4.
60356         (Depends-on): Add stdint.
60357         * modules/unlink-busy: New module.
60358         * modules/utimecmp (Depends-on): Add stdint.
60359         * modules/uptime: New module.
60360         * modules/winsz-ioctl: New module.
60361         * modules/winsz-termios: New module.
60362         * modules/xnanosleep (Depends-on): Add nanosleep.
60363         * modules/ullong_max: Remove.
60364         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
60365         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
60366         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
60367         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
60368         (Depends-on): Add inttypes.
60369         (lib_SOURCES): Add xstrtol.h.
60370         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
60371         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
60372         * MODULES.html.sh: Move 'assert' into the assert section.
60373         Move 'dummy' into the linking section.
60374         Remove ullong_max.
60375         Add section for compatibility checks for POSIX:2001 functions,
60376         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
60377         winsz-ioctl, and winsz-termios into it.
60378         Add lchmod.
60379         Add top-level Misc section and put host-os, perl, and uptime
60380         into it.
60381
60382 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
60383
60384         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
60385         now assume the stdint module.  Do not include inttypes.h.
60386         * lib/fsusage.h: Likewise.
60387         * lib/getndelim2.c: Likewise.
60388         * lib/human.h: Likewise.
60389         * lib/inttostr.h: Likewise.
60390         * lib/obstack.c: Likewise.
60391         * lib/regex_internal.h: Likewise.
60392         * lib/tempname.c: Likewise.
60393         * lib/utimecmp.c: Likewise.
60394         * lib/xstrtol.h: Likewise.
60395
60396         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
60397
60398         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
60399         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
60400         * lib/xtime.h: Likewise.
60401
60402 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
60403
60404         * modules/openat (Files): Add lib/fchmodat.c.
60405         Fixes problem reported by Jay Youngman.
60406
60407 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
60408
60409         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
60410         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
60411
60412 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
60413             Bruno Haible  <bruno@clisp.org>
60414
60415         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
60416         and is a script that invokes bison. Tighten the code. Add comments.
60417
60418 2006-08-18  Jim Meyering  <jim@meyering.net>
60419
60420         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
60421         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
60422         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
60423         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
60424
60425 2006-08-18  Bruno Haible  <bruno@clisp.org>
60426
60427         * modules/bison-i18n: New file.
60428         * MODULES.html.sh (Internationalization functions): Add it.
60429
60430 2006-08-18  Bruno Haible  <bruno@clisp.org>
60431
60432         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
60433         sys/statvfs.h. When getmntinfo was found, check its declaration and
60434         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
60435
60436 2006-08-18  Bruno Haible  <bruno@clisp.org>
60437
60438         * m4/bison-i18n.m4: New file, from bison.
60439
60440 2006-08-18  Bruno Haible  <bruno@clisp.org>
60441
60442         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
60443         (ME_DUMMY): Treat "kernfs" as a dummy.
60444         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
60445
60446 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
60447
60448         Update from coreutils.
60449
60450         2006-08-15  Jim Meyering  <jim@meyering.net>
60451
60452         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
60453
60454         2006-01-17  Jim Meyering  <jim@meyering.net>
60455
60456         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
60457
60458         2006-01-11  Jim Meyering  <jim@meyering.net>
60459
60460         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
60461         Check for the lchmod function.
60462
60463 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
60464
60465         Update from coreutils.
60466
60467         * lib/__fpending.h: Add copyright notice.
60468         * lib/fprintftime.h: Likewise.
60469         * lib/savedir.c: Use (C) in copyright notice.
60470         * lib/savedir.h: Likewise.
60471
60472         2006-08-15  Jim Meyering  <jim@meyering.net>
60473
60474         * lib/at-func.c: New file, with the logic of all emulated at-functions.
60475         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
60476         in support of the EXPECTED_ERRNO macro.
60477         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
60478         definitions.  Instead, define the appropriate symbols and include
60479         "at-func.c".
60480         * lib/mkdirat.c (mkdirat): Likewise.
60481         * lib/fchmodat.c (fchmodat): Likewise.
60482         (ENOSYS): Remove definition.
60483         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
60484         it.  Don't include "unistd--.h" -- it wasn't ever used.
60485
60486         2006-01-17  Jim Meyering  <jim@meyering.net>
60487
60488         Rewrite fts.c not to change the current working directory,
60489         by using openat, fstatat, fdopendir, etc..
60490
60491         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
60492         (HAVE_OPENAT_SUPPORT): Define.
60493         [_LIBC] (fchdir): Don't undef or define; no longer used.
60494         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
60495         Now, this `function' always succeeds, and consumes its file descriptor
60496         parameter -- so callers must not close such FDs.  Update callers.
60497         (diropen_fd, opendirat, cwd_advance_fd): New functions.
60498         (diropen): Add parameter, SP.  Adjust all callers.
60499         Implement using diropen_fd, rather than open.
60500         (fts_open): Initialize new member, fts_cwd_fd.
60501         Remove fts_rft-setting code.
60502         (fts_close): Close fts_cwd_fd, if necessary.
60503         (__opendir2): Define in terms of opendir or opendirat,
60504         depending on whether the FST_NOCHDIR flag is set.
60505         (fts_build): Since fts_safe_changedir consumes its FD, and since
60506         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
60507         and close the dup'd file descriptor upon failure.
60508         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
60509         (fts_safe_changedir): Tweak semantics to reflect that this function
60510         now calls cwd_advance_fd and hence consumes its FD argument.
60511         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
60512         [struct FTS] (fts_rft): Remove now-unused member.
60513         [struct FTS] (fts_cycle.state): Improve comment.
60514
60515         * lib/openat.c (openat_needs_fchdir): New function.
60516         * lib/openat.h (openat_needs_fchdir): Declare it.
60517
60518 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
60519
60520         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
60521         Problem and fix reported by Pádraig Brady in
60522         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
60523
60524 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
60525
60526         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
60527
60528 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
60529
60530         * lib/memcoll.c (memcoll): Optimize for the common case where the
60531         arguments are bytewise equal.
60532
60533 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
60534
60535         * doc/regexprops-generic.texi: Add a copyright notice.
60536
60537 2006-08-15  Bruno Haible  <bruno@clisp.org>
60538
60539         * modules/tmpdir (License): Change to LGPL.
60540
60541 2006-08-15  Bruno Haible  <bruno@clisp.org>
60542
60543         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
60544         module.
60545
60546 2006-08-14  Simon Josefsson  <jas@extundo.com>
60547
60548         * config/srclist.txt: Add gnupload.
60549
60550 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
60551
60552         Change copyright notice from LGPL 2 to GPL 2, since that's the
60553         standard form used in the gnulib repository.
60554         * tests/test-lock.c: Likewise.
60555         * tests/test-stdint.c: Likewise.
60556         * tests/test-tls.c: Likewise.
60557
60558         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
60559         prelude-manager.  User shorter URLs for GNU projects, without '?'.
60560         Add copyright notice.
60561
60562         * check-module: Add copyright notice.  Output a copyright
60563         notice if "--version" is specified.
60564         * modules/COPYING: New file.
60565         * tests/test-getaddrinfo.c: Add copyright notice.
60566         * tests/test-verify.c: Likewise.
60567
60568 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
60569
60570         Change copyright notice from LGPL 2 to GPL 2, since that's the
60571         standard form used in the gnulib repository.
60572         * lib/lock.c: LGPL -> GPL.
60573         * lib/lock.h: Likewise.
60574         * lib/strnlen1.c: Likewise.
60575         * lib/strnlen1.h: Likewise.
60576         * lib/tls.c: Likewise.
60577         * lib/tls.h: Likewise.
60578         * lib/tmpdir.c: Likewise.
60579
60580         * lib/TODO: Remove; this belongs only in coreutils.
60581
60582 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
60583
60584         Add copyright notices to long-enough files that lack them, since
60585         otherwise the files aren't clearly free.  Use the same notice that
60586         getdate.texi already uses.
60587         * doc/alloca-opt.texi: Add copyright notice.
60588         * doc/alloca.texi: Likewise.
60589         * doc/ctime.texi: Likewise.
60590         * doc/functions.texi: Likewise.
60591         * doc/gcd.texi: Likewise.
60592         * doc/gnulib-tool.texi: Likewise.
60593         * doc/inet_ntoa.texi: Likewise.
60594         * doc/visibility.texi: Likewise.
60595
60596         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
60597         * doc/quote.texi: Add copyright notice.
60598
60599         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
60600         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
60601         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
60602         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
60603         is now obsolete, and give a pointer to the Sun list.
60604         Add copyright notice.
60605
60606 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
60607
60608         * config/srclistvars.sh: Add copyright notice.
60609
60610 2006-08-14  Eric Blake  <ebb9@byu.net>
60611
60612         Import the following change from libc:
60613
60614         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
60615
60616         Upstream bug 2997.
60617         * lib/misc/error.c: Add space between program name and message if file
60618         name is missing.
60619
60620 2006-08-12  Karl Berry  <karl@gnu.org>
60621
60622         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
60623         remove, these originate in gnulib now.
60624
60625 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60626
60627         * doc/Makefile (standards.info standards.html standards.dvi):
60628         Also depend on make-stds.texi.
60629
60630 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
60631
60632         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
60633         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
60634
60635         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
60636         in wchar_t.  Problem reported by Eric Blake.
60637
60638         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
60639         LEN is smaller than SIZE.  Suggested by Bruno Haible.
60640         Also, help the compiler to keep LEN in a register.
60641
60642 2006-08-11  Eric Blake  <ebb9@byu.net>
60643
60644         * users.txt: Sort.  Add tar.
60645
60646 2006-08-11  Bruno Haible  <bruno@clisp.org>
60647
60648         * users.txt: New file.
60649
60650 2006-08-11  Bruno Haible  <bruno@clisp.org>
60651
60652         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
60653         before <wchar.h>. Needed for OSF/1 and BSD/OS.
60654
60655 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
60656
60657         * modules/snprintf (Depends-on): Remove minmax.
60658         (Maintainer): Add self and Bruno.
60659
60660 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
60661
60662         * lib/.cppi-disable: Add snprintf.h, socket_.h.
60663         * lib/snprintf.c: Include <errno.h> and <limits.h>.
60664         (EOVERFLOW): Define if the system does not.
60665         Do not include "minmax.h"; it wasn't used.
60666         (snprintf): Don't assume size_t promotes to an unsigned type.
60667         Fix bug when generated string was too long for the buffer: the
60668         buffer's contents are supposed to be the initial prefix of the
60669         output.  Don't assume vasnprintf returns EOVERFLOW if the size
60670         exceeds INT_MAX; do the check ourselves.
60671
60672         Import the following changes from libc:
60673
60674         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
60675
60676         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
60677         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
60678         set wc to the byte which couldn't be converted.
60679         (re_string_reconstruct): Don't clear valid_raw_len before calling
60680         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
60681         tip_context using re_string_context_at.
60682
60683         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
60684
60685         * lib/posix/regex.h: g++ still cannot handled [restrict].
60686
60687         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
60688
60689         * lib/posix/regex.h: Remove special handling for VMS.
60690
60691 2006-08-10  Jim Meyering  <jim@meyering.net>
60692
60693         * modules/same-inode: New module.
60694         * modules/dev-ino: New module.
60695         * modules/cycle-check: Depend on these modules, rather than simply
60696         including their .h files.
60697         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
60698         required via m4/cycle-check.m4.
60699         * modules/same: Depend on new same-inode module, rather than
60700         including same-inode.h.
60701         * modules/chdir-safer: New file.
60702
60703         * modules/chown (Depends-on): Add stat-macros.
60704
60705 2006-08-10  Jim Meyering  <jim@meyering.net>
60706
60707         * m4/cycle-check.m4: New file.
60708         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
60709         * m4/dev-ino.m4, m4/same-inode.m4: New files.
60710
60711 2006-08-10  Eric Blake  <ebb9@byu.net>
60712
60713         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
60714         in from original proposal.
60715
60716 2006-08-10  Eric Blake  <ebb9@byu.net>
60717         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
60718
60719         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
60720         namespace.
60721
60722 2006-08-10  Bruno Haible  <bruno@clisp.org>
60723
60724         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
60725         as well.
60726
60727 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
60728
60729         Sync from coreutils.
60730
60731         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
60732
60733         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
60734         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
60735
60736 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
60737
60738         * modules/restrict: Remove; no longer needed now that we assume
60739         Autoconf 2.59 or later.
60740         * MODULES.html.sh: Remove 'restrict'.
60741         * modules/argp (Depends-on): Remove 'restrict'.
60742         * modules/base64 (Depends-on): Likewise.
60743         * modules/gc (Depends-on): Likewise.
60744         * modules/getaddrinfo (Depends-on): Likewise.
60745         * modules/glob (Depends-on): Likewise.
60746         * modules/inet_ntop (Depends-on): Likewise.
60747         * modules/inet_pton (Depends-on): Likewise.
60748         * modules/memxor (Depends-on): Likewise.
60749         * modules/regex (Depends-on): Likewise.
60750         * modules/strtok_r (Depends-on): Likewise.
60751         * modules/time_r (Depends-on): Likewise.
60752
60753 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
60754
60755         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
60756         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
60757         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
60758         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
60759         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
60760         * m4/memxor.m4 (gl_MEMXOR): Likewise.
60761         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
60762         gl_C_RESTRICT replaced by AC_C_RESTRICT.
60763
60764         Merge from coreutils.
60765         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
60766         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
60767         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
60768         * m4/time_r.m4 (gl_TIME_R): Likewise.
60769
60770 2006-08-09  Karl Berry  <karl@gnu.org>
60771
60772         * config/srclist.txt: no more gettext-tools, per Bruno.
60773
60774 2006-08-08  Eric Blake  <ebb9@byu.net>
60775
60776         * modules/verror: New module.
60777         * MODULES.html.sh: Document it.
60778
60779 2006-08-08  Eric Blake  <ebb9@byu.net>
60780
60781         * lib/verror.h, lib/verror.c: New files.
60782
60783 2006-08-08  Eric Blake  <ebb9@byu.net>
60784
60785         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
60786         verror_at_line output complies with GNU Coding Standards even when
60787         file is NULL.
60788
60789 2006-08-07  Bruno Haible  <bruno@clisp.org>
60790
60791         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
60792         versions of AIX.
60793         Reported by Ralf Wildenhues.
60794
60795 2006-08-07  Bruno Haible  <bruno@clisp.org>
60796
60797         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
60798         in an AC_DEFUN. Needed so that the autoconf snippets can use
60799         AC_REQUIRE.
60800
60801 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60802
60803         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
60804         Initialize pkgdata_DATA.
60805         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
60806         overriding it.
60807
60808 2006-08-06  Eric Blake  <ebb9@byu.net>
60809
60810         * lib/error.h: Fold in some upstream changes from glibc.
60811         * lib/error.c: Likewise.
60812
60813 2006-08-04  Bruno Haible  <bruno@clisp.org>
60814
60815         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
60816         Make the mostlyclean-local rule depend on mostlyclean-generic.
60817         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
60818
60819 2006-07-31  Bruno Haible  <bruno@clisp.org>
60820
60821         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
60822         <stdlib.h>, <string.h>.
60823
60824 2006-07-30  Bruno Haible  <bruno@clisp.org>
60825
60826         * modules/readlink (License): Change to LGPL.
60827
60828 2006-07-30  Bruno Haible  <bruno@clisp.org>
60829
60830         * modules/javaversion (Makefile.am): Distribute javaversion.java and
60831         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
60832         set PKGDATADIR to point to it.
60833
60834 2006-07-30  Bruno Haible  <bruno@clisp.org>
60835
60836         * modules/csharpexec (configure.ac): Comment out macro invocation.
60837         * modules/javaexec (configure.ac): Likewise.
60838         * modules/javacomp-script (configure.ac): Likewise.
60839
60840         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
60841
60842 2006-07-30  Bruno Haible  <bruno@clisp.org>
60843
60844         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
60845         linked-list.
60846
60847 2006-07-30  Bruno Haible  <bruno@clisp.org>
60848
60849         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
60850
60851 2006-07-30  Bruno Haible  <bruno@clisp.org>
60852
60853         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
60854         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
60855         get removed.
60856
60857 2006-07-29  Bruno Haible  <bruno@clisp.org>
60858
60859         Make it possible for gnulib-tool to work with locally modified or
60860         augmented gnulib repositories.
60861         * gnulib-tool (func_usage): Document --local-dir option.
60862         (local_gnulib_dir): New variable.
60863         Handle --local-dir option.
60864         (func_lookup_file): New function.
60865         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
60866         (func_get_description, func_get_filelist, func_get_description,
60867         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
60868         func_get_automake_snippet, func_get_include_directive,
60869         func_get_license, func_get_maintainer): Use func_lookup_file.
60870         (func_import, func_create_testdir): Use func_lookup_file.
60871
60872 2006-07-29  Bruno Haible  <bruno@clisp.org>
60873
60874         * modules/setenv (Depends-on): Add unistd.
60875
60876 2006-07-29  Bruno Haible  <bruno@clisp.org>
60877
60878         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
60879
60880 2006-07-29  Bruno Haible  <bruno@clisp.org>
60881
60882         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
60883
60884 2006-07-29  Bruno Haible  <bruno@clisp.org>
60885
60886         * gnulib-tool (import, update): If there is no Makefile.am, look at
60887         aclocal.m4, instead of bailing out.
60888
60889 2006-07-29  Bruno Haible  <bruno@clisp.org>
60890
60891         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
60892         Categorize the options by when they are useful.
60893
60894 2006-07-29  Bruno Haible  <bruno@clisp.org>
60895
60896         * gnulib-tool (func_usage): Document option --no-libtool.
60897         Handle option --no-libtool.
60898         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
60899         for changed semantics of $libtool variable.
60900         (func_import): Likewise. If libtool is not used, show this through
60901         an option --no-libtool.
60902         (func_create_testdir): Update.
60903
60904 2006-07-29  Bruno Haible  <bruno@clisp.org>
60905
60906         * gnulib-tool (func_import): Extend error message about missing
60907         --doc-base.
60908
60909 2006-07-29  Bruno Haible  <bruno@clisp.org>
60910
60911         * gnulib-tool (func_import): Don't create the $docbase directory if
60912         there is no file to store there.
60913
60914 2006-07-29  Bruno Haible  <bruno@clisp.org>
60915
60916         * gnulib-tool (autoconf_minversion): If a --dir option is given and
60917         relevant, look for configure.ac there, not in the current directory.
60918         Also use a simple search for AC_PREREQ, not "autoconf --trace".
60919
60920 2006-07-29  Bruno Haible  <bruno@clisp.org>
60921
60922         * gnulib-tool (SORT): New variable.
60923         (func_usage): Undocument --assume-autoconf option.
60924         Remove --assume-autoconf option handling.
60925         (autoconf_minversion): Determine from the contents of configure.ac.
60926         (func_import): Remove autoconf_minversion handling.
60927         Suggested by Eric Blake.
60928
60929 2006-07-29  Bruno Haible  <bruno@clisp.org>
60930
60931         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
60932
60933 2006-07-29  Bruno Haible  <bruno@clisp.org>
60934
60935         * config/srclist.txt (*setenv.[ch]): Remove rules.
60936
60937 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
60938
60939         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
60940
60941 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
60942
60943         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
60944         arpa/inet.h.
60945
60946 2006-07-28  Simon Josefsson  <jas@extundo.com>
60947
60948         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
60949         * modules/inet_pton (Depends-on): Likewise.
60950
60951 2006-07-28  Simon Josefsson  <jas@extundo.com>
60952
60953         * m4/netinet_in_h.m4: New file.
60954
60955 2006-07-28  Simon Josefsson  <jas@extundo.com>
60956
60957         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
60958         #include's.
60959
60960 2006-07-28  Simon Josefsson  <jas@extundo.com>
60961
60962         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
60963         #include's.
60964
60965 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
60966
60967         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
60968         setgid on directories only if they set these bits.
60969         * lib/modechange.h: Remove obsolete comment about masks.
60970
60971 2006-07-28  Eric Blake  <ebb9@byu.net>
60972
60973         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
60974         macro expansion.
60975
60976 2006-07-28  Bruno Haible  <bruno@clisp.org>
60977
60978         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
60979
60980 2006-07-28  Bruno Haible  <bruno@clisp.org>
60981
60982         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
60983
60984 2006-07-28  Bruno Haible  <bruno@clisp.org>
60985
60986         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
60987         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
60988         Define fallbacks.
60989         Avoids link error on FreeBSD 4.x.
60990         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
60991
60992         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
60993         encoding.
60994         * lib/mbswidth.c (iswcntrl): Likewise.
60995
60996 2006-07-27  Bruno Haible  <bruno@clisp.org>
60997
60998         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
60999         test.
61000
61001 2006-07-27  Bruno Haible  <bruno@clisp.org>
61002
61003         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
61004         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
61005         defined.
61006
61007 2006-07-26  Eric Blake  <ebb9@byu.net>
61008
61009         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
61010
61011 2006-07-26  Eric Blake  <ebb9@byu.net>
61012
61013         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
61014         like mingw that lack mkstemp.
61015         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
61016         avoid compilation warning on mingw.
61017
61018 2006-07-26  Bruno Haible  <bruno@clisp.org>
61019
61020         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
61021         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
61022         INT_FAST*_MIN, INTPTR_MIN.
61023
61024 2006-07-25  Bruno Haible  <bruno@clisp.org>
61025
61026         * modules/version-etc (Depends-on): Add stdarg.
61027
61028 2006-07-25  Bruno Haible  <bruno@clisp.org>
61029
61030         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
61031         complex commands.
61032
61033 2006-07-25  Bruno Haible  <bruno@clisp.org>
61034
61035         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
61036         defined in <stdarg.h> or config.h.
61037
61038 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
61039
61040         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
61041         (gl_STDIO_SAFER): Remove.
61042
61043 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
61044
61045         * MODULES.html.sh (File stream based Input/Output):
61046         Add fopen-safer, tmpfile-safer; remove stdio-safer.
61047         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
61048         * modules/fopen-safer, modules/tmpfile-safer: New files.
61049         * modules/stdio-safer: Remove.
61050
61051 2006-07-24  Bruno Haible  <bruno@clisp.org>
61052
61053         * modules/tmpdir: New file.
61054         * MODULES.html.sh (File system functions): Add it.
61055
61056 2006-07-24  Bruno Haible  <bruno@clisp.org>
61057
61058         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
61059         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
61060
61061 2006-07-24  Bruno Haible  <bruno@clisp.org>
61062
61063         * modules/clean-temp: New file.
61064
61065 2006-07-24  Bruno Haible  <bruno@clisp.org>
61066
61067         * m4/tmpdir.m4: New file, from GNU gettext.
61068
61069 2006-07-24  Bruno Haible  <bruno@clisp.org>
61070
61071         * lib/tmpdir.h: New file, from GNU gettext.
61072         * lib/tmpdir.c: New file, from GNU gettext.
61073
61074 2006-07-24  Bruno Haible  <bruno@clisp.org>
61075
61076         * lib/clean-temp.h: New file, from GNU gettext.
61077         * lib/clean-temp.c: New file, from GNU gettext.
61078
61079 2006-07-23  Eric Blake  <ebb9@byu.net>
61080
61081         * modules/stdio-safer (Files): Add tmpfile-safer.c.
61082         (Depends-on): Add binary-io.
61083
61084 2006-07-23  Eric Blake  <ebb9@byu.net>
61085
61086         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
61087
61088 2006-07-23  Eric Blake  <ebb9@byu.net>
61089
61090         * lib/tmpfile-safer.c: New file.
61091         * lib/stdio-safer.h (fopen_safer): Add prototype.
61092         * lib/stdio--.h (tmpfile): Make safer.
61093
61094 2006-07-23  Bruno Haible  <bruno@clisp.org>
61095
61096         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
61097         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
61098         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
61099         gl_linked_remove_at): Use it.
61100
61101 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
61102         and Simon Josefsson <jas@extundo.com>
61103
61104         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
61105
61106         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
61107
61108 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
61109
61110         * modules/close-stream: New file.
61111         * modules/closeout (Description): Make it clear that it exits
61112         with a diagnostic on error.
61113         (Depends-on): Add close-stream.  Remove fpending, stdbool.
61114         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
61115
61116 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
61117
61118         * m4/close-stream.m4: New file.
61119
61120 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
61121
61122         * lib/close-stream.c, lib/close-stream.h: New files.
61123
61124 2006-07-22  Bruno Haible  <bruno@clisp.org>
61125
61126         Merge from GNU gettext 0.15.
61127
61128         2006-05-01  Bruno Haible  <bruno@clisp.org>
61129
61130                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
61131
61132         2006-07-22  Bruno Haible  <bruno@clisp.org>
61133
61134                 * modules/javaversion: New file.
61135                 * MODULES.html.sh (Java): Add javaversion.
61136
61137         2006-03-12  Bruno Haible  <bruno@clisp.org>
61138
61139                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
61140
61141         2005-12-04  Bruno Haible  <bruno@clisp.org>
61142
61143                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
61144                 (untested).
61145
61146         2006-06-21  Bruno Haible  <bruno@clisp.org>
61147
61148                 Avoid warnings from recent versions of mcs.
61149                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
61150                 -o, -L, -r any more. Use options documented since mcs-1.0
61151                 instead. Similarly for -g.
61152
61153         2005-12-04  Bruno Haible  <bruno@clisp.org>
61154
61155                 * build-aux/csharpcomp.sh.in: Suffix for resources is
61156                 .resources, not .resource.
61157
61158         2005-07-09  Bruno Haible  <bruno@clisp.org>
61159
61160                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
61161                 add a .dll suffix.
61162                 Reported by Mark Junker <mjscod@gmx.de>.
61163
61164         2006-07-22  Bruno Haible  <bruno@clisp.org>
61165
61166                 * modules/gettext: Upgrade to gettext-0.15.
61167                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
61168                 m4/visibility.m4.
61169                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
61170
61171 2006-07-22  Bruno Haible  <bruno@clisp.org>
61172
61173         Merge from GNU gettext 0.15.
61174
61175         2006-03-25  Bruno Haible  <bruno@clisp.org>
61176
61177                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
61178
61179         2006-07-21  Bruno Haible  <bruno@clisp.org>
61180
61181                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
61182                 "1.1".
61183
61184         2006-05-09  Bruno Haible  <bruno@clisp.org>
61185
61186                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
61187                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
61188                 for the conftestver execution.
61189
61190         2006-05-01  Bruno Haible  <bruno@clisp.org>
61191
61192                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
61193                 optional target-version argument. Verify that the compiler
61194                 groks source of the specified source-version, or add -source
61195                 option as necessary. Verify that the compiler produces
61196                 bytecode in the specified target-version, or add -target and
61197                 -source options as necessary. Make the result of the test
61198                 available as variable CONF_JAVAC. Also log error output in
61199                 config.log.
61200
61201         2006-03-11  Bruno Haible  <bruno@clisp.org>
61202
61203                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
61204
61205         2006-05-09  Bruno Haible  <bruno@clisp.org>
61206
61207                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
61208                 CLASSPATH_SEPARATOR to a semicolon.
61209
61210         2006-03-12  Bruno Haible  <bruno@clisp.org>
61211
61212                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
61213                 available as variable CONF_JAVA, for subsequent autoconf
61214                 tests. Also log error output in config.log.
61215
61216         2006-07-19  Bruno Haible  <bruno@clisp.org>
61217
61218                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
61219                 that getline works on glibc2 systems. Needed to avoid trouble
61220                 in relocatable.c.
61221                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
61222
61223         2005-12-04  Bruno Haible  <bruno@clisp.org>
61224
61225                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
61226                 launcher (untested).
61227
61228         2005-12-04  Bruno Haible  <bruno@clisp.org>
61229
61230                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
61231
61232         2006-07-22  Bruno Haible  <bruno@clisp.org>
61233
61234                 * gettext.m4: Update from GNU gettext-0.15.
61235                 * nls.m4: Likewise.
61236                 * po.m4: Likewise.
61237                 * inttypes-pri.m4: Likewise.
61238                 * inttypes-h.m4: Renamed from inttypes.m4.
61239                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
61240
61241 2006-07-22  Bruno Haible  <bruno@clisp.org>
61242
61243         Merge from GNU gettext 0.15.
61244
61245         2005-07-05  Bruno Haible  <bruno@clisp.org>
61246
61247                 * printf-args.c (printf_fetchargs): Work around broken
61248                 definition of wint_t on mingw.
61249
61250         2005-02-12  Bruno Haible  <bruno@clisp.org>
61251
61252                 * xallocsa.h: Add extern "C" for C++.
61253
61254         2006-05-17  Bruno Haible  <bruno@clisp.org>
61255
61256                 Cygwin portability.
61257                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
61258
61259         2006-04-30  Bruno Haible  <bruno@clisp.org>
61260
61261                 * progreloc.c: Include <mach-o/dyld.h> if available.
61262                 (find_executable): Use _NSGetExecutablePath when possible.
61263
61264         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
61265
61266                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
61267                 function.
61268
61269         2005-12-29  Bruno Haible  <bruno@clisp.org>
61270
61271                 * progreloc.c (set_program_name_and_installdir): Fix
61272                 compilation error.
61273
61274         2005-12-04  Bruno Haible  <bruno@clisp.org>
61275
61276                 Cygwin portability.
61277                 * progreloc.c: Include <windows.h> also on Cygwin.
61278                 (find_executable): Add support for Cygwin.
61279                 (set_program_name_and_installdir): Handle also platforms with
61280                 nonempty EXEEXT.
61281
61282         2006-07-11  Bruno Haible  <bruno@clisp.org>
61283
61284                 * javacomp.c: Fix a comment.
61285                 Reported by Jim Meyering.
61286
61287         2006-04-30  Bruno Haible  <bruno@clisp.org>
61288
61289                 * javacomp.h (compile_java_class): Add source_version,
61290                 target_version arguments.
61291                 * javacomp.c: Rewritten to choose only a compiler that
61292                 respects the specified source_version and target_version.
61293
61294         2006-06-27  Bruno Haible  <bruno@clisp.org>
61295
61296                 Assume correct S_ISDIR macro.
61297                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
61298
61299         2006-07-22  Bruno Haible  <bruno@clisp.org>
61300
61301                 * javaversion.h: New file, from GNU gettext.
61302                 * javaversion.c: New file, from GNU gettext.
61303                 * javaversion.java: New file, from GNU gettext.
61304                 * javaversion.class: New file, from GNU gettext.
61305
61306         2006-05-17  Bruno Haible  <bruno@clisp.org>
61307
61308                 Cygwin portability.
61309                 * javaexec.c (execute_java_class): Test for jview program
61310                 also on Cygwin.
61311
61312         2006-04-09  Bruno Haible  <bruno@clisp.org>
61313
61314                 * fatal-signal.c: Don't include string.h.
61315                 (at_fatal_signal): Use a copying loop instead of memcpy.
61316
61317         2005-12-04  Bruno Haible  <bruno@clisp.org>
61318
61319                 * csharpexec.c: Add support for 'clix' launcher (untested).
61320                 (execute_csharp_using_sscli): New function.
61321                 (execute_csharp_program): Call it.
61322
61323         2006-06-21  Bruno Haible  <bruno@clisp.org>
61324
61325                 Avoid warnings from recent versions of mcs.
61326                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
61327                 -o, -L, -r any more. Use options documented since mcs-1.0
61328                 instead. Similarly for -g.
61329
61330         2005-07-09  Bruno Haible  <bruno@clisp.org>
61331
61332                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
61333                 add a .dll suffix.
61334                 Reported by Mark Junker <mjscod@gmx.de>.
61335
61336         2006-06-17  Bruno Haible  <bruno@clisp.org>
61337
61338                 * config.charset: Update for NetBSD 3.0.
61339
61340         2006-05-17  Bruno Haible  <bruno@clisp.org>
61341
61342                 Cygwin portability.
61343                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
61344
61345         2006-05-16  Bruno Haible  <bruno@clisp.org>
61346
61347                 * localcharset.c [CYGWIN]: Include <windows.h>.
61348                 (get_charset_aliases): For Cygwin, return the same CPxxx
61349                 aliases list as under WIN32.
61350                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
61351                 the environment variables. Fall back to GetACP().
61352
61353         2006-04-05  Bruno Haible  <bruno@clisp.org>
61354
61355                 * config.charset: Update Juan Manuel Guerrero's address.
61356
61357         2005-02-12  Bruno Haible  <bruno@clisp.org>
61358
61359                 * allocsa.h: Add extern "C" for C++.
61360
61361         2005-02-10  Bruno Haible  <bruno@clisp.org>
61362
61363                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
61364                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
61365
61366         2006-07-22  Bruno Haible  <bruno@clisp.org>
61367
61368                 * gettext.h: Update to GNU gettext-0.15.
61369
61370 2006-07-22  Bruno Haible  <bruno@clisp.org>
61371
61372         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
61373         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
61374         lib-prefix.m4, longdouble.m4, ssize_t.m4.
61375
61376 2006-07-21  Eric Blake  <ebb9@byu.net>
61377
61378         * modules/stdlib-safer: New file.
61379         * MODULES.html.sh (File stream based Input/Output): Add
61380         stdlib-safer.
61381
61382 2006-07-21  Eric Blake  <ebb9@byu.net>
61383
61384         * lib/stdlib-safer.h: New file from coreutils, required by
61385         stdlib--.h.
61386
61387 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
61388
61389         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
61390
61391 2006-07-20  Bruno Haible  <bruno@clisp.org>
61392
61393         * gnulib-tool: Recognize new option --assume-autoconf.
61394         (autoconf_minversion): New variable.
61395         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
61396
61397 2006-07-20  Bruno Haible  <bruno@clisp.org>
61398
61399         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
61400
61401 2006-07-19  Derek R. Price  <derek@ximbiot.com>
61402
61403         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
61404         Reindent and repaginate.
61405
61406 2006-07-19  Derek Price  <derek@ximbiot.com>
61407
61408         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
61409         Correct grammar.
61410
61411 2006-07-17  Bruno Haible  <bruno@clisp.org>
61412
61413         * modules/list: New file.
61414         * modules/array-list: New file.
61415         * modules/carray-list, modules/carray-list-tests: New files.
61416         * modules/linked-list, modules/linked-list-tests: New files.
61417         * modules/avltree-list, modules/avltree-list-tests: New files.
61418         * modules/rbtree-list, modules/rbtree-list-tests: New files.
61419         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
61420         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
61421         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
61422         * modules/oset: New file.
61423         * modules/array-oset: New file.
61424         * modules/avltree-oset, modules/avltree-oset-tests: New files.
61425         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
61426         * tests/test-carray_list.c: New file.
61427         * tests/test-linked_list.c: New file.
61428         * tests/test-avltree_list.c: New file.
61429         * tests/test-rbtree_list.c: New file.
61430         * tests/test-linkedhash_list.c: New file.
61431         * tests/test-avltreehash_list.c: New file.
61432         * tests/test-rbtreehash_list.c: New file.
61433         * tests/test-avltree_oset.c: New file.
61434         * tests/test-rbtree_oset.c: New file.
61435         * MODULES.html.sh (Container data structures): New section.
61436
61437 2006-07-17  Bruno Haible  <bruno@clisp.org>
61438
61439         * m4/gl_list.m4: New file.
61440
61441 2006-07-17  Bruno Haible  <bruno@clisp.org>
61442
61443         * lib/gl_list.h: New file.
61444         * lib/gl_list.c: New file.
61445         * lib/gl_array_list.h: New file.
61446         * lib/gl_array_list.c: New file.
61447         * lib/gl_carray_list.h: New file.
61448         * lib/gl_carray_list.c: New file.
61449         * lib/gl_linked_list.h: New file.
61450         * lib/gl_linked_list.c: New file.
61451         * lib/gl_anylinked_list1.h: New file.
61452         * lib/gl_anylinked_list2.h: New file.
61453         * lib/gl_avltree_list.h: New file.
61454         * lib/gl_avltree_list.c: New file.
61455         * lib/gl_anyavltree_list1.h: New file.
61456         * lib/gl_anyavltree_list2.h: New file.
61457         * lib/gl_rbtree_list.h: New file.
61458         * lib/gl_rbtree_list.c: New file.
61459         * lib/gl_anyrbtree_list1.h: New file.
61460         * lib/gl_anyrbtree_list2.h: New file.
61461         * lib/gl_anytree_list1.h: New file.
61462         * lib/gl_anytree_list2.h: New file.
61463         * lib/gl_linkedhash_list.h: New file.
61464         * lib/gl_linkedhash_list.c: New file.
61465         * lib/gl_anyhash_list1.h: New file.
61466         * lib/gl_anyhash_list2.h: New file.
61467         * lib/gl_avltreehash_list.h: New file.
61468         * lib/gl_avltreehash_list.c: New file.
61469         * lib/gl_rbtreehash_list.h: New file.
61470         * lib/gl_rbtreehash_list.c: New file.
61471         * lib/gl_anytreehash_list1.h: New file.
61472         * lib/gl_anytreehash_list2.h: New file.
61473
61474         * lib/gl_oset.h: New file.
61475         * lib/gl_oset.c: New file.
61476         * lib/gl_array_oset.h: New file.
61477         * lib/gl_array_oset.c: New file.
61478         * lib/gl_avltree_oset.h: New file.
61479         * lib/gl_avltree_oset.c: New file.
61480         * lib/gl_rbtree_oset.h: New file.
61481         * lib/gl_rbtree_oset.c: New file.
61482         * lib/gl_anytree_oset.h: New file.
61483
61484 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
61485
61486         * m4/mkancesdirs.m4: New file.
61487         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
61488         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
61489         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
61490         it.
61491
61492 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
61493
61494         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
61495         * lib/mkancesdirs.h: New files.
61496         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
61497         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
61498         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
61499         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
61500         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
61501         callers changed.  Revamp internals significantly, by not
61502         attempting to create directories that are temporarily more
61503         permissive than the final results.  Do not attempt to use
61504         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
61505         This removes some race conditions, fixes some bugs, and simplifies
61506         things.  Use new dirchownmod function to do owner and mode changes.
61507         * lib/mkdir-p.h: Likewise.
61508         * lib/modechange.c (octal_to_mode): New function.
61509         (struct mode_change): New member mentioned.
61510         (make_node_op_equals): New arg mentioned.  All callers changed.
61511         (mode_compile): Keep track of which mode bits the user has explicitly
61512         mentioned.
61513         (mode_adjust): New arg DIR, so that we implement the X op correctly.
61514         New arg PMODE_BITS, to keep track of which mode bits the user
61515         mentioned; it treats S_ISUID and S_ISGID speciall.
61516         All callers changed.
61517         * lib/modechange.h: Likewise.
61518
61519 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
61520
61521         * MODULES.html.sh: Add mkancestors.
61522         * modules/mkancesdirs: New module.
61523         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
61524         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
61525         The chdir-safer and afs files are now orphans; I'll remove them
61526         unless someone speaks up.
61527         Add lib/dirchownmod.c, lib/dirchownmod.h.
61528         (Depends-on): Remove alloca, chown, save-cwd, dirname.
61529         Add lchown, mkancesdirs.
61530         (Maintainer): Add self.
61531
61532 2006-07-15  Karl Berry  <karl@gnu.org>
61533
61534         * gnulib-tool: help message wording/arrangement.
61535
61536 2006-07-14  Simon Josefsson  <jas@extundo.com>
61537
61538         * doc/gnulib.texi (Libtool and Windows): New section.
61539
61540 2006-07-12  Simon Josefsson  <jas@extundo.com>
61541
61542         * modules/gendocs (License): Fix license, approved by Karl.
61543
61544 2006-07-12  Eric Blake  <ebb9@byu.net>
61545
61546         * MODULES.html.sh: Add gendocs.
61547
61548 2006-07-11  Eric Blake  <ebb9@byu.net>
61549
61550         * modules/fdl: New module, to install doc/fdl.texi.
61551         * MODULES.html.sh: Add new section for documentation modules.
61552         * gnulib-tool: Avoid space-tab.
61553         (--doc-base): New option, to manage files from doc.
61554
61555 2006-07-11  Eric Blake  <ebb9@byu.net>
61556
61557         * m4/absolute-header.m4: Fix comments to match recent change.
61558
61559 2006-07-11  Eric Blake  <ebb9@byu.net>
61560
61561         * gnulib-tool: List --doc-base before --tests-base.
61562
61563 2006-07-11  Derek R. Price  <derek@ximbiot.com>
61564
61565         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
61566
61567 2006-07-11  Bruno Haible  <bruno@clisp.org>
61568
61569         * README: Mention where to put documentation.
61570
61571 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61572
61573         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
61574
61575 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
61576
61577         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
61578         to stdint.m4.
61579
61580 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
61581
61582         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
61583         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
61584         "no/such/file/stdint.h" when there is no such file, so that
61585         the resulting C code can be parsed by dodgy compilers.
61586         Problems reported by Bob Proulx.
61587
61588 2006-07-10  Derek R. Price  <derek@ximbiot.com>
61589
61590         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
61591         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
61592         macros into the GNU _D_EXACT_NAMLEN.
61593         * lib/savedir.c:  Likewise.
61594         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
61595
61596 2006-07-10  Derek R. Price  <derek@ximbiot.com>
61597         and Paul Eggert  <eggert@cs.ucla.edu>
61598
61599         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
61600         * m4/savedir.m4:
61601         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
61602         macros into the GNU _D_EXACT_NAMLEN.
61603
61604 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
61605
61606         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
61607         around the absolute name, to work around a problem with the HP-UX
61608         11.23 native C compiler, reported by Bob Proulx.
61609
61610 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
61611
61612         * doc/maintain.texi, make-stds.texi: Sync from
61613         <http://savannah.gnu.org/projects/gnustandards>.
61614
61615 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
61616
61617         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
61618
61619 2006-07-09  Jim Meyering  <jim@meyering.net>
61620
61621         * m4/glob.m4: Remove a doubled word in a comment.
61622
61623 2006-07-09  Jim Meyering  <jim@meyering.net>
61624
61625         * lib/argp-pv.c: Remove a doubled word in a comment.
61626         * lib/check-version.c (check_version): Likewise.
61627         * lib/javacomp.c (compile_java_class): Likewise.
61628
61629 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
61630
61631         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
61632         for the benefit of people using Autoconf 2.60.  If you want to
61633         support older Autoconf versions you can copy m4/onceonly_2_57.m4
61634         (or m4/onceonly.m4, if pre-2.57) manually.
61635
61636 2006-07-08  Jim Meyering  <jim@meyering.net>
61637
61638         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
61639         comment.
61640         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
61641         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
61642         comment.
61643
61644 2006-07-08  Jim Meyering  <jim@meyering.net>
61645
61646         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
61647
61648 2006-07-07  Simon Josefsson  <jas@extundo.com>
61649
61650         * tests/test-crc.c: Change expected crc value, the test vector
61651         were probably computed using the old broken crc.c?
61652
61653 2006-07-06  Simon Josefsson  <jas@extundo.com>
61654
61655         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
61656         now the canonical place for the M4 file).
61657
61658         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
61659         from the sys_socket dependency now.
61660
61661         * modules/inet_pton (Files): Ditto.
61662
61663         * modules/inet_ntop (Files): Ditto.
61664
61665 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
61666
61667         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
61668         not gl_PREREQ_GETUSERSHELL.
61669
61670 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61671
61672         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
61673         with only one argument, for Autoconf 2.60.
61674         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
61675         expand to nothing, so add a shell command to avoid syntax error.
61676         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
61677
61678 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61679
61680         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
61681
61682 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
61683
61684         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
61685         no longer needed.  Check for isblank decl.
61686         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
61687         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
61688         of existence.
61689
61690 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
61691
61692         * lib/getloadavg.c: Use __VMS, not VMS.
61693         * lib/getopt.c: Likewise.
61694         * lib/getpagesize.h: Likewise.
61695         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
61696         and probably does not work.
61697
61698 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
61699
61700         * lib/.cppi-disable: Add wcwidth.
61701         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
61702         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
61703         (ISGRAPH): Remove.  All uses changed to isgraph.
61704         (FOLD) [!defined _LIBC]: Remove special case.
61705         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
61706         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
61707         HAVE_ISBLANK.
61708         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
61709         case.
61710
61711 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
61712
61713         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
61714         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
61715         brackets.  Other minor changes to suppress some compiler
61716         warnings.
61717
61718 2006-07-06  Derek R. Price  <derek@ximbiot.com>
61719         and Paul Eggert  <eggert@cs.ucla.edu>
61720
61721         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
61722         of invoking obsolescent AC_HEADER_DIRENT macro.
61723         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
61724         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
61725         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
61726         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
61727         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
61728         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
61729         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
61730         * m4/readdir.m4: Remove; no longer needed.
61731
61732 2006-07-06  Derek R. Price  <derek@ximbiot.com>
61733         and Paul Eggert  <eggert@cs.ucla.edu>
61734
61735         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
61736         Don't worry about this obsolete case any more.
61737         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
61738         directories.
61739         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
61740         worry about this obsolete case any more.
61741         * lib/fts.c: Likewise.
61742         * lib/getcwd.c: Likewise.
61743         * lib/glob.h: Likewise.
61744         * lib/savedir.c: Likewise.
61745
61746 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
61747
61748         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
61749         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
61750         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
61751         needed.
61752         All uses removed.
61753         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
61754         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
61755         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
61756         needed.
61757         * m4/getdate.m4 (gl_GETDATE): Likewise.
61758         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
61759         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
61760         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
61761         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
61762         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
61763         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
61764         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
61765         needed.
61766
61767 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
61768
61769         * lib/memcasecmp.c: Include <limits.h>.
61770         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
61771         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
61772         Don't assume isdigit succeeds only on '0' through '9'.
61773
61774 2006-07-05  Eric Blake  <ebb9@byu.net>
61775
61776         * modules/getaddrinfo (Depends-on): Add snprintf.
61777
61778 2006-07-05  Eric Blake  <ebb9@byu.net>
61779
61780         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
61781         to avoid 'header present but could not be compiled' on cygwin.
61782
61783 2006-07-05  Eric Blake  <ebb9@byu.net>
61784
61785         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
61786         missing from netdb.h.
61787         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
61788
61789 2006-07-05  Derek R. Price  <derek@ximbiot.com>
61790
61791         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
61792         no longer needed.
61793         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
61794         * m4/getdate.m4 (gl_GETDATE): Likewise.
61795         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
61796         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
61797         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
61798         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
61799         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
61800
61801 2006-07-05  Derek R. Price  <derek@ximbiot.com>
61802
61803         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
61804         All uses of is_space replaced by isspace.
61805         * lib/exit.h: Don't talk about STDC_HEADERS.
61806         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
61807         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
61808         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
61809         replaced by isprint etc.
61810         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
61811         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
61812         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
61813         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
61814         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
61815         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
61816
61817 2006-07-05  Bruno Haible  <bruno@clisp.org>
61818
61819         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
61820         the function exists, before testing against AIX.
61821         Reported by Martin Lambers <marlam@marlam.de>.
61822
61823 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
61824
61825         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
61826         From Mark D. Baushke.
61827
61828 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
61829
61830         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
61831         to the absolute name, not just one, to bypass Sun C 5.8's
61832         "warning: #include of /usr/include/... may be non-portable".
61833
61834 2006-07-04  Eric Blake  <ebb9@byu.net>
61835
61836         * modules/dirname-tests: New test module.
61837         * tests/test-dirname.c: New file, replacing dirname.c
61838         TEST_DIRNAME section that was recently deleted.
61839
61840 2006-07-04  Bruno Haible  <bruno@clisp.org>
61841
61842         Assume ANSI C header files and <ctype.h> functions.
61843         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
61844         (mbsnwidth): Use isprint, iscntrl instead.
61845
61846 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
61847
61848         Merge from coreutils.
61849         * MODULES.html.sh: Add xstrtold.
61850         * modules/xstrtold: New file.
61851         * modules/cycle-check (Files): Add lib/same-inode.h.
61852         * modules/dirname (Files): Add m4/double-slash-root.m4.
61853         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
61854         * modules/mkdir-p (Files): Add lib/same-inode.h.
61855         * modules/same (Files): Add lib/same-inode.h.
61856
61857 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
61858
61859         * m4/absolute-header.m4: Renamed from full-header-path.m4.
61860         This is to keep the terminology clean; POSIX talks about
61861         "absolute pathnames", not "full pathnames", but the GNU
61862         Coding Standards say to use "path" for something else;
61863         so use "absolute" to keep both sides happy.
61864         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
61865         Set gl_absolute_header, not gl_full_header_path.
61866         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
61867         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
61868         All uses changed.
61869
61870         Merge from coreutils.
61871
61872         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
61873
61874         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
61875         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
61876         want to require the building of c-strtod.o.
61877         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
61878         needs -lm directly.
61879         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
61880
61881         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
61882
61883         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
61884         --as-needed option if available.  Problem reported by Albert Chin in
61885         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
61886         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
61887         cc merely issues a bunch of annoying warnings for --as-needed
61888         (this problem was reported by Bob Proulx).  Also, try linking with
61889         -lm to detect a bug in binutils 2.16 (this problem was reported
61890         by Ralf Wildenhues).
61891
61892         2006-06-18  Jim Meyering  <jim@meyering.net>
61893
61894         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
61895         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
61896         macro.
61897         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
61898         also check for glibc-2.4's abort-inducing bug.
61899
61900         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
61901         Low-probability clean-up should be to use rmdir to get rid of
61902         the just-created directory, not unlink.
61903
61904         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
61905         configure fail, and request a bug report to inform us about it.
61906         Add a comment that, barring reports to the contrary, in 2007 we'll
61907         assume ftruncate is universally available.
61908
61909         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
61910
61911         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
61912
61913         2006-03-12  Jim Meyering  <jim@meyering.net>
61914
61915         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
61916         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
61917         * m4/same.m4 (gl_SAME): Likewise.
61918         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
61919
61920         2006-03-11  Eric Blake  <ebb9@byu.net>
61921
61922         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
61923         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
61924         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
61925         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
61926
61927 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
61928
61929         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
61930         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
61931         reported by Mark D. Baushke, one in
61932         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
61933
61934         Merge from coreutils.
61935
61936         * lib/.cppi-disable: Add stdint_.h.
61937         * lib/.cvsignore: Add stdint.h.
61938
61939         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
61940
61941         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
61942         both double and long double versions.
61943         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
61944         * lib/xstrtold.c: New file.
61945         * lib/xstrtod.h (xstrtold): New decl.
61946
61947         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
61948
61949         * lib/filemode.c (setst): Remove.
61950         (strmode): Rewrite to avoid setst.  This makes the code shorter,
61951         (arguably) clearer, and the generated code is a bit smaller on my
61952         Debian GNU/Linux stable x86 host.
61953
61954         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
61955
61956         * lib/filemode.c: Include "filemode.h" first, to test the interface.
61957         Assume that filemode.h includes sys/types.h and sys/stat.h.
61958         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
61959         (ftypelet): Reorder to put common cases first, for efficiency.
61960         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
61961         to do 'M'.
61962         (strmode): Renamed from mode_string, and now stores 12 bytes instead
61963         of 10, for compatibility with FreeBSD.  All callers changed.
61964         (filemodestring): Now stores 12 bytes instead of 10, and sets file
61965         types that can't be deduced solely from st_mode.  First arg is now a
61966         const pointer.
61967         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
61968         (strmode): Renamed from mode_string.
61969         (filemodestring): New decl.
61970         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
61971         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
61972         needed.
61973         (S_ISPORT, S_ISWHT): New macros, if not already defined.
61974
61975         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
61976
61977         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
61978         fsusage.h now does that.  Include fsusage.h first, to test interface.
61979         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
61980         at most one method (the old code could have generated decls that
61981         didn't conform to C89, not that this was ever exercised).
61982         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
61983
61984         2006-03-19  Jim Meyering  <jim@meyering.net>
61985
61986         Work even in a chroot where d_ino values for entries in "/"
61987         don't match the stat.st_ino values for the same names.
61988         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
61989         number, iterate through all entries again, using lstat instead.
61990         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
61991         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
61992
61993         * lib/getcwd.c (__getcwd): Clarify a comment.
61994         Use memcpy in place of a call to strcpy.
61995
61996         2006-03-12  Jim Meyering  <jim@meyering.net>
61997
61998         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
61999         matches that of the current directory (which we're about to chdir ".."
62000         out of), then save the dev-ino of the parent, instead.
62001
62002         * lib/same-inode.h (SAME_INODE): New file/macro.
62003         * lib/chdir-safer.c (SAME_INODE): Remove definition.
62004         Include "same-inode.h", instead.
62005         * lib/same.c: Likewise.
62006         * lib/cycle-check.h: Include "same-inode.h".
62007         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
62008         * lib/cycle-check.c (SAME_INODE): Remove definition.
62009         * lib/root-dev-ino.h: Include "same-inode.h".
62010
62011         2006-03-11  Eric Blake  <ebb9@byu.net>
62012
62013         * lib/same.c (same_name): s/base_name/last_component/
62014         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
62015         * lib/filenamecat.c (file_name_concat): Likewise.
62016
62017         2006-03-11  Eric Blake  <ebb9@byu.net>,
62018                     Paul Eggert  <eggert@cs.ucla.edu>
62019
62020         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
62021         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
62022         drive prefix.
62023         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
62024         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
62025         (last_component): New method.
62026         * lib/dirname.c (dir_len): Determine when drive letters need a
62027         subsequent slash.  Preserve // when it is special.
62028         (dir_name): Don't append dot when drive letter is absolute.
62029         [TEST_DIRNAME]: Move into a full-blown gnulib test.
62030         * lib/basename.c (base_name): New semantics - malloc the result.
62031         Preserve // when it is special.  Preserve relative files that look
62032         like drive letters.
62033         (base_len): Preserve // when it is special.
62034         (last_component): New method, similar to old base_name semantics.
62035         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
62036         base_name.  Strip redundant slashes from ///.
62037
62038 2006-07-03  Jim Meyering  <jim@meyering.net>
62039
62040         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
62041         macro is used before the first cycle_check call.
62042
62043 2006-07-03  Eric Blake  <ebb9@byu.net>
62044
62045         * modules/dirname (Depends-on): Add xstrndup.
62046
62047 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
62048
62049         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
62050         test cases, so that config.log is a bit easier to follow.
62051
62052 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
62053
62054         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
62055         both are 64 bits, since this seems to be the tradition, and this
62056         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
62057         we ever run into a host that prefers long long to long in this
62058         case, we'll need another configure-time test.  Problem reported by
62059         Jim Meyering.
62060
62061 2006-07-02  Eric Blake  <ebb9@byu.net>
62062
62063         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
62064
62065 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
62066
62067         * modules/inttypes (Depends-on): No longer depends on stdint.
62068         * modules/stdint (Description): Say more about assumptions.
62069         Say that the fast types might differ.  Say macros are used.
62070         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
62071         (Makefile.am): Revise list of substituted symbols to match
62072         new stdint.m4.
62073         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
62074         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
62075         * tests/test-stdint.c (verify_same_types)
62076         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
62077         the code conforms to C99/C89.
62078         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
62079         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
62080
62081 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
62082
62083         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
62084         but fix a bug, by requiring at least 64 bits.
62085         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
62086         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
62087         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
62088         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
62089
62090         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
62091         changes.  Make 2.59 a prerequisite.  Check and substitute for
62092         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
62093         inttypes.h.  Do not use special include files; just use the
62094         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
62095         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
62096         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
62097         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
62098         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
62099         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
62100         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
62101         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
62102         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
62103         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
62104         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
62105         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
62106         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
62107         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
62108         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
62109         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
62110         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
62111         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
62112         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
62113         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
62114         WINT_MAX.  Check for C99 conformance more strictly, by detecting
62115         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
62116         not check for things that C99 does not require, e.g., int8_t.  If
62117         a test isn't needed unless <stdint.h> isn't working, and is
62118         unlikely to be needed for any other reason, then don't do it
62119         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
62120         size_t, since we assume C89 freestanding at least.  Do not check
62121         for sig_atomic_t, wchar_t, or wint_t, since the code now does
62122         the right thing even if the types are not defined.  Instead use:
62123         (gl_STDINT_TYPE_PROPERTIES): New macro.
62124         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
62125         testing whether <sys/types.h> clashes, as Autoconf does this for
62126         us now.  All uses removed.
62127         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
62128         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
62129         (gl_CHECK_TYPE_SAME):
62130         Remove; no longer needed.
62131         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
62132         exists, since we'll return 0 anyway in that case.
62133         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
62134
62135 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
62136
62137         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
62138         possible collision with system files.
62139         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
62140         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
62141         WCHAR_MIN and WCHAR_MAX in this case.
62142         (<stddef.h>): Do not include; no longer needed.
62143         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
62144         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
62145         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
62146         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
62147         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
62148         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
62149         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
62150         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
62151         !defined(__c99))]: Include in this case too, since it's harmless
62152         now.
62153         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
62154         dangerous to do so.
62155         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
62156         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
62157         (_STDINT_MIN, _STDINT_MAX): New macros.
62158         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
62159         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
62160         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
62161         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
62162         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
62163         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
62164         macros, not typedefs; this simplifies things quite a bit.
62165         Use long int for all types narrower than int64_t.
62166         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
62167         Define in terms of long long int or int64_t or long int,
62168         not int64_t or int32_t.  This saves some compile-time testing.
62169         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
62170         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
62171         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
62172         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
62173         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
62174         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
62175         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
62176         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
62177         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
62178         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
62179         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
62180         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
62181         undef any previous version and define our own version, for
62182         simplicity and consistency with the new macros for types.
62183         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
62184         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
62185         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
62186         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
62187         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
62188         @WINT_T_SUFFIX@ to keep things simple here.
62189         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
62190         Simplify by assuming typical 8/16/32/64 host, since we're
62191         already doing that elsewhere anyway.
62192         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
62193         and assume long long int is 64 bits if available.  This
62194         speeds up 'configure'.
62195
62196 2006-07-01  Eric Blake  <ebb9@byu.net>
62197
62198         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
62199         Reported by Andreas Buening.
62200
62201 2006-07-01  Eric Blake  <ebb9@byu.net>
62202
62203         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
62204
62205 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
62206
62207         * lib/getaddrinfo.c: fixed typo
62208
62209 2006-06-29  Jim Meyering  <jim@meyering.net>
62210
62211         * modules/strftime (Maintainer): Add my name, since with the
62212         FPRINTFTIME changes strftime.c has forked from glibc.
62213
62214 2006-06-29  Eric Blake  <ebb9@byu.net>
62215
62216         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
62217
62218 2006-06-29  Eric Blake  <ebb9@byu.net>
62219
62220         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
62221
62222 2006-06-29  Eric Blake  <ebb9@byu.net>
62223
62224         * lib/stat_.h: New file.
62225
62226 2006-06-29  Eric Blake  <ebb9@byu.net>
62227
62228         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
62229         unused static function.
62230
62231 2006-06-29  Eric Blake  <ebb9@byu.net>
62232
62233         * doc/functions.texi (Function Portability): Document missing lstat
62234         on mingw.
62235
62236 2006-06-29  Eric Blake  <ebb9@byu.net>
62237
62238         * MODULES.html.sh: Add sys_stat.
62239         * modules/sys_stat: New module.
62240         * modules/mkstemp (Depends-on): Add sys_stat.
62241
62242 2006-06-29  Derek R. Price  <derek@ximbiot.com>
62243
62244         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
62245
62246 2006-06-29  Derek R. Price  <derek@ximbiot.com>
62247
62248         * m4/c-bs-a.m4: Removed.
62249
62250 2006-06-29  Derek R. Price  <derek@ximbiot.com>
62251
62252         * lib/strftime.c: Assume strftime() exists.
62253
62254 2006-06-29  Derek Price  <derek@ximbiot.com>
62255
62256         * modules/c-bs-a: Removed - \a is C89.
62257         * MODULES.html.sh: Remove c-bs-a.
62258
62259 2006-06-29  Bruno Haible  <bruno@clisp.org>
62260
62261         * modules/wcwidth (License): Change to LGPL.
62262
62263 2006-06-28  Simon Josefsson  <jas@extundo.com>
62264
62265         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
62266         on _WIN32.
62267
62268         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
62269         getnameinfo.
62270
62271 2006-06-28  Simon Josefsson  <jas@extundo.com>
62272
62273         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
62274
62275 2006-06-28  Simon Josefsson  <jas@extundo.com>
62276
62277         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
62278         functions there.  It will succeed on Windows XP, but on Windows
62279         2000 and (presumably) earlier, it will fail, and use the internal
62280         re-implementation.
62281         (use_win32_p): New function.
62282         (getaddrinfo): Use strtoul on servname, to support numeric ports.
62283         Support AI_NUMERICSERV to disable getservbyname.
62284         (getnameinfo): New function, only supports
62285         NI_NUMERICHOST|NI_NUMERICSERV for now.
62286
62287         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
62288         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
62289         getnameinfo.
62290
62291 2006-06-28  Eric Blake  <ebb9@byu.net>
62292
62293         * modules/wcwidth: New file.
62294         * modules/mbchar (Depends-on): Add wcwidth.
62295         * modules/mbswidth (Depends-on): Add wcwidth.
62296         * MODULES.html.sh: Add wcwidth.
62297
62298 2006-06-28  Eric Blake  <ebb9@byu.net>
62299
62300         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
62301         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
62302
62303 2006-06-28  Eric Blake  <ebb9@byu.net>
62304
62305         * lib/xvasprintf.h: Fix comments.
62306
62307 2006-06-28  Eric Blake  <ebb9@byu.net>
62308
62309         * lib/mbchar.h (wcwidth): Include wcwidth.h.
62310         * lib/mbswidth.c (wcwidth): Move from here...
62311         * lib/wcwidth.h: ...to this new file.
62312
62313 2006-06-28  Derek R. Price  <derek@ximbiot.com>
62314
62315         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
62316
62317         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
62318         it's obsolete.
62319         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
62320
62321 2006-06-28  Derek R. Price  <derek@ximbiot.com>
62322
62323         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
62324         Autoconf 2.60 says this stuff was obsolete.
62325
62326 2006-06-28  Bruno Haible  <bruno@clisp.org>
62327
62328         * modules/wcwidth (Files): Add m4/wchar_t.m4.
62329
62330 2006-06-28  Bruno Haible  <bruno@clisp.org>
62331
62332         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
62333         gt_TYPE_WCHAR_T.
62334
62335 2006-06-28  Bruno Haible  <bruno@clisp.org>
62336
62337         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
62338         declaration for wcwidth.
62339         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
62340
62341 2006-06-28  Bruno Haible  <bruno@clisp.org>
62342
62343         * lib/mkdtemp.c [MINGW]: Include <io.h>.
62344         (mkdir): Define using _mkdir.
62345
62346 2006-06-28  Bruno Haible  <bruno@clisp.org>
62347
62348         * lib/getaddrinfo.h: Fix POSIX URL.
62349         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
62350         _WIN32.
62351         (use_win32_p): Make static.
62352         (getaddrinfo): Reject service name if it is empty or does not consist
62353         solely of decimal digits, or if its value is > 65535.
62354         (getnameinfo): Remove useless casts.
62355
62356 2006-06-27  Simon Josefsson  <jas@extundo.com>
62357
62358         * modules/sys_select: New file, suggested by Bruno Haible, Paul
62359         Eggert and Martin Lambers.
62360
62361 2006-06-27  Simon Josefsson  <jas@extundo.com>
62362
62363         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
62364         Eggert and Martin Lambers.
62365
62366 2006-06-27  Bruno Haible  <bruno@clisp.org>
62367
62368         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
62369         result to 0, not to empty.
62370         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
62371
62372 2006-06-27  Bruno Haible  <bruno@clisp.org>
62373
62374         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
62375
62376 2006-06-26  Simon Josefsson  <jas@extundo.com>
62377
62378         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
62379         present.
62380
62381 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
62382
62383         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
62384         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
62385         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
62386
62387 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
62388
62389         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
62390
62391 2006-06-26  Bruno Haible  <bruno@clisp.org>
62392
62393         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
62394
62395 2006-06-26  Bruno Haible  <bruno@clisp.org>
62396
62397         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
62398
62399 2006-06-26  Bruno Haible  <bruno@clisp.org>
62400
62401         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
62402         SGI C compiler in pre-C99 mode.
62403         Suggested by Mark D. Baushke and Larry Jones.
62404
62405 2006-06-26  Bruno Haible  <bruno@clisp.org>
62406
62407         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
62408         WCHAR_MAX.
62409         Reported by Mark D. Baushke and Larry Jones.
62410
62411 2006-06-26  Bruno Haible  <bruno@clisp.org>
62412
62413         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
62414         in pre-C99 mode.
62415         Suggested by Mark D. Baushke and Larry Jones.
62416
62417 2006-06-23  Simon Josefsson  <jas@extundo.com>
62418             Bruno Haible  <bruno@clisp.org>
62419
62420         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
62421         Emit mostlyclean-local rule.
62422         (func_emit_tests_Makefile_am): Likewise.
62423         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
62424
62425 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
62426
62427         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
62428
62429 2006-06-23  Bruno Haible  <bruno@clisp.org>
62430
62431         * tests/test-stdint.c: Update to match ISO C 99 Technical
62432         Corrigendum 1.
62433
62434 2006-06-23  Bruno Haible  <bruno@clisp.org>
62435
62436         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
62437
62438 2006-06-23  Bruno Haible  <bruno@clisp.org>
62439
62440         * lib/stdint_.h: Treat IRIX like OpenBSD.
62441
62442 2006-06-23  Bruno Haible  <bruno@clisp.org>
62443
62444         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
62445         ISO C 99 Technical Corrigendum 1.
62446
62447 2006-06-22  Simon Josefsson  <jas@extundo.com>
62448
62449         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
62450         MinGW.
62451
62452 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
62453
62454         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
62455         needed.  Some compiler complained about some of them.  Problem reported
62456         by Larry Jones in
62457         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
62458
62459 2006-06-21  Simon Josefsson  <jas@extundo.com>
62460
62461         * tests/test-getaddrinfo.c: New file.
62462
62463         * modules/getaddrinfo-tests: New file.
62464
62465         * MODULES.html.sh: Add inet_pton.
62466
62467         * modules/inet_pton: New file.
62468
62469 2006-06-21  Simon Josefsson  <jas@extundo.com>
62470
62471         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
62472         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
62473         of using the (limited) gnulib implementation on Windows XP.
62474
62475         * m4/inet_pton.m4: New file.
62476
62477 2006-06-21  Simon Josefsson  <jas@extundo.com>
62478
62479         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
62480         variable.
62481
62482         * lib/socket_.h: Don't define WINVER.
62483
62484         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
62485         slightly modified to work in gnulib.
62486
62487 2006-06-21  Simon Josefsson  <jas@extundo.com>
62488
62489         * doc/gnulib.texi (Windows sockets): Add.
62490
62491 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
62492
62493         * lib/read-file.c (fread_file): Start with buffer allocation of
62494         0 bytes rather than 1 byte; this simplifies the code.
62495         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
62496         code to free buffer and save/restore errno.
62497         (internal_read_file): Remove unused local.
62498
62499 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
62500
62501         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
62502         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
62503         Problem reported by Denis Excoffier in
62504         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
62505
62506 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
62507
62508         * modules/sys_socket, modules/socklen: Include sys/types since
62509         FreeBSD 4.x's sys/socket.h needs it.
62510
62511 2006-06-19  Simon Josefsson  <jas@extundo.com>
62512
62513         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
62514
62515 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
62516
62517         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
62518
62519 2006-06-19  Bruno Haible  <bruno@clisp.org>
62520
62521         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
62522         and FULL_PATH_INTTYPES_H in angle brackets.
62523         Reported by Mark D. Baushke <mdb@gnu.org>.
62524
62525 2006-06-17  Eric Blake  <ebb9@byu.net>
62526
62527         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
62528         errno.
62529
62530 2006-06-17  Bruno Haible  <bruno@clisp.org>
62531
62532         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
62533         <sys/inttypes.h>.
62534
62535 2006-06-17  Bruno Haible  <bruno@clisp.org>
62536
62537         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
62538         whether errno is declared. Assume <errno.h> declares errno.
62539
62540 2006-06-17  Bruno Haible  <bruno@clisp.org>
62541
62542         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
62543
62544 2006-06-17  Bruno Haible  <bruno@clisp.org>
62545
62546         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
62547         problem on Solaris 2.5.1.
62548
62549 2006-06-16  Eric Blake  <ebb9@byu.net>
62550
62551         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
62552         * lib/unicodeio.c [!defined errno]: Likewise.
62553         * lib/strtol.c [!defined errno]: Likewise.
62554         * lib/strtod.c [!defined errno]: Likewise.
62555
62556 2006-06-15  Eric Blake  <ebb9@byu.net>
62557
62558         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
62559
62560 2006-06-15  Eric Blake  <ebb9@byu.net>
62561
62562         * config/srclist.txt (ssize_t.m4): Lose sync.
62563
62564 2006-06-15  Bruno Haible  <bruno@clisp.org>
62565
62566         * modules/stdint (Files): Include m4/full-header-path.m4,
62567         m4/size_max.m4, m4/wchar_t.m4.
62568         (Makefile.am): Many more substitutions.
62569         * modules/stdint-tests: New file.
62570         * tests/test-stdint.c: New file.
62571
62572 2006-06-15  Bruno Haible  <bruno@clisp.org>
62573
62574         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
62575         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
62576         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
62577         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
62578         gl_CHECK_TYPE_SAME): New macros.
62579
62580 2006-06-15  Bruno Haible  <bruno@clisp.org>
62581
62582         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
62583
62584 2006-06-15  Bruno Haible  <bruno@clisp.org>
62585
62586         * lib/stdint_.h: Rewritten to be fully auto-configured.
62587         Fixes bug on HP-UX/IA64.
62588
62589 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
62590
62591         * lib/getdate.y (__attribute__): Don't define if already defined.
62592         Problem reported by Larry Jones.
62593         * lib/utimens.c (__attribute__): Likewise.
62594
62595 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
62596
62597         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
62598         reported by Andreas Schwab.
62599
62600 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62601             Bruno Haible  <bruno@clisp.org>
62602
62603         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
62604         check for the declaration of strnlen and a run test that exposes the
62605         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
62606         rpl_strndup.
62607
62608 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62609             Bruno Haible  <bruno@clisp.org>
62610
62611         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
62612
62613 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62614
62615         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
62616         compile test, for Tru64 4.0D.
62617
62618 2006-05-28  Karl Berry  <karl@gnu.org>
62619
62620         * config/srclist.txt (printf-args.c): lose sync.
62621
62622 2006-05-26  Martin Lambers  <marlam@marlam.de>
62623
62624         * lib/getpass.c: Updates the test for the native W32 API, and adds
62625         missing includes, thus fixing compilation warnings.
62626
62627 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
62628
62629         * lib/exclude.c (exclude_fnmatch): New function.
62630         (excluded_file_name): Call exclude_fnmatch.
62631         * lib/exclude.h (excluded_file_name): New prototype
62632
62633 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
62634
62635         * lib/tempname.c (small_open, large_open): New macros.
62636         (__open, __open64) [!_LIBC]: Remove.
62637         (__gen_tempname): Use small_open and large_open instead of __open
62638         and __open64.  This fixes a portability bug on HP-UX 11.11i
62639         reported by Simon Wing-Tang in
62640         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
62641
62642 2006-05-24  Bruno Haible  <bruno@clisp.org>
62643
62644         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
62645         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
62646         Reported by Thorsten Maerz <torte@netztorte.de> via
62647         Aaron Stone <aaron@serendipity.cx>.
62648
62649 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
62650
62651         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
62652         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
62653         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
62654         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
62655         not really conditional on the cache.
62656         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
62657
62658 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
62659
62660         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
62661         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
62662         (my_usleep): Don't mishandle maximum value.
62663
62664 2006-05-19  Jim Meyering  <jim@meyering.net>
62665
62666         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
62667
62668 2006-05-17  Bruno Haible  <bruno@clisp.org>
62669
62670         Cygwin portability.
62671         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
62672
62673 2006-05-17  Bruno Haible  <bruno@clisp.org>
62674
62675         * lib/stdint_.h: Fix recognition of Cygwin.
62676
62677 2006-05-15  Bruno Haible  <bruno@clisp.org>
62678
62679         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
62680         on libtool patch by Ralf Wildenhues.
62681
62682 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
62683
62684         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
62685         test for C99 conformance; (bool) 0.5 is an integer constant
62686         expression, but (bool) -0.5 is not.  Problem reported by Fedor
62687         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
62688
62689 2006-05-11  Simon Josefsson  <jas@extundo.com>
62690
62691         * m4/xvasprintf.m4: Fix obvious typo.
62692
62693 2006-05-11  Jim Meyering  <jim@meyering.net>
62694
62695         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
62696         James Lemley.
62697
62698 2006-05-10  Simon Josefsson  <jas@extundo.com>
62699
62700         * lib/md4.c: Typo fix, update copyright years.
62701         (K1, K2): Don't use L because it turn computations into 64-bit on
62702         64-bit platforms.
62703
62704 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
62705
62706         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
62707         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
62708         unwanted sign propagation, e.g., on hosts with 64-bit int.
62709         There still are some problems with reeelly weird theoretical hosts
62710         (e.g., 33-bit int) but it's not worth worrying about now.
62711         * lib/sha1.c (rol): Likewise.
62712         (K1, K2, K3, K4): Remove unnecessary L suffix.
62713
62714 2006-05-10  Bruno Haible  <bruno@clisp.org>
62715
62716         * lib/des.c: Cast to avoid warnings.
62717
62718 2006-05-09  Bruno Haible  <bruno@clisp.org>
62719
62720         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
62721         (Depends-on): Depend also on xsize, stdarg.
62722         (configure.ac): Add gl_XVASPRINTF.
62723
62724 2006-05-09  Bruno Haible  <bruno@clisp.org>
62725
62726         * m4/xvasprintf.m4: New file.
62727
62728 2006-05-09  Bruno Haible  <bruno@clisp.org>
62729
62730         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
62731         (EOVERFLOW): Define fallback value.
62732         (xstrcat): New function.
62733         (xvasprintf): Recognize the special case of a string concatenation.
62734
62735 2006-05-08  Eric Blake  <ebb9@byu.net>
62736
62737         * gnulib-tool (func_version): Base copyright year on CVS date.
62738         (func_emit_copyright_notice): New function.
62739         (func_emit_lib_Makefile_am): Use it.
62740         (func_emit_tests_Makefile_am): Likewise.
62741         (func_import): Likewise.
62742
62743 2006-05-08  Bruno Haible  <bruno@clisp.org>
62744
62745         * modules/stdarg: New file.
62746         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
62747
62748 2006-05-08  Bruno Haible  <bruno@clisp.org>
62749
62750         * m4/stdarg.m4: New file, from GNU gettext.
62751
62752 2006-05-08  Bruno Haible  <bruno@clisp.org>
62753
62754         * config/srclist.txt (build-aux/config.rpath): different from latest
62755         release.
62756
62757 2006-05-08  Bruno Haible  <bruno@clisp.org>
62758
62759         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
62760
62761 2006-05-05  Jim Meyering  <jim@meyering.net>
62762
62763         * m4/warning.m4: New file, derived from bison's file by the same name.
62764
62765 2006-05-03  Bruno Haible  <bruno@clisp.org>
62766
62767         * lib/stdint_.h: Shorter URL.
62768         * lib/inttypes.h: Likewise.
62769
62770 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
62771
62772         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
62773
62774 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
62775
62776         * lib/verify.h: Document the internals better.  Most of this change
62777         was written by Bruno Haible.
62778
62779 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
62780
62781         * doc/verify.texi: New file, partly based on a proposal by
62782         Bruno Haible.
62783
62784 2006-05-02  Bruno Haible  <bruno@clisp.org>
62785
62786         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
62787         test from here...
62788         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
62789
62790 2006-04-29  Bruno Haible  <bruno@clisp.org>
62791
62792         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
62793         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
62794
62795 2006-04-29  Bruno Haible  <bruno@clisp.org>
62796
62797         * gnulib-tool: Make --update option actually work.
62798
62799 2006-04-29  Bruno Haible  <bruno@clisp.org>
62800
62801         * doc/gcd.texi: New file.
62802         * doc/gnulib.texi: Include it.
62803
62804 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
62805
62806         * lib/getdate.y (get_date): When adding relative date, start with the
62807         initial time, not with the result of the first mktime call.
62808
62809 2006-04-25  Bruno Haible  <bruno@clisp.org>
62810
62811         * gnulib-tool (func_import): Output the include directives in three
62812         blocks, sorted separately.
62813         Reported by Ben Pfaff <blp@cs.stanford.edu>.
62814
62815 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
62816
62817         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
62818         to define main with arguments, for C++.  Reported by Eric Blake.
62819         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
62820         Prefer 'int main ()' to 'int main (void)', for C++.
62821         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
62822         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
62823         for 'main', for C99 and C++.
62824
62825 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
62826
62827         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
62828         Don't assume that exit status -1 is valid.
62829         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
62830         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
62831         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
62832         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
62833         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
62834         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
62835         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
62836         functions can be used without declaring them, or that you can
62837         exit with status -1.
62838         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
62839
62840 2006-04-24  Karl Berry  <karl@gnu.org>
62841
62842         * config/srclist.txt (longdouble.m4): sync lost.
62843
62844 2006-04-24  Eric Blake  <ebb9@byu.net>
62845
62846         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
62847
62848 2006-04-24  Bruno Haible  <bruno@clisp.org>
62849
62850         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
62851         poll() implementation in AIX.
62852         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
62853
62854 2006-04-24  Bruno Haible  <bruno@clisp.org>
62855
62856         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
62857         assigned exactly once.
62858
62859 2006-04-23  Claudio Fontana  <claudio@gnu.org>
62860             Bruno Haible  <bruno@clisp.org>
62861
62862         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
62863         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
62864         for AM_CPPFLAGS.
62865
62866 2006-04-23  Bruno Haible  <bruno@clisp.org>
62867
62868         * modules/copy-file: Depend on unistd.
62869         * modules/execute: Likewise.
62870         * modules/fatal-signal: Likewise.
62871         * modules/findprog: Likewise.
62872         * modules/mkdtemp : Likewise.
62873         * modules/pipe: Likewise.
62874         * modules/wait-process: Likewise.
62875
62876 2006-04-23  Bruno Haible  <bruno@clisp.org>
62877
62878         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
62879         condition was already detected.
62880         Reported by Ben Pfaff <blp@cs.stanford.edu>.
62881
62882 2006-04-23  Bruno Haible  <bruno@clisp.org>
62883
62884         * lib/copy-file.c: Include <unistd.h> unconditionally.
62885         * lib/execute.c: Likewise.
62886         * lib/fatal-signal.c: Likewise.
62887         * lib/findprog.c: Likewise.
62888         * lib/mkdtemp.c: Likewise.
62889         * lib/pipe.h: Likewise.
62890         * lib/pipe.c: Likewise.
62891         * lib/wait-process.h: Likewise.
62892
62893 2006-04-23  Bruno Haible  <bruno@clisp.org>
62894
62895         * gnulib-tool (func_usage): Fix --import description. Document
62896         --update.
62897         (func_import): Create temporary file in a temporary directory, if
62898         --dry-run is specified. Silence errors from 'grep' when there are no
62899         m4 files in $m4dir.
62900         (func_create_testdir): Silence errors from 'grep' when there are no
62901         m4 files in $m4dir.
62902         Reported by Karl Berry <karl@freefriends.org>.
62903
62904 2006-04-20  Bruno Haible  <bruno@clisp.org>
62905
62906         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
62907         one argument, so that the code will be portable to Autoconf 2.60.
62908         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
62909         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
62910         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
62911
62912 2006-04-19  Derek Price  <derek@ximbiot.com>
62913             Eric Blake  <ebb9@byu.net>
62914
62915         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
62916         rather than "/full/path.h".  Update comment to match.  Shorten &
62917         generalize m4_translit call via AS_TR_CPP.
62918
62919 2006-04-19  Derek Price  <derek@ximbiot.com>
62920             Eric Blake  <ebb9@byu.net>
62921
62922         * lib/inttypes.h: Correct grammar in comment.
62923
62924 2006-04-18  Derek Price  <derek@ximbiot.com>
62925             Paul Eggert  <eggert@cs.ucla.edu>
62926
62927         * modules/inttypes: New file.
62928         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
62929
62930 2006-04-18  Derek Price  <derek@ximbiot.com>
62931             Paul Eggert  <eggert@cs.ucla.edu>
62932
62933         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
62934         New files.
62935
62936 2006-04-18  Derek Price  <derek@ximbiot.com>
62937             Paul Eggert  <eggert@cs.ucla.edu>
62938
62939         * lib/inttypes.h: New file.
62940         * lib/strtoimax.c: Assume <inttypes.h>.
62941
62942 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
62943
62944         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
62945         isn't mounted.  Problem reported by Kir Kolyshkin.
62946
62947 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
62948
62949         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
62950         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
62951         Derek R. Price.
62952         * lib/regex.h (RE_DUP_MAX): Update comment to match current
62953         implementation.
62954
62955 2006-04-12  Eric Blake  <ebb9@byu.net>
62956
62957         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
62958         is now done automatically by the corresponding Autoconf macro.
62959
62960 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
62961
62962         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
62963         time_r.h.
62964
62965 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
62966
62967         Merge regex changes from libc, removing some of our
62968         POSIX-conformance changes that were rejected and redoing them in a
62969         less-intrusive way.
62970
62971         * lib/regcomp.c (re_compile_internal, init_dfa):
62972         Length arg is now size_t, not Idx.  All uses changed.
62973         (peek_token): Forward decl now says internal_function.
62974         (__re_error_msgid, __re_error_msgid_idx):
62975         Now static rather than extern with attribute_hidden.
62976         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
62977         For some reason libc prefers K&R style defns for external functions.
62978         (regerror) [!defined _LIBC]: Likewise.
62979         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
62980         (seek_collating_symbol_entry, lookup_collation_sequence_value):
62981         (build_range_exp, build_collating_symbol):
62982         Use K&R-style defn.
62983         (re_compile_fastmap): Use '\0' to memset, not 0.
62984         (utf8_sb_map): Make the calculations more obvious.
62985         (init_dfa, parse_bracket_exp, build_charclass_op):
62986         Call calloc and cast result, as glibc does.
62987         (init_word_char, fetch_token, peek_token, peek_token_bracket):
62988         (build_range_exp, build_collating_symbol):
62989         Now internal functions.
62990
62991         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
62992
62993         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
62994         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
62995         Don't depend on VMS; depend on __VMS instead, for POSIX
62996         namespace cleanness.
62997         (regoff_t): Define to ssize_t, not long int.
62998
62999         Remove the REG_ macros named below.  Instead, make the old names
63000         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
63001         __USE_GNU_REGEX.
63002         (REG_BACKSLASH_ESCAPE_IN_LISTS):
63003         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
63004         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
63005         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
63006         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
63007         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
63008         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
63009         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
63010         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
63011         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
63012         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
63013         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
63014         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
63015         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
63016         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
63017         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
63018         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
63019         (REG_NREGS):
63020         Remove.  All uses replaced by the old RE_* names.
63021         (RE_BACKSLASH_ESCAPE_IN_LISTS):
63022         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
63023         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
63024         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
63025         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
63026         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
63027         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
63028         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
63029         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
63030         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
63031         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
63032         Don't bother having these macros be independent of each others'
63033         values, since they no longer exist in the POSIX name space.
63034
63035         Rename the following member names back to their old names,
63036         unless !__USE_GNU_REGEX.  All uses changed back.
63037         (buffer): Renamed from re_buffer.
63038         (allocated): Renamed from re_allocated.
63039         (used): Renamed from re_used.
63040         (syntax): Renamed from re_syntax.
63041         (fastmap): Renamed from re_fastmap.
63042         (translate): Renamed from re_translate.
63043         (can_be_null): Renamed from re_can_be_null.
63044         (regs_allocated): Renamed from re_regs_allocated.
63045         (fastmap_accurate): Renamed from re_fastmap_accurate.
63046         (no_sub): Renamed from re_no_sub.
63047         (not_bol): Renamed from re_not_bol.
63048         (not_eol): Renamed from re_not_eol.
63049         (newline_anchor): Renamed from re_newline_anchor.
63050         (num_regs): Renamed from rm_num_regs.
63051         (start): Renamed from rm_start.
63052         (end): Renamed from rm_end.
63053
63054         (free_state): Move up a bit.
63055
63056         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
63057         #define to be empty.
63058         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
63059         when that is what is intended.
63060         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
63061         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
63062         (MAX): New macro.
63063         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
63064         All uses changed back to re_malloc, etc.  It's now the caller's
63065         responsibility to check for overflow; all callers changed.
63066         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
63067         (re_x2nrealloc): Remove.
63068         (free_state): Remove decl.
63069
63070         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
63071         (re_set_registers, re_exec):
63072         Use K&R-style defn.
63073
63074         2006-01-31  Roland McGrath  <roland@redhat.com>
63075
63076         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
63077         Reported by Mike Frysinger <vapier@gentoo.org>.
63078
63079         2006-01-15  Andreas Jaeger  <aj@suse.de>
63080
63081         [BZ #1950]
63082         * lib/regex_internal.c (re_string_reconstruct): Adjust for
63083         build_wcs_upper_buffer change.
63084         (build_wcs_upper_buffer): Change return type.
63085
63086         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
63087
63088         * lib/regex_internal.h: Include <stdint.h> if available.
63089
63090         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
63091
63092         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
63093
63094         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
63095
63096         * lib/regcomp.c: Adjust for changed secondary hash function.
63097
63098         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
63099
63100         * lib/regex.h: Pretty printing.
63101         Clean up namespace a bit.
63102
63103         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
63104
63105         * lib/regexec.c (update_cur_sifted_state, check_arrival,
63106         check_arrival_add_next_nodes): Avoid using uninitialized variable.
63107
63108         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
63109                     Ulrich Drepper  <drepper@redhat.com>
63110
63111         [BZ #1302]
63112         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
63113         changed.
63114         (bitset_word_t): Renamed from bitset_word.  All uses changed.
63115
63116         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
63117
63118         [BZ #281]
63119         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
63120         * lib/regcomp.c: Remove unnecessary uses of
63121         unsigned RE_TRANSLATE_TYPE.
63122         * lib/regex_internal.h: Likewise.
63123         * lib/regex_internal.c: Likewise.
63124         * lib/regexec.c: Likewise.
63125         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
63126
63127         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
63128
63129         * lib/regexec.c (find_recover_state): Remove unnecessary
63130         initialization.
63131         (transit_state_bkref): Make DFA a const pointer.
63132         (get_subexp): Likewise.
63133         (check_arrival): Likewise.
63134         (update_cur_sifted_state): Likewise.
63135         (re_search_internal): Likewise.
63136         (prune_impossible_nodes): Likewise.
63137         (acquire_init_state_context): Likewise.
63138         (proceed_next_node): Likewise.
63139         (set_regs): Likewise.
63140         (free_fail_stack_return): Likewise.
63141         (check_arrival_expand_ecl): Mark DFA parameter as const.
63142         (check_arrival_expand_ecl_sub): Likewise.
63143         (check_subexp_limits): Likewise.
63144         (sub_epsilon_src_nodes):  Likewise.
63145         (add_epsilon_src_nodes):  Likewise.
63146         (merge_state_array): Likewise.
63147         (update_regs): Likewise.
63148         (build_trtable): Likewise.
63149         (sift_states_backward): Mark MCTX parameter as const.
63150         (build_sifted_states): Likewise.
63151         (update_cur_sifted_state): Likewise.
63152         (sift_states_mkref): Likewise.
63153         (check_arrival_expand_ecl): Mark eclosure as const.
63154         (check_dst_limits_calc_pos_1): Likewise.
63155         * lib/regex_internal.h (re_match_context_t): Make dfa a const
63156         pointer.
63157
63158         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
63159
63160         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
63161         (transit_state_sb): Likewise.
63162         (transit_state_mb): Likewise.
63163         (sift_states_iter_mb): Likewise.
63164         (check_arrival_add_next_nodes): Likewise.
63165         (check_node_accept_bytes): Change first parameter to pointer-to-const.
63166         [_LIBC] (re_search_2_stub): Use mempcpy.
63167
63168         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
63169         mbrtowc for very simple UTF-8 case.
63170
63171         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
63172         a pointer-to-const.
63173         (re_acquire_state_context): Likewise.
63174         * lib/regex_internal.h: Adjust prototypes.
63175
63176         * lib/regex.c: Prevent using C++ compilers.
63177
63178         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
63179         (re_acquire_state_context): Likewise.
63180
63181 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
63182
63183         * modules/regex (Depends-on): Add ssize_t.
63184
63185 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
63186
63187         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
63188         translation table.
63189
63190 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
63191
63192         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
63193
63194 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
63195             Bruno Haible  <bruno@clisp.org>
63196
63197         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
63198         <sys/types.h> and <inttypes.h>.
63199
63200 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63201
63202         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
63203         `__error_t_defined', so argp.h will not typedef the former.
63204
63205 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
63206
63207         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
63208         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
63209         glibc names.  Even if glibc is changed to conform to POSIX, the
63210         traditional names will be available anyway, since regex depends on
63211         the extensions module.  Also, fix a longstanding typo in the
63212         implementation of Spencer ERE test #75 from grep 2.3.  Problems
63213         reported by Emanuele Giaquinta.  Also, change sense of cached
63214         variable, so that the message makes sense.
63215
63216 2006-03-24  Simon Josefsson  <jas@extundo.com>
63217
63218         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
63219         including some doc fixes.
63220         (base64_encode_alloc): Fix +1 bug on allocation failures.
63221
63222 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63223
63224         * lib/base64.c (base64_encode): Do not read past end of array with
63225         unsanitized input on systems with CHAR_BIT > 8.
63226
63227 2006-03-24  Eric Blake  <ebb9@byu.net>
63228
63229         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
63230
63231 2006-03-22  Karl Berry  <karl@gnu.org>
63232
63233         * config/srclist.txt (*setenv.[ch]): get from coreutils.
63234         * config/srclistvars.sh (COREUTILS): new var.
63235
63236 2006-03-17  Jim Meyering  <jim@meyering.net>
63237
63238         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
63239         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
63240
63241 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
63242
63243         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
63244         no longer needs it.  Instead, check that regoff_t is as least
63245         as wide as ptrdiff_t.
63246
63247         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
63248         so that our regex.h stays compatible with the installed regex.
63249         This is helpful for installers who configure --without-included-regex.
63250         Problem reported by Emanuele Giaquinta.
63251
63252 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
63253
63254         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
63255         Typedef to long int, not to off_, as POSIX will likely change
63256         in that direction.
63257
63258 2006-03-15  Eric Blake  <ebb9@byu.net>
63259
63260         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
63261
63262 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
63263
63264         * lib/argp-help.c (validate_uparams): Fix typo
63265         * lib/argp-parse.c (argp_default_options): Consistently begin help
63266         messages with a lowercase letter.
63267
63268 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
63269
63270         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
63271         overrun buffers and shouldn't be used (much as gets shouldn't be
63272         used).
63273         * lib/time_r.c (asctime_r, ctime_r): Likewise.
63274
63275 2006-03-08  Simon Josefsson  <jas@extundo.com>
63276
63277         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
63278         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
63279
63280 2006-03-08  Simon Josefsson  <jas@extundo.com>
63281
63282         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
63283         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
63284
63285 2006-03-08  Simon Josefsson  <jas@extundo.com>
63286
63287         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
63288         signal that configure disabled the device.
63289
63290 2006-03-08  Simon Josefsson  <jas@extundo.com>
63291
63292         * build-aux/maint.mk: Fix refresh-po, to handle no translated
63293         languages.
63294
63295 2006-03-07  Simon Josefsson  <jas@extundo.com>
63296
63297         * modules/getopt (Depends-on): Add unistd.
63298
63299         * modules/unistd: New file.
63300
63301 2006-03-07  Simon Josefsson  <jas@extundo.com>
63302
63303         * modules/gc-random: New file.
63304
63305 2006-03-07  Simon Josefsson  <jas@extundo.com>
63306
63307         * m4/unistd_h.m4: New file.
63308
63309 2006-03-07  Simon Josefsson  <jas@extundo.com>
63310
63311         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
63312         test to be side-effect free by storing the result in the cache
63313         variable gl_cv_lib_readline, and moving the assignment of
63314         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
63315         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
63316
63317 2006-03-07  Simon Josefsson  <jas@extundo.com>
63318
63319         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
63320         error on missing devices (the functions will return an error).
63321
63322         * m4/gc.m4: Move random stuff to gc-random.m4
63323
63324 2006-03-07  Simon Josefsson  <jas@extundo.com>
63325
63326         * lib/unistd_.h: New file.
63327
63328 2006-03-07  Simon Josefsson  <jas@extundo.com>
63329
63330         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
63331
63332 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
63333
63334         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
63335         Problem reported by Juan Manuel Guerrero.
63336
63337 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
63338
63339         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
63340         the unistd module.
63341         * lib/getlogin_r.c: Likewise.
63342         * lib/getlogin_r.h: Likewise.
63343         * lib/glob.c: Likewise.
63344         * lib/pagealign_alloc.c: Likewise.
63345         * lib/unistd_.h: Remove; no longer needed.
63346
63347 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
63348
63349         * MODULES.html.sh (Support for systems lacking POSIX:2001):
63350         Add unistd.
63351         * modules/c-stack (Depends-on): Add unistd.
63352         * modules/getlogin_r: Likewise.
63353         * modules/glob: Likewise.
63354         * modules/pagealign_alloc: Likewise.
63355         * modules/unistd (Files): Remove lib/unistd_.h.
63356         (EXTRA_DIST): Remove.
63357         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
63358         need unistd_.h.
63359         (MOSTLYCLEANFILES): Remove unistd.h-t.
63360
63361 2006-03-03  Simon Josefsson  <jas@extundo.com>
63362
63363         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
63364
63365 2006-03-03  Simon Josefsson  <jas@extundo.com>
63366
63367         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
63368         libidn and bison.
63369
63370 2006-03-03  Simon Josefsson  <jas@extundo.com>
63371
63372         * build-aux/maint.mk: Add indent target.
63373
63374 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
63375
63376         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
63377         our replacement poll.h in any case, to avoid a differing
63378         declaration from a system header.  Seen on AIX.
63379
63380 2006-03-01  Simon Josefsson  <jas@extundo.com>
63381
63382         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
63383         <kasal@ucw.cz>.
63384
63385 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
63386
63387         * modules/gettime (Depends-on): Add extensions module.
63388         * modules/nanosleep (Depends-on): Likewise.
63389         * modules/settime (Depends-on): Likewise.
63390
63391 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
63392
63393         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
63394         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
63395         pedantically.
63396         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
63397         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
63398
63399         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
63400         not "==".  Reported by Ralf Wildenhues.
63401
63402 2006-03-01  Karl Berry  <karl@gnu.org>
63403
63404         * doc/Copyright/request-*: new files, synced from gnuorg.
63405
63406 2006-03-01  Karl Berry  <karl@gnu.org>
63407
63408         * config/srclist.txt (Copyright/*): new entries.
63409
63410 2006-02-28  Simon Josefsson  <jas@extundo.com>
63411
63412         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
63413
63414 2006-02-27  Simon Josefsson  <jas@extundo.com>
63415
63416         * lib/base64.h: Indent #define's.  From Jim Meyering
63417         <jim@meyering.net>.
63418
63419 2006-02-27  Jim Meyering  <jim@meyering.net>
63420
63421         Revert the change of 2006-02-24, so these files can continue
63422         to be sync'd from gettext.
63423         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
63424         of `config.h'.
63425
63426 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
63427
63428         * modules/intprops: New file.
63429         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
63430         Add intprops.
63431         * modules/getloadavg (Files): Remove lib/intprops.h.
63432         (Depends-on): Add intprops.
63433         * modules/human: Likewise.
63434         * modules/inttostr: Likewise.
63435         * modules/openat: Likewise.
63436         * modules/sig2str: Likewise.
63437         * modules/userspec: Likewise.
63438         * modules/utimecmp: Likewise.
63439         * modules/xnanosleep: Likewise.
63440         * modules/xstrtol: Likewise.
63441
63442 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
63443
63444         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
63445         * modules/lock-tests (TESTS): Use $(EXEEXT).
63446         * modules/tls-tests: Likewise.
63447         * modules/argp-tests: Likewise.
63448         (check_PROGRAMS): New var, replacing...
63449         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
63450
63451 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63452
63453         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
63454         `config.h'.
63455
63456 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
63457
63458         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
63459
63460 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63461
63462         Sync from coreutils.
63463         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
63464         gl_CHDIR_SAFER.
63465
63466 2006-02-22  Jim Meyering  <jim@meyering.net>
63467
63468         Sync from coreutils.
63469         * m4/chdir-safer.m4: New file.
63470
63471 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
63472
63473         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
63474         AT_FDCWD exceeds INT_MAX.
63475         * lib/openat.h (AT_FDCWD): Likewise.
63476
63477 2006-02-17  Eric Blake  <address@hidden>
63478
63479         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
63480
63481 2006-02-16  Simon Josefsson  <jas@extundo.com>
63482
63483         * modules/getaddrinfo (Depends-on): Add sys_socket.
63484
63485 2006-02-15  Simon Josefsson  <jas@extundo.com>
63486
63487         * build-aux/maint.mk: Add dsyntax-check rule.
63488
63489 2006-02-15  Eric Blake  <ebb9@byu.net>
63490
63491         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
63492         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
63493         'present but cannot compile' warnings on cygwin.
63494         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
63495         use ws2tcpip.h if sys/socket.h works.
63496         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
63497         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
63498
63499 2006-02-14  Simon Josefsson  <jas@extundo.com>
63500
63501         * modules/maintainer-makefile (Files): Rename.
63502
63503         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
63504         and (the local) Makefile.cfg to maint-cfg.mk.
63505
63506         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
63507         to the latter.
63508
63509         * modules/maintainer-makefile: New module.
63510
63511         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
63512         severaly stripped to make it possible to build it up from scratch
63513         with reliable tests.
63514
63515         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
63516         fixes to permit overriding the default actions when configure and
63517         makefile are not available.
63518
63519 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
63520
63521         Sync from coreutils.
63522         * modules/lstat (Depends-on): Don't depend on xalloc.
63523         (License): Change from GPL to LGPL, since this is now simply a
63524         replacement for a libc function.
63525
63526 2006-02-14  Jim Meyering  <jim@meyering.net>
63527
63528         Sync from coreutils.
63529
63530         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
63531         failure on deficient systems, and simplify gnulib lgpl dependencies.
63532         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
63533         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
63534
63535         * lib/xalloc-die.c: Remove unused definition of N_.
63536
63537 2006-02-14  Jim Meyering  <jim@meyering.net>
63538
63539         Sync from coreutils.
63540         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
63541         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
63542         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
63543         double-quote uses of that variable, to accommodate the rare case in
63544         which getmntent is available in none of the libraries checked.  This
63545         happens at least on FreeBSD 5.0.
63546
63547 2006-02-13  Simon Josefsson  <jas@extundo.com>
63548
63549         * gnulib-tool (Usage): Fix --import, from
63550         karl@freefriends.org (Karl Berry).
63551
63552 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
63553
63554         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
63555
63556 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
63557
63558         * lib/argp-namefrob.h: Restore changes accidentally lost during the
63559         "autoupdate" on 2005-12-12.
63560
63561 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
63562
63563         * modules/closeout (Depends-on): Remove atexit.
63564
63565 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
63566
63567         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
63568         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
63569
63570 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
63571
63572         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
63573         __EXTENSIONS__ if this causes compilation to fail.  Problem
63574         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
63575         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
63576
63577 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
63578
63579         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
63580         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
63581         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
63582         All uses changed.
63583
63584 2006-01-26  Simon Josefsson  <jas@extundo.com>
63585
63586         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
63587         prototype is visible on mingw32.
63588
63589         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
63590         for mingw32.
63591
63592         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
63593         mingw32).
63594
63595 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
63596
63597         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
63598         attempt to open for write; this always fails, at least on POSIX
63599         hosts.  This reinstates the 2006-01-09 change, which was
63600         inadvertently removed.
63601
63602 2006-01-26  Bruno Haible  <bruno@clisp.org>
63603
63604         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
63605         Reported by Paul Eggert.
63606
63607 2006-01-26  Bruno Haible  <bruno@clisp.org>
63608             Paul Eggert  <eggert@cs.ucla.edu>
63609
63610         * lib/stdbool_.h (_Bool)
63611         [(! (defined __cplusplus || defined __BEOS__)
63612           && !defined __GNUC__
63613           && !(defined __HP_cc || defined __xlc__
63614                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
63615                || defined __sgi))]:
63616         #define to signed char in these cases too; this simplifies
63617         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
63618         etc., separately) and makes it more conservative.
63619
63620 2006-01-25  Simon Josefsson  <jas@extundo.com>
63621
63622         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
63623         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
63624         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
63625
63626 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
63627
63628         * lib/argp-namefrob.h: Bugfix. Remove stray #
63629
63630 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
63631
63632         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
63633         so that we test the test.
63634         Check for yet another HP-UX cc bug involving *bool |= bool.
63635
63636 2006-01-25  Karl Berry  <karl@gnu.org>
63637
63638         * config/srclist.txt (vasnprintf.c): sync lost.
63639
63640 2006-01-25  Jim Meyering  <jim@meyering.net>
63641
63642         Sync from the stable (b5) branch of coreutils:
63643
63644         * lib/fts.c (fts_children): Don't let close() clobber errno from
63645         failed fchdir().
63646
63647         * lib/fts.c (fts_stat): When following a symlink-to-directory,
63648         don't necessarily interpret stat-fails+lstat-succeeds as indicating
63649         a dangling symlink.  That can also happen at least for ELOOP.
63650         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
63651         FYI, this bug predates the inclusion of fts.c in coreutils.
63652
63653         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
63654         in their own block, so pre-c99 compilers don't object.
63655
63656         Avoid the double-free (first in fts_read, second in fts_close) that
63657         would occur when an `active' directory is made inaccessible (e.g.,
63658         via chmod a-x) during a traversal.
63659         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
63660         before returning.  Reproduce this failure by
63661         mkdir -p a/b; cd a; chmod a-x . b
63662         Reported by Stavros Passas.
63663
63664 2006-01-25  Jim Meyering  <jim@meyering.net>
63665
63666         * lib/fileblocks.c: Remove more useless parentheses.
63667         * lib/readutmp.h: Likewise.
63668
63669 2006-01-25  Bruno Haible  <bruno@clisp.org>
63670
63671         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
63672         warnings.
63673         Reported by Paul Eggert.
63674
63675 2006-01-25  Bruno Haible  <bruno@clisp.org>
63676
63677         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
63678         rid of a trap command. For Solaris sh.
63679         Reported by Mark D. Baushke <mdb@gnu.org>.
63680
63681 2006-01-24  Simon Josefsson  <jas@extundo.com>
63682
63683         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
63684         Bruno.
63685
63686 2006-01-24  Karl Berry  <karl@gnu.org>
63687
63688         * config/srclist.txt (argp-namefrob.h): sync lost.
63689
63690 2006-01-24  Jim Meyering  <jim@meyering.net>
63691
63692         * modules/openat (Files): Add lib/intprops.h.
63693         From Mark D. Baushke.
63694
63695 2006-01-24  Jim Meyering  <jim@meyering.net>
63696
63697         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
63698         Reported by Mark D. Baushke.
63699
63700 2006-01-24  Jim Meyering  <jim@meyering.net>
63701
63702         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
63703
63704 2006-01-24  Bruno Haible  <bruno@clisp.org>
63705
63706         * modules/strnlen (Maintainer): Change from glibc to all.
63707
63708 2006-01-24  Bruno Haible  <bruno@clisp.org>
63709
63710         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
63711         Patch by Paul Eggert.
63712
63713 2006-01-24  Bruno Haible  <bruno@clisp.org>
63714
63715         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
63716         already has it.
63717         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
63718         2005-11-26.
63719
63720         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
63721         'signed char' to avoid problems with the built-in _Bool type.
63722         Reported by Paul Eggert on 2005-11-26.
63723
63724 2006-01-24  Bruno Haible  <bruno@clisp.org>
63725
63726         * gnulib-tool (func_import): Avoid constructing complicated sed
63727         expressions inside backquote.
63728         Report and solution by Mark D. Baushke <mdb@gnu.org>.
63729
63730 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
63731
63732         These changes imported from libc.
63733         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
63734         test and two separate function calls.
63735         * lib/strndup.c (__strndup): Add libc_hidden_def.
63736
63737 2006-01-23  Simon Josefsson  <jas@extundo.com>
63738
63739         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
63740         Remove the test_*_SOURCES variable: automake infers it by default.
63741         * modules/tls-tests: Likewise.
63742
63743 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
63744
63745         Work around porting bugs reported by Dieter in
63746         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
63747         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
63748         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
63749         Include "getopt.h" first, to check interface.
63750         (getenv): Declare only if defined HAVE_DECL_GETENV &&
63751         !HAVE_DECL_GETENV.
63752         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
63753         (__strndup): Revert to K&R-style function dfns, the glibc style.
63754         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
63755         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
63756         Include strnlen.h first, to get prototype properly.
63757         (strnlen): Renamed from __strnlen.
63758         Remove weak alias.
63759
63760 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
63761
63762         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
63763
63764 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
63765
63766         * config/srclist.txt: Adjust to reflect glibc reorganization.
63767         This affects only comments.
63768
63769 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
63770
63771          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
63772          Reported by Bruce Korb <bkorb@gnu.org>.
63773
63774 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
63775
63776         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
63777         to pacify gcc -Wswitch-default.
63778
63779 2006-01-22  Bruno Haible  <bruno@clisp.org>
63780
63781         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
63782         temporary buffer for sprintf, take into account the precision also
63783         for 'd', 'i', 'u', 'o', 'x', 'X'.
63784
63785 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
63786
63787         * modules/argp-tests: New module
63788         * tests/test-argp.c: New file
63789         * tests/test-argp-2.sh: New file
63790
63791 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
63792
63793         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
63794         (__argp_base_name): Removed
63795         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
63796         typo.
63797         (__argp_base_name): Provide macro definition or extern declaration
63798         depending on the configuration
63799
63800 2006-01-20  Simon Josefsson  <jas@extundo.com>
63801
63802         * modules/inet_ntop (Depends-on): Depend on sys_socket.
63803
63804 2006-01-20  Simon Josefsson  <jas@extundo.com>
63805
63806         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
63807
63808 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
63809
63810         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
63811         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
63812         Suggested by Bruno Haible.
63813
63814 2006-01-20  Karl Berry  <karl@gnu.org>
63815
63816         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
63817         until changes propagate, I guess.
63818
63819 2006-01-19  Simon Josefsson  <jas@extundo.com>
63820
63821         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
63822
63823 2006-01-19  Simon Josefsson  <jas@extundo.com>
63824
63825         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
63826
63827 2006-01-19  Simon Josefsson  <jas@extundo.com>
63828
63829         * gnulib-tool: Set check_PROGRAMS.
63830
63831         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
63832         modules/des-tests, modules/gc-arcfour-tests,
63833         modules/gc-arctwo-tests, modules/gc-des-tests,
63834         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
63835         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
63836         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
63837         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
63838         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
63839         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
63840         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
63841         test_*_SOURCES.
63842
63843 2006-01-18  Simon Josefsson  <jas@extundo.com>
63844
63845         * modules/socklen (Depends-on): Depend on sys_socket.
63846
63847 2006-01-18  Simon Josefsson  <jas@extundo.com>
63848
63849         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
63850         modules/des-tests, modules/gc-arcfour-tests,
63851         modules/gc-arctwo-tests, modules/gc-des-tests,
63852         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
63853         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
63854         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
63855         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
63856         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
63857         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
63858         $(EXEEXT) to automake TESTS variable, for mingw32.
63859
63860 2006-01-17  Simon Josefsson  <jas@extundo.com>
63861
63862         * modules/socklen (Include): Need sys/socket.h.
63863
63864 2006-01-17  Bruno Haible  <bruno@clisp.org>
63865
63866         * modules/ssize_t (Include): Add <sys/types.h>.
63867
63868 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
63869
63870         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
63871         it's not portable and it doesn't work with cross-compiles.
63872         Problem reported by Bruno Haible.  Fix missing-$ typo in
63873         'test "gl_cv_ignore_unused_libraries" ...' that prevented
63874         -zignore from being used with Sun's C compiler.
63875
63876 2006-01-12  Simon Josefsson  <jas@extundo.com>
63877
63878         * lib/base64.c: Fix warning, reported by Bruno Haible
63879         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
63880
63881 2006-01-12  Bruno Haible  <bruno@clisp.org>
63882
63883         * modules/ldd: New file.
63884         * build-aux/ldd.sh.in: New file.
63885         * MODULES.html.sh (Support for building libraries and executables): Add
63886         ldd.
63887
63888 2006-01-12  Bruno Haible  <bruno@clisp.org>
63889
63890         * m4/ldd.m4: New file.
63891
63892 2006-01-12  Bruno Haible  <bruno@clisp.org>
63893
63894         * gnulib-tool (func_import, func_create_testdir): Don't go into an
63895         endless loop while replacing $auxdir with build-aux.
63896
63897 2006-01-11  Simon Josefsson  <jas@extundo.com>
63898
63899         * lib/stdint_.h (SIZE_MAX): Add missing (.
63900
63901 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
63902
63903         Sync from coreutils.
63904         * lib/md5.c: Fix commentary typos.
63905         (alignof, UNALIGNED_P): No need for a GCC-specific version.
63906         * lib/md5.h (__attribute__): Remove; unused.
63907         * lib/sha1.c: Fix commentary to match md5 better.
63908         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
63909         so that we don't need to worry about alignment.  All uses changed.
63910         This merges the 2005-10-28 md5 change into sha1.
63911
63912 2006-01-11  Jim Meyering  <jim@meyering.net>
63913
63914         Sync from coreutils.
63915         * lib/md5.c (OP): Fix spacing.
63916
63917 2006-01-11  Bruno Haible  <bruno@clisp.org>
63918
63919         Ensure automatic ordering between gl_LOCK and gl_ARGP.
63920         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
63921         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
63922
63923 2006-01-11  Bruno Haible  <bruno@clisp.org>
63924
63925         Ensure automatic ordering between gl_LOCK and gl_ARGP.
63926         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
63927         the "early" section as well.
63928
63929 2006-01-11  Bruno Haible  <bruno@clisp.org>
63930
63931         Avoid "ar: no archive members specified" error on MacOS X.
63932         * gnulib-tool (func_modules_add_dummy): New function.
63933         (func_import, func_create_testdir): Invoke it.
63934
63935 2006-01-11  Bruno Haible  <bruno@clisp.org>
63936
63937         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
63938         with $auxdir in AC_CONFIG_FILES statements.
63939
63940 2006-01-11  Bruno Haible  <bruno@clisp.org>
63941
63942         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
63943         Initialize also noinst_HEADERS to empty.
63944
63945 2006-01-11  Bruno Haible  <bruno@clisp.org>
63946
63947         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
63948         variables.
63949         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
63950         autoreconf.
63951
63952 2006-01-11  Bruno Haible  <bruno@clisp.org>
63953
63954         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
63955         overridable by the user.
63956         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
63957
63958 2006-01-10  Simon Josefsson  <jas@extundo.com>
63959
63960         * modules/sys_socket: New file.
63961
63962 2006-01-10  Simon Josefsson  <jas@extundo.com>
63963
63964         * m4/sys_socket_h.m4: New file.
63965
63966 2006-01-10  Simon Josefsson  <jas@extundo.com>
63967
63968         * lib/socket_.h: New file.
63969
63970 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
63971
63972         * modules/readutmp (Maintainer): Add myself.
63973
63974 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
63975
63976         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
63977         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
63978         People who are still concerned with buggy memcmp implementations
63979         can invoke gl_FUNC_MEMCMP themselves.
63980
63981 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
63982
63983         * lib/regex_internal.h (BITSET_WORD_BITS):
63984         Work around a bug in 64-bit PGC (before version 6.1-2), where the
63985         preprocessor mishandles large unsigned values as if they were signed.
63986         Problem reported by Claudio Fontana in
63987         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
63988
63989 2006-01-10  Jim Meyering  <jim@meyering.net>
63990
63991         Avoid the double-free (first in fts_read, second in fts_close) that
63992         would occur when an `active' directory is made inaccessible (e.g.,
63993         via chmod a-x) during a traversal.
63994         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
63995         before returning.  Reproduce this failure by
63996         mkdir -p a/b; cd a; chmod a-x . b
63997         Reported by Stavros Passas.
63998
63999         Sync from coreutils.
64000         * lib/sha1.c: Tweak grammar in a comment.
64001
64002 2006-01-10  Jim Meyering  <jim@meyering.net>
64003
64004         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
64005         Patch by Joerg Sonnenberger.
64006
64007 2006-01-10  Bruno Haible  <bruno@clisp.org>
64008
64009         * modules/readutmp: Depend on module free.
64010         * modules/strtok_r: Depend on module restrict.
64011
64012 2006-01-10  Bruno Haible  <bruno@clisp.org>
64013
64014         * modules/gettext (configure.ac): Add an invocation of
64015         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
64016
64017 2006-01-10  Bruno Haible  <bruno@clisp.org>
64018
64019         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
64020         Reported by Werner Lemberg <wl@gnu.org>.
64021
64022 2006-01-10  Bruno Haible  <bruno@clisp.org>
64023
64024         * lib/localcharset.c: Update from GNU gettext.
64025
64026 2006-01-10  Bruno Haible  <bruno@clisp.org>
64027
64028         * lib/argp.h (__const): Remove macro. Use const instead.
64029         * lib/argp-fmtstream.h (__const): Likewise.
64030         * lib/glob_.h (__const): Remove macro.
64031         * lib/glob-libc.h: Use const instead of __const.
64032
64033 2006-01-10  Bruno Haible  <bruno@clisp.org>
64034
64035         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
64036         variable.
64037         Needed to avoid an automake error regarding the 'gettext' module.
64038
64039 2006-01-09  Simon Josefsson  <jas@extundo.com>
64040
64041         * modules/inet_ntop (Depends-on): Add restrict.
64042
64043 2006-01-09  Simon Josefsson  <jas@extundo.com>
64044
64045         * modules/gc-rijndael-tests (License): Put under LGPL.
64046
64047         * modules/gc-des-tests (License): Likewise.
64048
64049         * modules/gc-arcfour-tests (License): Likewise.
64050
64051         * modules/gc-arctwo-tests (License): Likewise.
64052
64053         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
64054
64055         * modules/gc-hmac-sha1-tests (Files): Likewise.
64056
64057         * modules/gc-hmac-md5-tests (License): Likewise.
64058
64059         * modules/gc-sha1-tests (License): Likewise.
64060
64061         * modules/gc-md5-tests (License): Likewise.
64062
64063         * modules/gc-md4-tests (License): Likewise.
64064
64065         * modules/gc-md2-tests (License): Likewise.
64066
64067         * modules/gc-tests (License): Likewise.
64068
64069         * modules/des-tests (License): Likewise.
64070
64071         * modules/md4-tests (License): Likewise.
64072
64073         * modules/md2-tests (License): Likewise.
64074
64075 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
64076
64077         Sync from coreutils:
64078
64079         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
64080         * modules/lib-ignore: New file.
64081         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
64082         chdir-safer.m4, lchmod.m4.
64083         * modules/openat: Add mkdirat.c, openat-priv.h.
64084
64085 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
64086
64087         Sync from coreutils.
64088         * m4/lib-ignore.m4: New file.
64089         * m4/lchmod.m4: New file.
64090
64091 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
64092
64093         Sync from coreutils.
64094         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
64095         for write access: POSIX says that must fail.
64096         * lib/fts.c (diropen): Likewise.
64097         * lib/save-cwd.c (save_cwd): Likewise.
64098         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
64099         well, for minor improvements on hosts that lack O_DIRECTORY.
64100         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
64101         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
64102         Fall back on chown if open failed with EACCES.
64103
64104         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
64105         Report an error at compile-time if only a 1-second nominal clock
64106         resolution is found.
64107
64108         * lib/lchmod.h: New file.
64109         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
64110         (make_dir_parents): Use lchown rather than chown, and
64111         lchmod rather than chmod.
64112
64113         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
64114         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
64115         "proc" reported by n0dalus.
64116
64117         * lib/mountlist.c: Include <limits.h>.
64118         (dev_from_mount_options)
64119         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
64120         New function.  It no longer assumes "dev=" has the System V meaning
64121         on Linux (since it doesn't).  It also parses "dev=" more carefully.
64122         (read_file_system_list)
64123         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
64124         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
64125         dev= in that case.
64126
64127         * lib/posixtm.h (PDS_PRE_2000): New macro.
64128         * lib/posixtm.c (year): Arg is now syntax_bits rather than
64129         allow_century.  All usages changed.  Reject dates outside the range
64130         1969-1999 if PDS_PRE_2000 is used.
64131
64132 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
64133
64134         Sync from coreutils.
64135         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
64136         (Time of day items): Mention the possibility of leap seconds.
64137         Problem reported by Dr. David Alan Gilbert.
64138
64139 2006-01-09  Jim Meyering  <jim@meyering.net>
64140
64141         Sync from coreutils.
64142
64143         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
64144
64145         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
64146
64147         * lib/modechange.c (mode_compile): Reject an invalid mode string
64148         that starts with an octal digit.  From Andreas Gruenbacher.
64149
64150         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
64151         and dup to open_safer and dup_safer, respectively.
64152         (openat_permissive): Fix typo in comment.
64153
64154         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
64155         "gettext.h"; either no longer needed or are guaranteed by openat.h.
64156         (_): Remove; no longer needed.
64157         (openat): Renamed from rpl_openat; no need for rpl_openat
64158         since openat.h renames openat for us.
64159         Replace most of the body with a call to openat_permissive,
64160         to avoid duplicate code.
64161         Port to (probably hypothetical) environments were mode_t is
64162         wider than int.
64163         (openat_permissive): Require mode arg, so that we can check
64164         types better.  Put it just after flags.  Change cwd failure
64165         indicator from pointer-to-bool to pointer-to-errno-value.
64166         All callers changed.
64167         Invoke openat_save_fail and/or openat_restore_fail if
64168         cwd_errno is null, so that openat can call us.
64169         (openat_permissive, fdopendir, fstatat, unlinkat):
64170         Simplify errno handling to avoid some duplicate code,
64171         as it's OK to set errno on success.
64172         * lib/openat.h: Revamp code so that function macros depend on
64173         __OPENAT_PREFIX only, not also on AT_FDCWD.
64174         (openat_ro): Remove.  Caller changed to use openat_permissive.
64175         (openat_permissive): Now a macro, if not a function.
64176         (openat_restore_fail, openat_save_fail): Now always functions,
64177         since mkdirat needs them even if __OPENAT_PREFIX is defined.
64178
64179         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
64180         and openat.c.
64181         * lib/mkdirat.c: Include openat-priv.h.
64182         Remove definitions of macros defined therein.
64183         * lib/openat.c: Likewise.
64184
64185         * lib/mkdirat.c (mkdirat): New file and function.
64186         * lib/openat.h (mkdirat): Declare.
64187
64188         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
64189
64190         * lib/openat.h (openat_permissive): Declare.
64191         (openat_ro): Define.
64192
64193         * lib/openat.c (EXPECTED_ERRNO): New macro.
64194         (openat_permissive): New function -- used in remove.c rewrite.
64195         (all functions): Set errno just before returning, only if there
64196         was an actual failure.
64197         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
64198
64199         Emulate openat-family functions using Linux's procfs, if possible.
64200         Idea and some code based on Ulrich Drepper's glibc changes.
64201
64202         * lib/openat.c: (BUILD_PROC_NAME): New macro.
64203         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
64204         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
64205         before falling back on save_cwd and restore_cwd.
64206         (fdopendir, fstatat, unlinkat): Likewise.
64207
64208         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
64209         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
64210
64211         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
64212         as second argument to va_arg.  Otherwise, some versions of gcc
64213         warn that `if this code is reached, the program will abort'.
64214
64215 2006-01-09  Jim Meyering  <jim@meyering.net>
64216
64217         Sync from coreutils.
64218         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
64219         Require openat-priv.h.
64220
64221 2006-01-09  Bruno Haible  <bruno@clisp.org>
64222
64223         * modules/strnlen (Include): Use strnlen.h.
64224
64225 2006-01-09  Bruno Haible  <bruno@clisp.org>
64226
64227         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
64228
64229 2006-01-09  Bruno Haible  <bruno@clisp.org>
64230
64231         * lib/sysexit_.h (EX_OK): New macro.
64232         Suggested by Martin Lambers <marlam@marlam.de>.
64233
64234 2006-01-09  Bruno Haible  <bruno@clisp.org>
64235
64236         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
64237         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
64238
64239 2006-01-09  Bruno Haible  <bruno@clisp.org>
64240
64241         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
64242         numbers.
64243
64244 2006-01-09  Bruno Haible  <bruno@clisp.org>
64245
64246         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
64247         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
64248         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
64249         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
64250
64251 2006-01-09  Bruno Haible  <bruno@clisp.org>
64252
64253         * build-aux/javacomp.sh.in: New file, moved from lib/.
64254         * modules/javacomp-script (Files): Update.
64255         (configure.ac): Add AC_CONFIG_FILES invocation.
64256         (EXTRA_DIST): Remove variable.
64257
64258         * build-aux/javaexec.sh.in: New file, moved from lib/.
64259         * modules/javaexec (Files): Update.
64260         (configure.ac): Add AC_CONFIG_FILES invocation.
64261         (EXTRA_DIST): Remove javaexec.sh.in.
64262
64263         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
64264         * modules/csharpcomp-script (Files): Update.
64265         (configure.ac): Add AC_CONFIG_FILES invocation.
64266         (EXTRA_DIST): Remove variable.
64267
64268         * build-aux/csharpexec.sh.in: New file, moved from lib/.
64269         * modules/csharpexec (Files): Update.
64270         (configure.ac): Add AC_CONFIG_FILES invocation.
64271         (EXTRA_DIST): Remove csharpexec.sh.in.
64272
64273 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
64274
64275         Sync from coreutils.
64276
64277         Add POSIX ACL support
64278         * lib/acl.h (copy_acl, set_acl): Add declarations.
64279         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
64280         systems other than Linux.
64281         (chmod_or_fchmod): New function: use fchmod when possible,
64282         and chmod otherwise.
64283         (file_has_acl): Add a POSIX ACL implementation, with a
64284         Linux-specific subcase.
64285         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
64286         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
64287         acls are unsupported.
64288         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
64289         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
64290         are unsupported.
64291
64292 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
64293
64294         Sync from coreutils.
64295         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
64296
64297 2006-01-07  Bruno Haible  <bruno@clisp.org>
64298
64299         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
64300         gl_EARLY.
64301
64302 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
64303
64304         * lib/strftime.c (tzname): Don't declare if it is already #defined.
64305         Problem reported for Mingw by Mark Junker.
64306
64307 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
64308
64309         * README: Gnulib normally doesn't generate a tarball.
64310
64311 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
64312
64313         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
64314         long int, not int, for nanosecond counts, so that people who are
64315         used to POSIX struct timespec won't be surprised.  Reported by Jim
64316         Meyering.
64317
64318 2005-12-28  Bruno Haible  <bruno@clisp.org>
64319
64320         * build-aux/config.rpath: Update from GNU gettext.
64321
64322 2005-12-16  Jim Meyering  <jim@meyering.net>
64323
64324         * modules/fprintftime: New module.
64325         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
64326
64327 2005-12-16  Jim Meyering  <jim@meyering.net>
64328
64329         * m4/fprintftime.m4: New file.
64330
64331 2005-12-16  Jim Meyering  <jim@meyering.net>
64332
64333         * lib/fprintftime.c, lib/fprintftime.h: New files.
64334
64335 2005-12-15  Simon Josefsson  <jas@extundo.com>
64336
64337         * modules/socklen (configure.ac): Fix M4 macro name, to align with
64338         new m4/socklen.m4.
64339
64340 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
64341
64342         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
64343         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
64344
64345 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
64346
64347         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
64348         * lib/argp-help.c (fill_in_uparams): Check if the constructed
64349         struct uparams is valid. Fall back to the default values if it is
64350         not.
64351
64352 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
64353
64354         * modules/argp (Files): Add argp-pin.c
64355         (Depends-on): dirname
64356         (lib_SOURCES): Add argp-pin.c
64357
64358 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
64359
64360         * m4/argp.m4:  Check if program_invocation_name and
64361         program_invocation_short_name are declared and define appropriate
64362         macros if they are not.
64363
64364 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
64365
64366         * lib/argp-help.c (__argp_base_name): New function
64367         (__argp_short_program_name): Rewrite using __argp_base_name
64368         * lib/argp-namefrob.h: Define program_invocation_name and
64369         program_invocation_short_name if requested
64370         (__argp_base_name): Add prototype
64371         * lib/argp-parse.c (argp_def): Use gettext wrappers
64372         (argp_default_parser): Use __argp_base_name
64373         * lib/argp-pin.c: New file. Defines program_invocation_name and
64374         program_invocation_short_name on systems that lack them.
64375
64376 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
64377
64378         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
64379         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
64380         porting problem reported by Georg Schwarz in
64381         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
64382
64383 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
64384
64385         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
64386         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
64387         porting problem reported by Georg Schwarz in
64388         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
64389
64390 2005-12-05  Bruno Haible  <bruno@clisp.org>
64391
64392         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
64393         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
64394         Reported by Mark Junker <mjscod@gmx.de>.
64395
64396 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
64397
64398         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
64399         Use implementation from Albert Chin, with some
64400         comments/corrections by Stepan Kasal and myself.
64401
64402 2005-12-02  Bruno Haible  <bruno@clisp.org>
64403
64404         * gnulib-tool (func_import): Accept GPLed build tool modules when
64405         --lgpl is given.
64406         * modules/csharpcomp-script: New file.
64407         * modules/csharpcomp: Depend on it.
64408         * modules/javacomp-script: New file.
64409         * modules/javacomp: Depend on it.
64410         Suggested by Simon Josefsson.
64411
64412 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
64413
64414         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
64415         statement, to work around an HP-UX 10.20 compiler bug reported by
64416         Peter O'Gorman.
64417
64418 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
64419
64420         * modules/savedir (Depends-on): Add openat.
64421
64422 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
64423
64424         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
64425         (uintmax_t) [defined uintmax_t]: Do not declare.
64426         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
64427         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
64428         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
64429         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
64430         sake of portability to weird hosts that C allows (though we don't
64431         know of any practical examples).
64432
64433         * lib/savedir.h (fdsavedir): New decl.
64434         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
64435         contains most of the former guts of savedir.
64436         (savedir): Use savedirstream.
64437         Include "openat.h".
64438
64439 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
64440
64441         * modules/obstack (Files): Add m4/ulonglong.m4.
64442         Problem reported by Davide Angelocola.
64443
64444 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
64445
64446         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
64447         coreutils no longer futzes with rounding modes.
64448
64449 2005-11-14  Jim Meyering  <jim@meyering.net>
64450
64451         * lib/mkstemp-safer.c: Include <config.h>, required for possible
64452         replacement of mkstemp.
64453
64454 2005-11-10  Simon Josefsson  <jas@extundo.com>
64455
64456         * lib/readline.c: Remove EOL.
64457
64458 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
64459
64460         * modules/gethrxtime (Depends-on): Add gettime.
64461
64462 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
64463
64464         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
64465         or gettimeofday; no longer needed.
64466
64467 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
64468
64469         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
64470         time business.
64471         (gethrxtime) [! (HAVE_NANOUPTIME
64472         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
64473         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
64474         our own approximation.
64475
64476 2005-11-08  Eric Blake  <ebb9@byu.net>
64477
64478         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
64479
64480 2005-11-08  Eric Blake  <ebb9@byu.net>
64481
64482         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
64483
64484 2005-11-04  Bruno Haible  <bruno@clisp.org>
64485
64486         * gnulib-tool: Implement --update mode.
64487
64488 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
64489
64490         Fix porting problem reported by Theodoros V. Kalamatianos.
64491         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
64492         Don't assume that futimes failing means we must fail.
64493
64494 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
64495
64496         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
64497         variables to suggest the intended function of the PATH_MAX check.
64498
64499 2005-10-30  Kean Johnston  <jkj@sco.com>
64500
64501         Trivial changes to support SCO systems.
64502         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
64503         as PATH_MAX.
64504         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
64505         where __ptr is null when no I/O is pending.
64506
64507 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
64508
64509         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
64510         leave errno alone.  Problem reported by Dmitry V. Levin.
64511
64512 2005-10-28  Simon Josefsson  <jas@extundo.com>
64513
64514         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
64515         Test more.
64516
64517         * tests/test-gc-md2.c, tests/test-md2.c: New files.
64518
64519         * modules/md2, modules/md2-tests: New files.
64520
64521 2005-10-28  Simon Josefsson  <jas@extundo.com>
64522
64523         * m4/inet_ntop.m4: More tests.
64524
64525         * m4/gc-md2.m4, md2.m4: New file.
64526
64527 2005-10-28  Simon Josefsson  <jas@extundo.com>
64528
64529         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
64530         "restrict" keywords, as per POSIX.  Protect the function
64531         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
64532         Don't use K&R prototypes.  Check the sprintf return values.
64533         Re-define EAFNOSUPPORT if not present.  Indent.
64534
64535         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
64536         suggested by Bruno Haible <bruno@clisp.org>.
64537
64538         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
64539
64540         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
64541
64542         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
64543         libgcrypt).
64544
64545         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
64546
64547         * lib/md2.h, lib/md2.c: New files.
64548
64549 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
64550
64551         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
64552         errno alone.  Problem reported by Frederic Jolliton.
64553
64554 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
64555
64556         * modules/verify (License): Change from GPL to LGPL.  This is a
64557         tiny module and there are apparently near-equivalents that are
64558         under the BSD license.
64559
64560 2005-10-24  Simon Josefsson  <jas@extundo.com>
64561
64562         * modules/sha1: Relicense to LGPL.
64563
64564 2005-10-24  Simon Josefsson  <jas@extundo.com>
64565
64566         * lib/md4.h: Shrink buffer size, now that we changed the type.
64567
64568 2005-10-23  Simon Josefsson  <jas@extundo.com>
64569
64570         * gnulib-tool (func_import): Fix --tests-base.
64571
64572 2005-10-22  Simon Josefsson  <jas@extundo.com>
64573
64574         * modules/arcfour (Depends-on): Need stdint.
64575
64576 2005-10-22  Simon Josefsson  <jas@extundo.com>
64577
64578         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
64579         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
64580
64581 2005-10-22  Simon Josefsson  <jas@extundo.com>
64582
64583         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
64584         suggested by Bruno Haible <bruno@clisp.org>.
64585
64586 2005-10-22  Simon Josefsson  <jas@extundo.com>
64587
64588         * lib/crc.h: Include stddef.h, for size_t.
64589
64590 2005-10-22  Simon Josefsson  <jas@extundo.com>
64591
64592         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
64593         arcfour_context struct (simplify test vector testing in GNU
64594         Shishi).
64595
64596 2005-10-21  Simon Josefsson  <jas@extundo.com>
64597
64598         * modules/des, modules/des-tests: New files.
64599
64600         * modules/gc-des, modules/gc-des-tests: New files.
64601
64602         * tests/test-des.c, tests/test-gc-des.c: New file.
64603
64604 2005-10-21  Simon Josefsson  <jas@extundo.com>
64605
64606         * modules/arctwo, modules/arctwo-tests: New files.
64607
64608         * tests/test-arctwo.c: New file.
64609
64610         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
64611
64612         * tests/test-gc-arctwo.c: New file.
64613
64614 2005-10-21  Simon Josefsson  <jas@extundo.com>
64615
64616         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
64617         Bruno Haible <bruno@clisp.org>.
64618
64619         * m4/gc-des.m4: New file.
64620
64621 2005-10-21  Simon Josefsson  <jas@extundo.com>
64622
64623         * m4/arctwo.m4: New file.
64624
64625         * m4/gc-arctwo.m4: New file.
64626
64627 2005-10-21  Simon Josefsson  <jas@extundo.com>
64628
64629         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
64630         block.
64631
64632 2005-10-21  Simon Josefsson  <jas@extundo.com>
64633
64634         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
64635         <bruno@clisp.org>.
64636
64637         * lib/hmac-sha1.c (hmac_sha1): Likewise.
64638
64639         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
64640         Bruno Haible <bruno@clisp.org>.
64641
64642         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
64643         <bruno@clisp.org>.
64644
64645 2005-10-21  Simon Josefsson  <jas@extundo.com>
64646
64647         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
64648
64649 2005-10-21  Simon Josefsson  <jas@extundo.com>
64650
64651         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
64652
64653 2005-10-21  Simon Josefsson  <jas@extundo.com>
64654
64655         * lib/des.h, lib/des.c: New files.
64656
64657         * lib/gc-gnulib.c: Support DES.c
64658
64659 2005-10-21  Simon Josefsson  <jas@extundo.com>
64660
64661         * lib/arctwo.h, lib/arctwo.c: New files.
64662
64663         * lib/gc-gnulib.c: Support ARCTWO.
64664
64665 2005-10-21  Simon Josefsson  <jas@extundo.com>
64666
64667         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
64668         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
64669
64670 2005-10-21  Simon Josefsson  <jas@extundo.com>
64671
64672         * gnulib-tool (func_import, func_create_testdir): Define automake
64673         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
64674         Makefile.am snippet),
64675         suggested by Bruno Haible <bruno@clisp.org>.
64676
64677         * modules/gc (Makefile.am): Use it.
64678
64679 2005-10-21  Bruno Haible  <bruno@clisp.org>
64680
64681         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
64682         patch.
64683
64684 2005-10-19  Simon Josefsson  <jas@extundo.com>
64685
64686         * tests/test-gc-rijndael.c: New file.
64687
64688         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
64689
64690 2005-10-19  Simon Josefsson  <jas@extundo.com>
64691
64692         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
64693         interface too.
64694
64695 2005-10-19  Simon Josefsson  <jas@extundo.com>
64696
64697         * tests/test-gc-arcfour.c: New file.
64698
64699         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
64700
64701 2005-10-19  Simon Josefsson  <jas@extundo.com>
64702
64703         * modules/gc-md4, modules/gc-md4-tests: New file.
64704
64705         * tests/test-gc-md4.c: New file.
64706
64707 2005-10-19  Simon Josefsson  <jas@extundo.com>
64708
64709         * m4/gc-md4.m4: New file.
64710
64711 2005-10-19  Simon Josefsson  <jas@extundo.com>
64712
64713         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
64714         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
64715         <kasal@ucw.cz>.
64716
64717 2005-10-19  Simon Josefsson  <jas@extundo.com>
64718
64719         * m4/gc-arcfour.m4: New file.
64720
64721         * m4/gc-rijndael.m4: New file.
64722
64723 2005-10-19  Simon Josefsson  <jas@extundo.com>
64724
64725         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
64726
64727 2005-10-19  Simon Josefsson  <jas@extundo.com>
64728
64729         * lib/gc-gnulib.c: Support ARCFOUR.
64730
64731 2005-10-19  Simon Josefsson  <jas@extundo.com>
64732
64733         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
64734         support.
64735
64736         * lib/gc.h: Add ECB enum type.
64737
64738         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
64739
64740 2005-10-18  Simon Josefsson  <jas@extundo.com>
64741
64742         * tests/test-md5.c: New file.
64743
64744         * modules/md5-tests: New file.
64745
64746 2005-10-18  Simon Josefsson  <jas@extundo.com>
64747
64748         * tests/test-md4.c: New file.
64749
64750         * modules/md4, modules/md4-tests: New files.
64751
64752 2005-10-18  Simon Josefsson  <jas@extundo.com>
64753
64754         * m4/md4.m4: New file.
64755
64756 2005-10-18  Simon Josefsson  <jas@extundo.com>
64757
64758         * lib/md4.h, lib/md4.c: New files, based on md5.?.
64759
64760 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
64761
64762         * gnulib-tool (func_create_testdir): Omit the second check whether
64763         BUILT_SOURCES in nonempty.
64764
64765 2005-10-17  Simon Josefsson  <jas@extundo.com>
64766
64767         * tests/test-rijndael.c: New file.
64768
64769 2005-10-17  Simon Josefsson  <jas@extundo.com>
64770
64771         * modules/sha1: Depend on stdint instead of md5.
64772
64773         * modules/md5: Depend on stdint, remove uint32_t.
64774
64775 2005-10-17  Simon Josefsson  <jas@extundo.com>
64776
64777         * modules/gc-sha1-tests: New file.
64778
64779         * tests/test-gc-sha1.c: New file.
64780
64781 2005-10-17  Simon Josefsson  <jas@extundo.com>
64782
64783         * m4/md5.m4: Remove call to uint32_t.m4.
64784
64785 2005-10-17  Simon Josefsson  <jas@extundo.com>
64786
64787         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
64788
64789         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
64790         md5.h.
64791
64792         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
64793
64794         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
64795
64796 2005-10-17  Simon Josefsson  <jas@extundo.com>
64797
64798         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
64799
64800 2005-10-17  Simon Josefsson  <jas@extundo.com>
64801
64802         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
64803
64804 2005-10-17  Simon Josefsson  <jas@extundo.com>
64805
64806         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
64807
64808         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
64809
64810 2005-10-17  Bruno Haible  <bruno@clisp.org>
64811
64812         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
64813         that it can also be used in a test.
64814
64815 2005-10-16  Bruno Haible  <bruno@clisp.org>
64816
64817         * gnulib-tool (func_emit_tests_Makefile_am): Also define
64818         TESTS_ENVIRONMENT, so that individual tests can augment it.
64819
64820         * gnulib-tool (func_create_testdir): Use an intermediate target for
64821         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
64822         macros, like $(ALLOCA_H), which cannot be passed through the command
64823         line.
64824
64825 2005-10-15  Simon Josefsson  <jas@extundo.com>
64826
64827         * modules/rijndael-tests: New file.
64828
64829         * modules/rijndael: New file.
64830
64831 2005-10-15  Simon Josefsson  <jas@extundo.com>
64832
64833         * m4/rijndael.m4: New file.
64834
64835 2005-10-15  Simon Josefsson  <jas@extundo.com>
64836
64837         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
64838
64839         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
64840
64841 2005-10-14  Simon Josefsson  <jas@extundo.com>
64842
64843         * tests/test-arcfour.c: New file.
64844
64845         * modules/arcfour, modules/arcfour-tests: New files.
64846
64847 2005-10-14  Simon Josefsson  <jas@extundo.com>
64848
64849         * m4/arcfour.m4: New file.
64850
64851 2005-10-14  Simon Josefsson  <jas@extundo.com>
64852
64853         * lib/arcfour.h, lib/arcfour.c: New files.
64854
64855 2005-10-14  Roland McGrath  <roland@redhat.com>
64856
64857         Import from libc.  [BZ #1331]
64858         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
64859         macro argument.
64860         Reported by Matej Vela <vela@debian.org>.
64861
64862 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
64863
64864         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
64865         include <wchar.h>; no longer needed.
64866
64867 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
64868
64869         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
64870
64871 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
64872         and  Ulrich Drepper  <drepper@redhat.com>
64873
64874         Import from libc.
64875         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
64876         instead of inline stream orientation test and two separate
64877         function calls.  Pay no attention to USE_IN_LIBIO.
64878
64879 2005-10-13  Simon Josefsson  <jas@extundo.com>
64880
64881         * modules/gc-hmac-md5-tests: New file.
64882
64883         * tests/test-gc-hmac-sha1.c: New file.
64884
64885         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
64886
64887         * modules/gc-hmac-md5-tests: New file.
64888
64889         * tests/test-gc-md5.c: New file.
64890
64891         * modules/gc-md5-tests: New file.
64892
64893 2005-10-13  Simon Josefsson  <jas@extundo.com>
64894
64895         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
64896         Move memory allocation outside of loop.
64897
64898 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
64899
64900         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
64901         intermediate directory is in a read-only file system.  Problem
64902         reported by Eric Blake.
64903
64904 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
64905
64906         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
64907
64908 2005-10-12  Simon Josefsson  <jas@extundo.com>
64909
64910         * tests/test-hmac-sha1.c: New file.
64911
64912         * modules/hmac-sha1-tests: New file.
64913
64914         * modules/hmac-sha1: New file.
64915
64916 2005-10-12  Simon Josefsson  <jas@extundo.com>
64917
64918         * modules/gc-sha1: New file.
64919
64920 2005-10-12  Simon Josefsson  <jas@extundo.com>
64921
64922         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
64923
64924         * tests/test-gc-pbkdf2-sha1.c: New file.
64925
64926 2005-10-12  Simon Josefsson  <jas@extundo.com>
64927
64928         * modules/gc-md5, modules/gc-hmac-md5: New files.
64929
64930         * modules/gc (Files): Remove md5, memxor and hmac files.
64931
64932 2005-10-12  Simon Josefsson  <jas@extundo.com>
64933
64934         * m4/gc-pbkdf2-sha1.m4: New file.
64935
64936         * m4/gc-hmac-sha1.m4: New file.
64937
64938         * m4/gc-sha1: New file.
64939
64940         * m4/hmac-sha1.m4: New file.
64941
64942 2005-10-12  Simon Josefsson  <jas@extundo.com>
64943
64944         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
64945
64946         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
64947
64948 2005-10-12  Simon Josefsson  <jas@extundo.com>
64949
64950         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
64951         suggested by Bruno Haible <bruno@clisp.org>.
64952
64953 2005-10-12  Simon Josefsson  <jas@extundo.com>
64954
64955         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
64956
64957 2005-10-12  Simon Josefsson  <jas@extundo.com>
64958
64959         * lib/gc-pbkdf2-sha1.c: New file.
64960
64961         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
64962
64963 2005-10-12  Simon Josefsson  <jas@extundo.com>
64964
64965         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
64966
64967         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
64968
64969 2005-10-12  Simon Josefsson  <jas@extundo.com>
64970
64971         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
64972         GC_USE_HMAC_MD5, respectively.
64973
64974         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
64975         (gc_md5): Fix typo.
64976
64977         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
64978
64979         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
64980
64981         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
64982
64983 2005-10-12  Bruno Haible  <bruno@clisp.org>
64984
64985         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
64986         Reported by Stepan Kasal <kasal@ucw.cz>.
64987
64988 2005-10-11  Simon Josefsson  <jas@extundo.com>
64989
64990         * tests/test-crc.c: New file.
64991
64992         * modules/crc, modules/crc-tests: New files.
64993
64994 2005-10-11  Simon Josefsson  <jas@extundo.com>
64995
64996         * m4/crc.m4: New file.
64997
64998 2005-10-11  Simon Josefsson  <jas@extundo.com>
64999
65000         * lib/gc.h: Add gc_hash and gc_hash_buffer.
65001
65002         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
65003
65004         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
65005
65006 2005-10-11  Simon Josefsson  <jas@extundo.com>
65007
65008         * lib/crc.h, lib/crc.c: New files.
65009
65010         * lib/gc.h (gc_hash_buffer): Add doc.
65011
65012 2005-10-11  Bruno Haible  <bruno@clisp.org>
65013
65014         * modules/c-strcasestr: New file.
65015         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
65016
65017 2005-10-11  Bruno Haible  <bruno@clisp.org>
65018
65019         * modules/c-strcase: New file.
65020         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
65021
65022 2005-10-11  Bruno Haible  <bruno@clisp.org>
65023
65024         * lib/strcasecmp.c: Include limits.h.
65025         (strcasecmp): Avoid integer overflow on exotic platforms.
65026         * lib/strncasecmp.c: Include limits.h.
65027         (strncasecmp): Avoid integer overflow on exotic platforms.
65028         Reported by Paul Eggert.
65029
65030 2005-10-11  Bruno Haible  <bruno@clisp.org>
65031
65032         * lib/c-strcasestr.h: New file, from GNU gettext.
65033         * lib/c-strcasestr.c: New file, from GNU gettext.
65034
65035 2005-10-11  Bruno Haible  <bruno@clisp.org>
65036
65037         * lib/c-strcase.h: New file, from GNU gettext.
65038         * lib/c-strcasecmp.c: New file, from GNU gettext.
65039         * lib/c-strncasecmp.c: New file, from GNU gettext.
65040
65041 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
65042
65043         * modules/mempcpy (License): GPL -> LGPL.
65044         * modules/strchrnul (License): Likewise.
65045         * modules/sysexits (License): Likewise.
65046
65047 2005-10-08  Simon Josefsson  <jas@extundo.com>
65048
65049         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
65050
65051 2005-10-07  Simon Josefsson  <jas@extundo.com>
65052
65053         * m4/memxor.m4: Remove gl_C_RESTRICT call.
65054
65055 2005-10-06  Simon Josefsson  <jas@extundo.com>
65056
65057         * tests/test-hmac-md5.c: New file.
65058
65059         * modules/hmac-md5-tests: New file.
65060
65061         * modules/hmac-md5: New file.
65062
65063 2005-10-06  Simon Josefsson  <jas@extundo.com>
65064
65065         * m4/hmac-md5.m4: New file.
65066
65067         * m4/memxor.m4: Require gl_C_RESTRICT.
65068
65069 2005-10-06  Simon Josefsson  <jas@extundo.com>
65070
65071         * lib/memxor.c (memxor): Avoid casts and warnings.
65072
65073 2005-10-06  Simon Josefsson  <jas@extundo.com>
65074
65075         * lib/hmac-md5.c: New file.
65076
65077         * lib/hmac.h: New file.
65078
65079 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
65080
65081         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
65082         promotes to int, not unsigned int, to catch the AIX 5.3
65083         compiler bug.
65084
65085 2005-10-05  Simon Josefsson  <jas@extundo.com>
65086
65087         * modules/memxor: New file.
65088
65089         * modules/iconv (Files): Move config.rpath to havelib, it is used
65090         there.
65091
65092         * modules/havelib (Files): Add config.rpath.
65093
65094 2005-10-05  Simon Josefsson  <jas@extundo.com>
65095
65096         * m4/memxor.m4: New file.
65097
65098 2005-10-05  Simon Josefsson  <jas@extundo.com>
65099
65100         * lib/memxor.c (memxor): Fix compiler error.
65101
65102         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
65103         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
65104
65105         * lib/memxor.h, lib/memxor.c: New files.
65106
65107         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
65108         we assume all systems have it, suggested by Jim Meyering
65109         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
65110         any systems lack sys/socket.h; mingw32 is known to lack it, but we
65111         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
65112         same reasons.
65113
65114 2005-10-05  Simon Josefsson  <jas@extundo.com>
65115
65116         * config/srclist.txt: Add glibc bug 1423 for md5.h.
65117
65118 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
65119
65120         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
65121         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
65122         needed, since the source code now assumes these .h files.
65123
65124 2005-10-05  Derek Price  <derek@ximbiot.com>
65125
65126         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
65127
65128 2005-10-05  Bruno Haible  <bruno@clisp.org>
65129
65130         * modules/stdint (License): Change to LGPL.
65131
65132 2005-10-04  Simon Josefsson  <jas@extundo.com>
65133
65134         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
65135         D. Baushke" <mdb@gnu.org>.
65136
65137 2005-10-04  Bruno Haible  <bruno@clisp.org>
65138
65139         * lib/verify.h (verify_true): Provide alternative definition for C++.
65140
65141 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
65142
65143         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
65144         (SSIZE_MAX): New macro, if not already defined.
65145         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
65146         than 2 GiB.
65147
65148 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
65149
65150         Sync from coreutils.
65151         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
65152         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
65153         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
65154         ULLONG_MAX doesn't work with 2.7.2.1.
65155
65156 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
65157
65158         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
65159         From Ben Pfaff.
65160
65161         * modules/exclude (Depends-on): Depend on verify.
65162         * modules/strtoimax (Depends-on): Likewise.
65163         * modules/utimecmp (Depends-on): Likewise.
65164
65165 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
65166
65167         * lib/exclude.c: Include verify.h.
65168         (verify): Remove.  All callers changed to use verify.h's version.
65169         * lib/strtoimax.c: Likewise.
65170         * lib/utimecmp.c: Likewis.e
65171
65172         Sync from coreutils.
65173         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
65174         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
65175         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
65176         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
65177         bother returning ENOSYS if settimeofday or stime fails; just let
65178         them return whatever errno they want to return.
65179         * lib/utimens.c: Include unistd.h, for dup2.
65180         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
65181         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
65182
65183 2005-10-02  Jim Meyering  <jim@meyering.net>
65184
65185         Sync from coreutils.
65186         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
65187         from glibc-2.2.5 that fails for read-only files.
65188
65189 2005-10-02  Jim Meyering  <jim@meyering.net>
65190
65191         Sync from coreutils.
65192         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
65193         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
65194         `#if HAVE_CONFIG_H'.
65195         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
65196         Remove AT_FDCWD test.
65197         Do not consume the fd unless successful.
65198         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
65199         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
65200         block, so that we don't even try to compile it if settimeofday is
65201         available.  This works around a compilation failure on OSF1 V5.1,
65202         due to stime requiring a `long int*' while tv_sec is `int'.
65203
65204 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
65205
65206         Sync from coreutils.
65207         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
65208         against `yes', rather than just testing for nonempty.
65209
65210 2005-10-01  Simon Josefsson  <jas@extundo.com>
65211
65212         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
65213         and Darwin.
65214
65215         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
65216         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
65217         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
65218         freeaddrinfo and gai_strerror are declared by the POSIX headers.
65219         Check if struct addrinfo is declared.
65220
65221 2005-10-01  Simon Josefsson  <jas@extundo.com>
65222
65223         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
65224         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
65225         AI_* and EAI_* definitions.  Protect function declarations.
65226
65227 2005-10-01  Jim Meyering  <jim@meyering.net>
65228
65229         Sync from coreutils.
65230
65231         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
65232         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
65233         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
65234         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
65235         in the inet and nsl libraries.  Required on Solaris 5.7.
65236
65237 2005-10-01  Jim Meyering  <jim@meyering.net>
65238
65239         Sync from coreutils.
65240         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
65241         in the inet and nsl libraries.  Required on Solaris 5.7.
65242
65243 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
65244
65245         * lib/getdelim.c (getdelim): Remove unused variables.
65246
65247 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
65248
65249         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
65250         so that the code works even with ancient cpp.  Portability problem
65251         with GCC 2.7.2.1 reported by Thomas M.Ott.
65252
65253 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
65254
65255         * modules/regex (Depends-on): Add strcase.
65256
65257         * modules/gethostname (Licence): Change from GPL to LGPL, since
65258         gethostname.c is a trivial implementation of a standard library
65259         function.
65260         * modules/poll (License): Change from GPL to LGPL, since it's
65261         derived from LGPL code.
65262
65263 2005-09-27  Jim Meyering  <jim@meyering.net>
65264
65265         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
65266         HAVE_CONFIG_H.
65267
65268         * lib/intprops.h (signed_type_or_expr__): Define.
65269         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
65270         for unsigned types.
65271
65272 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
65273
65274         * lib/verify.h (verify_expr): Remove, replacing with:
65275         (verify_true): New macro that returns true instead of void.
65276         (verify_type__): Remove.
65277         (verify): Use verify_true rather than verify_type__.
65278
65279 2005-09-26  Bruno Haible  <bruno@clisp.org>
65280
65281         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
65282         is necessary.
65283         (lib_SOURCES): Remove mbchar.c.
65284         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
65285         (Files): Add m4/mbrtowc.m4.
65286         * modules/mbiter: Likewise.
65287         * modules/mbuiter: Likewise.
65288
65289 2005-09-26  Bruno Haible  <bruno@clisp.org>
65290
65291         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
65292         compile mbchar.c if they are not both present.
65293         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
65294         * m4/mbiter.m4 (gl_MBITER): Likewise.
65295         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
65296         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
65297         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
65298
65299 2005-09-25  Jim Meyering  <jim@meyering.net>
65300
65301         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
65302         also uses socklen_t.
65303
65304 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
65305
65306         * lib/utimens.c (ENOSYS): Define if not already defined.
65307         (futimens): Support having a null PATH if the file descriptor
65308         is nonnegative.
65309
65310         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
65311         Remove.
65312         (__attribute): Define to empty unless GCC 3.1 or later.
65313         This works around a core dump on OpenBSD 3.4, which has GCC
65314         2.95.3, which dumps core when given __attribute__(()).  It also
65315         simplifies other tests, since we really don't want to bother with
65316         worrying about which ancient version of GCC supported what.
65317         Original problem reported by Yoann Vandoorselaere, with part of
65318         the fix suggested by Derek Price.
65319
65320 2005-09-24  Jim Meyering  <jim@meyering.net>
65321
65322         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
65323         so we can once again use a positive bitfield width of 1 -- now we
65324         don't have to explain why we were using a bitfield width of 2.
65325
65326 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
65327
65328         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
65329         and similarly for the other external symbols.  Problem reported
65330         by James Gallager.
65331
65332         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
65333         bug reported by Jim Meyering.
65334
65335         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
65336         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
65337         not needed, since socklen is a prerequisite module.
65338
65339 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
65340
65341         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
65342         Problem reported by Eric Blake.
65343         (getaddrinfo): Initialize se so that it's not garbage.
65344         Redo internal storage allocation so that it doesn't make unportable
65345         assumptions about alignment.
65346         Fix a memory leak.
65347
65348         * lib/utimens.c (futimens): Use futimesat if available.
65349         Prefer it to futimes since it doesn't have the futimes bug.
65350
65351         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
65352         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
65353         Instead, declare a function that returns a pointer to an array,
65354         and use verify_type__ to declare the size of the array.
65355         Problem and germ of a solution reported by Bruno Haible.
65356         (verify_type__): Use 2, not 1, for bitfield size, to avoid
65357         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
65358
65359 2005-09-23  Jim Meyering  <jim@meyering.net>
65360
65361         Sync from coreutils.
65362         Correct build failure (socklen_t not defined) on at least
65363         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
65364         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
65365
65366 2005-09-23  Jim Meyering  <jim@meyering.net>
65367
65368         * modules/getaddrinfo (Depends-on): Add socklen.
65369
65370 2005-09-23  Bruno Haible  <bruno@clisp.org>
65371
65372         * tests/test-verify.c: New file.
65373
65374 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
65375
65376         Sync from coreutils.
65377
65378         * modules/argmatch (Depends-on): Add verify.
65379         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
65380         unistd-safer.
65381         * modules/save-cwd (Depends-on): Likewise.
65382
65383         * modules/openat (Files): Add lib/openat-die.c.
65384         (Depends-on): Remove error, exitfail.
65385         Add dirname.
65386
65387         * modules/verify: New file.
65388         * MODULES.html.sh (Diagnostics <assert.h>): New section,
65389         with "verify" module.
65390
65391 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
65392
65393         Sync from coreutils.
65394
65395         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
65396         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
65397         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
65398         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
65399         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
65400         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
65401         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
65402         Don't bother checking for string.h, stdlib.h, unistd.h.
65403         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
65404         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
65405         module's job.
65406         * m4/jm-macros.m4 (gl_MACROS): Likewise.
65407         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
65408
65409         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
65410         (gl_GETDATE): Use it.
65411
65412         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
65413
65414 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
65415
65416         Sync from coreutils.
65417
65418         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
65419         stat-time.h.
65420         * lib/argmatch.h: Include verify.h
65421         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
65422         (ARGMATCH_ASSERT): Remove; unused.
65423         * lib/canonicalize.c: Assume STDC_HEADERS.
65424         * lib/exclude.c: Include "strcase.h".
65425         * lib/regex_internal.h [!defined _LIBC]: Likewise.
65426         * lib/getusershell.c: Include stdio--.h rather than stdio.h
65427         and stdio-safer.h.
65428         (getusershell): Call fopen, not fopen_safer.
65429         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
65430         Do not include unistd-safer.h.
65431         (save_cwd): Don't call fd_safer; no longer needed
65432         now that we include fcntl--.h.
65433
65434         * lib/getdate.y (relative_time): New type.
65435         (RELATIVE_TIME_0): New constant.
65436         (parser_control): Use relative_time instead of doing it ourselves.
65437         (%union): Add new relative_time rel member.
65438         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
65439         Now typeless.
65440         (relunit, relunit_snumber): Now of type rel.
65441         (zone, rel, relunit, get_date): Adjust to above changes.
65442
65443         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
65444         Do not include unistd-safer.h.
65445         (getloadavg): Don't call fd_safer; no longer needed
65446         now that we include fcntl--.h.
65447
65448         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
65449         (make_dir_parents): Treat ENOSYS like EEXIST.
65450
65451         Improve quality of diagnostics on restore_cwd failure.
65452         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
65453         (make_dir_parents): Last arg is now int * (for errno), not bool *.
65454         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
65455         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
65456         each time through the loop.  Do not diagnose restore_cwd failure;
65457         that is the caller's job (and perhaps the caller does not care).
65458
65459         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
65460         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
65461         If the file already exists but is not a directory, don't bother
65462         to try to make its parents.
65463         Close potential file descriptor leak if we can't chdir("/") (!).
65464         Don't always return true if chdir($PWD) fails; return true only
65465         if the requested action was done successfully (except for the
65466         chdir($PWD)).
65467         Don't log final directory unless we actually made it.
65468         Refactor to avoid duplicate code to fix up permissions.
65469         Don't attempt to fix up parent permissions if chdir($PWD) fails.
65470
65471         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
65472         to make it a bit faster and (I hope) clearer.
65473         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
65474         Fix bug in formats like %2N.
65475
65476         * lib/verify.h: New file.
65477
65478 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
65479
65480         Sync from coreutils.
65481         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
65482
65483 2005-09-22  Jim Meyering  <jim@meyering.net>
65484
65485         Sync from coreutils.
65486
65487         * m4/lstat.m4 (gl_FUNC_LSTAT):
65488         Use AC_LIBSOURCES to require lstat.c and lstat.h.
65489         Remove obsolete comment.
65490         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
65491         * m4/xstrtod.m4: Likewise.
65492
65493         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
65494
65495 2005-09-22  Jim Meyering  <jim@meyering.net>
65496
65497         Sync from coreutils.
65498
65499         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
65500
65501         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
65502         the .tm_year member, since otherwise gcc-4.0 would now warn about
65503         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
65504
65505         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
65506         order to avoid an unsuppressible warning from gcc on 64-bit systems.
65507
65508         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
65509         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
65510         when run in a time zone for which daylight savings time is in effect
65511         for the starting date.
65512
65513         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
65514         stop us from restricting permissions of just-created absolute-named
65515         directories.
65516         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
65517         to restore initial working directory.
65518         * lib/mkdir-p.c (make_dir_parents): New parameter:
65519         different_working_dir, to tell caller if/when we change the working
65520         directory and are unable to return to the initial one.
65521         * lib/mkdir-p.h (make_dir_parents): Update prototype.
65522         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
65523         `return false'.  This fixes a bug introduced on 2004-07-30.
65524
65525         * lib/openat.c (fdopendir): Be sure to close the supplied
65526         file descriptor before returning.  This makes our replacement
65527         implementation a little closer to Solaris's, where fdopendir
65528         ties the file descriptor to the returned DIR* pointer.
65529         * lib/openat.c (unlinkat): New function.
65530         * lib/openat.h (unlinkat): Add prototype.
65531         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
65532         (openat_restore_fail): Rename from openat_restore_die.
65533         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
65534
65535         Provide an alternative to exiting immediately upon save_cwd or
65536         restore_cwd failure.  Now, an application can arrange e.g.,
65537         to perform a longjump in that case.
65538         * lib/openat.c: Include dirname.h.
65539         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
65540         (rpl_openat, fdopendir, fstatat): Call openat_save_die
65541         and openat_restore_die rather than calling error directly.
65542         Don't include "error.h" or "exitfail.h"; they're no longer needed.
65543
65544         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
65545         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
65546         define.
65547
65548         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
65549         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
65550                             int utc, int nanoseconds);
65551         Background:
65552         date should not have to allocate a megabyte of virtual memory to
65553         handle a format argument like +%1048575T.  When implemented with
65554         strftime, it must allocate such a buffer, use strftime to fill it
65555         in, print it, then free it.
65556         With fprintftime, it simply prints everything and exits.
65557         With no need for memory allocation, that's one fewer way to fail.
65558         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
65559         optional field width, not before, so we accept %9:z, not %:9z.
65560         (my_strftime): Be sure to use L_('x') for literals.
65561
65562         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
65563         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
65564         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
65565         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
65566         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
65567         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
65568         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
65569         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
65570         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
65571         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
65572         * lib/xgethostname.c, lib/xreadlink.c:
65573         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
65574
65575         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
65576         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
65577         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
65578         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
65579         and don't include <sys/file.h>).
65580
65581 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
65582
65583         Sync from coreutils.
65584
65585         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
65586         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
65587         [!LDAV_DONE]: Avoid unused variable warning.
65588
65589 2005-09-21  Bruno Haible  <bruno@clisp.org>
65590
65591         * lib/unicodeio.h (unicode_to_mb): New declaration.
65592
65593 2005-09-20  Derek Price  <derek@ximbiot.com>
65594
65595         * lib/getaddrinfo.c: Don't include <netdb.h> included from
65596         getaddrinfo.h.
65597
65598 2005-09-20  Bruno Haible  <bruno@clisp.org>
65599
65600         * gnulib-tool: Remove trailing slashes from the values specified for
65601         --source-base, --m4-base, --tests-base, --aux-dir.
65602         Suggested by Simon Josefsson <jas@extundo.com>.
65603
65604 2005-09-20  Bruno Haible  <bruno@clisp.org>
65605
65606         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
65607         func_modules_to_filelist, func_import, func_create_testdir): Make all
65608         sorting results locale-independent, so that gnulib-cache.m4 doesn't
65609         change when gnulib-tool is invoked in a different locale.
65610
65611 2005-09-19  Simon Josefsson  <jas@extundo.com>
65612
65613         * m4/socklen.m4: Fix typo.
65614
65615 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65616
65617         Use a consistent style for including <config.h>.
65618         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
65619         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
65620         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
65621         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
65622         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
65623         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
65624         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
65625         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
65626         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
65627         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
65628         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
65629         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
65630         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
65631         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
65632         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
65633         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
65634         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
65635         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
65636         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
65637         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
65638         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
65639         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
65640         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
65641         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
65642         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
65643         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
65644         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
65645         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
65646         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
65647         lib/xstrtoumax.c, lib/yesno.c:
65648         Standardize inclusion of config.h.
65649         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
65650         lib/inttostr.h:  Removed inclusion of config.h from header files.
65651         * lib/inttostr.c:  Adjusted in-tree users.
65652         * lib/timespec.h: Remove superfluous warning to include config.h.
65653         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
65654         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
65655         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
65656         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
65657         config.h with HAVE_CONFIG_H.
65658
65659 2005-09-19  Jim Meyering  <jim@meyering.net>
65660
65661         * modules/pathmax (License): Change to LGPL.
65662
65663 2005-09-19  Derek Price  <derek@ximbiot.com>
65664
65665         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
65666
65667 2005-09-19  Bruno Haible  <bruno@clisp.org>
65668
65669         * gnulib-tool (import): Provide default for --tests-base.
65670
65671 2005-09-19  Bruno Haible  <bruno@clisp.org>
65672
65673         * doc/quote.texi: New file, extracted from gnulib.texi.
65674         * doc/ctime.texi: New file, extracted from gnulib.texi.
65675         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
65676         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
65677         * doc/gnulib.texi: Include them.
65678
65679 2005-09-18  Bruno Haible  <bruno@clisp.org>
65680
65681         Portability fix.
65682         * gnulib-tool (func_readlink): New function.
65683         (func_ln_if_changed): Use it.
65684
65685 2005-09-18  Bruno Haible  <bruno@clisp.org>
65686
65687         * gnulib-tool: Support --with-tests also with --import.
65688         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
65689         (func_import): Use variables $testsbase and $inctests. Emit a
65690         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
65691         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
65692         SUBDIRS += $testsdir.
65693         (func_create_testdir): Update.
65694
65695 2005-09-18  Bruno Haible  <bruno@clisp.org>
65696
65697         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
65698         instead of $dry_run.
65699         (func_cp_if_changed, func_mv_if_changed): Remove functions.
65700         (func_ln_if_changed): Don't handle dry-run here.
65701         (func_import): In dry-run mode, detect more precisely which actions
65702         would be performed, and don't use "...ing" verbs.
65703
65704 2005-09-18  Bruno Haible  <bruno@clisp.org>
65705
65706         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
65707         (func_import): Use join on two temporary files instead of three nested
65708         loops, in order to determine which files are new or old.
65709
65710 2005-09-18  Bruno Haible  <bruno@clisp.org>
65711
65712         * gnulib-tool (func_import): Comment out code that spits out the
65713         new files with --dry-run.
65714
65715 2005-09-18  Bruno Haible  <bruno@clisp.org>
65716
65717         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
65718
65719 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
65720
65721         * lib/stat-time.h: New file.
65722         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
65723         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
65724         in a different way.
65725         (timespec_cmp): New function.
65726         * lib/utimecmp.c: Include stat-time.h.
65727         (SYSCALL_RESOLUTION): Depend on whether various struct stat
65728         members exist, not on the obsolescent ST_MTIM_NSEC.
65729         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
65730
65731 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
65732
65733         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
65734
65735 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
65736
65737         * MODULES.html.sh (File system functions): Add stat-time.
65738         * modules/stat-time: New file.
65739         * modules/timespec (Files): Remove m4/st_mtim.m4; this
65740         is now done in a different way, by the stat-time module.
65741         * modules/utimecmp (Depends-on): Add stat-time.
65742
65743 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
65744
65745         * m4/st_mtim.m4: Remove.  Superseded by...
65746         * m4/stat-time.m4: New file.
65747         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
65748         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
65749
65750 2005-09-15  Derek Price  <derek@ximbiot.com>
65751
65752         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
65753
65754 2005-09-15  Derek Price  <derek@ximbiot.com>
65755
65756         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
65757         * lib/regex_internal.c: Ditto, using this...
65758         (__GNUC_PREREQ): ...new macro.
65759         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
65760         using...
65761         (__GNUC_PREREQ): ...this new macro.
65762
65763         * lib/strstr.h: Include string.h. Define strstr as a macro here.
65764
65765 2005-09-15  Derek Price  <derek@ximbiot.com>
65766             Paul Eggert  <eggert@cs.ucla.edu>
65767
65768         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
65769         changes, consolidating in...
65770         * lib/regex_internal.h: ...this file.
65771
65772 2005-09-13  Jim Meyering  <jim@meyering.net>
65773
65774         * lib/canon-host.c: Filter through gnu indent and reword comments
65775         slightly.
65776         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
65777
65778 2005-09-13  Derek Price  <derek@ximbiot.com>
65779
65780         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
65781         failure.
65782         Reported by Jim Meyering  <jim@meyering.net>.
65783
65784 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
65785
65786         * lib/base64.c: Typo.
65787         (base64_encode): Put b64str in initialized data section.
65788
65789 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
65790
65791         Merge glibc and coreutils changes into gnulib, plus a few
65792         extra fixes.
65793         * lib/md5.c: Use #error rather than a string.
65794         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
65795         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
65796         (__attribute__): Define to empty for non recent-GCC.
65797         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
65798         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
65799         Renamed from their non-__ counterparts, with new macros replacing
65800         them if not _LIBC.  Add __THROW attribute.
65801         (rol): Remove.
65802         (struct md5_ctx): Align buffer if using GCC.
65803         * lib/sha1.h (struct sha1_ctx): Likewise.
65804         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
65805         The old name was backwards.
65806         (NOTSWAP): Remove; not used.
65807         (rol): New macro, moved here from md5.h.
65808         (sha1_process_block): Remove a FIXME that doesn't make sense.
65809
65810 2005-09-12  Derek Price  <derek@ximbiot.com>
65811
65812         Return usable errors from canon-host.
65813         * lib/canon-host.h: New file.
65814         * lib/canon-host.c (canon_host): Wrap...
65815         (canon_host_r): ...this new function, which now relies exclusively on
65816         getaddrinfo.
65817         (ch_strerror): New function.
65818         (last_cherror): New global.
65819         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
65820         interface.
65821         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
65822         void *.
65823         (freeaddrinfo): Free ai->ai_canonname when set.
65824
65825 2005-09-12  Derek Price  <derek@ximbiot.com>
65826
65827         Make canon-host require getaddrinfo.
65828         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
65829         AC_LIBSOURCE canon-host.h.  Call...
65830         (gl_PREREQ_CANON_HOST): ...this new function, which requires
65831         gl_GETADDRINFO.
65832         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
65833
65834 2005-09-12  Derek Price  <derek@ximbiot.com>
65835
65836         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
65837         LGPL.
65838         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
65839
65840 2005-09-12  Derek Price  <derek@ximbiot.com>
65841
65842         * lib/gai_strerror.c: Include config.h when available.  Include
65843         getaddrinfo.h before other headers to test interface.
65844         Reported by Larry Jones <lawrence.jones@ugs.com>.
65845
65846 2005-09-12  Derek Price  <derek@ximbiot.com>
65847             Paul Eggert  <eggert@cs.ucla.edu>
65848
65849         * modules/glob (Files): Add glob-libc.h.
65850
65851 2005-09-12  Derek Price  <derek@ximbiot.com>
65852             Paul Eggert  <eggert@cs.ucla.edu>
65853
65854         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
65855         glob_.h, glob-libc.h.
65856         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
65857
65858 2005-09-12  Derek Price  <derek@ximbiot.com>
65859             Paul Eggert  <eggert@cs.ucla.edu>
65860
65861         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
65862         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
65863         protecting things that should be done only in gnulib contexts.
65864         * lib/glob_.h: New file, containing only the glob things needed for
65865         gnulib.
65866         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
65867         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
65868         (glob, globfree, glob_pattern_p): Now defined simply in terms of
65869         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
65870         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
65871         and to respect the namespace rules better.
65872
65873 2005-09-08  Simon Josefsson  <jas@extundo.com>
65874
65875         * modules/socklen: New file.
65876
65877 2005-09-08  Simon Josefsson  <jas@extundo.com>
65878
65879         * m4/socklen.m4: New file.
65880
65881 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
65882
65883         * modules/utimens (Files): Add m4/utimbuf.m4, since
65884         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
65885         Reported by Sergey Poznyakoff.
65886
65887 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
65888
65889         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
65890         definitions, since that's the preferred style in glibc.
65891         Fix a minor spacing issue, and update copyright notice to match
65892         glibc's.
65893
65894 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
65895
65896         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
65897
65898 2005-09-06  Simon Josefsson  <jas@extundo.com>
65899
65900         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
65901         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
65902
65903 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
65904
65905         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
65906         warning.
65907
65908 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
65909
65910         * config/srclist.txt: Add glibc bug 1302.
65911
65912 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
65913
65914         Change bitset word type from unsigned int to unsigned long int,
65915         as this has better performance on typical 64-bit hosts.
65916         Port bitset code to hosts with unusual word sizes.
65917         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
65918         (build_collating_symbol):
65919         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
65920         argument is a bitset.  This is merely a style issue, but it makes
65921         it clearer that an entire array is expected.
65922         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
65923         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
65924         Port to the case where bitset_word is not the same as unsigned int.
65925         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
65926         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
65927         Likewise.
65928         * lib/regexec.c (check_dst_limits_calc_pos_1,
65929         check_subexp_matching_top):
65930         (build_trtable, group_nodes_into_DFAstates):
65931         Likewise.
65932         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
65933         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
65934         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
65935         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
65936         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
65937         * lib/regcomp.c (optimize_subexps, lower_subexp):
65938         Work even if bitset_word has holes in its bitwise representation.
65939         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
65940         * lib/regexec.c (check_dst_limits_calc_pos_1,
65941         check_subexp_matching_top):
65942         Likewise.
65943         * lib/regex_internal.c (re_string_reconstruct):
65944         Don't assume UCHAR_MAX == 255.
65945         * lib/regex_internal.h (bitset_set_all): Likewise.
65946         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
65947         All uses changed.
65948         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
65949         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
65950         All uses changed.
65951         (BITSET_WORD_MAX): New macro.
65952         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
65953         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
65954         (bitset_empty, bitset_copy):
65955         Prefer sizeof (bitset) to multiplying it out ourselves.
65956         (bitset_not_merge): Remove; unused.
65957         (bitset_contain): Return bool, not unsigned int with one bit on.
65958         All callers changed.
65959         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
65960         alignment than re_node_set; do this by defining a new internal
65961         type struct dests_alloc and using it to allocate memory.
65962
65963 2005-09-05  Bruno Haible  <bruno@clisp.org>
65964
65965         * gnulib-tool (func_import): Fix comparison in handling of symbolic
65966         links.
65967
65968 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
65969
65970         * modules/size_max (Makefile.am): Add size_max.h
65971
65972 2005-09-04  Derek Price  <derek@ximbiot.com>
65973
65974         * gnulib-tool (func_import): Fix reversed $symbolic logic.
65975
65976 2005-09-03  Simon Josefsson  <jas@extundo.com>
65977
65978         * gnulib-tool: Fix typo.
65979
65980 2005-09-03  Simon Josefsson  <jas@extundo.com>
65981
65982         * config/srclist.txt: Add glibc bug 1293.
65983
65984 2005-09-03  Derek Price  <derek@ximbiot.com>
65985
65986         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
65987         From Larry Jones <lawrence.jones@ugs.com>.
65988
65989 2005-09-02  Simon Josefsson  <jas@extundo.com>
65990
65991         * modules/socklen: New file.
65992
65993 2005-09-02  Simon Josefsson  <jas@extundo.com>
65994
65995         * modules/havelib: New module.
65996
65997         * modules/gettext, modules/iconv, modules/lock, modules/readline:
65998         Use havelib.
65999
66000 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
66001
66002         Check for arithmetic overflow when calculating sizes, to prevent
66003         some buffer-overflow issues.  These patches are conservative, in the
66004         sense that when I couldn't determine whether an overflow was possible,
66005         I inserted a run-time check.
66006         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
66007         macros.
66008         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
66009         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
66010         (re_xnrealloc, re_x2nrealloc): New inline functions.
66011         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
66012         parse_bracket_exp):
66013         (build_equiv_class, build_charclass): Check for arithmetic overflow
66014         in size expression calculations.
66015         * lib/regex_internal.c (re_string_realloc_buffers):
66016         (build_wcs_upper_buffer, re_node_set_add_intersect):
66017         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
66018         (re_dfa_add_node, register_state): Likewise.
66019         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
66020         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
66021         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
66022         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
66023
66024 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
66025
66026         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
66027         m4/ulonglong.m4.  Problem reported by Martin Lambers.
66028
66029 2005-09-02  Bruno Haible  <bruno@clisp.org>
66030
66031         Support for lib vs. lib64 distinction on biarch platforms.
66032         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
66033         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
66034         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
66035
66036 2005-09-02  Bruno Haible  <bruno@clisp.org>
66037
66038         * gnulib-tool (import): In the other first-use case, provide defaults
66039         as well.
66040
66041 2005-09-02  Bruno Haible  <bruno@clisp.org>
66042
66043         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
66044         patches not yet found in the latest gettext release.
66045
66046 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
66047
66048         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
66049         to avoid a collision with bits/local_lim.h in glibc.
66050         All uses changed.  Problem reported by Dmitry V. Levin in
66051         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
66052
66053         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
66054         bugs in int versus size_t comparisons.
66055         (re_string_context_at): Fix bug where the code assumed that
66056         Idx is signed.
66057
66058         Use bool where appropriate.
66059         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
66060         All callers changed.
66061         (calc_eclosure_iter): Likewise, for ROOT arg.
66062         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
66063         (build_charclass_op): Likewise, for NON_MATCH arg.
66064         * lib/regex_internal.c (re_string_allocate, re_string_construct):
66065         (re_string_construct_common): Likewise, for ICASE arg.
66066         * lib/regexec.c (re_search_2_stub, re_search_stub):
66067         Likewise, for RET_LEN arg.
66068         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
66069         (set_regs): Likewise, for FL_BACKTRACK arg.
66070         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
66071         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
66072         (calc_eclosure_iter, parse_bracket_exp):
66073         Use bool for internal variables that are booleans.
66074         * lib/regexec.c (re_search_internal, check_matching,
66075         proceed_next_node):
66076         (set_regs, build_sifted_states, sift_states_bkref):
66077         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
66078         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
66079         (find_collation_sequence_value):
66080         Likewise.
66081         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
66082         (re_node_set_compare):
66083         Return bool, not int. All callers changed.
66084         * lib/regexec.c (check_halt_node_context, check_dst_limits):
66085         (build_trtable, check_node_accept): Likewise.
66086         * lib/regex_internal.h: Include stdbool.h.
66087
66088         Fix bugs uncovered when converting to bool.
66089         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
66090         failure instead of charging ahead blindly.
66091         * lib/regex_internal.c (register_state): Likewise.
66092         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
66093         for freeing internal storage.
66094         (group_nodes_into_DFA_states): Use unsigned int, not int, for
66095         bitset pieces used as boolean, to avoid undefined behavior
66096         on hosts that do int overflow checking.
66097
66098 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
66099
66100         * config/srclist.txt: Add glibc bugs 1285-1287.
66101
66102 2005-09-01  Jim Meyering  <jim@meyering.net>
66103
66104         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
66105         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
66106         Require gl_STAT_MACROS, too.
66107
66108 2005-09-01  Bruno Haible  <bruno@clisp.org>
66109
66110         * gnulib-tool (import): In the first-use case, provide defaults.
66111
66112 2005-09-01  Bruno Haible  <bruno@clisp.org>
66113
66114         * gnulib-tool (func_import): Remove the .tmp files.
66115
66116 2005-09-01  Bruno Haible  <bruno@clisp.org>
66117
66118         * gnulib-tool (func_import): Fix handling of symbolic links.
66119
66120 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
66121
66122         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
66123         old glibc regex code mishandles strings longer than 2**31 bytes.
66124         This patch fixes this when the regex code is used in gnulib
66125         (i.e., outside glibc).
66126
66127         This patch should not affect the use of the regex code inside
66128         glibc.  No doubt this problem also needs to be handled for glibc
66129         as well, but the result will be an incompatible change to the
66130         glibc ABI, and the old ABI will have to be supported too.  That
66131         can be the the subject for another patch.
66132
66133         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
66134         governing whether the rest of this patch is active.  By default,
66135         the macro is disabled and the patch has no effect.
66136         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
66137         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
66138         (struct re_pattern_buffer, re_search, re_search_2, re_match):
66139         (re_match_2, re_set_registers): Use the new types.
66140         * lib/regex_internal.h (Idx, re_hashval_t): New types.
66141         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
66142         New macros.
66143         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
66144         (re_string_context_at, bin_tree_t, re_dfastate_t):
66145         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
66146         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
66147         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
66148         (re_string_char_size_at, re_string_wchar_at):
66149         (re_string_elem_size_at):
66150         Use the new types and macros to port to 64-bit hosts.
66151         Use unsigned types for internal values, so that the code
66152         mostly works even for arrays larger than SSIZE_MAX.
66153         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
66154         (search_duplicated_node, calc_eclosure_iter, fetch_number):
66155         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
66156         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
66157         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
66158         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
66159         (calc_inveclosure, parse_dup_op, build_range_exp):
66160         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
66161         (fetch_number, create_token_tree, mark_opt_subexp):
66162         Likewise.
66163         * lib/regex_internal.c (re_string_construct_common,
66164         create_ci_newstate):
66165         (create_cd_newstate, re_string_allocate, re_string_construct):
66166         (re_string_realloc_buffers, build_wcs_upper_buffer):
66167         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
66168         (re_string_reconstruct, re_string_peek_byte_case):
66169         (re_string_fetch_byte_case, re_string_context_at):
66170         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
66171         (re_node_set_init_copy, re_node_set_add_intersect):
66172         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
66173         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
66174         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
66175         (re_acquire_state, re_acquire_state_context, register_state):
66176         Likewise.
66177         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
66178         search_cur_bkref_entry):
66179         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
66180         (re_search_internal, re_search_2_stub, re_search_stub)
66181         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
66182         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
66183         (update_cur_sifted_state, check_dst_limits):
66184         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
66185         (check_subexp_limits, sift_states_bkref, merge_state_array):
66186         (check_subexp_matching_top, get_subexp, get_subexp_sub):
66187         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
66188         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
66189         (expand_bkref_cache, check_node_accept_bytes):
66190         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
66191         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
66192         (acquire_init_state_context, check_halt_node_context):
66193         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
66194         (sift_states_backward, clean_state_log_if_needed):
66195         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
66196         (find_recover_state, transit_state_sb, transit_state_mb):
66197         (transit_state_bkref, build_trtable, match_ctx_clean):
66198         Likewise.
66199         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
66200         to work around an assumption that REG_MISSING is negative.
66201
66202         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
66203         (seek_collating_symbol_entry) [defined _LIBC]:
66204         (lookup_collation_sequence_value) [defined _LIBC]:
66205         (build_range_exp, build_collating_symbol) [defined _LIBC]:
66206         Use prototypes rather than old-style function definitions.
66207         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
66208         (transit_state_sb) [0]:
66209         (find_collation_sequence_value) [defined _LIBC]: Likewise.
66210
66211         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
66212         rm_eo.
66213
66214         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
66215         (optimize_subexps, lower_subexp):
66216         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
66217         since the signed shift might overflow.  Use 1u<<31 instead.
66218         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
66219         Likewise.
66220         * lib/regexec.c (check_dst_limits_calc_pos_1,
66221         check_subexp_matching_top): Likewise.
66222
66223         * lib/regcomp.c (optimize_subexps, lower_subexp):
66224         Use CHAR_BIT rather than 8, for clarity.
66225         * lib/regexec.c (check_dst_limits_calc_pos_1):
66226         (check_subexp_matching_top): Likewise.
66227         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
66228         have to worry about portability issues when shifting it left.
66229         Remove no-longer-needed test for table_size > 0.
66230         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
66231         in a word, as the resulting behavior is undefined.
66232         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
66233         in one case, a <= should have been an <, and in another case the
66234         whole test was missing.
66235         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
66236         the standard name CHAR_BIT.
66237         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
66238         this is not true on one's complement and signed-magnitude hosts.
66239
66240         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
66241         next_last_offset.
66242         (struct re_dfa_t): Remove unused member states_alloc.
66243         * lib/regcomp.c (init_dfa): Don't initialize unused members.
66244
66245 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
66246
66247         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
66248         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
66249         and large-file glibc and in 32-bit large-file Solaris.
66250
66251 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
66252
66253         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
66254         lengths fit in regoff_t; this isn't true if regoff_t is the same
66255         width as size_t.
66256         * lib/regex.c (re_search_internal): 5th arg is LAST_START
66257         (= START + RANGE) instead of RANGE.  This avoids overflow
66258         problems when regoff_t is the same width as size_t.
66259         All callers changed.
66260         (re_search_2_stub): Check for overflow when adding the
66261         sizes of the two strings.
66262         (re_search_stub): Check for overflow when adding START
66263         to RANGE; if it occurs, substitute the extreme value.
66264
66265 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
66266
66267         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
66268
66269 2005-08-31  Jim Meyering  <jim@meyering.net>
66270
66271         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
66272         a pointer-to-const.
66273         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
66274         (register_state): Likewise.
66275         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
66276         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
66277         (group_nodes_into_DFAstates): Likewise.
66278
66279 2005-08-31  Jim Meyering  <jim@meyering.net>
66280
66281         * check-module: Add a FIXME comment.
66282
66283 2005-08-31  Eric Blake  <ebb9@byu.net>
66284
66285         * modules/unistd-safer (Files): Add unistd--.h.
66286         * modules/stdio-safer (Files): Add stdio--.h.
66287
66288 2005-08-31  Derek Price  <derek@ximbiot.com>
66289
66290         * lib/getdelim.c (getdelim): Return EOF on EOF.
66291         Reported by Larry Jones <lawrence.jones@ugs.com>.
66292
66293 2005-08-31  Bruno Haible  <bruno@clisp.org>
66294
66295         Avoid unnecessary diffs in the generated lib/Makefile.am.
66296         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
66297         the generated files.
66298         (func_import): Don't set cmd.
66299
66300 2005-08-31  Bruno Haible  <bruno@clisp.org>
66301
66302         * lib/strstr.c: Include <stddef.h>, for NULL.
66303         * lib/strcasestr.c: Likewise.
66304         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
66305
66306 2005-08-31  Bruno Haible  <bruno@clisp.org>
66307
66308         * gnulib-tool: New option --macro-prefix.
66309         (func_import): Use macro_prefix.
66310         (import): Handle option --macro-prefix.
66311
66312 2005-08-31  Bruno Haible  <bruno@clisp.org>
66313
66314         * gnulib-tool (import): Rename most ac_* variables to cached_*.
66315         Also use new variables cached_lgpl, cached_libtool.
66316
66317 2005-08-31  Bruno Haible  <bruno@clisp.org>
66318
66319         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
66320         always instantiating them.
66321
66322 2005-08-31  Bruno Haible  <bruno@clisp.org>
66323
66324         * gnulib-tool (func_import): Read the previous cached settings
66325         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
66326         earlier added by gnulib but are now dropped. Warn when a gnulib file
66327         overwrites a non-gnulib file.
66328
66329 2005-08-31  Bruno Haible  <bruno@clisp.org>
66330
66331         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
66332         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
66333         projects that don't keep autogenerated files in CVS. Put into
66334         actioncmd only the specified modules, not the transitive closure.
66335
66336 2005-08-31  Bruno Haible  <bruno@clisp.org>
66337
66338         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
66339         Create directories that shall be filled.
66340         (import): Don't look for gl_* macros in configure.ac. Recurse across
66341         all directories containing a gnulib-cache.m4 files, if meaningful.
66342
66343 2005-08-31  Bruno Haible  <bruno@clisp.org>
66344
66345         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
66346         (import): Set seen_libtool when we see gl_LIBTOOL.
66347
66348 2005-08-31  Bruno Haible  <bruno@clisp.org>
66349
66350         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
66351         declaration macro definitions from generated gnulib.m4.
66352
66353 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
66354
66355         * lib/iconvme.h: Add prototype for iconv_alloc.
66356
66357 2005-08-29  Simon Josefsson  <jas@extundo.com>
66358
66359         * lib/iconvme.c: Fix errno.
66360
66361 2005-08-29  Bruno Haible  <bruno@clisp.org>
66362
66363         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
66364         that it works when the directory contains spaces.
66365
66366 2005-08-29  Bruno Haible  <bruno@clisp.org>
66367
66368         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
66369
66370 2005-08-29  Bruno Haible  <bruno@clisp.org>
66371
66372         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
66373         Emit more advice.
66374
66375 2005-08-29  Bruno Haible  <bruno@clisp.org>
66376         and Stepan Kasal  <kasal@ucw.cz>
66377
66378         * check-module: If more parameters are given, check each of them
66379         separately; add more exceptions, as noted by Jim Meyering.
66380         (check_module): New procedure.
66381         (%exempt_header): Now contains all exceptions.
66382
66383 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
66384
66385         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
66386
66387 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
66388
66389         * lib/iconvme.c: Split iconv_string into iconv_alloc.
66390
66391 2005-08-28  Bruno Haible  <bruno@clisp.org>
66392
66393         * m4/gnulib-tool.m4: New file.
66394
66395 2005-08-27  Jim Meyering  <jim@meyering.net>
66396
66397         * modules/unistd-safer (Files): Add pipe-safer.c.
66398         * modules/fcntl-safer (Files): Add creat-safer.c.
66399
66400 2005-08-27  Jim Meyering  <jim@meyering.net>
66401
66402         * m4/stdlib-safer.m4: New file.  From coreutils.
66403         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
66404         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
66405         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
66406         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
66407         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
66408
66409 2005-08-27  Jim Meyering  <jim@meyering.net>
66410
66411         * lib/fopen-safer.c: Merge minor changes from coreutils.
66412         * lib/dup-safer.c: Likewise.
66413         * lib/fd-safer.c: Likewise.
66414
66415         Merge from coreutils.
66416         * lib/stdio--.h: New file.
66417         * lib/stdlib--.h: New file.
66418         * lib/mkstemp-safer.c: New file.
66419
66420         GNU tar needs these.
66421         * lib/pipe-safer.c: New file.
66422         * lib/creat-safer.c: New file.
66423         * lib/fcntl--.h (creat): Define to creat_safer.
66424         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
66425         * lib/unistd--.h (pipe): Define to pipe_safer.
66426         * lib/unistd-safer.h: Declare pipe_safer.
66427
66428 2005-08-26  Simon Josefsson  <jas@extundo.com>
66429
66430         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
66431         Haible <bruno@clisp.org>.
66432
66433 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
66434
66435         * lib/regex_internal.h: Remove all references to
66436         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
66437         or better.
66438         (bitset_not, bitset_merge, bitset_not_merge):
66439         (bitset_mask, re_string_allocate, re_string_construct):
66440         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
66441         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
66442         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
66443         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
66444         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
66445         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
66446         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
66447         (re_acquire_state_context):
66448         Remove unnecessary forward decls.
66449         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
66450         Put __attribute at function definition,
66451         now that the function decl has been removed.
66452         * lib/regex_internal.c (re_string_peek_byte_case):
66453         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
66454         Likewise.
66455
66456 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
66457
66458         * m4/regex.m4: Add AC_PREREQ(2.50).
66459         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
66460
66461 2005-08-25  Simon Josefsson  <jas@extundo.com>
66462
66463         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
66464         __fsetlocking.
66465
66466 2005-08-25  Simon Josefsson  <jas@extundo.com>
66467
66468         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
66469         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
66470         GLIBC specific code.
66471
66472 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
66473
66474         Make regex safe for g++.  This fixes one real bug (an "err"
66475         that should have been "*err").  g++ problem reported by
66476         Sam Steingold.
66477         * lib/regex_internal.h (re_calloc): New macro, consistent with
66478         re_malloc etc.  All callers of calloc changed to use re_calloc.
66479         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
66480         not int.  All callers changed.
66481         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
66482         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
66483         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
66484         (find_recover_state): Change "err" to "*err"; this fixes what
66485         appears to be a real bug.
66486         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
66487         versus int.
66488
66489 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
66490
66491         * modules/regex (Depends-on): Add malloc, since the code
66492         assumes that !malloc(0) means failure.
66493
66494 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
66495
66496         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
66497
66498         alloca modernization/simplification for regex.
66499         * lib/regex.c: Remove portability cruft for alloca.  This no longer
66500         needs to be at the start of the file, and can be moved into
66501         regex_internal.h and simplified.
66502         * lib/regex_internal.h: Include <alloca.h>.
66503         (__libc_use_alloca) [!defined _LIBC]: New macro.
66504         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
66505         now works outside glibc.
66506
66507 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
66508
66509         * config/srclist.txt: Add glibc bugs 1241, 1245.
66510
66511 2005-08-25  Jim Meyering  <jim@meyering.net>
66512
66513         * lib/open-safer.c: Include <config.h>.
66514         Otherwise, we'd lose LARGEFILE support in any file using
66515         e.g. "fcntl--.h"
66516
66517 2005-08-25  Bruno Haible  <bruno@clisp.org>
66518
66519         * m4/minmax.m4: Require autoconf 2.52.
66520         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
66521         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
66522         alternatives of translit over the alphabet.
66523         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
66524
66525 2005-08-24  Simon Josefsson  <jas@extundo.com>
66526
66527         * tests/test-getpass.c: New file.
66528
66529 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
66530
66531         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
66532         for GNU regex features.
66533
66534 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
66535
66536         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
66537         * lib/regex.h (regerror): Likewise.
66538
66539         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
66540         requires this.  (The code never needed it.)
66541
66542         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
66543         All uses of recently-renamed identifiers changed to use the new,
66544         POSIX-compliant names.  The code will build and run just fine
66545         without these changes, but it's better to eat our own dog food
66546         and use the standard-conforming names.
66547
66548         * lib/regex.h: Fix a multitude of POSIX name space violations.
66549         These changes have an effect only for programs that define
66550         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
66551         do not change anything for programs compiled in the normal way.
66552         Also, there is no effect on the ABI.
66553
66554         (_REGEX_SOURCE): New macro.
66555         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
66556         defined and _GNU_SOURCE is not; this fixes a name space violation.
66557
66558         Rename the following macros to obey POSIX requirements.
66559         The old names are still visible as macros if _REGEX_SOURCE is defined.
66560         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
66561         RE_BACKSLASH_ESCAPE_IN_LISTS.
66562         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
66563         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
66564         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
66565         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
66566         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
66567         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
66568         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
66569         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
66570         (REG_INTERVALS): renamed from RE_INTERVALS.
66571         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
66572         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
66573         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
66574         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
66575         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
66576         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
66577         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
66578         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
66579         RE_UNMATCHED_RIGHT_PAREN_ORD.
66580         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
66581         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
66582         (REG_DEBUG): renamed from RE_DEBUG.
66583         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
66584         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
66585         unusual, since we can't clash with the POSIX REG_ICASE.
66586         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
66587         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
66588         (REG_NO_SUB): renamed from RE_NO_SUB.
66589         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
66590         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
66591         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
66592         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
66593         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
66594         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
66595         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
66596         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
66597         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
66598         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
66599         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
66600         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
66601         RE_SYNTAX_POSIX_MINIMAL_BASIC.
66602         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
66603         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
66604         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
66605         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
66606         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
66607         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
66608         (REG_FIXED): Renamed from REGS_FIXED.
66609         (REG_NREGS): Renamed from RE_NREGS.
66610
66611         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
66612         of other REG_* macros, since POSIX says the user is allowed to
66613         #undef these macros selectively.
66614
66615         (reg_errcode_t): Update comment stating what other tables need
66616         to be consistent.
66617
66618         Rename the following enum values to obey POSIX requirements.
66619         The old names are still visible as macros.
66620         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
66621         is not defined, since GNU is supposed to be a superset of POSIX as
66622         much as possible, and since we want reg_errcode_t to be a signed
66623         type for implementation consistency.
66624         (_REG_NOERROR): Renamed from REG_NOERROR.
66625         (_REG_NOMATCH): Renamed from REG_NOMATCH.
66626         (_REG_BADPAT): Renamed from REG_BADPAT.
66627         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
66628         (_REG_ECTYPE): Renamed from REG_ECTYPE.
66629         (_REG_EESCAPE): Renamed from REG_EESCAPE.
66630         (_REG_ESUBREG): Renamed from REG_ESUBREG.
66631         (_REG_EBRACK): Renamed from REG_EBRACK.
66632         (_REG_EPAREN): Renamed from REG_EPAREN.
66633         (_REG_EBRACE): Renamed from REG_EBRACE.
66634         (_REG_BADBR): Renamed from REG_BADBR.
66635         (_REG_ERANGE): Renamed from REG_ERANGE.
66636         (_REG_ESPACE): Renamed from REG_ESPACE.
66637         (_REG_BADRPT): Renamed from REG_BADRPT.
66638         (_REG_EEND): Renamed from REG_EEND.
66639         (_REG_ESIZE): Renamed from REG_ESIZE.
66640         (_REG_ERPAREN): Renamed from REG_ERPAREN.
66641         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
66642         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
66643         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
66644         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
66645
66646         (_REG_RE_NAME, _REG_RM_NAME): New macros.
66647         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
66648         changed.  But support the old name if the new one is not defined
66649         and if _REGEX_SOURCE.
66650
66651         Change the following member names in struct re_pattern_buffer.
66652         The old names are still supported if !_REGEX_SOURCE.
66653         The new names are always supported, regardless of _REGEX_SOURCE.
66654         (re_buffer): Renamed from buffer.
66655         (re_allocated): Renamed from allocated.
66656         (re_used): Renamed from used.
66657         (re_syntax): Renamed from syntax.
66658         (re_fastmap): Renamed from fastmap.
66659         (re_translate): Renamed from translate.
66660         (re_can_be_null): Renamed from can_be_null.
66661         (re_regs_allocated): Renamed from regs_allocated.
66662         (re_fastmap_accurate): Renamed from fastmap_accurate.
66663         (re_no_sub): Renamed from no_sub.
66664         (re_not_bol): Renamed from not_bol.
66665         (re_not_eol): Renamed from not_eol.
66666         (re_newline_anchor): Renamed from newline_anchor.
66667
66668         Change the following member names in struct re_registers.
66669         The old names are still supported if !_REGEX_SOURCE.
66670         The new names are always supported, regardless of _REGEX_SOURCE.
66671         (rm_num_regs): Renamed from num_regs.
66672         (rm_start): Renamed from start.
66673         (rm_end): Renamed from end.
66674
66675         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
66676         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
66677         Prepend __ to parameter names.
66678
66679         Undo yesterday's changes.
66680
66681 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
66682
66683         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
66684         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
66685         lib/regex.c.
66686
66687 2005-08-24  Jim Meyering  <jim@meyering.net>
66688
66689         Sync from coreutils.
66690         * m4/fcntl-safer.m4: New file.
66691
66692         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
66693         and object files for this module.
66694
66695 2005-08-24  Jim Meyering  <jim@meyering.net>
66696
66697         Sync from coreutils.
66698         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
66699
66700 2005-08-24  Jim Meyering  <jim@meyering.net>
66701
66702         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
66703         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
66704
66705 2005-08-24  Jim Meyering  <jim@meyering.net>
66706
66707         * modules/fcntl-safer: New module.
66708         * modules/fts (Depends-on): Add fcntl-safer.
66709         * MODULES.html.sh (File descriptor based Input/Output):
66710         Add fcntl-safer.
66711
66712 2005-08-24  Bruno Haible  <bruno@clisp.org>
66713
66714         Support for unit test modules.
66715         * modules/README: Mention tests modules.
66716         * modules/TEMPLATE-TESTS: New file.
66717         * gnulib-tool: New options --extract-tests-module, --with-tests and
66718         --tests-base (unused for the moment).
66719         (testsbase, inctests): New variables.
66720         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
66721         (func_verify_module): Exclude TEMPLATE-TESTS.
66722         (func_verify_nontests_module, func_verify_tests_module): New functions.
66723         (func_get_dependencies): Add implicit dependency for tests modules.
66724         (func_get_tests_module): New function.
66725         (func_modules_transitive_closure): When --with-tests was specified,
66726         include the unit tests as well, unless explicitly avoided.
66727         (func_emit_lib_Makefile_am): Ignore the tests modules here.
66728         (func_emit_tests_Makefile_am): New function.
66729         (func_create_testdir): When --with-tests was specified, emit a
66730         tests/ directory.
66731         * MODULES.html.sh (Future developments): Update.
66732
66733 2005-08-24  Bruno Haible  <bruno@clisp.org>
66734
66735         * modules/tls-tests: New file.
66736         * tests/test-tls.c: New file, from GNU gettext.
66737
66738 2005-08-24  Bruno Haible  <bruno@clisp.org>
66739
66740         * modules/lock-tests: New file.
66741         * tests/test-lock.c: New file, from GNU gettext.
66742
66743 2005-08-24  Bruno Haible  <bruno@clisp.org>
66744
66745         * lib/lock.h: Add multiple inclusion guard.
66746         * lib/tls.h: Add multiple inclusion guard.
66747
66748 2005-08-24  Bruno Haible  <bruno@clisp.org>
66749
66750         * gnulib-tool: Add support for the --aux-dir option to
66751         --create-testdir, --create-megatestdir, --test, --megatest.
66752         (func_create_testdir, func_create_megatestdir): Optionally emit a
66753         AC_CONFIG_AUX_DIR directive.
66754         (create-testdir, create-megatestdir, test, megatest): Provide a
66755         default value for $auxdir.
66756
66757 2005-08-24  Bruno Haible  <bruno@clisp.org>
66758
66759         * gnulib-tool (import): Use compound statement instead of subshell
66760         where possible.
66761
66762 2005-08-24  Bruno Haible  <bruno@clisp.org>
66763
66764         * gnulib-tool (import): Change --aux-dir default to "build-aux".
66765
66766 2005-08-24  Bruno Haible  <bruno@clisp.org>
66767
66768         * gnulib-tool (func_version): Update.
66769
66770 2005-08-24  Bruno Haible  <bruno@clisp.org>
66771
66772         * gnulib-tool (func_import, func_create_testdir,
66773         func_create_megatestdir): Quote all autoconf macro arguments.
66774
66775 2005-08-24  Bruno Haible  <bruno@clisp.org>
66776
66777         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
66778         option --force, because --force causes the aclocal.m4 of each
66779         subdirectory to be newer than the corresponding config.h.in.
66780
66781 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
66782
66783         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
66784         All contents moved to gl_REGEX.
66785         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
66786         assume that it does.
66787
66788 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
66789
66790         * lib/regex.h (REG_NOSYS)
66791         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
66792         Define, since POSIX requires it as of 2001.
66793         (_REG_ENOSYS)
66794         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
66795         New private symbol, used to keep the enum signed in all cases.
66796         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
66797         Youngman in
66798         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
66799
66800         * lib/regex_internal.c (re_string_skip_chars, register_state):
66801         (calc_state_hash):
66802         Remove forward decls; no longer needed now that we use prototypes.
66803         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
66804         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
66805         (clean_state_log_if_needed): Likewise.
66806
66807 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
66808
66809         * config/srclist.txt: Add glibc bugs 1231-1233.
66810
66811 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
66812
66813         Fix problems reported by Sam Steingold in
66814         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
66815         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
66816         assumed that reg_errcode_t is a signed type, which is not
66817         necessarily true if _XOPEN_SOURCE is not defined.
66818         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
66819         since some compilers warn about it otherwise.
66820
66821 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
66822
66823         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
66824         (init_word_char, create_initial_state, duplicate_node_closure):
66825         (fetch_token, peek_token_bracket, build_range_exp):
66826         (build_collating_symbol): Remove forward decls; no longer needed
66827         now that we use prototypes.
66828
66829         * lib/regcomp.c:
66830         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
66831         (re_compile_fastmap_iter, regcomp, regerror, regfree):
66832         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
66833         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
66834         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
66835         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
66836         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
66837         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
66838         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
66839         (build_range_exp, build_collating_symbol, parse_bracket_exp):
66840         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
66841         (build_charclass, build_charclass_op, fetch_number, create_tree):
66842         (create_token_tree, mark_opt_subexp, duplicate_tree):
66843         Use prototypes rather than old-style definitions.
66844
66845         * lib/regex_internal.c:
66846         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
66847         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
66848         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
66849         (re_string_reconstruct, re_string_peek_byte_case):
66850         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
66851         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
66852         (re_node_set_init_copy, re_node_set_add_intersect):
66853         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
66854         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
66855         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
66856         (re_acquire_state, re_acquire_state_context, register_state):
66857         (create_ci_newstate, create_cd_newstate, free_state):
66858         Likewise.
66859         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
66860         re_search_2):
66861         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
66862         (re_search_internal, prune_impossible_nodes):
66863         (acquire_init_state_context, check_matching, static):
66864         (check_halt_node_context, check_halt_state_context, proceed_next_node):
66865         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
66866         (update_regs, sift_states_backward, build_sifted_states):
66867         (clean_state_log_if_needed, merge_state_array):
66868         (update_cur_sifted_state, add_epsilon_src_nodes):
66869         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
66870         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
66871         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
66872         (find_recover_state, check_subexp_matching_top, transit_state_mb):
66873         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
66874         (check_arrival, check_arrival_add_next_nodes):
66875         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
66876         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
66877         (check_node_accept_bytes, check_node_accept, extend_buffers):
66878         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
66879         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
66880         (sift_ctx_init):
66881         Likewise.
66882
66883         * lib/regex_internal.h:
66884         (re_string_allocate, re_string_construct, re_string_reconstruct):
66885         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
66886         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
66887         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
66888         (re_string_context_at, re_string_peek_byte_case):
66889         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
66890         is defined, since we now use prototypes always.
66891
66892         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
66893         C89 or better.  All uses removed.
66894
66895 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
66896
66897         * config/srclist.txt: Add glibc bugs 1220-1227.
66898
66899 2005-08-20  Jim Meyering  <jim@meyering.net>
66900
66901         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
66902         of unused local, dfa.
66903
66904 2005-08-20  Bruno Haible  <bruno@clisp.org>
66905
66906         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
66907
66908 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
66909
66910         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
66911         (re_node_set_insert_last, re_dfa_add_node):
66912         Rename local variables to avoid GCC shadowing warnings.
66913
66914 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
66915
66916         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
66917         [defined lint]: Suppress bogus uninitialized-variable warnings.
66918
66919         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
66920         and let the caller return REG_ESPACE if out of space.  This
66921         removes an uninitialied-variable warning with GCC 4.0.1, and also
66922         avoids taking the address of a local variable.  All callers
66923         changed.
66924
66925 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
66926
66927         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
66928         $LIBCSRC/posix/regexec.c.
66929         Add glibc bug 1217 for regcomp.c.
66930
66931 2005-08-19  Jim Meyering  <jim@meyering.net>
66932
66933         * lib/regexec.c (proceed_next_node): Redo local variables to
66934         avoid GCC shadowing warnings.
66935
66936 2005-08-18  Bruno Haible  <bruno@clisp.org>
66937
66938         * lib/strstr.c (strstr): Fix return value in multibyte case.
66939         * lib/strcasestr.c (strcasestr): Likewise.
66940
66941 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
66942
66943         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
66944
66945 2005-08-17  Jim Meyering  <jim@meyering.net>
66946
66947         Make the %s format (seconds since the epoch) work for a negative
66948         number and when used with a zero-padded field width, e.g. %015s.
66949
66950         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
66951         label so that it precedes the code to set `digits'.  Otherwise,
66952         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
66953         print `00-22'.  Now, it prints `-0022', as it should.
66954
66955 2005-08-17  Bruno Haible  <bruno@clisp.org>
66956
66957         * modules/strstr (Files): Add m4/mbrtowc.m4.
66958         (Depends-on): Add mbuiter.
66959
66960 2005-08-17  Bruno Haible  <bruno@clisp.org>
66961
66962         * modules/strcasestr: New file.
66963         * MODULES.html.sh (String handling, based on ANSI C 89): Add
66964         strcasestr.
66965
66966 2005-08-17  Bruno Haible  <bruno@clisp.org>
66967
66968         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
66969
66970 2005-08-17  Bruno Haible  <bruno@clisp.org>
66971
66972         * modules/mbuiter: New file.
66973         * MODULES.html.sh (Extended multibyte and wide character utilities):
66974         Add mbuiter.
66975
66976 2005-08-17  Bruno Haible  <bruno@clisp.org>
66977
66978         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
66979         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
66980
66981 2005-08-17  Bruno Haible  <bruno@clisp.org>
66982
66983         * m4/strcasestr.m4: New file.
66984
66985 2005-08-17  Bruno Haible  <bruno@clisp.org>
66986
66987         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
66988         * lib/strstr.c: Completely rewritten, with multibyte locale support.
66989
66990 2005-08-17  Bruno Haible  <bruno@clisp.org>
66991
66992         * lib/strcasestr.h: New file.
66993         * lib/strcasestr.c: New file.
66994
66995 2005-08-17  Bruno Haible  <bruno@clisp.org>
66996
66997         * lib/strcasecmp.c: Use mbuiter.h.
66998
66999 2005-08-17  Bruno Haible  <bruno@clisp.org>
67000
67001         * lib/mbuiter.h: New file.
67002
67003 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
67004
67005         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
67006         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
67007         and gl_GETOPT are both invoked via different paths (as happens
67008         with GNU tar CVS because it uses both argp and getopt), the former
67009         wins.
67010
67011 2005-08-16  Bruno Haible  <bruno@clisp.org>
67012
67013         * modules/tls: New file.
67014         * MODULES.html.sh (Multithreading): Add tls.
67015
67016 2005-08-16  Bruno Haible  <bruno@clisp.org>
67017
67018         * modules/strnlen1: New file.
67019         * MODULES.html.sh (String handling): Add strnlen1.
67020
67021 2005-08-16  Bruno Haible  <bruno@clisp.org>
67022
67023         * modules/strcase (Files): Add m4/mbrtowc.m4.
67024         (Depends-on): Add strnlen1, mbchar.
67025
67026 2005-08-16  Bruno Haible  <bruno@clisp.org>
67027
67028         * modules/mbiter: New file.
67029         * MODULES.html.sh (Extended multibyte and wide character utilities):
67030         Add mbiter.
67031
67032 2005-08-16  Bruno Haible  <bruno@clisp.org>
67033
67034         * modules/mbfile: New file.
67035         * MODULES.html.sh (Extended multibyte and wide character utilities):
67036         Add mbfile.
67037
67038 2005-08-16  Bruno Haible  <bruno@clisp.org>
67039
67040         * modules/mbchar: New file.
67041         * MODULES.html.sh (Extended multibyte and wide character utilities):
67042         New section.
67043
67044 2005-08-16  Bruno Haible  <bruno@clisp.org>
67045
67046         * m4/tls.m4: New file, from GNU gettext.
67047
67048 2005-08-16  Bruno Haible  <bruno@clisp.org>
67049
67050         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
67051         always.
67052         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
67053
67054 2005-08-16  Bruno Haible  <bruno@clisp.org>
67055
67056         * m4/mbiter.m4: New file.
67057
67058 2005-08-16  Bruno Haible  <bruno@clisp.org>
67059
67060         * m4/mbfile.m4: New file.
67061
67062 2005-08-16  Bruno Haible  <bruno@clisp.org>
67063
67064         * m4/mbchar.m4: New file.
67065
67066 2005-08-16  Bruno Haible  <bruno@clisp.org>
67067
67068         * lib/tls.h: New file, from GNU gettext.
67069         * lib/tls.c: New file, from GNU gettext.
67070
67071 2005-08-16  Bruno Haible  <bruno@clisp.org>
67072
67073         * lib/strnlen1.h: New file.
67074         * lib/strnlen1.c: New file.
67075
67076 2005-08-16  Bruno Haible  <bruno@clisp.org>
67077
67078         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
67079         (mbi_init): Update.
67080         (mbi_avail, mbi_advance): Let the iteration end before the terminating
67081         NUL byte, not after it.
67082
67083 2005-08-16  Bruno Haible  <bruno@clisp.org>
67084
67085         * lib/strcase.h (strcasecmp): Add note in comments.
67086         * lib/strncasecmp.c: Use code from strcasecmp.c.
67087         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
67088         (strcasecmp): Work correctly in multibyte locales.
67089
67090 2005-08-16  Bruno Haible  <bruno@clisp.org>
67091
67092         * lib/mbiter.h: New file.
67093
67094 2005-08-16  Bruno Haible  <bruno@clisp.org>
67095
67096         * lib/mbfile.h: New file.
67097
67098 2005-08-16  Bruno Haible  <bruno@clisp.org>
67099
67100         * lib/mbchar.h: New file.
67101         * lib/mbchar.c: New file.
67102
67103 2005-08-16  Bruno Haible  <bruno@clisp.org>
67104
67105         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
67106         the valid ones. Makes the comparison operations transitive:
67107         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
67108         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
67109
67110 2005-08-15  Simon Josefsson  <jas@extundo.com>
67111
67112         * modules/ssize_t (License): Change to 'unlimited'.
67113
67114         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
67115
67116 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
67117
67118         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
67119         Add comments for each pending glibc patch.
67120
67121 2005-08-15  Bruno Haible  <bruno@clisp.org>
67122
67123         * lib/regex.h (__restrict_arr): Don't define to __restrict if
67124         __cplusplus is defined.
67125
67126 2005-08-14  Jim Meyering  <jim@meyering.net>
67127
67128         Sync from coreutils.
67129
67130         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
67131         Use the hash-table-based cycle-detection code not just when
67132         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
67133         Reported by James Youngman in
67134         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
67135         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
67136         FTS_TIGHT_CYCLE_CHECK.
67137         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
67138         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
67139         once again.
67140         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
67141         * lib/fts.c (fd_safer): Remove decl.
67142         Include fcntl--.h rather than unistd-safer.h
67143         (fts_safe_changedir): Don't call fd_safer; no longer needed
67144         now that we include fcntl--.h.
67145
67146 2005-08-12  Simon Josefsson  <jas@extundo.com>
67147
67148         * modules/getndelim2: Use ssize_t module.
67149         * modules/getnline: Likewise.
67150         * modules/safe-read: Likewise.
67151         * modules/xreadlink: Likewise.
67152
67153         * modules/ssize_t: New file.
67154
67155 2005-08-12  Simon Josefsson  <jas@extundo.com>
67156
67157         * m4/readline.m4: Look for termcap, curses or ncurses if required.
67158
67159 2005-08-12  Simon Josefsson  <jas@extundo.com>
67160
67161         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
67162         ssize_t.
67163
67164 2005-08-12  Simon Josefsson  <jas@extundo.com>
67165
67166         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
67167         readline, getdelim and check_version.
67168         (Support for systems lacking ISO C 99: Sizes of integer types):
67169         Add size_max.
67170
67171 2005-08-12  Bruno Haible  <bruno@clisp.org>
67172
67173         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
67174
67175 2005-08-11  Simon Josefsson  <jas@extundo.com>
67176
67177         * modules/readline: New file.
67178
67179         * modules/strnlen (Files): Add strnlen.h.
67180
67181 2005-08-11  Simon Josefsson  <jas@extundo.com>
67182
67183         * m4/readline.m4: New file.
67184
67185 2005-08-11  Simon Josefsson  <jas@extundo.com>
67186
67187         * lib/readline.h, readline.c: New file.
67188
67189 2005-08-11  Simon Josefsson  <jas@extundo.com>
67190
67191         * doc/gnulib.texi (Initial import, Finishing touches): Mention
67192         gl_AVOID.
67193
67194 2005-08-11  Bruno Haible  <bruno@clisp.org>
67195
67196         * lib/strnlen.h (strnlen): Change parameter name to match comment.
67197
67198 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
67199
67200         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
67201
67202 2005-08-10  Simon Josefsson  <jas@extundo.com>
67203
67204         * tests/test-iconvme.c: New file.
67205
67206 2005-08-10  Simon Josefsson  <jas@extundo.com>
67207
67208         * m4/strnlen.m4: New file.
67209
67210         * m4/strndup.m4: Don't check for strnlen declaration, done in
67211         strnlen.m4.
67212
67213 2005-08-10  Simon Josefsson  <jas@extundo.com>
67214
67215         * lib/strndup.c: Use strnlen.h.
67216
67217         * lib/strnlen.h: New file.
67218
67219 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
67220
67221         * README: Typos.
67222
67223 2005-08-02  Simon Josefsson  <jas@extundo.com>
67224
67225         * modules/readline: New file.
67226
67227 2005-08-02  Simon Josefsson  <jas@extundo.com>
67228
67229         * modules/getdelim: New file.
67230
67231         * modules/getline: Rewrite, don't use getndelim2.
67232
67233 2005-08-02  Simon Josefsson  <jas@extundo.com>
67234
67235         * m4/getline.m4: Separate out getdelim stuff into separate module.
67236
67237         * m4/getdelim.m4: New file.
67238
67239 2005-08-02  Simon Josefsson  <jas@extundo.com>
67240
67241         * lib/getline.h, getline.c: Rewrite.
67242
67243         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
67244
67245 2005-07-31  Bruno Haible  <bruno@clisp.org>
67246
67247         * lib/lock.h (gl_lock_initializer): New macro.
67248         (gl_lock_define_initialized): Use it.
67249         (gl_rwlock_initializer): New macro.
67250         (gl_rwlock_define_initialized): Use it.
67251         (gl_recursive_lock_initializer): New macro.
67252         (gl_recursive_lock_define_initialized): Use it.
67253
67254 2005-07-30  Karl Berry  <karl@gnu.org>
67255
67256         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
67257         Report from Ben Pfaff, regarding getopt.
67258
67259 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
67260
67261         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
67262         normal way.
67263         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
67264         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
67265         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
67266         (gl_GETOPT): Use the new macros.  Most of the implementation
67267         is moved to the new macros.  This is for programs like Emacs
67268         that don't want all the functionality of gl_GETOPT.
67269
67270 2005-07-26  Bruno Haible  <bruno@clisp.org>
67271
67272         * m4/lock.m4: Update from GNU gettext.
67273
67274 2005-07-26  Bruno Haible  <bruno@clisp.org>
67275
67276         * lib/lock.h: Update from GNU gettext.
67277         * lib/lock.c: Update from GNU gettext.
67278
67279 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
67280
67281         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
67282         obsolescent AC_TRY_RUN.  Include the default includes files, for
67283         'exit'.
67284
67285 2005-07-24  Bruno Haible  <bruno@clisp.org>
67286
67287         * modules/visibility: New file.
67288         * MODULES.html.sh (Misc): Add visibility.
67289
67290 2005-07-24  Bruno Haible  <bruno@clisp.org>
67291
67292         * m4/visibility.m4: New file.
67293
67294 2005-07-24  Bruno Haible  <bruno@clisp.org>
67295
67296         * doc/visibility.texi: New file.
67297
67298 2005-07-22  Bruno Haible  <bruno@clisp.org>
67299
67300         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
67301         $(ALLOCA_H), redundant through BUILT_SOURCES.
67302         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
67303         redundant through BUILT_SOURCES.
67304         * modules/byteswap (Makefile.am): Remove explicit dependency on
67305         $(BYTESWAP_H), redundant through BUILT_SOURCES.
67306         * modules/fnmatch (Makefile.am): Remove explicit dependency on
67307         $(FNMATCH_H), redundant through BUILT_SOURCES.
67308         * modules/getopt (Makefile.am): Remove explicit dependency on
67309         $(GETOPT_H), redundant through BUILT_SOURCES.
67310         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
67311         redundant through BUILT_SOURCES.
67312         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
67313         redundant through BUILT_SOURCES.
67314         * modules/stdbool (Makefile.am): Remove explicit dependency on
67315         $(STDBOOL_H), redundant through BUILT_SOURCES.
67316         * modules/stdint (Makefile.am): Remove explicit dependency on
67317         $(STDINT_H), redundant through BUILT_SOURCES.
67318         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
67319         Remove explicit dependency on $(SYSEXITS_H).
67320         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
67321
67322 2005-07-18  Simon Josefsson  <jas@extundo.com>
67323
67324         * lib/check-version.c (check_version): Accept identical versions too.
67325
67326 2005-07-18  Bruno Haible  <bruno@clisp.org>
67327
67328         * modules/lock: New file.
67329         * MODULES.html.sh (Multithreading): New section.
67330
67331 2005-07-18  Bruno Haible  <bruno@clisp.org>
67332
67333         * m4/lock.m4: New file, from GNU gettext.
67334
67335 2005-07-18  Bruno Haible  <bruno@clisp.org>
67336
67337         * lib/lock.h: New file, from GNU gettext.
67338         * lib/lock.c: New file, from GNU gettext.
67339
67340 2005-07-18  Bruno Haible  <bruno@clisp.org>
67341
67342         * lib/lock.h (gl_once_t): New type.
67343         (gl_once_define, gl_once): New macros.
67344         * lib/lock.c (fresh_once): New variable.
67345         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
67346         functions.
67347
67348 2005-07-16  Simon Josefsson  <jas@extundo.com>
67349
67350         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
67351         workaround, suggested by Bruno.
67352
67353 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
67354
67355         * modules/xalloc (Depends-on): Add xalloc-die.
67356         * modules/xvasprintf (Depends-on): Add xalloc-die.
67357
67358 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
67359
67360         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
67361         with a minor change.
67362
67363 2005-07-15  Bruno Haible  <bruno@clisp.org>
67364
67365         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
67366         When using lib/poll.c, define poll as rpl_poll.
67367
67368 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
67369
67370         * modules/argp (Depends-on): Remove unlocked-io.
67371
67372 2005-07-14  Derek Price  <derek@ximbiot.com>
67373
67374         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
67375         for glob symlink bug.
67376
67377 2005-07-14  Bruno Haible  <bruno@clisp.org>
67378
67379         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
67380         Instead, test for *_unlocked function declarations directly.
67381
67382 2005-07-11  Simon Josefsson  <jas@extundo.com>
67383
67384         * modules/size_max: New file.
67385
67386         * modules/xsize: Depend on size_max module for size_max.m4.
67387
67388 2005-07-11  Simon Josefsson  <jas@extundo.com>
67389
67390         * lib/size_max.h: New file.
67391
67392 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
67393
67394         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
67395         copyright symbol and the year.
67396         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
67397         (version_etc_va): Use parameterized copyright notice.
67398         Reword to conform to the current GNU coding standards.
67399
67400 2005-07-11  Karl Berry  <karl@gnu.org>
67401
67402         * doc/gnulib.texi (Quoting): new node.
67403         (Initial import): more info, from Patrice.
67404
67405 2005-07-11  Bruno Haible  <bruno@clisp.org>
67406
67407         * gnulib-tool (func_usage): Document option --avoid.
67408         (Command line options): Handle --avoid.
67409         (func_acceptable): New function.
67410         (func_modules_transitive_closure): Use it.
67411
67412 2005-07-11  Bruno Haible  <bruno@clisp.org>
67413
67414         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
67415         Reported by Jim Meyering.
67416
67417 2005-07-10  Bruno Haible  <bruno@clisp.org>
67418
67419         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
67420         Needed when size_t is smaller than 'unsigned int'.
67421         Reported by Paul Eggert.
67422
67423 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
67424
67425         * modules/argp (Depends-on): Add unlocked-io
67426
67427 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
67428
67429         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
67430         block of defines.
67431
67432 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
67433
67434         * config/srclist.txt: Comment out regcomp.c, since we have a porting
67435         fix now.
67436
67437 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
67438         and Paul Eggert  <eggert@cs.ucla.edu>
67439
67440         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
67441         in wint_t, not wchar_t.  Remove now-unnecessary cast.
67442
67443 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
67444
67445         * modules/regex (Files): Add lib/regex_internal.c,
67446         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
67447         (Depends-on): Add extensions.
67448         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
67449
67450 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
67451
67452         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
67453         pathconf.
67454         * m4/same.m4 (gl_SAME): Likewise.
67455         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
67456
67457         * m4/regex.m4: Adjust to new libc regex implementation.
67458         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
67459         all the .c and .h parts of (the new) regex.
67460         Quote the m4 stuff better.
67461         Check for RE_ICASE bug of old gnulib.
67462         Check for REG_STARTEND of recent libc.
67463         Rename local variables from jm_* to gl_*.
67464         Quote operand of "test -f".
67465         Say "recent enough" version of libc, not "version 2".
67466         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
67467         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
67468         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
67469         Remove check for btowc, isascii.
67470         Require AM_LANGINFO_CODESET.
67471
67472 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
67473
67474         * lib/regex.c, regex.h: Sync from libc.
67475         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
67476         * lib/regexec.c:
67477         New files, synced from libc, except that regex_internal.h
67478         currently has a small porting fix.
67479
67480 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
67481
67482         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
67483         regex_internal.c, regexec.c.
67484         Add regex_internal.h too, but as a comment, since the libc version
67485         is currently broken in gnulib mode.
67486
67487 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
67488
67489         Support programs like Emacs that use gnulib but not gettext.
67490         * MODULES.html.sh (Internationalization functions): Add gettext-h.
67491         * modules/gettext-h: New file.
67492         * modules/gettext (Files): Remove lib/gettext.h.
67493         (Depends-on): Add gettext-h.
67494         (Makefile.am): Remove lib_SOURCES.
67495         * modules/argmatch, modules/c-stack, modules/closeout:
67496         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
67497         * modules/execute, modules/file-type, modules/getaddrinfo:
67498         * modules/getopt, modules/human, modules/javacomp:
67499         * modules/javaexec, modules/mkdir-p, modules/obstack:
67500         * modules/openat, modules/pagealign_alloc, modules/pipe:
67501         * modules/quotearg, modules/regex, modules/rpmatch:
67502         * modules/unicodeio, modules/userspec, modules/version-etc:
67503         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
67504         * modules/xsetenv:
67505         Depend on gettext-h, not gettext.
67506
67507 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
67508
67509         * gnulib-tool (func_import): Add support for 'public domain' license.
67510         * modules/alloca, modules/atexit, modules/memmove:
67511         Now public domain, not GPL.
67512         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
67513         * modules/realloc, modules/strerror, modules/strtod:
67514         Now LGPL, not GPL.
67515
67516 2005-07-05  Bruno Haible  <bruno@clisp.org>
67517
67518         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
67519         autoconf CVS. Needed for mingw.
67520
67521 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
67522
67523         Remove the dependency of the strftime module on the tzset module.
67524         * modules/strftime (Depends-on): Remove dependency on tzset.
67525
67526 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
67527
67528         Remove the dependency of the strftime module on the tzset module.
67529         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
67530         gl_FUNC_TZSET_CLOBBER.
67531
67532 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
67533
67534         Remove the dependency of the strftime module on the tzset module.
67535         * lib/strftime.c (my_strftime)
67536         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
67537         Copy the input structure, to work around some of the bug with
67538         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
67539         Solaris releases, you should also use the tzset module, but we won't
67540         require it as a dependency any more since we don't want LGPLed code
67541         to depend on GPLed code.
67542
67543 2005-07-02  Jim Meyering  <jim@meyering.net>
67544
67545         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
67546         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
67547         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
67548         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
67549
67550 2005-07-02  Jim Meyering  <jim@meyering.net>
67551
67552         * lib/backupfile.c (backup_args): Change a `0' to NULL.
67553
67554 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
67555
67556         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
67557         declares only 'struct timespec;' (!).
67558
67559 2005-07-01  Jim Meyering  <jim@meyering.net>
67560
67561         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
67562         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
67563         * lib/save-cwd.c, tempname.c:
67564         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
67565         and don't include <sys/file.h>).
67566
67567 2005-06-29  Jim Meyering  <jim@meyering.net>
67568
67569         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
67570         type name.  Use the variable name instead.
67571         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
67572         Likewise.
67573
67574 2005-06-28  Simon Josefsson  <jas@extundo.com>
67575
67576         * modules/check-version (Files): Add check-version.m4.
67577
67578 2005-06-28  Simon Josefsson  <jas@extundo.com>
67579
67580         * m4/check-version.m4: New file, suggested by Jim Meyering
67581         <jim@meyering.net>.
67582
67583 2005-06-28  Simon Josefsson  <jas@extundo.com>
67584
67585         * lib/check-version.h, lib/check-version.c: New files.
67586
67587 2005-06-28  Simon Josefsson  <jas@extundo.com>
67588
67589         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
67590         collision with global variable.  Better indentation.  Don't
67591         increment buffer pointer beyond buffer end.  Based on comments
67592         from Paul Eggert <eggert@cs.ucla.edu>.
67593
67594         * lib/base64.h: Indent.
67595
67596 2005-06-28  Simon Josefsson  <jas@extundo.com>
67597
67598         * doc/gnulib.texi (Library version handling): New section.
67599
67600 2005-06-28  Jim Meyering  <jim@meyering.net>
67601
67602         * check-module (find_included_lib_files): Hard-code another
67603         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
67604         but modules/fts-lgpl (correctly) does not list those files.
67605
67606         * modules/canonicalize (Files): Add lib/pathmax.h.
67607
67608 2005-06-25  Simon Josefsson  <jas@extundo.com>
67609
67610         * modules/check-version: New file.
67611
67612 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
67613
67614         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
67615         initializer of struct addrinfo, as an indication that we don't
67616         care how many members the structure has.
67617
67618 2005-06-24  Derek Price  <derek@ximbiot.com>
67619         and Bruno Haible  <bruno@clisp.org>
67620
67621         Remove stat module & update lstat.
67622         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
67623         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
67624         * m4/stat.m4: Remove this file.
67625
67626 2005-06-24  Derek Price  <derek@ximbiot.com>
67627         and Bruno Haible  <bruno@clisp.org>
67628
67629         Remove stat module & update lstat.
67630         * lib/stat.c: Remove this file...
67631         (slash_aware_lstat): ...moving this content and its support...
67632         * lib/lstat.c (rpl_lstat): ...into here.
67633         * lib/lstat.h: New file.
67634
67635 2005-06-24  Derek Price  <derek@ximbiot.com>
67636         and Bruno Haible  <bruno@clisp.org>
67637
67638         Remove stat module & update lstat.
67639         * config/srclist.txt (libc sources): Remove stat.
67640
67641 2005-06-24  Derek Price  <derek@ximbiot.com>
67642         and Bruno Haible  <bruno@clisp.org>
67643
67644         Remove stat module & update lstat.
67645         * MODULES.html.sh (stat): Remove.
67646         * MODULES.html: Regenerated.
67647         * modules/lstat (Description): Correct function name.
67648         (Files): Add "lstat.h".
67649         (Depends-on): Remove stat, add xalloc, stat-macros.
67650         * modules/stat: Remove this file.
67651         (Include): Add "lstat.h", remove <sys/stat.h>.
67652
67653 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
67654
67655         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
67656         (ranged_convert): Don't save conversion in a temporary struct.
67657         This causes a warning with GCC 4.0.0, and anyway in the typical
67658         case it's not worth the extra 100 bytes or so of code.
67659         (ranged_convert, __mktime_internal): When calling a function via a
67660         pointer P, use P () rather than (*P) (), as we now assume C89 or
67661         better.
67662
67663 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
67664
67665         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
67666         "who -r" failed to give output.  Problem reported by Tim Waugh.
67667
67668         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
67669         (xcalloc): Use it to avoid needless tests.
67670         Problem reported by Jim Meyering.
67671
67672 2005-06-20  Derek Price  <derek@ximbiot.com>
67673
67674         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
67675         unnecessary for Autoconfs > 2.59c.
67676
67677 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
67678
67679         * lib/argp.h (__option_is_short): Check upper limit of
67680         __key. Isprint() requires its argument to have the value
67681         of an unsigned char or EOF.
67682
67683 2005-06-16  Jim Meyering  <jim@meyering.net>
67684
67685         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
67686         when either N or S is zero.
67687
67688 2005-06-16  Derek Price  <derek@ximbiot.com>
67689
67690         * m4/bison.m4: Declare YACC & YFLAGS precious.
67691
67692 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
67693
67694         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
67695         multibyte string or pattern, fall back on unibyte matching.
67696         Problem reported by James Youngman.
67697
67698 2005-06-08  Bruno Haible  <bruno@clisp.org>
67699
67700         * modules/csharpcomp: New file.
67701         * MODULES.html.sh (C#): Add csharpcomp.
67702
67703 2005-06-08  Bruno Haible  <bruno@clisp.org>
67704
67705         * m4/csharpcomp.m4: New file, from GNU gettext.
67706
67707 2005-06-08  Bruno Haible  <bruno@clisp.org>
67708
67709         * lib/csharpcomp.h: New file, from GNU gettext.
67710         * lib/csharpcomp.c: New file, from GNU gettext.
67711         * lib/csharpcomp.sh.in: New file, from GNU gettext.
67712
67713 2005-06-08  Bruno Haible  <bruno@clisp.org>
67714
67715         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
67716         warning on mingw.
67717
67718 2005-06-07  Derek Price  <derek@ximbiot.com>
67719
67720         Sync from CVS.
67721         * lib/glob_.h: Indent nested #ifdef.
67722
67723 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
67724
67725         Sync from coreutils.
67726         Use "file name" when talking about file names, instead of "filename"
67727         or "path", as per the GNU coding standards.
67728         * lib/mkdir-p.c: Renamed from makepath.c.
67729         (make_dir_parents): Renamed from make_path.  All callers changed.
67730         * lib/mkdir-p.h: Likewise.  All includers changed.
67731         * lib/filenamecat.c: Renamed from path-concat.c.
67732         (file_name_concat): Renamed from path_concat.  All callers changed.
67733         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
67734         * lib/filenamecat.h: Likewise.  All includers changed.
67735         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
67736         in comments or local variable names.
67737         * lib/basename.c: Likewise.
67738         * lib/canonicalize.c, canonicalize.h: Likewise.
67739         * lib/dirname.c, dirname.h: Likewise.
67740         * lib/euidaccess.c: Likewise.
67741         * lib/exclude.c: Likewise
67742         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
67743         * lib/fsusage.c, fsuage.h: Likewise.
67744         * lib/fts.c, fts_.h: Likewise.
67745         * lib/getcwd.c: Likewise.
67746         * lib/getloadavg.c: Likewise.
67747         * lib/mkstemp.c: Likewise.
67748         * lib/mountlist.c, mountlist.h: Likewise.
67749         * lib/openat.c, openat.h: Likewise.
67750         * lib/readlink-stub.c: Likewise.
67751         * lib/readutmp.c, readutmp.h: Likewise.
67752         * lib/rename.c: Likewise.
67753         * lib/rmdir.c: Likewise.
67754         * lib/same.c: Likewise.
67755         * lib/savedir.c: Likewise.
67756         * lib/stripslash.c: Likewise.
67757         * lib/tempname.c: Likewise.
67758         * lib/xreadlink.c: Likewise.
67759         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
67760         All uses changed.
67761         * lib/exclude.h: Likewise.
67762
67763         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
67764         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
67765         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
67766         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
67767         * lib/pathmax.h: Include <limits.h> unconditionally, since other
67768         files have been getting away with it for years (MORE/BSD 4.3
67769         is extinct now).
67770         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
67771         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
67772
67773         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
67774         Define to 256, not 255, as per modern POSIX.
67775
67776 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
67777
67778         Sync from coreutils.
67779         Use "file name" when talking about file names, instead of "filename"
67780         or "path", as per the GNU coding standards.
67781         * MODULES.html.sh: mkdir-p renamed from makepath.
67782         filenamecat renamed from path-concat.
67783         * modules/filenamecat: Renamed from modules/path-concat.
67784         (Files): filenamecat.h and filenamecat.c renamed from
67785         path-concat.h and path-concat.c.
67786         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
67787         (Include): filenamecat.h, not path-concat.h.
67788         * modules/mkdir-p: Renamed from modules/makepath.
67789         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
67790         makepath.c.
67791         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
67792         (Include): mkdir-p.h, not makepath.h.
67793
67794 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
67795
67796         Sync from coreutils.
67797         * m4/mkdir-p.m4: Renamed from makepath.m4.
67798         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
67799         Rename files from makepath.c to mkdir-p.c, and from
67800         makepath.h to mkdir-p.h.
67801         * m4/filenamecat.m4: Renamed from path-concat.m4.
67802         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
67803         Rename files from path-concat.c to filenamecat.c,
67804         and from path-concat.h to filenamecat.h.
67805         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
67806         "file name" in local variables or comments.
67807         * m4/rename.m4: Likewise.
67808
67809 2005-06-01  Bruno Haible  <bruno@clisp.org>
67810
67811         * modules/csharpexec: New file.
67812         * MODULES.html.sh (C#): New section.
67813
67814 2005-06-01  Bruno Haible  <bruno@clisp.org>
67815
67816         * m4/csharp.m4: New file, from GNU gettext.
67817         * m4/csharpexec.m4: New file, from GNU gettext.
67818
67819 2005-06-01  Bruno Haible  <bruno@clisp.org>
67820
67821         * lib/csharpexec.h: New file, from GNU gettext.
67822         * lib/csharpexec.c: New file, from GNU gettext.
67823         * lib/csharpexec.sh.in: New file, from GNU gettext.
67824
67825 2005-05-31  Derek Price  <derek@ximbiot.com>
67826             Paul Eggert  <eggert@cs.ucla.edu>
67827
67828         Sync from cvs.
67829         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
67830
67831 2005-05-31  Derek Price  <derek@ximbiot.com>
67832             Paul Eggert  <eggert@cs.ucla.edu>
67833
67834         Sync from cvs.
67835         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
67836
67837 2005-05-29  Derek Price  <derek@ximbiot.com>
67838
67839         * config/srclist.txt (glob_.h, glob.c): Add these files.
67840
67841 2005-05-29  Derek Price  <derek@ximbiot.com>
67842
67843         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
67844         * modules/glob: New file.
67845         * modules/getlogin_r: Add link to POSIX spec in description.
67846
67847 2005-05-29  Derek Price  <derek@ximbiot.com>
67848             Paul Eggert  <eggert@cs.ucla.edu>
67849
67850         * m4/glob.m4: New file.
67851
67852 2005-05-29  Derek Price  <derek@ximbiot.com>
67853             Paul Eggert  <eggert@cs.ucla.edu>
67854
67855         * lib/glob_.h, lib/glob.c: New files.
67856
67857 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
67858
67859         * modules/fts (Files): Remove m4/inttypes-pri.m4.
67860         * modules/fts-lgpl (Depends-on): Remove gettext.
67861
67862 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
67863
67864         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
67865         and don't require gt_INTTYPES_PRI.
67866
67867 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
67868
67869         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
67870
67871         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
67872         the configuration hassle isn't worth it.
67873         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
67874         (LONGEST_MODIFIER, PRIuMAX): Remove.
67875
67876 2005-05-27  Bruno Haible  <bruno@clisp.org>
67877
67878         * lib/getlogin_r.h: Remove second include of <stddef.h>.
67879
67880 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
67881
67882         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
67883         _POSIX_PTHREAD_SEMANTICS for Solaris.
67884
67885 2005-05-25  Derek Price  <derek@ximbiot.com>
67886
67887         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
67888
67889 2005-05-25  Derek Price  <derek@ximbiot.com>
67890             Paul Eggert  <eggert@cs.ucla.edu>
67891
67892         * modules/getlogin_r, m4/getlogin_r.m4: New files.
67893         * lib/getlogin_r.c, getlogin_r.h: New files.
67894
67895 2005-05-25  Bruno Haible  <bruno@clisp.org>
67896             Derek Price  <derek@ximbiot.com>
67897
67898         * lib/getlogin_r.h: Simplify API documentation.
67899
67900 2005-05-23  Derek Price  <derek@ximbiot.com>
67901
67902         * modules/minmax (Files): Add m4/minmax.m4.
67903         (configure.ac): Add gl_MINMAX.
67904
67905 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
67906
67907         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
67908         so that unistd-safer.h (GPL'ed code) need not be included.
67909
67910 2005-05-22  Bruno Haible  <bruno@clisp.org>
67911
67912         * m4/minmax.m4: New file.
67913         Based on a patch by Derek Price <derek@ximbiot.com>.
67914
67915 2005-05-22  Bruno Haible  <bruno@clisp.org>
67916
67917         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
67918         (INT64_MIN): Fix definition.
67919         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
67920
67921         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
67922         NEED_SIGNED_INT_TYPES.
67923
67924         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
67925         HAVE_SYSTEM_INTTYPES.
67926
67927 2005-05-22  Bruno Haible  <bruno@clisp.org>
67928
67929         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
67930         Also include <sys/param.h> if it defines MIN, MAX.
67931         Based on a patch by Derek Price <derek@ximbiot.com>.
67932
67933 2005-05-21  Jim Meyering  <jim@meyering.net>
67934
67935         * modules/fts (Files): Add m4/inttypes-pri.m4.
67936         (Depends-on): Add lstat and remove gettext.  Alphabetize.
67937
67938 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
67939
67940         New fts module.
67941         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
67942         (setup_dir, free_dir): New functions.
67943         (enter_dir, leave_dir): Define trivial
67944         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
67945         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
67946         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
67947         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
67948         Move to fts-cycle.c.
67949         (fts_open): Use setup_dir.
67950         (fts_close): Use free_dir.
67951         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
67952         This adds a label and some gotos, but the alternatives were messier.
67953         Check for memory allocation failure when entering a dir.
67954         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
67955         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
67956         (FTS): New member fts_cycle, that is a union that contains the
67957         old active_dir_ht and cycle_state.  All uses changed to mention
67958         fts_cycle.ht and fts_cycle.state.
67959         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
67960         fts.c, with the following changes:
67961         (setup_dir, free_dir): New functions.
67962         (enter_dir): Now returns bool.  Return true if successful, false
67963         if memory exhausted.  All callers changed.
67964         Do not bother partly cleaning up on
67965         memory allocation failure; that is free_dir's job.
67966         However, free ad if hash_insert fails, to avoid memory leak.
67967         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
67968         fts->fts_options to see which union member to use.
67969
67970 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
67971
67972         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
67973         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
67974
67975 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
67976
67977         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
67978
67979 2005-05-20  Jim Meyering  <jim@meyering.net>
67980
67981         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
67982         Now a macro, to pacify GCC.
67983
67984 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
67985
67986         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
67987         of -1.
67988
67989 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
67990
67991         * lib/chown.c (rpl_chown): Return -1 on failure.
67992
67993 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
67994
67995         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
67996         Don't check for stddef.h.
67997         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
67998         don't use its results.
67999         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
68000         since we include them unconditionally.  Don't require
68001         AM_STDBOOL_H, since stdbool is a prerequisite.
68002         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
68003         since we assume C89 or better.
68004         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
68005         as we don't use their results.
68006         Don't check for fchdir, memmove, memset, strrchr, as we use
68007         them unconditionally.
68008         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
68009         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
68010
68011 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
68012
68013         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
68014         Include <stddef.h> unconditionally, since we assume C89 now.
68015         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
68016         * lib/fts.c: Include fts_.h first, to check interface.
68017         Do not include intprops.h; no longer needed.
68018         Include cycle-check.h and hash.h, since fts_.h no longer does.
68019         Remove unnecessary casts of closedir to void.
68020         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
68021         decide whether to decrement nlinks.
68022         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
68023         (FTS): Use struct hash_table * instead of Hash_table, so that
68024         we no longer need to include hash.h here.
68025
68026 2005-05-18  Jim Meyering  <jim@meyering.net>
68027
68028         * modules/dirfd (License): Change to LGPL.  Most of the code
68029         is already in the public domain.
68030
68031 2005-05-18  Jim Meyering  <jim@meyering.net>
68032
68033         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
68034         Reported by Yoann Vandoorselaere.
68035
68036 2005-05-17  Jim Meyering  <jim@meyering.net>
68037
68038         * m4/fts.m4: New file, from coreutils.
68039
68040 2005-05-17  Jim Meyering  <jim@meyering.net>
68041
68042         * lib/fts.c, lib/fts_.h: New files, from coreutils.
68043
68044 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
68045
68046         Sync from coreutils.
68047         * m4/unlinkdir.m4: New file.
68048
68049 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
68050
68051         Sync from coreutils.
68052         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
68053         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
68054         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
68055         White space changes only.
68056         * lib/makepath.c (make_path): Port to hosts where leading "//" is
68057         special.
68058         * lib/yesno.c: Include getline.h, not ctype.h.
68059         (yesno): Don't remove leading white space; POSIX doesn't allow it.
68060         Use getline to remove arbitrary restriction on response length.
68061
68062 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
68063
68064         * config/srclist-update: Spell out "Street" in FSF postal
68065         mail address; this is the style the FSF seems to prefer.
68066
68067         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
68068         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
68069         this updates FSF postal mail address.
68070
68071         Sync from coreutils.
68072         * modules/unlinkdir: New file.
68073         * modules/yesno (Depends-on): Add getline.
68074         * MODULES.html.sh (File system functions): Add unlinkdir.
68075
68076 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
68077
68078         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
68079         lib/strsep.h:
68080         Change the initial comment to refer to GPL, not LGPL.
68081         gnulib-tool will change it to LGPL as needed.
68082
68083         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
68084         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
68085         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
68086         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
68087         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
68088         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
68089         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
68090         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
68091         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
68092         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
68093         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
68094         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
68095         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
68096         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
68097         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
68098         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
68099         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
68100         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
68101         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
68102         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
68103         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
68104         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
68105         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
68106         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
68107         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
68108         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
68109         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
68110         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
68111         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
68112         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
68113         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
68114         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
68115         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
68116         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
68117         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
68118         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
68119         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
68120         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
68121         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
68122         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
68123         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
68124         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
68125         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
68126         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
68127         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
68128         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
68129         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
68130         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
68131         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
68132         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
68133         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
68134         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
68135         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
68136         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
68137         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
68138         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
68139         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
68140         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
68141         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
68142         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
68143         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
68144         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
68145         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
68146         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
68147         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
68148         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
68149         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
68150         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
68151         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
68152         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
68153         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
68154         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
68155         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
68156         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
68157         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
68158         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
68159         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
68160         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
68161         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
68162         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
68163         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
68164         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
68165         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
68166         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
68167         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
68168         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
68169         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
68170         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
68171         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
68172         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
68173         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
68174         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
68175         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
68176         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
68177         lib/yesno.c, lib/yesno.h:
68178         Update FSF postal mail address.
68179
68180 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
68181
68182         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
68183         tests/test-memmem.c, tests/test-stpncpy.c:
68184         Update FSF postal mail address.
68185
68186 2005-05-13  Bruno Haible  <bruno@clisp.org>
68187
68188         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
68189         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
68190         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
68191         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
68192         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
68193         Add support for 64-bit integers in the MSVC compiler.
68194
68195 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
68196
68197         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
68198
68199 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
68200
68201         * gnulib-tool (func_import): Sort and uniquify recommended includes.
68202
68203 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
68204
68205         * doc/getdate.texi (General date syntax): Don't say that date
68206         date --iso-8601=ns generates acceptable dates; it doesn't yet.
68207         Problem reported by Nic Ferrier.
68208
68209 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
68210
68211         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
68212         specified in ai_socktype. Fix invalid ai_protocol
68213         check. ai_protocol is usually set to 0 or depending on
68214         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
68215         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
68216         ai_socktype / ai_protocol in the returned addrinfo structure.
68217
68218 2005-05-10  Simon Josefsson  <jas@extundo.com>
68219
68220         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
68221         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
68222
68223 2005-05-10  Karl Berry  <karl@gnu.org>
68224
68225         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
68226         (from http://www.gnu.org/licenses).
68227         * doc/COPYING.LIB: also rename to COPYING.LESSER.
68228         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
68229         fdl.texi suffices.
68230
68231 2005-05-10  Karl Berry  <karl@gnu.org>
68232
68233         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
68234         (COPYING.DOC): remove.
68235
68236         * config/srclist-update: new FSF address.
68237
68238 2005-05-10  Derek Price  <derek@ximbiot.com>
68239
68240         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
68241         possible.
68242
68243 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
68244             Bruno Haible  <bruno@clisp.org>
68245
68246         * modules/inet_ntop: New file.
68247         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
68248         inet_ntop.
68249
68250 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
68251             Bruno Haible  <bruno@clisp.org>
68252
68253         * m4/inet_ntop.m4: New file.
68254
68255 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
68256             Bruno Haible  <bruno@clisp.org>
68257
68258         * lib/inet_ntop.h: New file.
68259         * lib/inet_ntop.c: New file, from glibc with modifications.
68260
68261 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
68262
68263         * modules/time_r (License): Change to LGPL.
68264         * modules/extensions (License): Change to LGPL.  Actually,
68265         the license is more permissive than that, but currently gnulib-tool
68266         doesn't know how to handle more-permissive licenses.
68267
68268         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
68269         Problem reported by Dave Love.
68270
68271 2005-05-08  Jim Meyering  <jim@meyering.net>
68272
68273         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
68274         blank.
68275
68276 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
68277
68278         * modules/argmatch (Depends-on): Add stdbool.
68279         * modules/backupfile (Depends-on): Likewise.
68280         * modules/chdir-long (Depends-on): Likewise.
68281         * modules/closeout (Depends-on): Likewise.
68282         * modules/cycle-check (Depends-on): Likewise.
68283         * modules/dirname (Depends-on): Likewise.
68284         * modules/fnmatch (Depends-on): Likewise.
68285         * modules/fsusage (Depends-on): Likewise.
68286         * modules/fwriteerror (Depends-on): Likewise.
68287         * modules/getcwd (Depends-on): Likewise.
68288         * modules/getloadavg (Depends-on): Likewise.
68289         * modules/hard-locale (Depends-on): Likewise.
68290         * modules/makepath (Depends-on): Likewise.
68291         * modules/mountlist (Depends-on): Likewise.
68292         * modules/nanosleep (Depends-on): Likewise.
68293         * modules/posixtm (Depends-on): Likewise.
68294         * modules/quotearg (Depends-on): Likewise.
68295         * modules/readtokens (Depends-on): Likewise.
68296         * modules/readtokens0 (Depends-on): Likewise.
68297         * modules/readutmp (Depends-on): Likewise.
68298         * modules/save-cwd (Depends-on): Likewise.
68299         * modules/strftime (Depends-on): Likewise.
68300         * modules/userspec (Depends-on): Likewise.
68301         * modules/utimecmp (Depends-on): Likewise.
68302         * modules/xgetcwd (Depends-on): Likewise.
68303         * modules/xnanosleep (Depends-on): Likewise.
68304         * modules/xstrtod (Depends-on): Likewise.
68305         * modules/yesno (Depends-on): Likewise.
68306
68307 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
68308
68309         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
68310         needless checks.
68311
68312 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
68313
68314         Merge from coreutils.  Among other things,
68315         add bulletproofing for cases where stdin, stdout, or stderr are closed.
68316         * lib/fd-safer.c: New file.
68317         * lib/fcntl-safer.h, open-safer.c: Remove.
68318         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
68319         * lib/dup-safer.c: Include unistd-safer.h first.
68320         Don't include errno.h.
68321         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
68322         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
68323         * lib/file-type.c: Rely on file-type.h change.
68324         * lib/getloadavg.c: Include unistd-safer.h.
68325         (getloadavg): Use safer open.
68326         * lib/getusershell.c: Include "stdio-safer.h".
68327         (getusershell): Use safer fopen.
68328         * lib/long-options.c (long_options): Use NULL rather than 0.
68329         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
68330         'free'.
68331         * lib/modechange.c: Likewise.
68332         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
68333         (MODE_DONE): New constant.
68334         (struct mode_change): Remove 'next' member.
68335         (make_node_op_equals): New function; like the old one of the
68336         same name, except it allocates an array.
68337         (mode_compile, mode_create_from_ref): Use it.
68338         (mode_compile): Allocate result as an array, not a linked list.
68339         Parse octal string ourself, so that we catch mistakes like "+0".
68340         (mode_adjust): Arg is an array, not a linked list.
68341         * lib/modechange.c: Include stat-macros.h, xalloc.h.
68342         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
68343         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
68344         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
68345         Remove.  This is now stat-macros.h's job.
68346         (talloc): Remove.  All callers replaced by xalloc, so that
68347         our invokers don't have to worry about reporting memory failures.
68348         (make_node_op_equals): Remove.
68349         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
68350         New constants.
68351         (struct mode_change): Moved here from modechange.h.
68352         (mode_append_entry): Remove.
68353         (mode_compile): Remove MASKED_OPS arg, since it encouraged
68354         apps to have incorrect behavior.  Use simpler algorithm for head
68355         and tail.  Don't futz with umask; that's now the job of mode_adjust.
68356         Detect more invalid usages rather than having somewhat-random behavior.
68357         Don't insert an "a=" action, as that leads to incorrect behavior.
68358         (mode_compile, mode_create_from_ref): Return NULL on error instead
68359         of an enum, since now there's only one way to have an error.  All
68360         callers changed.
68361         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
68362         at the correct time.  Simplify calculation of "+u" and its ilk.
68363         Don't mishandle "+X".
68364         (mode_free): Remove "register" and localize decls.
68365         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
68366         (struct mode_change): Move to modechange.c; callers don't
68367         need to see this stuff.
68368         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
68369         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
68370         (mode_change, mode_adjust): Reflect the new signatures noted above.
68371         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
68372         that might redefine system include files.
68373         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
68374         (my_usleep): Use NULL rather than (void *) 0.
68375         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
68376         Use siginterrupt to specify that system calls should be interrupted.
68377         (rpl_nanosleep): Move initialization of suspended closer to call of
68378         my_usleep.
68379         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
68380         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
68381         (desirable_utmp_entry): New function.
68382         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
68383         using x2nrealloc, to simplify logic.
68384         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
68385         size calculation.  Do not assume utmp file is a regular file.
68386         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
68387         (READ_UTMP_CHECK_PIDS): New constant.
68388         * lib/save-cwd.c: Include unistd-safer.h.
68389         (save_cwd): Use fd_safer.
68390         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
68391         [!_LIBC] Include "stat-macros.h" instead.
68392         * lib/unistd-safer.h (fd_safer): New decl.
68393
68394 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
68395
68396         * modules/getloadavg (Depends-on): Add unistd-safer.
68397         * modules/getusershell (Depends-on): Add stdio-safer.
68398         * modules/lstat (Depends-on): Remove xalloc.
68399         * modules/mkstemp (Depends-on): Add stat-macros.
68400         * modules/modechange (Depends-on): Remove xstrtol.
68401         Add stat-macros, xalloc.
68402         * modules/save-cwd (Depends-on): Add unistd-safer.
68403         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
68404         * modules/unistd-safer (Files): Add lib/fd-safer.c
68405         (Makefile.am): Remove lib_SOURCES.
68406
68407         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
68408         Remove fcntl-safer; unistd-safer supersedes it.
68409
68410 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
68411
68412         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
68413         AC_HEADER_STAT.
68414         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
68415         (gl_PREREQ_CHOWN): Remove.
68416         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
68417         it.  Don't require AC_HEADER_STAT.
68418         (gl_PREREQ_LSTAT): Remove.
68419         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
68420         Don't require AC_HEADER_STAT.
68421         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
68422         (gl_PREREQ_RMDIR): Remove.
68423         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
68424         mention stat-macros.h or AC_HEADER_STAT, since we'll make
68425         the stat-macros module a prerequisite.
68426         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
68427         * m4/filemode.m4 (gl_FILEMODE): Likewise.
68428         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
68429         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
68430         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
68431         variable names.
68432         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
68433         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
68434         variable prefixes.
68435         * m4/fcntl-safer.m4: Remove.
68436         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
68437         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
68438         Invoke gl_PREREQ_FD_SAFER.
68439         (gl_PREREQ_FD_SAFER): New macro.
68440         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
68441         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
68442         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
68443         Remove duplicate call to AC_LIBOBJ(readutmp).
68444         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
68445
68446         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
68447         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
68448
68449 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
68450
68451         * MODULES.html.sh (Misc): Add byteswap.
68452
68453 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
68454
68455         * modules/getcwd (Depends-on): Add extensions.
68456         * modules/openat (Depends-on): Likewise.
68457
68458 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
68459
68460         * modules/byteswap: New file.
68461
68462 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
68463
68464         * m4/byteswap.m4: New file.
68465
68466 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
68467
68468         * lib/byteswap_.h: New file.
68469
68470 2005-04-25  Karl Berry  <karl@gnu.org>
68471
68472         * m4/gettext.m4: Update from GNU gettext 0.14.4.
68473
68474 2005-04-25  Albert Chin  <china@thewrittenword.com>
68475
68476         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
68477         Toolkit C bug.
68478
68479 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
68480
68481         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
68482         (func_ln_if_changed): Remove forcibly for no error message
68483         in case file does not exist.
68484
68485 2005-04-19  Simon Josefsson  <jas@extundo.com>
68486
68487         * gnulib-tool (Options): Make --symlink mean --symbolic.
68488
68489 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
68490
68491         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
68492
68493 2005-04-16  Simon Josefsson  <jas@extundo.com>
68494
68495         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
68496
68497 2005-04-15  Simon Josefsson  <jas@extundo.com>
68498
68499         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
68500
68501 2005-04-15  Simon Josefsson  <jas@extundo.com>
68502
68503         * gnulib-tool: Rename --symlink to --symbolic.
68504
68505 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
68506
68507         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
68508         symbolic links to files instead of copying/moving.  Add --aux-dir,
68509         specifying directory relative --dir where auxiliary build tools
68510         are placed.
68511
68512 2005-04-14  Bruno Haible  <bruno@clisp.org>
68513
68514         * modules/allocsa (License): Change to LGPL.
68515         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
68516
68517 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
68518
68519         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
68520         that "UTC +1 second" continues to work.  Problem reported
68521         by Dmitry V. Levin.
68522         (relunit_snumber): New rule.
68523         (relunit): Use it.
68524
68525 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
68526
68527         * lib/getdate.y (universal_time_zone_table): New constant.
68528         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
68529         universal_time_zone_table.
68530         (lookup_zone): Prefer universal_time_zone_table to
68531         local_time_zone_table, so that "GMT" time stamps are allowed in
68532         London during the summer.  Problem reported by Ian Abbott.
68533
68534 2005-04-12  Jim Meyering  <jim@meyering.net>
68535
68536         * lib/human.c (humblock): Set *options even when returning due to
68537         xstrtoumax conversion failure.  Thanks to a used-uninitialized
68538         warning from gcc-4.
68539
68540 2005-04-09  Jim Meyering  <jim@meyering.net>
68541
68542         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
68543         -Wuninitialized: initialize tm0.tm_year.
68544
68545 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
68546
68547         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
68548         count, since there's no maximum.  All uses changed.
68549         Add member dsts_seen.
68550         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
68551         not being INT_MAX.
68552         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
68553         Use pc_rels_seen to decide whther a date is absolute.
68554
68555         * lib/getdate.y (number): Don't overwrite year.
68556         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
68557         check.
68558
68559 2005-04-02  Simon Josefsson  <jas@extundo.com>
68560
68561         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
68562         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
68563
68564 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
68565
68566         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
68567         where no absolute path name can be longer than PATH_MAX.
68568
68569 2005-03-27  Jim Meyering  <jim@meyering.net>
68570
68571         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
68572
68573 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
68574
68575         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
68576         "one's complement" -> "ones' complement" in comment, as per Knuth.
68577         "value of type" -> "type or expression" in comment.
68578         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
68579
68580 2005-03-26  Jim Meyering  <jim@meyering.net>
68581
68582         Comment nits.
68583         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
68584         Correct typos: s/or/of/.
68585
68586 2005-03-26  Jim Meyering  <jim@meyering.net>
68587
68588         * modules/check-include-files: Move to ../ and rename to...
68589         * check-module: ...this.
68590
68591 2005-03-25  Jim Meyering  <jim@meyering.net>
68592
68593         * modules/xvasprintf (Files): Add xalloc.h.
68594
68595 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
68596
68597         * modules/gettext (Files): config/config.rpath ->
68598         build-aux/config.rpath
68599         * modules/iconv (Files): Likewise.
68600         Problem reported by Oskar Liljeblad.
68601
68602 2005-03-23  Jim Meyering  <jim@meyering.net>
68603
68604         * modules/check-include-files: New script to check for
68605         missing dependencies, multiple includes, etc.
68606
68607         * modules/c-strtold (Depends-on): Add xalloc.
68608         * modules/c-strtod (Depends-on): Add xalloc.
68609         * modules/hash (Depends-on): Add xalloc.
68610         (Files): Remove lib/xalloc.h.
68611
68612         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
68613         * modules/userspec (Files): Add lib/inttostr.h.
68614
68615 2005-03-23  Jim Meyering  <jim@meyering.net>
68616
68617         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
68618
68619 2005-03-22  Jim Meyering  <jim@meyering.net>
68620
68621         * modules/stat-macros: New module.
68622         * modules/canonicalize, modules/euidaccess, modules/file-type,
68623         * modules/filemode, modules/lchown, modules/makepath,
68624         * modules/rmdir, modules/stat: Depend on new stat-macros module
68625         rather than listing lib/stat-macros.h manually.
68626         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
68627
68628 2005-03-22  Jim Meyering  <jim@meyering.net>
68629
68630         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
68631
68632 2005-03-22  Bruno Haible  <bruno@clisp.org>
68633
68634         * config/srclist.txt: Replace target directory 'config' with
68635         'build-aux'.
68636         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
68637         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
68638         ../build-aux/.
68639
68640 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
68641
68642         * modules/chdir-long (Depends-on): Add mempcpy.
68643
68644         * modules/acl, modules/backupfile, modules/c-strtod,
68645         modules/c-strtold, modules/canon-host, modules/canonicalize,
68646         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
68647         modules/exclude, modules/exitfail, modules/file-type,
68648         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
68649         modules/getdate, modules/getline, modules/getpagesize,
68650         modules/getpass, modules/getugroups, modules/group-member,
68651         modules/hard-locale, modules/hash, modules/human, modules/idcache,
68652         modules/inttostr, modules/long-options, modules/makepath,
68653         modules/md5, modules/memcasecmp, modules/memcoll,
68654         modules/modechange, modules/mountlist, modules/path-concat,
68655         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
68656         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
68657         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
68658         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
68659         modules/strftime, modules/strndup, modules/strverscmp,
68660         modules/timespec, modules/unlocked-io, modules/userspec,
68661         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
68662         modules/yesno:
68663         Remove lib_SOURCES line from Makefile.am section, as this is now
68664         done automatically by the corresponding Autoconf macro.
68665
68666 2005-03-21  Jim Meyering  <jim@meyering.net>
68667
68668         Changes imported from coreutils.
68669
68670         * lib/cycle-check.c: Don't include xalloc.h.
68671
68672         * lib/path-concat.c: Don't include assert.h.
68673         (path_concat): Remove assertion that would have triggered
68674         for ABASE starting with more than one slash.
68675         Reported by Andreas Schwab.
68676
68677         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
68678         properly when ABASE is an absolute file name.
68679         Correct the description of this function.
68680         Include <assert.h>.
68681         Add an assertion and a test driver.
68682         This fixes a bug introduced on 2004-07-02.
68683         Andreas Schwab reported the resulting failure of cp --parents:
68684         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
68685
68686 2005-03-21  Jim Meyering  <jim@meyering.net>
68687
68688         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
68689         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
68690
68691 2005-03-21  Jim Meyering  <jim@meyering.net>
68692         and  Paul Eggert  <eggert@cs.ucla.edu>
68693
68694         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
68695         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
68696         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
68697         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
68698         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
68699         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
68700         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
68701         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
68702         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
68703         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
68704         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
68705         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
68706         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
68707         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
68708         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
68709         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
68710         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
68711         for these modules.
68712
68713 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
68714
68715         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
68716         (which shouldn't happen), generate nothing instead of returning 0
68717         immediately, so that nstrftime (NULL, ...) doesn't return 0.
68718
68719 2005-03-16  Bruno Haible  <bruno@clisp.org>
68720
68721         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
68722         HAVE_LONGLONG_64BIT.
68723
68724 2005-03-16  Bruno Haible  <bruno@clisp.org>
68725
68726         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
68727         HAVE_LONGLONG_64BIT.
68728
68729 2005-03-16  Bruno Haible  <bruno@clisp.org>
68730
68731         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
68732         HAVE_LONGLONG_64BIT.
68733
68734 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
68735
68736         * lib/strftime.c (my_strftime): Prepend space to format so that we can
68737         reliably distinguish strftime failure from empty output on POSIX
68738         hosts.
68739
68740 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
68741
68742         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
68743         (iconv_string): Don't guess a size-zero buffer, as that might cause
68744         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
68745         result would be 'too large', where 'too large' is (heuristically)
68746         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
68747         overflow concerns.  This will prevent some unwanted malloc failures
68748         when the inputs are very large.
68749
68750 2005-03-15  Karl Berry  <karl@gnu.org>
68751
68752         * config/srclist.txt (config.rpath): from gettext.
68753         * config/config.rpath: update.
68754
68755 2005-03-15  Bruno Haible  <bruno@clisp.org>
68756
68757         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
68758         to 'negate'.
68759
68760         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
68761         variable.
68762
68763         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
68764         results.
68765
68766 2005-03-14  Simon Josefsson  <jas@extundo.com>
68767
68768         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
68769         <fx@gnu.org>.
68770
68771 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
68772
68773         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
68774         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
68775         intprops.h.
68776         * lib/strtol.c: Likewise.
68777
68778 2005-03-14  Jim Meyering  <jim@meyering.net>
68779
68780         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
68781         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
68782         to be nonzero so that we (and caller) can detect the difference
68783         between a valid zero-length expansion and an error return, even
68784         when the underlying strftime fails before writing anything into
68785         that location.
68786
68787 2005-03-14  Bruno Haible  <bruno@clisp.org>
68788
68789         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
68790         Update from GNU gettext 0.14.3.
68791
68792 2005-03-10  Jim Meyering  <jim@meyering.net>
68793
68794         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
68795
68796 2005-03-10  Jim Meyering  <jim@meyering.net>
68797
68798         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
68799         so that this module works on systems without fchdir.
68800
68801 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
68802
68803         Factor int-properties macros into a single file, except for
68804         glibc-related files.
68805         * lib/intprops.h: New file.
68806         * lib/getloadavg.c: Include it instead of limits.h.
68807         (INT_STRLEN_BOUND): Remove.
68808         * lib/human.c: Include intprops.h.
68809         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
68810         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
68811         302/1000.
68812         * lib/inttostr.h: Include intprops.h instead of limits.h.
68813         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
68814         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
68815         for consistency with intprops.h.
68816         (time_t_is_integer, twos_complement_arithmetic): Use them.
68817         * lib/sig2str.h: Include <signal.h>, intprops.h.
68818         (INT_STRLEN_BOUND): Remove.
68819         * lib/strftime.c (TYPE_SIGNED): Remove.
68820         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
68821         * lib/strtol.c: Adjust comments to match intprops.h.
68822         * lib/userspec.c: Include intprops.h.
68823         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
68824         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
68825         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
68826         instead of rolling our own expressions.
68827         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
68828
68829         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
68830         instead of int.
68831         (my_strftime): Do not mishandle years close to INT_MAX, by doing
68832         the right thing even if adding 1900 would overflow.  Similarly
68833         for tm_mon + 1 and tm_yday + 1.
68834         Make %Y always equivalent to %C%y, and similarly for %G and %g.
68835         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
68836         (DO_SIGNED_NUMBER): New macro.
68837         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
68838
68839 2005-03-07  Bruno Haible  <bruno@clisp.org>
68840
68841         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
68842
68843 2005-03-07  Bruno Haible  <bruno@clisp.org>
68844
68845         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
68846
68847 2005-03-04  Derek R. Price  <derek@ximbiot.com>
68848
68849         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
68850         (func_import): Only replace files via --import when they have actually
68851         changed.
68852
68853 2005-03-03  Derek R. Price  <derek@ximbiot.com>
68854
68855         * m4/mmap-anon.m4: New file.
68856         * m4/pagealign_alloc.m4: New file.
68857
68858 2005-03-03  Derek R. Price  <derek@ximbiot.com>
68859             Bruno Haible  <bruno@clisp.org>
68860
68861         * modules/pagealign_alloc: New file.
68862         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
68863
68864 2005-03-03  Derek R. Price  <derek@ximbiot.com>
68865             Bruno Haible  <bruno@clisp.org>
68866
68867         * lib/pagealign_alloc.h: New file.
68868         * lib/pagealign_alloc.c: New file.
68869
68870 2005-03-03  Bruno Haible  <bruno@clisp.org>
68871
68872         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
68873         Use an all-permissive copyright notice, recommended by RMS.
68874
68875 2005-03-02  Bruno Haible  <bruno@clisp.org>
68876
68877         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
68878         of AIX, the replacement has to be done only after <string.h> is
68879         included, therefore not in config.h. stpncpy.h does the replacement,
68880         and stpncpy.c uses it.
68881
68882 2005-03-02  Bruno Haible  <bruno@clisp.org>
68883
68884         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
68885         stpncpy.c uses it.
68886
68887 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
68888
68889         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
68890         The workaround isn't strictly needed for POSIX conformance, and
68891         it's too much of a pain to configure and maintain.  We'll ask
68892         people to fix their kernels instead.
68893         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
68894         (NANOSLEEP_BUG_WORKAROUND): Remove.
68895         (xnanosleep): Remove the workaround.
68896
68897 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
68898
68899         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
68900         Reported by Derek Price.
68901         (Include): Add "timespec.h".
68902
68903         * modules/xnanosleep (Depends-on): Remove gethrxtime.
68904
68905 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
68906
68907         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
68908         to detect nanosleep bug.
68909
68910 2005-03-01  Bruno Haible  <bruno@clisp.org>
68911
68912         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
68913
68914 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
68915
68916         * modules/gethrxtime: New file.
68917         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
68918         (Depends-on): Add gethrxtime.
68919         (configure.ac): Add gl_XNANOSLEEP.
68920         (Makefile.am): Remove lib_SOURCES line.
68921
68922 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
68923
68924         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
68925         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
68926
68927 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
68928
68929         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
68930         * lib/timespec.h (gettime): Return void, since it always
68931         succeeds now.  All uses changed.
68932         * lib/gettime.c (gettime): Likewise.
68933         [HAVE_NANOTIME]: Prefer nanotime.
68934         Assume gettimeofday succeeds, as POSIX requires.
68935         Assime time () succeeds, since other code already does.
68936         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
68937         (timespec_subtract): Remove.
68938         (NANOSLEEP_BUG_WORKAROUND): New constant.
68939         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
68940         things considerably.  Use it only on GNU/Linux hosts, since the
68941         workaround shouldn't be needed elsewhere.
68942
68943 2005-02-24  Bruno Haible  <bruno@clisp.org>
68944
68945         * modules/gettext (Files): Add m4/glibc2.m4.
68946
68947 2005-02-24  Bruno Haible  <bruno@clisp.org>
68948
68949         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
68950         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
68951         * m4/progtest.m4:
68952         Update from GNU gettext 0.14.2.
68953         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
68954
68955 2005-02-24  Bruno Haible  <bruno@clisp.org>
68956
68957         * lib/localcharset.c: Update from GNU gettext 0.14.2.
68958         * lib/config.charset: Update from GNU gettext 0.14.2.
68959
68960 2005-02-24  Bruno Haible  <bruno@clisp.org>
68961
68962         * lib/gettext.h: Update from GNU gettext 0.14.2.
68963
68964 2005-02-23  Simon Josefsson  <jas@extundo.com>
68965
68966         * m4/iconvme.m4: New file.
68967
68968 2005-02-23  Jim Meyering  <jim@meyering.net>
68969
68970         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
68971         change.
68972         Thanks to Bruno Haible for catching it.
68973
68974 2005-02-22  Simon Josefsson  <jas@extundo.com>
68975
68976         * modules/iconvme: New file.
68977
68978         * MODULES.html.sh: Add iconvme.
68979
68980 2005-02-22  Simon Josefsson  <jas@extundo.com>
68981
68982         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
68983
68984 2005-02-22  Simon Josefsson  <jas@extundo.com>
68985
68986         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
68987
68988 2005-02-22  Jim Meyering  <jim@meyering.net>
68989
68990         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
68991         s/ifndef/ifdef/.
68992
68993 2005-02-20  Neil Conway  <neilc@samurai.com>
68994
68995         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
68996         returned by OSX/Darwin if the specified buffer is not large
68997         enough for the hostname.
68998
68999 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
69000
69001         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
69002         pass it to _help, otherwise the latter coredumps trying to
69003         dereference state.root_argp.
69004
69005 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
69006
69007         * modules/chdir-long (Depends-on): Add memrchr.
69008         * modules/memrchr (Files): Add lib/memrchr.h.
69009         (Include): "memrchr.h".
69010
69011 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
69012
69013         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
69014
69015 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
69016
69017         * lib/memrchr.h: New file.
69018         * lib/chdir-long.c: Include it.
69019         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
69020         Don't bother including stddef.h.
69021
69022 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
69023
69024         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
69025         inclusion.
69026         Include <sys/types.h>, for dev_t.
69027         (ME_DUMMY, ME_REMOTE): Move from here....
69028         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
69029         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
69030         Dmitry V. Levin.
69031         Include mountlist.h first, to test the interface.
69032
69033 2005-01-29  Bruno Haible  <bruno@clisp.org>
69034
69035         * lib/progname.c (program_name): Initialize.
69036         Needed when linking statically on MacOS X.
69037
69038 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
69039
69040         Sync from coreutils.
69041         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
69042         (Depends-on): Add c-strtod.
69043         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
69044
69045 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
69046
69047         Sync from coreutils.
69048         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
69049
69050         Remove files that are specific to coreutils.
69051         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
69052
69053 2005-01-28  Bruno Haible  <bruno@clisp.org>
69054
69055         * modules/javacomp: New file.
69056         * MODULES.html.sh (Java): Add javacomp.
69057
69058 2005-01-28  Bruno Haible  <bruno@clisp.org>
69059
69060         * m4/javacomp.m4: New file, from GNU gettext.
69061
69062 2005-01-28  Bruno Haible  <bruno@clisp.org>
69063
69064         * lib/javacomp.sh.in: New file, from GNU gettext.
69065         * lib/javacomp.h: New file, from GNU gettext.
69066         * lib/javacomp.c: New file, from GNU gettext.
69067
69068 2005-01-26  Simon Josefsson  <jas@extundo.com>
69069
69070         * lib/gai_strerror.c: Use GPL in header.
69071
69072 2005-01-26  Bruno Haible  <bruno@clisp.org>
69073
69074         * modules/javaexec: New file.
69075         * MODULES.html.sh (Java): Add javaexec.
69076
69077 2005-01-26  Bruno Haible  <bruno@clisp.org>
69078
69079         * m4/javaexec.m4: New file, from GNU gettext.
69080
69081 2005-01-26  Bruno Haible  <bruno@clisp.org>
69082
69083         * lib/javaexec.sh.in: New file, from GNU gettext.
69084         * lib/javaexec.h: New file, from GNU gettext.
69085         * lib/javaexec.c: New file, from GNU gettext.
69086
69087 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
69088
69089         * modules/lchown (Depends-on): Remove lchown.h
69090
69091 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
69092
69093         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
69094         must be defined if the header file was not found, in order
69095         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
69096
69097 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
69098
69099         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
69100         initializers for struct pentry_state.
69101         (__argp_error): Check return value of __asprintf
69102         (__argp_failure): Translate error message
69103
69104         * lib/argp-parse.c: Removed braces around the expansion of N_()
69105
69106 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
69107
69108         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
69109         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
69110         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
69111         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
69112         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
69113         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
69114         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
69115         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
69116         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
69117         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
69118         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
69119         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
69120         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
69121         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
69122         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
69123         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
69124         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
69125         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
69126         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
69127         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
69128         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
69129         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
69130         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
69131         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
69132         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
69133         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
69134         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
69135         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
69136         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
69137         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
69138         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
69139         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
69140         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
69141         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
69142         xstrtol.m4, xstrtoumax.m4, yesno.m4:
69143         Use an all-permissive copyright notice, recommended by RMS.
69144
69145 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
69146
69147         * modules/chdir-long (Depends-on): Remove mempcpy.
69148
69149 2005-01-21  Jim Meyering  <jim@meyering.net>
69150
69151         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
69152         same value as for Solaris 9.
69153
69154         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
69155         component length.  This included changing the parameter to be
69156         of type `char *' rather than `char const *'.
69157         * lib/chdir-long.h (chdir_long): Update prototype.
69158
69159         * lib/openat.c (fdopendir, fstatat): New functions.
69160         * lib/openat.h: Include headers required for use of DIR and struct
69161         stat.
69162         [AT_SYMLINK_NOFOLLOW]: Define.
69163         (fdopendir, fstatat): Add prototypes.
69164
69165 2005-01-21  Bruno Haible  <bruno@clisp.org>
69166
69167         * modules/classpath: New file.
69168         * MODULES.html.sh (Java): Add classpath.
69169
69170 2005-01-21  Bruno Haible  <bruno@clisp.org>
69171
69172         * lib/classpath.h: New file, from GNU gettext.
69173         * lib/classpath.c: New file, from GNU gettext.
69174
69175 2005-01-20  Simon Josefsson  <jas@extundo.com>
69176
69177         * modules/version-etc-fsf: New file.
69178
69179 2005-01-20  Simon Josefsson  <jas@extundo.com>
69180
69181         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
69182         * lib/version-etc.c: Remove version_etc_copyright.
69183         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
69184         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
69185
69186 2005-01-20  Simon Josefsson  <jas@extundo.com>
69187
69188         * lib/base64.h (isbase64): Add.
69189
69190         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
69191         using a unsigned prototype, don't inline.
69192         (base64_decode): Use it.
69193
69194 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
69195
69196         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
69197         it.
69198
69199 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
69200
69201         * lib/save-cwd.c (save_cwd): Remove code to support the case
69202         where fchdir is missing or flaky.
69203
69204 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
69205
69206         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
69207
69208 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
69209
69210         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
69211         AC_LIBSOURCES now does this.
69212         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
69213         with new ullong_max module.
69214
69215 2005-01-19  Bruno Haible  <bruno@clisp.org>
69216
69217         * modules/sh-quote: New file.
69218         * MODULES.html.sh (Executing programs): Add sh-quote.
69219
69220 2005-01-19  Bruno Haible  <bruno@clisp.org>
69221
69222         * lib/sh-quote.h: New file, from GNU gettext.
69223         * lib/sh-quote.c: New file, from GNU gettext.
69224
69225 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
69226
69227         Merge from coreutils.
69228         * m4/ullong_max.m4: New file.
69229         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
69230         (gl_MACROS): Assume localeconv exists.
69231
69232 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
69233
69234         Merge changes from coreutils, as described below in several
69235         changelogs dated today.
69236
69237         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
69238         (O_DIRECTORY): Remove; not needed here, since "." must be
69239         a directory.  All uses removed.
69240         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
69241         universal on Suns, and we also need to test for IRIX.
69242         Revamp code to use 'if' rather than '#if'.
69243         Avoid unnecessary comparison of cwd->desc to 0.
69244
69245         * lib/utimens.c (futimens): Robustify the previous patch, by checking
69246         for known valid error numbers rather than observed invalid ones.
69247
69248 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
69249
69250         * modules/ullong_max: New file.
69251
69252         * modules/chdir-long, modules/openat: New files.
69253         * modules/save-cwd (Depends-on): Depend on chdir-long.
69254         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
69255
69256 2005-01-18  Jim Meyering  <jim@meyering.net>
69257
69258         Merge from coreutils.
69259         * m4/chdir-long.m4, m4/openat.m4: New files.
69260         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
69261         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
69262         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
69263         is sane and DOES follow symlinks.  Besides, testing 20 different
69264         systems found no broken chown implementations.
69265         Prompted by a change in rsync's copy of this macro.
69266         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
69267
69268         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
69269
69270         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
69271         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
69272         NULL-means-set-to-current-time semantics.
69273         Remove temporary file immediately, rather than waiting
69274         for configure's at-exit trap code to do it.
69275
69276 2005-01-18  Jim Meyering  <jim@meyering.net>
69277
69278         * lib/version-etc.c (version_etc_copyright): Update copyright date.
69279
69280         * lib/utimens.c (futimens): Account for the fact that futimes
69281         can also fail with errno == ENOSYS or errno == ENOENT.
69282         Patch from Dmitry V. Levin.
69283
69284         Change the name of the robust chdir function from chdir to chdir_long.
69285         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
69286         (restore_cwd): Use chdir_long, not chdir.
69287         * lib/chdir-long.c: Renamed from chdir.c.
69288         * lib/chdir-long.h: Renamed from chdir.h.
69289         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
69290         Hurd.
69291
69292 2005-01-18  Bruno Haible  <bruno@clisp.org>
69293
69294         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
69295         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
69296         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
69297         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
69298         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
69299         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
69300         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
69301         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
69302         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
69303         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
69304         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
69305         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
69306         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
69307         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
69308         Use an all-permissive copyright notice, recommended by RMS.
69309
69310 2005-01-18  Bob Proulx  <bob@proulx.com>
69311
69312         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
69313         simplify offsetof() macro construct to avoid compile failure with
69314         native HP-UX 11.0 ANSI C compiler.
69315
69316 2005-01-17  Bruno Haible  <bruno@clisp.org>
69317
69318         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
69319         redundant because stpncpy.m4 takes care of it.
69320
69321 2005-01-17  Bruno Haible  <bruno@clisp.org>
69322
69323         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
69324
69325 2005-01-17  Bruno Haible  <bruno@clisp.org>
69326
69327         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
69328         used.
69329
69330 2005-01-17  Bruno Haible  <bruno@clisp.org>
69331
69332         * lib/fwriteerror.h (fwriteerror): Change specification to include
69333         fclose.
69334         * lib/fwriteerror.c: Include <stdbool.h>.
69335         (fwriteerror): At the end, close the file stream. Record whether
69336         stdout was already closed.
69337
69338 2005-01-17  Bruno Haible  <bruno@clisp.org>
69339
69340         * lib/execute.c (environ): Declare if needed.
69341         * lib/pipe.c (environ): Likewise.
69342         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
69343
69344 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
69345
69346         * modules/argp: Depend on vsnprintf
69347
69348 2005-01-10  Jim Meyering  <jim@meyering.net>
69349
69350         * modules/closeout (Depends-on): Add atexit.
69351
69352 2005-01-06  Bruno Haible  <bruno@clisp.org>
69353
69354         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
69355
69356 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
69357
69358         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
69359         definitions to be after all include files, to avoid collisions.
69360         Problem reported by Bob Proulx.
69361
69362 2005-01-04  Jim Meyering  <jim@meyering.net>
69363
69364         Changes imported from coreutils.
69365         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
69366         as the mkstemp template, use a temporary directory and an
69367         8.3-friendly template to avoid trouble on systems like DJGPP.
69368         Reported by Juan M. Guerrero via Stepan Kasal.
69369         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
69370         close. Remove the temporary directory right away, rather than waiting
69371         for configure's at-exit trap code to do it.
69372         Suggestion from Stepan Kasal.
69373
69374 2005-01-01  Simon Josefsson  <jas@extundo.com>
69375
69376         * gnulib-tool: Print #include directives when --import'ing.
69377
69378 2004-12-28  Simon Josefsson  <jas@extundo.com>
69379
69380         * tests/test-base64.c: Include required header files.  Remove
69381         unused variables.
69382
69383 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
69384
69385         * modules/error (Depends-on): Remove gettext.
69386
69387 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
69388
69389         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
69390         not needed.  This removes a dependency on the gettext module.
69391         [defined _LIBC]: Do not include <libintl.h>; not needed.
69392
69393 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
69394
69395         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
69396         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
69397
69398 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
69399
69400         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
69401         HAVE_DECL_STRTOLD.
69402
69403 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
69404
69405         * modules/getdate (Depends-on): Remove alloca-opt.
69406
69407 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
69408
69409         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
69410
69411 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
69412
69413         * lib/argp-parse.c: Include <stddef.h>.
69414         (alignof, alignto): New macros.
69415         (parser_init): Don't assume that void * is aligned sufficiently
69416         for struct option.
69417
69418         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
69419         need to extend the stack.
69420         (YYINITDEPTH): New macro, so that the initial stack isn't overly
69421         large.
69422
69423 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
69424
69425         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
69426
69427 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
69428
69429         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
69430         (2004-10-24) change.  Apparently this was a false alarm.
69431
69432         * modules/getdate: Depend on alloca-opt, not alloca.
69433
69434 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
69435
69436         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
69437         Remove now-obsolete comment about AIX.
69438         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
69439         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
69440         (YYMAXDEPTH): New macro.
69441
69442 2004-12-18  Simon Josefsson  <jas@extundo.com>
69443
69444         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
69445
69446 2004-12-18  Bruno Haible  <bruno@clisp.org>
69447
69448         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
69449
69450 2004-12-18  Bruno Haible  <bruno@clisp.org>
69451
69452         * lib/fatal-signal.c (fatal_signals): Make non-const.
69453         (init_fatal_signals): New function.
69454         (uninstall_handlers, install_handlers): Ignore signals that were set to
69455         SIG_IGN.
69456         (at_fatal_signal): Call init_fatal_signals.
69457         (init_fatal_signal_set): Likewise. Ignore signals that were set to
69458         SIG_IGN.
69459         Reported by Paul Eggert.
69460
69461 2004-12-18  Bruno Haible  <bruno@clisp.org>
69462
69463         * doc/alloca.texi: New file.
69464         * doc/alloca-opt.texi: New file.
69465
69466 2004-12-17  Jim Meyering  <jim@meyering.net>
69467
69468         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
69469         Otherwise, install-sh could exit with improper exit status when
69470         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
69471
69472 2004-12-16  Simon Josefsson  <jas@extundo.com>
69473
69474         * tests/test-base64.c: Add license.
69475
69476 2004-12-15  Stepan Kasal  <address@hidden>
69477
69478         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
69479
69480 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
69481
69482         * modules/getcwd (Files): Add m4/d-ino.m4.
69483         Suggested by Mark D. Baushke.
69484
69485 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
69486
69487         * lib/getdate.y (textint): New member "negative".
69488         (time_zone_hhmm): New function.
69489         Expect 14 shift-reduce conflicts, not 13.
69490         (o_colon_minutes): New rule.
69491         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
69492         (yylex): Set the "negative" member of signed numbers.
69493
69494 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
69495
69496         * doc/getdate.texi (Time of day items, Time zone items):
69497         Describe new formats +00:00, UTC+00:00.
69498
69499 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
69500
69501         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
69502         spurious "-l"s.  Problem reported by Stepan Kasal.
69503
69504 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
69505
69506         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
69507         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
69508
69509 2004-12-04  Simon Josefsson  <jas@extundo.com>
69510
69511         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
69512         Vandoorselaere <yoann@prelude-ids.org>.
69513
69514 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
69515
69516         Changes imported from coreutils.
69517         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
69518         exist.
69519         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
69520
69521 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
69522
69523         Changes imported from coreutils.
69524         * lib/hard-locale.c: Assume <locale.h> exists.
69525         Include "strdup.h".
69526         (GLIBC_VERSION): New macro.
69527         (hard_locale): Assume setlocale exists.
69528         Rewrite to avoid #ifdef.
69529         Use strdup rather than malloc + strcpy.
69530         * lib/human.c: Assume <locale.h> exists.
69531         (human_readable): Assume localeconv exists.
69532
69533 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
69534
69535         * modules/hard-locale (Depends-on): Add strdup.
69536
69537 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
69538
69539         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
69540         convert T2, not T.  (Imported from libc.)
69541
69542 2004-11-30  Simon Josefsson  <jas@extundo.com>
69543
69544         * modules/restrict (License): Change to LGPL.
69545
69546 2004-11-30  Simon Josefsson  <jas@extundo.com>
69547
69548         * m4/restrict.m4: Add copyright and copying conditions.
69549
69550 2004-11-30  Simon Josefsson  <jas@extundo.com>
69551
69552         * m4/base64.m4: New file.
69553
69554 2004-11-30  Simon Josefsson  <jas@extundo.com>
69555
69556         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
69557         base64.
69558
69559         * tests/test-base64.c: New file.
69560
69561         * modules/base64: New file.
69562
69563 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
69564
69565         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
69566         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
69567
69568         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
69569
69570 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
69571
69572         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
69573         (__getcwd.c): Don't restore errno; glibc doesn't.
69574         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
69575         first, falling back to our code only if its results look suspicious.
69576         Ensure that the resulting buffer is only as large as necessary.
69577
69578         * lib/readutmp.c: Include readutmp.h first.
69579         Include <errno.h>, since readutmp.h no longer does that.
69580         * lib/readutmp.h: Don't include <errno.h>,
69581         <sys/param.h>, <time.h>; not needed to establish interface.
69582         (errno): Remove decl.
69583         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
69584         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
69585         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
69586
69587 2004-11-28  Simon Josefsson  <jas@extundo.com>
69588
69589         * lib/base64.h, base64.c: New file.
69590
69591 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
69592
69593         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
69594
69595 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
69596
69597         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
69598         (Depends-on): Remove pathmax, same.  Add mempcpy.
69599         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
69600         (Makefile.am): Append getcwd.h to lib_SOURCES.
69601         (Include): Add getcwd.h.
69602         (Maintainer): Change from Jim Meyering to "all, glibc",
69603         since getdate now uses intended-for-glibc code.
69604         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
69605         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
69606
69607 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
69608
69609         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
69610         HP's ANSI C compiler.
69611         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
69612         Declaring int functions causes warnings on some modern systems and
69613         shouldn't be needed to compile on ancient ones.
69614         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
69615         defined.
69616
69617         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
69618         with the following changes.
69619         (__set_errno): Parenthesize properly.
69620         Include <stdbool.h>.
69621         (MIN, MAX, MATCHING_INO): New macros.
69622         (__getcwd): Define with prototype, not K&R form.
69623         Use heuristics to allocate default buffer on stack if possible.
69624         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
69625         behavior, and to avoid the PATH_MAX limit when computing
69626         ../../../../...
69627         Use MATCHING_INO to compare inode number to file.
69628         Check for arithmetic overflow in size calculations.
69629         Fix bug in reallocation of dot array that caused getcwd to fail
69630         on directories nested deeper than 75.
69631         Be more careful about saving errno on error.
69632         Do not use realloc; use only free+malloc, as this is a bit
69633         more flexible and avoids a needless copy operation.
69634         Do not inspect st_dev and st_ino for symbolic links; POSIX
69635         doesn't specify the latter.
69636         Check for closedir errors.
69637         Avoid needless casts.
69638         Use "#ifdef weak_alias" around weak_alias, to be like other
69639         glibc code.
69640         The following changes to getcwd.c have effect only when used in
69641         gnulib; they have no effect inside glibc proper.
69642         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
69643         as alloca isn't used.
69644         (alloca, __alloca): Likewise.
69645         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
69646         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
69647         unconditionally, as gnulib assumes C89 or better.
69648         Do not include <sys/param.h>.
69649         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
69650         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
69651         better.
69652         (NULL) [!defined NULL]: Remove; we assume C89 or better.
69653         Include <dirent.h> in a way that is compatible with modern Autoconf.
69654         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
69655         New macros, if not already defined.
69656         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
69657         Use "_LIBC", not "defined _LIBC", for consistency.
69658         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
69659         a mempcpy module.
69660         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
69661         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
69662         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
69663         credit only to Jim Meyering and adjust the copyright dates.
69664         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
69665         <stdlib.h>, <unistd.h>, "pathmax.h".
69666         Instead, include "xgetcwd.h" (first) and "getcwd.h".
69667         (INITIAL_BUFFER_SIZE): Remove.
69668         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
69669
69670 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
69671
69672         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
69673         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
69674         Use the _ONCE methods, for efficiency.
69675         Check for fcntl.h.  In test program, include <errno.h>
69676         and <fcntl.h> if available.  Remove old K&R cruft from
69677         test program.  Check for common errors in GNU/Linux,
69678         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
69679         don't do AC_LIBOBJ, as that's getcwd.m4's job.
69680         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
69681         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
69682         name accordingly.
69683         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
69684         accommodate new getcwd.c.
69685         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
69686         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
69687         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
69688         that's all we need now.
69689
69690 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
69691
69692         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
69693         argp-parse.c depends on getopt internals, that means we should
69694         always use our getopt, to be on the safe side.
69695         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
69696         order not to spoil the result of an eventual previous invocation
69697         of gl_GETOPT_SUBSTITUTE.
69698
69699 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
69700
69701         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
69702         redefinition warnings. To avoid them, include the defines
69703         in `#if !defined __need_getopt ... #endif'. The only place
69704         where __getopt_argv_const is used is in definitions
69705         of getopt_long and getopt_long_only below, which are as well
69706         protected by `#ifndef __need_getopt'.
69707         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
69708         __need_getopt after including <stdio.h> and <unistd.h> These
69709         headers might have defined it.
69710
69711 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
69712
69713         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
69714
69715 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
69716
69717         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
69718         (futimens): New function, which uses futimes if available.
69719         (futimens, utimens): Support timespec==NULL, with same semantics
69720         as utime and utimens.
69721         * lib/utimens.h (futimens): New decl.
69722
69723 2004-11-23  Jim Meyering  <jim@meyering.net>
69724
69725         * lib/getopt_.h: Remove trailing blanks.
69726
69727 2004-11-23  Jim Meyering  <jim@meyering.net>
69728
69729         * lib/__fpending.c: Add comment.
69730
69731 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
69732
69733         * modules/canonicalize (Depends-on): Add xreadlink.
69734         Problem reported by James Youngman.
69735
69736 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
69737
69738         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
69739         New macros.
69740         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
69741         optopt): Use them instead of invoking ## directly; otherwise, the
69742         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
69743
69744 2004-11-19  Bruno Haible  <bruno@clisp.org>
69745
69746         * lib/strtok_r.c: Move comments from here...
69747         * lib/strtok_r.h: ... to here.
69748
69749 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
69750
69751         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
69752         implementations that mishandle size_t overflow.
69753
69754 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
69755
69756         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
69757         might fail.  Problem reported by Yoann Vandoorselaere.
69758         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
69759         implementations that mishandle size_t overflow.
69760
69761 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
69762
69763         * modules/canon-host (Depends-on): Add strdup.
69764
69765 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
69766
69767         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
69768
69769 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
69770
69771         * lib/canon-host.c: Include "strdup.h".
69772         (canon_host): Use getaddrinfo if available, so that IPv6 works.
69773         Use strdup instead of malloc/strcpy to duplicate strings.
69774
69775         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
69776         (human_space_before_unit): New constant.
69777         * lib/human.c (human_readable): Support it.
69778
69779         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
69780         (xgetcwd): Set errno correctly when failing.
69781         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
69782         the failure is actually due to a PATH_MAX problem.
69783
69784         Further getopt changes to make it more likely that glibc will
69785         buy the changes back.
69786         * lib/getopt.c (POSIXLY_CORRECT): New constant.
69787         (getopt): Use it, so to preserve glibc semantic
69788         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
69789         when compiling for libc.
69790         * lib/getopt_.h (__getopt_argv_const): Bring it back.
69791         (getopt_long, getopt_long_only): Use it.
69792
69793         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
69794         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
69795         (getopt): Argv is now char * const *, as per standard.
69796         (_getopt_internal_r, _getopt_internal): Argv is now char **,
69797         not char *__getopt_argv_const *.
69798         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
69799         _getopt_long_only_r): Likewise.
69800         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
69801         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
69802         _getopt_long_r, _getopt_long_only_r): Likewise.
69803         * lib/getopt_.h (__getopt_argv_const): Remove.
69804         (getopt): Argv is now char * const *, as per standard.
69805
69806         * lib/getdate.y (tORDINAL): New token.
69807         (day, relunit): Allow it for relative times.
69808         (relative_time_table): Use tORDINAL for ordinals.
69809
69810 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
69811
69812         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
69813         Document that "second" isn't allowed as an ordinal number.
69814
69815 2004-11-16  Jim Meyering  <jim@meyering.net>
69816
69817         * modules/closeout (Depends-on): Add fpending.
69818
69819 2004-11-15  Jim Meyering  <jim@meyering.net>
69820
69821         * lib/closeout.c: Include "__fpending.h" once again.
69822         Include <stdbool.h>.
69823         (close_stdout): Don't fail just because stdout was closed initially,
69824         since some programs don't write to stdout in the normal course of
69825         operation (other than --version and --help), and we don't want this
69826         function to make e.g. `touch file >&-' fail.
69827         But do fail if it was closed and someone has tried to write to it.
69828         E.g., `printf foo >&-' must fail.
69829
69830 2004-11-13  Jim Meyering  <jim@meyering.net>
69831
69832         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
69833
69834 2004-11-12  Simon Josefsson  <jas@extundo.com>
69835
69836         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
69837         small doc fix is still pending.
69838
69839 2004-11-11  Simon Josefsson  <jas@extundo.com>
69840
69841         * modules/strtok_r: New file.
69842
69843         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
69844         strtok_r.
69845
69846 2004-11-11  Simon Josefsson  <jas@extundo.com>
69847
69848         * m4/strtok_r.m4: New file.
69849
69850         * m4/getopt.m4: Replace opterr.
69851
69852 2004-11-11  Simon Josefsson  <jas@extundo.com>
69853
69854         * lib/strtok_r.h, strtok_r.c: New file.
69855
69856 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
69857
69858         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
69859         of replacing opterr, getopt, etc.  This should handle the
69860         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
69861
69862 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
69863
69864         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
69865         we can stop lying to compilers about the constness of argv when we
69866         are compiled outside glibc.
69867         (getopt, getopt_long, getopt_long_only): Use it.
69868         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
69869         _getopt_internal, getopt): Likewise.
69870         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
69871         _getopt_long_only_r): Likewise.
69872         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
69873         _getopt_long_r, _getopt_long_only_r): Likewise.
69874
69875         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
69876         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
69877         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
69878         the other external symbols.
69879         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
69880         declaration, since the above renaming now works around collisions.
69881
69882 2004-11-11  Jim Meyering  <jim@meyering.net>
69883
69884         * lib/linebreak.c: Remove trailing blanks.
69885         * lib/alloca_.h: Likewise.
69886         * lib/acosl.c: Likewise.
69887         * lib/euidaccess.c: Likewise.
69888         * lib/allocsa.h: Likewise.
69889
69890 2004-11-10  Simon Josefsson  <jas@extundo.com>
69891
69892         * m4/getaddrinfo.m4: New file.
69893
69894 2004-11-10  Simon Josefsson  <jas@extundo.com>
69895
69896         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
69897
69898 2004-11-10  Simon Josefsson  <jas@extundo.com>
69899
69900         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
69901         getaddrinfo.
69902
69903         * modules/getaddrinfo: New file.
69904
69905 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
69906
69907         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
69908
69909 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
69910
69911         * lib/mktime.c (SHR): New macro, which is a portable
69912         substitute for >> that should work even on Crays.
69913         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
69914         Problem reported by Mark D. Baushke in
69915         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
69916         * lib/getdate.y (SHR): Likewise.
69917         (tm_diff): Use it.
69918         * lib/strftime.c (SHR): Likewise.
69919         (tm_diff): Use it.
69920         * lib/quotearg.c (struct quoting_options): Use unsigned int for
69921         quote_these_too, so that right shifts are well defined.  All uses
69922         changed.
69923
69924 2004-11-10  Jim Meyering  <jim@meyering.net>
69925
69926         Ensure that no close failure goes unreported.
69927         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
69928         return early when it seems there's nothing to flush.
69929         Don't include __fpending.h.
69930
69931 2004-11-10  Jim Meyering  <jim@meyering.net>
69932
69933         * modules/closeout (Depends-on): Remove fpending.
69934
69935 2004-11-10  Jim Meyering  <jim@meyering.net>
69936
69937         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
69938
69939 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
69940
69941         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
69942         gl_FUNC_STRFTIME.
69943         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
69944         and AC_REQUIRE when possible, to avoid duplicate checks.
69945         Check for <wchar.h>.
69946
69947 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
69948
69949         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
69950
69951 2004-11-09  Bruno Haible  <bruno@clisp.org>
69952
69953         * m4/sockpfaf.m4: New file.
69954
69955 2004-11-05  Bruno Haible  <bruno@clisp.org>
69956
69957         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
69958         Reported by Mark D. Baushke <mdb@cvshome.org>.
69959
69960 2004-11-04  Bruno Haible  <bruno@clisp.org>
69961
69962         2004-09-11  Bruno Haible  <bruno@clisp.org>
69963                 * allocsa.valgrind: New file.
69964         2004-02-06  Bruno Haible  <bruno@clisp.org>
69965                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
69966                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
69967                 Reported by Christopher Seip <chris.seip@hp.com>.
69968
69969 2004-11-04  Bruno Haible  <bruno@clisp.org>
69970
69971         * modules/allocsa (Files): Add lib/allocsa.valgrind.
69972         (Makefile.am): Distribute it.
69973
69974 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
69975
69976         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
69977         with errno == ERANGE if the buffer is too small.
69978         Problem reported by Mark D. Baushke.
69979
69980 2004-11-03  Albert Chin  <china@thewrittenword.com>
69981             Paul Eggert  <eggert@cs.ucla.edu>
69982
69983         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
69984         equivalent, substitute $ac_type for equivalent type rather than
69985         blindly using uint32_t *always* which won't work if uint32_t is not
69986         available.  Define _UINT32_T to work around typedef of uint32_t if
69987         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
69988         2.5.1.
69989
69990 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
69991
69992         * m4/jm-macros.m4: Sync from coreutils.
69993         (gl_MACROS): Check for mbrlen, for pathchk.
69994         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
69995
69996 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
69997
69998         * lib/xreadlink.c (MAXSIZE): New macro.
69999         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
70000         size does not exceed MAXSIZE.  Avoid cast.
70001         As suggested by Mark D. Baushke in
70002         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
70003         if readlink fails with buffer size just under MAXSIZE, try again
70004         with MAXSIZE.
70005
70006 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
70007
70008         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
70009
70010 2004-11-02  Derek R. Price  <derek@ximbiot.com>
70011         and  Paul Eggert  <eggert@cs.ucla.edu>
70012
70013         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
70014         (get_date): Overparenthesize to avoid GCC warning.
70015
70016 2004-11-02  Bruno Haible  <bruno@clisp.org>
70017
70018         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
70019         returns void.
70020
70021 2004-11-02  Bruno Haible  <bruno@clisp.org>
70022
70023         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
70024         function returns void.
70025
70026 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
70027
70028         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
70029         fflush_unlocked, flockfile, funlockfile, funlockfile,
70030         fputs_unlocked, putc_unlocked.
70031
70032 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
70033
70034         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
70035         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
70036         already declared.
70037
70038 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
70039
70040         * modules/getdate (Files): Add doc/getdate.texi.
70041         (Depends-on): Add setenv, xalloc.
70042
70043 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
70044
70045         * lib/getdate.y: Add support for TZ="foo" within a date string.
70046         Fix some bugs near time_t boundaries.  Reject dates with
70047         out-of-range components, e.g., "Sept 31".
70048         Include <stdlib.h>, "setenv.h", "xalloc.h".
70049         (ISDIGIT_LOCALE): Remove; unused.
70050         Note that the TZ and time functions used here are not reentrant.
70051         (mktime_ok, get_tz): New functions.
70052         (TZBUFSIZE): New constant.
70053         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
70054         This requires that we sometimes generate our own TZ="XXX..." setting.
70055
70056 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
70057
70058         * doc/getdate.texi: New file, from coreutils with modifications for
70059         the new TZ parsing.
70060
70061 2004-10-27  Derek R. Price  <derek@ximbiot.com>
70062
70063         * lib/mktime.c (not_equal_tm): Remove redundant check.
70064
70065 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
70066
70067         * modules/regex (lib_SOURCES): Add regex.c.
70068         Reported by James Youngman in
70069         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
70070
70071 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
70072
70073         * lib/getdate.y: Use Bison 1.875 features, and some minor
70074         code cleanups.  This change does not affect semantics.
70075         Don't include <stdlib.h>; no longer needed.
70076         Don't include unlocked-io.h; only the "#if TEST" code uses
70077         stdio, and performance isn't crucial there.
70078         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
70079         Bison 1.875 features as described below.
70080         All uses of "PC." replaced by "pc->".
70081         (YYSTYPE): Add a forward declaration.
70082         (yylex, yyerror): Use full prototypes in forward decls.
70083         Use "%pure-parser" rather than obsolescent "%pure_parser".
70084         Use %parse-param and %lex-param instead of obsolescent
70085         YYPARSE_PARAM and YYLEX_PARAM.
70086         (meridian_table, month_and_day_table, time_units_table,
70087         relative_time_table, time_zone_table, military_table,
70088         lookup_zone, lookup_word, get_date):
70089         Use NULL instead of 0 where appropriate.
70090         (to_hour): Avoid abort (), to avoid a dependency on
70091         stdlib.h.
70092         (yyerror, yylex): Now accepts parser_control * arg.
70093         (main) [TEST]: Use '\0' rather than 0 for char.
70094
70095 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
70096
70097         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
70098
70099 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
70100
70101         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
70102         It's now the caller's responsibility to handle the case where
70103         !HAVE_GETPAGESIZE && !defined getpagesize.
70104
70105         * lib/mktime.c (leapyear): Arg is long int, not int.
70106
70107 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
70108
70109         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
70110
70111 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
70112
70113         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
70114         missing.  Problem reported by James Youngman.
70115
70116 2004-10-16  Simon Josefsson  <jas@extundo.com>
70117
70118         * gnulib-tool: Fix comments.  Fix parse problem.
70119         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
70120
70121 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
70122
70123         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
70124         implementation of getopt_long.  Problem reported by Alexander Taler in:
70125         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
70126
70127 2004-10-15  Bruno Haible  <bruno@clisp.org>
70128
70129         * gnulib-tool: Untabify. Initialize supplied_libname.
70130         (func_usage): More homogenous output.
70131         (func_modules_transitive_closure, func_modules_to_filelist,
70132         func_emit_lib_Makefile_am): New functions.
70133         (func_import): New function, extracted from big case statement. Use
70134         func_get_license, func_modules_transitive_closure,
70135         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
70136         opt_lgpl. Don't use test -a, as it's not portable.
70137         (func_create_testdir): Use func_modules_transitive_closure,
70138         func_modules_to_filelist, func_emit_lib_Makefile_am.
70139
70140 2004-10-15  Bruno Haible  <bruno@clisp.org>
70141
70142         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
70143
70144 2004-10-15  Bruno Haible  <bruno@clisp.org>
70145
70146         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
70147         the portions belonging to each module.
70148         Suggested by Derek Robert Price <derek@ximbiot.com>.
70149
70150 2004-10-12  Simon Josefsson  <jas@extundo.com>
70151
70152         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
70153         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
70154         to real functions.
70155
70156 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
70157
70158         * modules/vsnprintf: New file.
70159
70160 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
70161
70162         * m4/vsnprintf.m4: New file.
70163
70164 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
70165
70166         * lib/vsnprintf.h: New file.
70167         * lib/vsnprintf.c: New file.
70168
70169 2004-10-11  Bruno Haible  <bruno@clisp.org>
70170
70171         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
70172         vsnprintf.
70173
70174 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
70175
70176         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
70177
70178 2004-10-07  Bruno Haible  <bruno@clisp.org>
70179
70180         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
70181         fits into the provided buffer.
70182
70183 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
70184
70185         * lib/diacrit.c, diacrit.h: Add GPL notice.
70186
70187         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
70188         notice.
70189         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
70190         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
70191         This avoids a potential constant-folding bug.
70192
70193 2004-10-05  Bruno Haible  <bruno@clisp.org>
70194
70195         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
70196         for the declaration of strsep.
70197
70198 2004-10-05  Bruno Haible  <bruno@clisp.org>
70199
70200         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
70201
70202 2004-10-04  Simon Josefsson  <jas@extundo.com>
70203
70204         * modules/memmem: New file.
70205         * tests/test-memmem.c: New file.
70206         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
70207
70208 2004-10-04  Simon Josefsson  <jas@extundo.com>
70209
70210         * m4/memmem.m4: New file.
70211
70212 2004-10-04  Simon Josefsson  <jas@extundo.com>
70213
70214         * lib/memmem.h: New file.
70215         * lib/memmem.c: New file, taken from glibc.
70216
70217 2004-10-04  Simon Josefsson  <jas@extundo.com>
70218
70219         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
70220         '#ifdef USE_UNLOCKED_IO'.
70221
70222 2004-10-04  Simon Josefsson  <jas@extundo.com>
70223
70224         * config/srclist.txt: Add memmem from glibc.
70225
70226 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
70227
70228         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
70229
70230         * modules/argmatch, modules/argp, modules/closeout, modules/error,
70231         modules/exclude, modules/getdate, modules/getline,
70232         modules/getndelim2, modules/getpass, modules/getpass-gnu,
70233         modules/getusershell, modules/linebuffer, modules/md5,
70234         modules/mountlist, modules/posixtm, modules/readtokens,
70235         modules/readutmp, modules/regex, modules/sha1,
70236         modules/version-etc, modules/yesno:
70237         Remove dependency on unlocked-io.
70238
70239 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
70240
70241         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
70242
70243         * m4/unlocked-io.m4: Add copyright notice.
70244         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
70245
70246 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
70247
70248         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
70249         * lib/xmalloc.c (xmemdup): Likewise.
70250         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
70251         XFREE): Remove these long-obsolescent macros.
70252         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
70253         * lib/xstrdup.c: Remove.
70254
70255         * lib/regex.c (re_comp): Cast gettext return value to char *,
70256         Problem reported by Martin Neitzel via Mark D. Baushke.
70257
70258 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
70259
70260         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
70261         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
70262         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
70263         regex.c, sha1.c, version-etc.c, yesno.c:
70264         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
70265         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
70266         the includer's responsibility.
70267
70268         Sync from coreutils.
70269
70270         * lib/modechange.c (mode_compile): Don't decrement a pointer that
70271         points to the start of a string, as the C Standard says the
70272         resulting behavior is undefined.
70273
70274         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
70275         simple -> simple_backups, numbered_existing ->
70276         numbered_existing_backups, numbered -> numbered_backups
70277         to avoid shadowing problems.  All uses changed.
70278         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
70279         * lib/backupfile.c (check_extension, numbered_backup):
70280         Rename locals to avoid shadowing 'basename'.
70281         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
70282         once.
70283
70284         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
70285         * lib/.cvsignore: Add getopt.h.
70286
70287 2004-10-04  Bruno Haible  <bruno@clisp.org>
70288
70289         * modules/README: New file.
70290         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
70291         not a module.
70292
70293 2004-10-02  Jim Meyering  <jim@meyering.net>
70294
70295         * lib/dirfd.h, getpagesize.h: Add copyright notice.
70296
70297 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
70298
70299         * modules/strsep: New file.
70300
70301 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
70302
70303         * m4/strsep.m4: New file.
70304
70305 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
70306
70307         * lib/strsep.h: New file.
70308         * lib/strsep.c: New file.
70309
70310 2004-10-01  Simon Josefsson  <jas@extundo.com>
70311
70312         * lib/snprintf.c (snprintf): Handle size==0.
70313
70314 2004-10-01  Simon Josefsson  <jas@extundo.com>
70315             Bruno Haible  <bruno@clisp.org>
70316
70317         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
70318         (snprintf): Declare 'args'.
70319
70320 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
70321
70322         * lib/snprintf.c: Remove comments as to why each header is needed.
70323
70324 2004-10-01  Bruno Haible  <bruno@clisp.org>
70325
70326         * MODULES.html.sh: Add strsep.
70327
70328 2004-09-30  Simon Josefsson  <jas@extundo.com>
70329
70330         * modules/snprintf: New file.
70331
70332 2004-09-30  Simon Josefsson  <jas@extundo.com>
70333
70334         * m4/snprintf.m4: New file.
70335
70336 2004-09-30  Simon Josefsson  <jas@extundo.com>
70337
70338         * lib/snprintf.h, lib/snprintf.c: New files.
70339
70340 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
70341
70342         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
70343         (hol_entry_help): Never translate an empty string.
70344         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
70345         * lib/argp.h (OPTION_NO_TRANS): New option.
70346
70347 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
70348
70349         * modules/argp (Maintainer): Replace Simon Josefsson
70350         by Sergey Poznyakoff.
70351
70352 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
70353
70354         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
70355         changes merged back into glibc.
70356
70357 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
70358
70359         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
70360
70361 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
70362
70363         * lib/xvasprintf.c: Include xalloc.h.
70364         (xvasprintf): Use xalloc_die, not xmalloc_die.
70365
70366 2004-09-29  Bruno Haible  <bruno@clisp.org>
70367
70368         * modules/alloca-opt: New file, derived from modules/alloca.
70369         * modules/allocsa: Depend on alloca-opt instead of alloca.
70370         * modules/setenv: Likewise.
70371         * modules/vasnprintf: Likewise.
70372         * MODULES.html.sh: Add alloca-opt.
70373
70374 2004-09-28  Simon Josefsson  <jas@extundo.com>
70375
70376         * gnulib-tool: New parameter --lgpl, to asseert that modules are
70377         LGPL, and to replace license template from GPL to LGPL.
70378
70379 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
70380
70381         * modules/dummy: Change license to LGPL.
70382
70383 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
70384
70385         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
70386
70387 2004-09-24  Simon Josefsson  <jas@extundo.com>
70388
70389         * modules/minmax (License): Change from GPL to LGPL.
70390
70391 2004-09-23  Simon Josefsson  <jas@extundo.com>
70392
70393         * gnulib-tool (--import): Typo.
70394
70395 2004-09-23  Simon Josefsson  <jas@extundo.com>
70396
70397         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
70398
70399 2004-09-22  Bruno Haible  <bruno@clisp.org>
70400
70401         * modules/*: Add 'License' field.
70402         * gnulib-tool: Accept --extract-license option.
70403         (func_get_license): New function.
70404
70405 2004-09-21  Bruno Haible  <bruno@clisp.org>
70406
70407         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
70408         Reported by Simon Josefsson.
70409
70410 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
70411
70412         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
70413         gl_AC_TYPE_LONG_LONG.
70414
70415 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
70416
70417         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
70418
70419 2004-09-18  Simon Josefsson  <jas@extundo.com>
70420         and  Paul Eggert  <eggert@cs.ucla.edu>
70421
70422         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
70423         calls with autoreconf.  Define GL_LIB.
70424
70425 2004-09-14  Karl Berry  <karl@gnu.org>
70426
70427         * config/srclist.txt: unsync setenv.c, sigh.
70428
70429 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
70430
70431         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
70432         Problem reported by Bruno Haible in:
70433         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
70434
70435 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
70436
70437         * config/srclist.txt: Comment out argp-pvh.c.
70438
70439 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
70440
70441         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
70442         in case some system header has #define'd it.  Problem reported by
70443         Soeren D. Schulze in
70444         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
70445
70446 2004-09-09  Karl Berry  <karl@gnu.org>
70447
70448         * regex.[ch]: delete from the root.  These were supposed to be
70449                 synced with emacs cvs, but this has not happened for about
70450                 a year, and anyway nothing else uses emacs regex.[ch].
70451                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
70452                 lib/regex[.ch] is untouched.
70453
70454 2004-09-09  Bruno Haible  <bruno@clisp.org>
70455
70456         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
70457
70458 2004-09-09  Bruno Haible  <bruno@clisp.org>
70459
70460         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
70461         modifications.
70462         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
70463
70464 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
70465
70466         * modules/xvasprintf: New file.
70467         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
70468
70469 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
70470
70471         * lib/xvasprintf.h: New file.
70472         * lib/xvasprintf.c: New file.
70473         * lib/xasprintf.c: New file.
70474
70475 2004-09-08  Bruno Haible  <bruno@clisp.org>
70476
70477         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
70478
70479 2004-09-08  Bruno Haible  <bruno@clisp.org>
70480
70481         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
70482         length is > INT_MAX.
70483         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
70484         more.
70485
70486 2004-09-08  Bruno Haible  <bruno@clisp.org>
70487
70488         * lib/stdint_.h: New file, taken from GNU clisp.
70489
70490 2004-09-08  Bruno Haible  <bruno@clisp.org>
70491             Oskar Liljeblad  <oskar@osk.mine.nu>
70492
70493         * modules/stdint: New file.
70494         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
70495
70496 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
70497
70498         Import from coreutils.
70499         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
70500         strings on unbounded length.  alloca's performance benefits aren't
70501         that important here.
70502         (V_STRDUP): Remove.
70503         (parse_with_separator): New function, with most of the internals
70504         of the old parse_user_spec.  Allow user to omit both user and group,
70505         for compatibility with FreeBSD.
70506         Clone only the user name, not the entire spec.
70507         Do not set *uid, *gid unless entirely successful.
70508         Avoid memory leak in some failing cases.
70509         Fix regression for USER.GROUP reported by Dmitry V. Levin in
70510         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
70511         (parse_user_spec): Rewrite to use parse_with_separator.
70512
70513 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
70514
70515         * modules/userspec: Don't depend on alloca.
70516
70517 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
70518
70519         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
70520
70521 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
70522
70523         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
70524         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
70525         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
70526
70527 2004-08-16  Simon Josefsson  <jas@extundo.com>
70528
70529         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
70530         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
70531         Add --dry-run for --import.
70532         Let user provided command line parameters override configure.ac
70533         settings.
70534
70535 2004-08-12  Simon Josefsson  <jas@extundo.com>
70536
70537         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
70538         as discussed with Paul Eggert in threads rooted at
70539         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
70540         and
70541         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
70542         Before, the test was empty, and relied on ELIDE_CODE in source
70543         code.)
70544         (gl_PREREQ_GETOPT): New macro.
70545         (gl_GETOPT): Use them.
70546
70547 2004-08-12  Simon Josefsson  <jas@extundo.com>
70548
70549         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
70550         * lib/getopt_.h: Renamed from getopt.h.
70551
70552 2004-08-12  Simon Josefsson  <jas@extundo.com>
70553
70554         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
70555         Change default library name from libfoo to libgnu.
70556         Now, if you have a configure.ac that says:
70557                 gl_SOURCE_BASE(gl)
70558                 gl_M4_BASE(gl/m4)
70559                 gl_MODULES(error getopt etcetera)
70560                 gl_INIT
70561         you can import all you need by running:
70562                 ../gnulib/gnulib-tool --import
70563
70564         * modules/getopt (Files): Rename getopt.h to getopt_.h.
70565         (Makefile.am): Rewrite, use logic from argz.
70566         (Include): Use <getopt.h> instead of "getopt.h".
70567
70568 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
70569
70570         * modules/argp (Files): Add m4/unlocked-io.m4.
70571         (Depends-on): Add extensions.
70572
70573 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
70574
70575         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
70576         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
70577         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
70578         Check for program_invocation_name, program_invocation_short_name,
70579         flockfile, funlockfile, features.h, _getopt_long_only_r.
70580
70581 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
70582
70583         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
70584         its complicated substitute.
70585         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
70586         and program_invocation_name.
70587         (__argp_basename) [!_LIBC]: Remove; the only use was
70588         replaced by its body.
70589         (__argp_short_program_name): Change condition from
70590         !defined __argp_short_program_name to
70591         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
70592         to match argp-namefrob.h.
70593         (__argp_failure): Don't assume strerror_r returns char *.
70594         * lib/argp-parse.c (N_): Define unconditionally.
70595         (argp_default_options): Fill out initializers with 0 to avoid
70596         gcc warnings.
70597
70598 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
70599
70600         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
70601         getopt1.c.
70602
70603 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
70604
70605         Merge from coreutils.
70606
70607         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
70608
70609         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
70610         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
70611
70612 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
70613
70614         Merge from coreutils.
70615
70616         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
70617         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
70618         for Reliant Unix 5.43.
70619
70620         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
70621         (union fooround): Use uintmax_t, not long int.
70622         The rest is a merge from libc:
70623         [defined _LIBC]: Include <shlib-compat.h>.
70624         (_obstack) [defined _LIBC]: Remove after 2.3.4.
70625
70626         * lib/settime.c (settime): Recode to avoid warning with
70627         Sun Forte C 6U2.
70628
70629         * lib/strverscmp.c: Convert to UTF-8.
70630
70631 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
70632
70633         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
70634         m4/uintmax_t.m4.
70635
70636 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
70637
70638         * modules/xalloc-die: New file.
70639         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
70640
70641         * modules/md5 (Files): Add m4/uint32_t.m4.
70642         * modules/sha1: Renamed from modules/sha.
70643         (Files):
70644         Rename lib/sha.h to lib/sha1.h.
70645         Rename lib/sha.c to lib/sha1.c.
70646         Rename m4/sha.m4 to m4/sha1.m4.
70647         (lib_SOURCES): Likewise.
70648         (configure.ac): Rename gl_SHA to gl_SHA1.
70649         (Include): sha.h -> sha1.h.
70650
70651 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
70652
70653         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
70654         * m4/sha1.m4: Renamed from sha.m4.
70655         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
70656
70657 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
70658
70659         * lib/obstack.h (obstack_empty_p):
70660         Don't assume that chunk->contents is suitably aligned.
70661         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
70662         Likewise. Problem reported by Benno in
70663         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
70664
70665         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
70666         readable.  This could be improved further but it'd take some work.
70667
70668 2004-08-08  Simon Josefsson  <jas@extundo.com>
70669
70670         * modules/xgethostname (Depends-on): Remove exit and error (not
70671         used).
70672
70673         * modules/getpass-gnu: Add getpass.h.
70674         (Depends-on): Add stdbool.
70675         * modules/getpass: Add getpass.h.
70676
70677 2004-08-08  Simon Josefsson  <jas@extundo.com>
70678
70679         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
70680         Check getpass declaration.
70681
70682 2004-08-08  Simon Josefsson  <jas@extundo.com>
70683
70684         * lib/xgethostname.c: Don't include error.h (not used).
70685
70686         * lib/getpass.h: Add.
70687         * lib/getpass.c: Include getpass.h first.
70688
70689 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
70690
70691         * lib/xalloc-die.c: New file.
70692         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
70693         All uses removed.
70694         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
70695         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
70696         xalloc-die.c.
70697         (_, N_, xalloc_die): Move to xalloc-die.c.
70698         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
70699         so that we needn't mess with xalloc_msg_memory_exhausted.
70700
70701         * lib/sha1.h: Renamed from sha.h.
70702         (SHA1_H): Renamed from _SHA_H.
70703         (sha1_ctx): Renamed from sha_ctx.
70704         (sha1_init_ctx): Renamed from sha_init_ctx.
70705         (sha1_process_block): Renamed from sha_process_block.
70706         (sha1_process_bytes): Renamed from sha_process_bytes.
70707         (sha1_finish_ctx): Renamed from sha_finish_ctx.
70708         (sha1_read_ctx): Renamed from sha_read_ctx.
70709         (sha1_stream): Renamed from sha_stream.
70710         (sha1_buffer): Renamed from sha_buffer.
70711         * lib/sha1.c: Likewise; renamed from sha.c.
70712         Do not include <sys/types.h>.
70713         Include <stddef.h> rather than <stdlib.h>.
70714
70715 2004-08-08  Bruno Haible  <bruno@clisp.org>
70716
70717         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
70718         FILESYSTEM_PREFIX_LEN.
70719         * lib/progreloc.c: Likewise.
70720         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
70721
70722 2004-08-06  Simon Josefsson  <jas@extundo.com>
70723
70724         * modules/progname (Depends-on): Don't depend on stdbool.
70725
70726 2004-08-06  Simon Josefsson  <jas@extundo.com>
70727
70728         * modules/getsubopt: New file.
70729         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
70730         getsubopt.
70731
70732 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
70733
70734         More merge from coreutils.
70735
70736         * m4/utimens.m4, m4/utimecmp.m4: New files.
70737         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
70738         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
70739         prereq.m4, sha.m4: Import changes from coreutils.
70740
70741 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
70742
70743         More merge from coreutils.
70744         * modules/raise, modules/readtokens0, modules/utimens:
70745         * modules/utimecmp, module/xnanosleep: New files.
70746         * modules/strftime: Add lib/strftime.h.
70747         Change include from <time.h> to "strftime.h".
70748         * modules/yesno: Add lib/yesno.h.
70749         * modules/backupfile: Remove lib/addext.c.
70750         * modules/euidaccess: Add stat-macros.h.
70751         * modules/canonicalize, modules/euidaccess,
70752         modules/filemode, modules/lchown, modules/makepath,
70753         modules/rmdir, modules/stat: Likewise.
70754
70755 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
70756
70757         Merge from tar.
70758         * lib/argp-help.c (make_hol, hol_append): Don't assume that
70759         SIZE_MAX is a valid preprocessor constant.
70760         (__argp_basename): Change from "#ifndef _LIBC"
70761         to "#ifndef __argp_short_program_name", so that
70762         we don't compile these functions for tar.
70763
70764         More merges from coreutils.
70765         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
70766         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
70767         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
70768         * lib/addext.c: Remove; no longer needed.
70769         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
70770         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
70771         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
70772         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
70773         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
70774         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
70775         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
70776         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
70777         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
70778         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
70779         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
70780         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
70781         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
70782         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
70783         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
70784         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
70785         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
70786         Import changes from coreutils.
70787
70788 2004-08-05  Simon Josefsson  <jas@extundo.com>
70789
70790         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
70791
70792 2004-08-05  Simon Josefsson  <jas@extundo.com>
70793
70794         * m4/getsubopt.m4: New file.
70795
70796 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
70797
70798         Merge from coreutils.
70799
70800         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
70801         * m4/getcwd-path-max.m4: New files.
70802
70803         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
70804         FILESYSTEM_PREFIX_LEN ->
70805         FILE_SYSTEM_PREFIX_LEN.
70806         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
70807         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
70808         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
70809         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
70810
70811         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
70812         prerequisite modules now handle the DOS stuff.
70813         Don't check for unistd.h.
70814
70815 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
70816
70817         Merge from coreutils.
70818
70819         * lib/.gdb-history: Remove; this doesn't belong here.
70820
70821         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
70822         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
70823         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
70824         * lib/getcwd.c: New files.
70825
70826         * lib/dirname.h: Include <stdbool.h>.
70827         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
70828         for consistency with POSIX terminology.  All uses changed.
70829         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
70830         (strip_trailing_slashes): Use bool for booleans.
70831         * lib/stripslash.c (strip_trailing_slashes): Likewise.
70832
70833         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
70834         sometimes returns a positive errno value even when it succeeds.
70835         (print_errno_message) [!LIBC]: Fall back on strerror if
70836         __strerror_r fails.
70837
70838         * lib/path-concat.c (mempcpy): Don't define if a system header defines
70839         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
70840         (longest_relative_suffix): New function.
70841         (path_concat): Use it.  Assume first argument is not NULL.
70842         Port to DOS.  Omit redundant separators.
70843         Report an error instead of returning NULL.
70844         Use mempcpy instead of memcpy.
70845         (xpath_concat): Remove: not declared or used.
70846
70847         * lib/same.h: Include <stdbool.h>
70848         (same_name): Return bool, not int.
70849         * lib/same.c (same_name): Likewise.
70850         (errno): Don't declare; we assume C89 or better now.
70851
70852         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
70853         if not already defined.
70854
70855         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
70856         * lib/dup-safer.c (errno): Likewise.
70857
70858 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
70859
70860         Merge from coreutils.
70861         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
70862         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
70863         * modules/path-concat: Don't depend on strdup.
70864
70865 2004-08-03  Simon Josefsson  <jas@extundo.com>
70866
70867         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
70868         * lib/progname.h: Don't include stdbool.h.
70869
70870 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
70871
70872         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
70873         * MODULES.html.sh (func_all_modules): Remove fatal.
70874
70875 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
70876
70877         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
70878
70879 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
70880
70881         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
70882         working.
70883
70884 2004-08-02  Simon Josefsson  <jas@extundo.com>
70885
70886         * lib/getsubopt.h: New file, with comments from Bruno Haible.
70887         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
70888         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
70889
70890 2004-08-01  Simon Josefsson  <jas@extundo.com>
70891
70892         * lib/xgetdomainname.c: Include stdlib.h, for free().
70893
70894 2004-07-19  Bruno Haible  <bruno@clisp.org>
70895
70896         * MODULES.html.sh (func_all_modules): Add dummy.
70897
70898 2004-07-16  Simon Josefsson  <jas@extundo.com>
70899
70900         * modules/dummy: New file.
70901
70902 2004-07-16  Simon Josefsson  <jas@extundo.com>
70903
70904         * lib/dummy.c: New file.
70905
70906 2004-07-16  Bruno Haible  <bruno@clisp.org>
70907
70908         * lib/backupfile.h: Add extern "C" for C++.
70909         * lib/closeout.h: Likewise.
70910         * lib/copy-file.h: Likewise.
70911         * lib/findprog.h: Likewise.
70912         * lib/full-write.h: Likewise.
70913         * lib/pathname.h: Likewise.
70914         * lib/progname.h: Likewise.
70915         * lib/stpcpy.h: Likewise.
70916         * lib/stpncpy.h: Likewise.
70917         * lib/strcase.h: Likewise.
70918         * lib/strstr.h: Likewise.
70919         * lib/xalloc.h: Likewise.
70920
70921         * lib/mbswidth.h: Add extern "C" for C++.
70922         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
70923
70924 2004-07-13  Robert Millan  <robertmh@gnu.org>
70925
70926         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
70927
70928 2004-07-09  Simon Josefsson  <jas@extundo.com>
70929
70930         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
70931         failed without this.)
70932
70933 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
70934
70935         * modules/chown (Files): Add lib/fchown-stub.c, since
70936         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
70937
70938 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
70939
70940         * lib/fchown-stub.c: New file.
70941
70942 2004-06-24  Jim Meyering  <jim@meyering.net>
70943
70944         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
70945
70946 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
70947
70948         * modules/argz: Omit "#include".
70949
70950         * MODULES.html.sh (func_all_modules): Add calloc, to match
70951         2004-06-01 addition of calloc module.
70952
70953 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
70954
70955         * m4/argz.m4: New file, which is autoupdated from libtool.
70956
70957 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
70958
70959         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
70960         libtool.
70961
70962 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
70963
70964         * config/srclist-update: Don't insist on "USA." before the
70965         close-comment, as libtool omits the period and puts the */ on a
70966         separate line.
70967         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
70968         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
70969
70970 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
70971
70972         * modules/argz: New file.
70973         * MODULES.html.sh (func_all_modules): Add argz.
70974
70975 2004-06-12  Jim Meyering  <jim@meyering.net>
70976         and  Paul Eggert  <eggert@cs.ucla.edu>
70977
70978         * modules/hash (Files): Add lib/xalloc.h.
70979         * modules/pipe (Depends-on): Add wait-process.
70980         * modules/stat (Depends-on): Add xalloc.
70981         * modules/userspec (Files): Add lib/userspec.h.
70982         * modules/xstrto
70983
70984         Upgrade from gettext-0.13.
70985         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
70986         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
70987         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
70988
70989 2004-06-10  Jim Meyering  <jim@meyering.net>
70990
70991         * lib/calloc.c: New file.
70992
70993 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
70994
70995         * lib/getdate.y (yylex): Allow space between sign and number.
70996         Problem reported by Dan Jacobson.
70997
70998 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
70999
71000         Merge from coreutils CVS.
71001
71002         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
71003         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
71004         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
71005         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
71006         xstrtol.m4: Fix copyright date and/or serial number.
71007
71008         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
71009         See if we need an fchown replacement.
71010         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
71011         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
71012         and use the replacement function if we detect either defect.
71013
71014         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
71015         gl_UTIMECMP.
71016
71017 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
71018         and  Jim Meyering  <jim@meyering.net>
71019
71020         Merge from coreutils CVS.
71021
71022         * lib/stat-macros.h: New file, with contents from file-type.h
71023         and coreutils' system.h.
71024         * lib/file-type.c: Include "stat-macros.h".
71025         * lib/file-type.h (file_type): Move all macro definitions to new file,
71026         stat-macros.h.
71027
71028         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
71029         Wrap old code with this conditional.
71030         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
71031         function that does not dereference symlinks.
71032         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
71033
71034         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
71035         dependency problems.
71036         (xreadlink): Accept new arg SIZE, for efficiency.
71037         All decls and uses changed.
71038         * lib/xreadlink.h: Include <stddef.h>, for size_t.
71039
71040         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
71041         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
71042
71043         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
71044         sysexits.h.
71045
71046 2004-06-01  Jim Meyering  <jim@meyering.net>
71047
71048         * m4/calloc.m4: New file.
71049
71050 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
71051
71052         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
71053         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
71054         Also, fix a typo in a diagnostic.
71055
71056 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
71057
71058         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
71059         or AC_FUNC_REALLOC.
71060
71061 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
71062
71063         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
71064         macros to be defined.
71065         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
71066         the allocator returns NULL because the requested size is zero.
71067
71068 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
71069
71070         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
71071         var.  Add comment explaining why libc still defines it.  This
71072         merges the following patch from glibc:
71073         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
71074
71075 2004-05-20  Andreas Schwab  <schwab@suse.de>
71076
71077         * m4/free.m4: Replace free if it not known to work, not the other
71078         way round.
71079
71080 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
71081
71082         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
71083         present in glibc since revision 1.1 of this file.
71084         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
71085         obstack_alignment_mask, obstack_alloc, obstack_base,
71086         obstack_blank, obstack_blank_fast, obstack_chunk_size,
71087         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
71088         obstack_grow0, obstack_init, obstack_int_grow,
71089         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
71090         obstack_next_free, obstack_object_size, obstack_ptr_grow,
71091         obstack_ptr_grow_fast, obstack_room): Remove declarations of
71092         nonexistent functions.
71093
71094 2004-05-18  Karl Berry  <karl@gnu.org>
71095
71096         * config/srclist.txt: break link for vasnprintf.c.
71097
71098 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
71099
71100         Port obstack to the AS/400, where pointers are 16 bytes wide and
71101         you cannot cast an integer to a valid pointer.  This patch is
71102         currently waiting to be integrated into glibc; see
71103         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
71104
71105         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
71106         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
71107         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
71108         (struct obstack): temp member is now a union of a pointer and
71109         an integer, instead of an integer.  All integer uses changed.
71110         This does not affect the physical layout of struct obstack,
71111         except on hosts (like the AS/400) where the size or alignment of
71112         void * is greater than that of ptrdiff_t.
71113         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
71114         __STDC__)]: Store temporary in pointer member of union, not
71115         integer member.
71116         * lib/obstack.c: Include <stddef.h>, for offsetof.
71117         (struct fooalign): Remove; it doesn't need a name.
71118         (union fooround): Change double to long double, and add void *.
71119         (DEFAULT_ALIGNMENT): Use offsetof to compute.
71120         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
71121         not a macro.  Hence the values are always int; so remove all
71122         casts-to-int in uses.
71123
71124 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
71125
71126         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
71127         we can get this patch merged into glibc.
71128
71129 2004-05-17  Derek R. Price  <derek@ximbiot.com>
71130             Paul Eggert  <eggert@cs.ucla.edu>
71131
71132         * m4/argp: Depend on alloca.
71133
71134 2004-05-17  Derek R. Price  <derek@ximbiot.com>
71135             Paul Eggert  <eggert@cs.ucla.edu>
71136
71137         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
71138         freecoding.
71139
71140 2004-05-17  Bruno Haible  <bruno@clisp.org>
71141
71142         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
71143         precision that consists of a '.' followed by an empty digit string.
71144         Patch by Tor Lillqvist <tml@iki.fi>.
71145
71146 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
71147
71148         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
71149         for backward compatibility with older code.  We need our own
71150         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
71151         it under some other name, and our alloca.h will define it.
71152
71153 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
71154             Derek Price  <derek@ximbiot.com>
71155
71156         * lib/alloca.c: Include <alloca.h>, to get our interface.
71157         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
71158         include <alloca.h> first.  Use C89 prototype for alloca; this
71159         requires including <stddef.h> for size_t.  Use extern "C" if C++.
71160         Use #elif for simplicity, since we can assume C89 now.
71161         Don't try to source the system alloca.h since it will not be found
71162         and to prevent recursively including its replacement.
71163         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
71164         * lib/regex.c: Likewise.
71165
71166 2004-05-16  Derek Price  <derek@ximbiot.com>
71167             Paul Eggert  <eggert@cs.ucla.edu>
71168
71169         getline cleanup.  This changes the getndelim2 API: both order of
71170         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
71171         no delimiter).
71172
71173         * lib/getline.c: Don't include stddef.h or stdio.h, since our
71174         interface does that.
71175         (getline): Always use getdelim, so that we don't have two
71176         copies of this code.
71177         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
71178         if available.
71179         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
71180         (GETNDELIM2_MAXIMUM): New macro.
71181         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
71182         instead of the old practice of delim2==0.  All callers changed.
71183         Return -1 on overflow, instead of returning junk.
71184         Do not set *linesize unless allocation succeeds.
71185         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
71186         that we include sys/types.h.
71187         * lib/getnline.h: Likewise.
71188         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
71189         (getndelim2): Reorder arguments.
71190         * lib/getnline.c (getnline, getndelim):
71191         Don't discard the NMAX argument.
71192         (getnline): Invoke getndelim, to avoid code duplication.
71193         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
71194         of (size_t) -1 by callers of the getnline family.
71195
71196 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
71197
71198         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
71199         Check for gettimeofday.
71200         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
71201         Check for settimeofday, stime.
71202
71203 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
71204
71205         * lib/nanosleep.c (suspended): Change its type from int to
71206         sig_atomic_t volatile.
71207         (first_call): Make it private to rpl_nanosleep, and have it
71208         be zero initially as that's a bit faster.
71209         (my_usleep): Round up fractional times instead of truncating them,
71210         as this is the usual meaning for 'sleep'.
71211
71212         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
71213         doesn't work.
71214         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
71215         (ENOSYS): Define if not defined.
71216         (settime): Fall back on stime if it exists and settimeofday fails.
71217         But don't bother with fallbacks if a method fails with errno == EPERM.
71218
71219 2004-05-11  Jim Meyering  <jim@meyering.net>
71220
71221         Prior to this change, the save_cwd caller required read access to the
71222         current directory on most systems (ones with the fchdir function).
71223
71224         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
71225         fails, try write-only, and finally, resort to using xgetcwd.
71226
71227 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
71228
71229         * lib/obstack.c, obstack.h: Import changes from libc.
71230
71231 2004-04-28  Bruno Haible  <bruno@clisp.org>
71232
71233         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
71234         also implicitly appends .exe to executables.
71235         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
71236         accepts Windows pathnames.
71237         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
71238         Treat Cygwin like Windows, since it now accepts Windows pathnames.
71239         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
71240         Treat Cygwin like Windows, since it now accepts Windows pathnames.
71241         Reported by Derek Robert Price <derek@ximbiot.com>.
71242
71243 2004-04-21  Karl Berry  <karl@gnu.org>
71244
71245         * config/srclist.txt (localcharset.c): break sync.
71246
71247 2004-04-20  Paul Eggert  <eggert@twinsun.com>
71248
71249         * m4/host-os.m4: Add a copyright notice.
71250
71251 2004-04-20  Jim Meyering  <jim@meyering.net>
71252
71253         Change UTILS_ to gl_ in AC_DEFINE'd names.
71254         Change utils_- and jm_-prefixed variables, too.
71255         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
71256         UTILS_FUNC_MKDIR_TRAILING_SLASH.
71257         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
71258
71259         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
71260         Don't emit trailing blanks.
71261         Also rename jm_-prefixed variables to have gl_ prefix.
71262
71263         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
71264         Also rename jm_-prefixed variables to have gl_ prefix.
71265
71266         * m4/jm-macros.m4: Reflect the renamings.
71267         * m4/prereq.m4: Likewise.
71268
71269 2004-04-20  Jim Meyering  <jim@meyering.net>
71270
71271         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
71272         memory.
71273
71274 2004-04-20  Jim Meyering  <jim@meyering.net>
71275             Bruno Haible  <bruno@clisp.org>
71276
71277         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
71278         memory when realloc fails.
71279
71280 2004-04-19  Jim Meyering  <jim@meyering.net>
71281
71282         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
71283         now that readutmp.c may call `free (0)'.
71284
71285 2004-04-19  Bruno Haible  <bruno@clisp.org>
71286
71287         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
71288         * m4/inttypes_h.m4: Likewise.
71289         * m4/stdint_h.m4: Likewise.
71290         * m4/intmax_t.m4: Likewise.
71291         * m4/uintmax_t.m4: Likewise.
71292
71293 2004-04-18  Jim Meyering  <jim@meyering.net>
71294
71295         * m4/prereq.m4: Don't forbid jm_ prefix.
71296
71297         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
71298         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
71299         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
71300         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
71301         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
71302         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
71303         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
71304         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
71305         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
71306         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
71307         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
71308         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
71309         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
71310         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
71311         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
71312         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
71313         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
71314         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
71315         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
71316
71317 2004-04-18  Jim Meyering  <jim@meyering.net>
71318
71319         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
71320         failure, don't leak memory and do call END_UTMP_ENT.
71321
71322 2004-04-16  Jim Meyering  <jim@meyering.net>
71323
71324         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
71325         coreutils' stat program.
71326         (gl_PREREQ): Don't require jm_PREREQ_STAT.
71327
71328 2004-04-11  Paul Eggert  <eggert@twinsun.com>
71329
71330         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
71331         C89.
71332         (CHAR_BIT): Remove, since we assume C89.
71333         Include <stdint.h> if available, as per current Autoconf CVS advice.
71334
71335 2004-03-31  Jim Meyering  <jim@meyering.net>
71336
71337         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
71338         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
71339         * m4/xalloc.m4: Likewise.
71340
71341 2004-03-30  Paul Eggert  <eggert@twinsun.com>
71342
71343         Merge from coreutils.
71344
71345         * m4/inttostr.m4: New file.
71346         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
71347         Require AM_STDBOOL_H and gl_TIMESPEC instead.
71348         Require gl_CLOCK_TIME.
71349         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
71350
71351 2004-03-30  Paul Eggert  <eggert@twinsun.com>
71352
71353         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
71354         not bool, to be more consistent with Unix conventions.
71355         Suggested by Bruno Haible.
71356
71357         Merge from coreutils.
71358
71359         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
71360         * lib/umaxtostr.c: New files.
71361
71362         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
71363         the usual <time.h> dance.
71364         (get_date): Change signature to support fractional time stamps.
71365         All callers changed.
71366         * lib/getdate.y: Include "getdate.h" first, as we can now
71367         assume C89 and don't need to worry about 'const'.
71368         Similarly, include "unlocked-io.h" near start, not in middle.
71369         Include <limits.h>.
71370         (textint.value): Use long int rather than int.
71371         (textint.digits): Use size_t rather than int.
71372         (BILLION, LOG10_BILLION): New constants.
71373         (parser_control): New member rel_ns.  Members day_ordinal,
71374         time_zone, month, day, hour, minutes, rel_year, rel_month,
71375         rel_day, rel_hour, rel_minutes, rel_seconds
71376         are now long int, not int.  Member seconds is now struct timespec,
71377         not int.  New member timespec_seen.  Members dates_seen, days_seen,
71378         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
71379         not int.
71380         (%union.intval): Now long int, not int.
71381         New member timespec.
71382         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
71383         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
71384         (spec): Now is a timespec or an item list.
71385         (timespec, items): New nonterminals.
71386         (time, rel, relunit, number, get_date):
71387         Add support for fractional seconds.
71388         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
71389         (gmtime, localtime, mktime): Remove decls; not needed with C89.
71390         (to_hour): First arg is now long int, not int.
71391         (to_year): Returns long int, not int.
71392         Don't treat year -70 like 70.
71393         (tm_diff): Returns long int, not int.
71394         (lookup_word): Use bool instead of int when appropriate.
71395         (yylex): Use size_t for count, not int.
71396         Detect overflow when parsing large integer constants.
71397         Add support for fractions.
71398         (get_date): Make pointers 'const' if possible.
71399         Use more-portable code to detect integer overflow.
71400         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
71401         Don't use ctime; it's not reliable if the year has >4 digits.
71402
71403         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
71404         This is for compatibility with BSD.
71405
71406         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
71407         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
71408         From coreutils' system.h.
71409
71410         * lib/userspec.c: Don't include "posixver.h".
71411         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
71412         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
71413         compatible extension.  Simplify code by removing a boolean int
71414         that was always nonzero if a string was nonnull.
71415
71416 2004-03-30  Jim Meyering  <jim@meyering.net>
71417
71418         Merge from coreutils.
71419
71420         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
71421         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
71422         on some systems one must include <grp.h> before it.
71423         Reported by Christian Krackowizer.
71424
71425 2004-03-30  Jim Meyering  <jim@meyering.net>
71426
71427         Merge from coreutils.
71428
71429         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
71430
71431         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
71432         an empty input stream.
71433
71434         * lib/readtokens.c: Include <stdbool.h>.
71435         (readtoken): Use `size_t' rather than int/long.
71436         All callers adjusted.
71437         Use `bool' rather than `int' where appropriate.
71438         Use memset rather than an explicit loop.
71439         Use x2nrealloc rather than xrealloc.
71440         Allow the use of `\0' as a delimiter.
71441         (readtokens): Likewise.
71442         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
71443
71444 2004-03-30  Jim Meyering  <jim@meyering.net>
71445
71446         * m4/realloc.m4: Remove file, since now it does no more than
71447         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
71448         the `configure.ac' section of module/realloc.
71449         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
71450
71451 2004-03-30  Bruno Haible  <bruno@clisp.org>
71452
71453         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
71454         nonnull.
71455
71456 2004-03-29  Paul Eggert  <eggert@twinsun.com>
71457
71458         Merge changes to getloadavg.c from coreutils and Emacs.
71459
71460         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
71461         Define to an expression, not to the empty string.
71462         Include cloexec.h and xalloc.h.
71463         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
71464         Use set_cloexec_flag rather than rolling our own.
71465         * lib/cloexec.c, lib/cloexec.h: New files.
71466
71467 2004-03-29  Paul Eggert  <eggert@twinsun.com>
71468
71469         * m4/cloexec.m4: New file.
71470
71471 2004-03-18  Paul Eggert  <eggert@twinsun.com>
71472
71473         * lib/getopt.h: Sync with libc CVS.
71474
71475 2004-03-18  Paul Eggert  <eggert@twinsun.com>
71476             Bruno Haible  <bruno@clisp.org>
71477
71478         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
71479         mbswidth.
71480
71481 2004-03-18  Paul Eggert  <eggert@twinsun.com>
71482             Bruno Haible  <bruno@clisp.org>
71483
71484         * lib/mbswidth.h: Include <wchar.h> only if
71485         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
71486         <wchar.h>.
71487         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
71488
71489 2004-03-09  Paul Eggert  <eggert@twinsun.com>
71490
71491         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
71492         Sync with libc CVS.
71493         * lib/getopt_int.h: New file, also synced from libc.
71494
71495 2004-03-09  Paul Eggert  <eggert@twinsun.com>
71496
71497         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
71498         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
71499         Bring back getopt.c, getopt.h, getopt1.c.
71500
71501 2004-03-07  Paul Eggert  <eggert@twinsun.com>
71502
71503         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
71504         All uses changed.  Check for sa_sigaction member; this fixes
71505         a bug first reported by Jason Andrade in
71506         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
71507
71508 2004-03-07  Paul Eggert  <eggert@twinsun.com>
71509
71510         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
71511         '#if' expressions.  Unlike the code it replaces, it does not
71512         depend on (defined _SC_PAGESIZE).  However, it does depend on
71513         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
71514         first reported by Jason Andrade in
71515         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
71516
71517 2004-02-25  Simon Josefsson  <jas@extundo.com>
71518
71519         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
71520
71521 2004-02-25  Simon Josefsson  <jas@extundo.com>
71522
71523         * lib/strdup.h: New file.
71524         * lib/strdup.c: Include it.
71525         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
71526         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
71527
71528 2004-02-23  Karl Berry  <karl@gnu.org>
71529
71530         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
71531         (from fencepost.gnu.org:/gd/gnuorg).
71532
71533 2004-02-23  Karl Berry  <karl@gnu.org>
71534
71535         * config/srclistvars.sh (GNUORG) [karl]: redefine.
71536         * config/srclist.txt: add maintain/standards documents.
71537
71538 2004-02-18  Bruno Haible  <bruno@clisp.org>
71539
71540         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
71541         Reported by Derek Robert Price <derek@ximbiot.com>.
71542
71543 2004-02-16  Karl Berry  <karl@gnu.org>
71544
71545         * config/mkinstalldirs, install-sh: update from automake.
71546
71547 2004-02-06  Karl Berry  <karl@gnu.org>
71548
71549         * m4/po.m4: update from gettext 0.14.1.
71550
71551 2004-02-06  Karl Berry  <karl@gnu.org>
71552
71553         * lib/config.charset: update from gettext 0.14.1.
71554
71555 2004-02-05  Paul Eggert  <eggert@twinsun.com>
71556
71557         Add comments and code, prompted by suggestions from Bruno Haible
71558         for sh-quote.
71559         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
71560         describing the enum quoting_style values.
71561         * lib/quotearg.c (quotearg_alloc): New function.
71562         (quotearg_buffer_restyled): Treat lone { and } as special.
71563         Treat = as special.  Work around bug with older shells
71564         that "see" a '\' that is really the 2nd byte of a multibyte char.
71565         Quote empty string with shell_quoting_style.
71566
71567 2004-02-03  Bruno Haible  <bruno@clisp.org>
71568
71569         * m4/pipe.m4: New file, from GNU gettext.
71570
71571 2004-02-03  Bruno Haible  <bruno@clisp.org>
71572
71573         * lib/pipe.h: New file, from GNU gettext.
71574         * lib/pipe.c: New file, from GNU gettext.
71575
71576 2004-01-27  Bruno Haible  <bruno@clisp.org>
71577
71578         * m4/execute.m4: New file, from GNU gettext.
71579
71580 2004-01-27  Bruno Haible  <bruno@clisp.org>
71581
71582         * lib/execute.h: New file, from GNU gettext.
71583         * lib/execute.c: New file, from GNU gettext.
71584         * lib/w32spawn.h: New file, from GNU gettext.
71585
71586 2004-01-24  Paul Eggert  <eggert@twinsun.com>
71587
71588         Merge from diffutils.
71589
71590         * lib/file-type.c (file_type): Add typed memory objects.
71591         * lib/file-type.h (S_TYPEISTMO): New macro.
71592
71593         * lib/c-stack.h (c_stack_action): Remove argv argument.
71594         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
71595         (die): Don't calculate message unless segv_action returns.
71596         (get_stack_location, min_address_from_argv, max_address_from_argv,
71597         volatile stack_base, volatile_stack_size): Remove.
71598         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
71599         that every segmentation violation is a stack overflow.  (Ouch!)
71600         See Debian bug 136249 (still outstanding) for more info about why
71601         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
71602
71603 2004-01-24  Paul Eggert  <eggert@twinsun.com>
71604
71605         Exit-status fix from coreutils.
71606
71607         Use exit_failure consistently in place of EXIT_FAILURE,
71608         so that program exit statuses are consistent on failure.
71609
71610         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
71611         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
71612         * lib/argmatch.h: Comment fix to match the above.
71613         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
71614         Now a macro referring to exit_failure, instead of a separate
71615         variable.  Include "exitfail.h" to get it.
71616         * lib/xstrtol.h: Include "exitfail.h".
71617         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
71618
71619         * lib/long-options.c (parse_long_options): Use prototype
71620         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
71621         for clarity.
71622
71623 2004-01-21  Jim Meyering  <jim@meyering.net>
71624
71625         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
71626         so as not to conflict with a different-sized __mktime_internal
71627         function in GNU libc.
71628         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
71629         Problem building statically-linked `ls' reported by Michael Brunnbauer.
71630
71631 2004-01-20  Karl Berry  <karl@gnu.org>
71632
71633         * config/config.guess: update from config.
71634
71635         * config/srclistvars.sh: GNUWWWLICENSES for karl.
71636
71637 2004-01-20  Bruno Haible  <bruno@clisp.org>
71638
71639         Safer stack allocation.
71640         * lib/setenv.c: Include allocsa.h.
71641         (alloca): Remove fallback definition.
71642         (freea): Remove macro.
71643         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
71644         instead of freea.
71645
71646 2004-01-20  Bruno Haible  <bruno@clisp.org>
71647
71648         * m4/eealloc.m4: New file, from GNU gettext.
71649
71650 2004-01-20  Bruno Haible  <bruno@clisp.org>
71651
71652         * m4/allocsa.m4: New file, from GNU gettext.
71653
71654 2004-01-20  Bruno Haible  <bruno@clisp.org>
71655
71656         * lib/xallocsa.h: New file, from GNU gettext.
71657         * lib/xallocsa.c: New file, from GNU gettext.
71658
71659 2004-01-20  Bruno Haible  <bruno@clisp.org>
71660
71661         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
71662
71663 2004-01-20  Bruno Haible  <bruno@clisp.org>
71664
71665         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
71666         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
71667         specially.
71668
71669 2004-01-20  Bruno Haible  <bruno@clisp.org>
71670
71671         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
71672         patch.
71673
71674 2004-01-20  Bruno Haible  <bruno@clisp.org>
71675
71676         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
71677
71678 2004-01-20  Bruno Haible  <bruno@clisp.org>
71679
71680         * lib/eealloc.h: New file.
71681
71682 2004-01-20  Bruno Haible  <bruno@clisp.org>
71683
71684         * lib/binary-io.h: Avoid warnings on Cygwin.
71685
71686 2004-01-20  Bruno Haible  <bruno@clisp.org>
71687
71688         * lib/allocsa.h: New file, from GNU gettext.
71689         * lib/allocsa.c: New file, from GNU gettext.
71690
71691 2004-01-18  Karl Berry  <karl@gnu.org>
71692
71693         * doc/gpl.texi, doc/lgpl.texi: new files.
71694
71695 2004-01-18  Karl Berry  <karl@gnu.org>
71696
71697         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
71698         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
71699
71700 2004-01-15  Paul Eggert  <eggert@twinsun.com>
71701
71702         Merge from coreutils.
71703
71704         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
71705         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
71706         (gl_DEFAULT_POSIX2_VERSION): Move
71707         the documentation from 'configure' into 'config.hin',
71708         so that 'configure --help' isn't burdened by it and
71709         we don't have to worry about its formatting there.
71710         Reword the documentation so that it's more succinct
71711         and can be run together into a single paragraph.
71712         * m4/same.m4 (gl_SAME): Check for pathconf.
71713
71714 2004-01-15  Paul Eggert  <eggert@twinsun.com>
71715
71716         Merge from coreutils.
71717
71718         * lib/posixver.c: Include posixver.h.
71719
71720         * lib/same.c: Include <stdbool.h>, <limits.h>.
71721         (_POSIX_NAME_MAX): Define if not defined.
71722         (MIN): New macro.
71723         (same_name): If file names are silently truncated, report
71724         that the file names are the same if they are the same after
71725         the silent truncation.
71726
71727         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
71728         conversion function.
71729         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
71730         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
71731         longer needed.
71732
71733 2004-01-15  Jim Meyering  <jim@meyering.net>
71734
71735         Merge from coreutils.
71736
71737         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
71738         if no library is required.
71739         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
71740         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
71741         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
71742         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
71743         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
71744         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
71745         value, $ac_cv_search_crypt, if it's "none required".
71746         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
71747         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
71748         not gl_FUNC_GETLOADAVG.
71749         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
71750         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
71751
71752 2004-01-15  Jim Meyering  <jim@meyering.net>
71753
71754         Merge from coreutils.
71755
71756         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
71757         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
71758         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
71759
71760         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
71761         optional configure-time default.
71762
71763         * lib/version-etc.c (version_etc_copyright): Update copyright date.
71764
71765         * lib/xreadlink.c (xreadlink): Correct outdated comment.
71766
71767 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
71768
71769         Merge from coreutils.
71770
71771         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
71772         value, $ac_cv_search_nanosleep, if it's "none required".
71773
71774 2004-01-14  Paul Eggert  <eggert@twinsun.com>
71775
71776         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
71777         with like-named macro in fnmatch.c.
71778         (EXT): Use an internal constant instead.
71779
71780         Merge fnmatch patches from glibc.
71781         * lib/fnmatch.c (mbsinit): Remove define.
71782         Add libc_hidden_ver (__fnmatch, fnmatch).
71783         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
71784         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
71785
71786 2004-01-14  Karl Berry  <karl@gnu.org>
71787
71788         * config/install-sh: update from automake.
71789
71790 2004-01-13  Karl Berry  <karl@gnu.org>
71791
71792         * config/install-sh: update from automake.
71793
71794 2004-01-09  Karl Berry  <karl@gnu.org>
71795
71796         * config/install-sh: update from automake.
71797
71798 2004-01-05  Karl Berry  <karl@gnu.org>
71799
71800         * config/config.{sub,guess}: update from config.
71801
71802 2003-12-31  Karl Berry  <karl@gnu.org>
71803
71804         * config/depcomp: update from automake.
71805
71806 2003-12-14  Karl Berry  <karl@gnu.org>
71807
71808         * lib/config.charset: update from gettext-runtime.
71809
71810 2003-12-03  Paul Eggert  <eggert@twinsun.com>
71811
71812         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
71813         Bug reported by Alfred M. Szmidt.
71814
71815 2003-12-03  Bruno Haible  <bruno@clisp.org>
71816
71817         * m4/gettext.m4: Upgrade from gettext-0.13.
71818         * m4/po.m4: Upgrade from gettext-0.13.
71819         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
71820         * m4/intmax.m4: New file, from gettext-0.13.
71821         * m4/printf-posix.m4: New file, from gettext-0.13.
71822
71823 2003-11-29  Karl Berry  <karl@gnu.org>
71824
71825         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
71826
71827 2003-11-25  Paul Eggert  <eggert@twinsun.com>
71828             Bruno Haible  <bruno@clisp.org>
71829
71830         * lib/printf-parse.h: Don't include sys/types.h.
71831         (ARG_NONE): New macro.
71832         (char_directive): Change type of *arg_index fields to size_t.
71833         * lib/printf-parse.c: Don't include sys/types.h.
71834         (SSIZE_MAX): Remove macro.
71835         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
71836         Remove unnecessary overflow check.
71837         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
71838         fields.
71839
71840 2003-11-25  Bruno Haible  <bruno@clisp.org>
71841
71842         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
71843
71844 2003-11-25  Bruno Haible  <bruno@clisp.org>
71845
71846         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
71847         gt_TYPE_SSIZE_T.
71848
71849 2003-11-24  Paul Eggert  <eggert@twinsun.com>
71850
71851         * modules/alloca: Remove dependency on xalloc.
71852
71853 2003-11-24  Paul Eggert  <eggert@twinsun.com>
71854
71855         * lib/alloca.c: Remove dependency on xalloc module.
71856         (xalloc_die): Remove.
71857         (memory_full) [!defined emacs]: New macro.
71858         [!defined emacs]: Don't include xalloc.h.
71859         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
71860         address arithmetic overflows.  Change datatypes a bit to avoid
71861         unnecessary casts.
71862
71863 2003-11-22  Jim Meyering  <jim@meyering.net>
71864
71865         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
71866         s/size/size_t/.
71867
71868 2003-11-21  Karl Berry  <karl@gnu.org>
71869
71870         * config/config.{sub,guess}: update from config.
71871
71872 2003-11-18  Karl Berry  <karl@gnu.org>
71873
71874         * config/config.{sub,guess}: update from config.
71875
71876         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
71877
71878 2003-11-17  Paul Eggert  <eggert@twinsun.com>
71879
71880         * README: Mention that S+T cannot overflow if S is the size of
71881         an existing object and T is sufficiently small.
71882
71883 2003-11-17  Jim Meyering  <jim@meyering.net>
71884
71885         On systems without utime and without a utimes function capable of
71886         dealing with a NULL struct utimbuf* argument, this utime replacement
71887         could -- in unusual circumstances -- leak a file descriptor.
71888         * lib/utime.c: Include <unistd.h> and <errno.h>.
71889         (utime_null): Be sure to close `fd' and to preserve errno.
71890         Reported by Geoff Collyer via Arnold Robbins.
71891
71892 2003-11-17  Bruno Haible  <bruno@clisp.org>
71893
71894         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
71895         (Depends-on): Add xsize.
71896
71897 2003-11-17  Bruno Haible  <bruno@clisp.org>
71898
71899         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
71900
71901 2003-11-17  Bruno Haible  <bruno@clisp.org>
71902
71903         * lib/vasnprintf.c (alloca): Remove fallback definition.
71904         (freea): Remove definition.
71905         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
71906         Reported by Paul Eggert.
71907
71908 2003-11-16  Paul Eggert  <eggert@twinsun.com>
71909             Bruno Haible  <bruno@clisp.org>
71910
71911         Protect against address arithmetic overflow.
71912         * lib/printf-args.h: Include stddef.h.
71913         (arguments): Change type of field 'count' to size_t.
71914         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
71915         'unsigned int' where appropriate.
71916         * lib/printf-parse.h: Include sys/types.h.
71917         (char_directive): Change type of *arg_index fields to ssize_t.
71918         (char_directives): Change type of fields 'count', max_*_length to
71919         size_t.
71920         * lib/printf-parse.c: Include sys/types.h and xsize.h.
71921         (SSIZE_MAX): Define fallback value.
71922         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
71923         instead of 'int' where appropriate. Check a_allocated, d_allocated
71924         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
71925         * lib/vasnprintf.c: Include xsize.h.
71926         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
71927         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
71928         overflow. Avoid wraparound when converting a width or precision from
71929         decimal to binary.
71930
71931 2003-11-16  Bruno Haible  <bruno@clisp.org>
71932
71933         Update from GNU gettext.
71934         * lib/printf-parse.c: Generalize to it can be compiled for wide
71935         strings.
71936         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
71937         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
71938         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
71939         SNPRINTF): New macros.
71940         Don't include <alloca.h> if the file is used inside libintl.
71941         (local_wcslen): New function, for Solaris 2.5.1.
71942         (VASNPRINTF): Use it instead of wcslen.
71943
71944 2003-11-16  Bruno Haible  <bruno@clisp.org>
71945
71946         * lib/xsize.h (xmax): New function.
71947         (xsum, xsum3, xsum4): Declare as "pure" functions.
71948
71949 2003-11-12  Paul Eggert  <eggert@twinsun.com>
71950
71951         * modules/xalloc (Files): Undo latest change, since xalloc.h
71952         no longer needs SIZE_MAX or PTRDIFF_MAX.
71953
71954 2003-11-12  Paul Eggert  <eggert@twinsun.com>
71955
71956         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
71957         gl_PTRDIFF_MAX.
71958
71959 2003-11-12  Paul Eggert  <eggert@twinsun.com>
71960
71961         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
71962         "return", to pacify some unknown compiler.  Problem reported
71963         by Joerg Schilling.
71964
71965 2003-11-12  Paul Eggert  <eggert@twinsun.com>
71966
71967         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
71968         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
71969         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
71970         heuristic is just as accurate as far as we know, and it removes a
71971         dependency on size_max.m4 and ptrdiff_max.m4.
71972
71973 2003-11-11  Bruno Haible  <bruno@clisp.org>
71974
71975         * modules/xsize (Files): Add m4/size_max.m4.
71976         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
71977
71978 2003-11-11  Bruno Haible  <bruno@clisp.org>
71979
71980         * m4/size_max.m4: New file.
71981         * m4/ptrdiff_max.m4: New file.
71982         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
71983         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
71984         (gl_XALLOC): Invoke it.
71985
71986 2003-11-11  Bruno Haible  <bruno@clisp.org>
71987
71988         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
71989         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
71990         defined.
71991
71992 2003-11-10  Paul Eggert  <eggert@twinsun.com>
71993
71994         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
71995         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
71996         rejected some allocations of exactly SIZE_MAX - 2 bytes.
71997         From Bruno Haible.
71998         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
71999         not (size_t) -1, since it's defined here.
72000
72001 2003-11-09  Karl Berry  <karl@gnu.org>
72002
72003         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
72004
72005 2003-11-06  Paul Eggert  <eggert@twinsun.com>
72006
72007         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
72008         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
72009         Reject sizes of exactly SIZE_MAX bytes.
72010         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
72011         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
72012
72013 2003-11-05  Bruno Haible  <bruno@clisp.org>
72014
72015         * lib/xsize.h: Include limits.h, to avoid a possible collision with
72016         SIZE_MAX defined in <limits.h> on Solaris.
72017
72018 2003-11-04  Jim Meyering  <jim@meyering.net>
72019
72020         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
72021         variable names, rather than @VAR@.
72022         * modules/poll: Likewise.
72023
72024 2003-11-04  Bruno Haible  <bruno@clisp.org>
72025
72026         * modules/xsize: New file.
72027         * modules/linebreak: Depend on xsize.
72028         * MODULES.html.sh (func_all_modules): Add xsize.
72029
72030 2003-11-04  Bruno Haible  <bruno@clisp.org>
72031
72032         * m4/xsize.m4: New file.
72033
72034 2003-11-04  Bruno Haible  <bruno@clisp.org>
72035
72036         * lib/xsize.h: New file.
72037         * lib/linebreak.c: Include xsize.h.
72038         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
72039         argument for overflow.
72040         Suggested by Paul Eggert.
72041
72042 2003-11-03  Karl Berry  <karl@gnu.org>
72043
72044         * config/config.{guess,sub}: update from config.
72045
72046 2003-11-03  Jim Meyering  <jim@meyering.net>
72047
72048         * modules/userspec (lib_SOURCES): Add userspec.h.
72049         (Include): Add "userspec.h".
72050         Improve description.
72051
72052 2003-11-03  Jim Meyering  <jim@meyering.net>
72053
72054         * lib/userspec.c: Include "userspec.h".
72055         * lib/userspec.h: New file.
72056
72057 2003-11-03  Bruno Haible  <bruno@clisp.org>
72058
72059         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
72060
72061 2003-11-03  Bruno Haible  <bruno@clisp.org>
72062
72063         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
72064         available, to avoid (extremely rare) race condition.
72065         Suggested by Paul Eggert.
72066
72067 2003-11-02  Karl Berry  <karl@gnu.org>
72068
72069         * config/srclist.txt (vasprintf.c): sync broken, sigh.
72070
72071 2003-10-31  Paul Eggert  <eggert@twinsun.com>
72072
72073         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
72074         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
72075         (read_filesystem_list): Set and use me_type_malloced.
72076         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
72077         whatever the type happens to be), for brevity and consistency.
72078         Check for size calculation overflow on Alphas running OSF/1.
72079
72080 2003-10-31  Jim Meyering  <jim@meyering.net>
72081
72082         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
72083
72084         * lib/linebuffer.c: Include <string.h> for declaration of memset.
72085
72086 2003-10-30  Paul Eggert  <eggert@twinsun.com>
72087             Bruno Haible  <bruno@clisp.org>
72088
72089         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
72090         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
72091
72092 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
72093
72094         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
72095         netbsd*-gnu*.  Suggested by Robert Millan.
72096
72097 2003-10-29  Paul Eggert  <eggert@twinsun.com>
72098
72099         * modules/group-member: Depend on stdbool.
72100
72101 2003-10-29  Paul Eggert  <eggert@twinsun.com>
72102
72103         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
72104
72105 2003-10-29  Paul Eggert  <eggert@twinsun.com>
72106
72107         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
72108         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
72109         after the 'gnu' in these cases.  This fixes some bugs in the
72110         previous change, and is based on suggestions by Robert Millan.
72111
72112 2003-10-29  Paul Eggert  <eggert@twinsun.com>
72113
72114         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
72115         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
72116         no longer needed.
72117         * lib/quotearg.c (quotearg_n_options): Use it.
72118         * lib/group-member.c: Include <stdbool.h>.
72119         (free_group_info): Arg is now const *; don't free arg.
72120         (get_group_info): Now returns bool and accepts struct group_info *,
72121         rather than returning a malloc'ed struct group_info *.
72122         All uses changed.  Check for overflow in internal size calculation.
72123
72124         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
72125         rather than xmalloc/xrealloc.
72126         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
72127         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
72128         conformance bug: the old code used a pointer after freeing the
72129         storage that it addressed.
72130         * lib/hash.c (hash_initialize): Simplify the code by using
72131         xalloc_oversized rather than doing it by hand.
72132         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
72133         the buffer preserved.  Use free and xmalloc instead.
72134         * lib/quotearg.c (quotearg_n_options): Likewise.
72135         Use a simpler test for size overflow.  Don't use xalloc_oversized
72136         because unsigned int might be wider than size_t (!); this suggests
72137         that we should switch from unsigned int to size_t for slot numbers.
72138
72139 2003-10-28  Paul Eggert  <eggert@twinsun.com>
72140
72141         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
72142         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
72143         NetBSD kernels.  Requested by Richard Stallman.
72144
72145 2003-10-27  Paul Eggert  <eggert@twinsun.com>
72146
72147         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
72148         to allocate the returned structure.  Do not allocate a subarray,
72149         as x2nrealloc will do that.
72150         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
72151         instead of xnrealloc.
72152         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
72153
72154 2003-10-27  Bruno Haible  <bruno@clisp.org>
72155
72156         * lib/stdbool_.h: Better support for BeOS.
72157
72158 2003-10-26  Paul Eggert  <eggert@twinsun.com>
72159
72160         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
72161         now uses inline.
72162
72163 2003-10-26  Paul Eggert  <eggert@twinsun.com>
72164
72165         * lib/xalloc.h (xalloc_oversized): New static inline function, for
72166         callers that want to do their own size-overflow checking.  Include
72167         <stdbool.h>, since xalloc_oversized returns bool.
72168         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
72169         to use xalloc_oversized.
72170
72171         Add two functions x2realloc, x2nrealloc, for programs that grow
72172         arrays dynamically by doubling their sizes.
72173         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
72174         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
72175         New functions.
72176
72177         Port to C99 semantics for 'inline' of external functions.
72178         Bug reported by Bruno Haible.
72179         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
72180         with the old contents of xnmalloc.
72181         (xnmalloc, xmalloc): Use it.
72182         (xnrealloc_inline): New static inline function,
72183         with the old contents of xnrealloc.
72184         (xnrealloc, xrealloc): Use it.
72185
72186         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
72187         that.
72188
72189 2003-10-26  Karl Berry  <karl@gnu.org>
72190
72191         * config/srclist.txt (COPYING.DOC): no longer available from
72192         /gd/gnuorg; don't know where the ultimate source is.
72193
72194 2003-10-25  Paul Eggert  <eggert@twinsun.com>
72195
72196         Fix several address-calculation bugs in the hash modules,
72197         plus some minor code cleanup.
72198
72199         * lib/hash.h: Include <stdbool.h>, for bool.
72200         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
72201         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
72202         hash_get_n_entries, hash_get_max_bucket_length,
72203         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
72204         hash_rehash): Use size_t rather than unsigned.
72205         * lib/hash.c (struct hash_table, hash_get_n_buckets,
72206         hash_get_n_buckets_used, hash_get_n_entries,
72207         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
72208         hash_get_entries, hash_do_for_each, hash_string, is_prime,
72209         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
72210         Likewise.
72211         (SIZE_MAX): Define if not defined.
72212         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
72213         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
72214         hash_print):
72215         Use const * when possible.
72216         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
72217         (check_tuning): Fix bug: if tuning parameters were very close to
72218         0 or 1, rounding errors could have caused subscript violations.
72219         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
72220         (hash_initialize): Add 'fail:' label
72221         to free table and return NULL, and use it to simplify code.
72222         Use calloc rather than clearing the storage ourself.
72223         (hash_initialize, hash_rehash): Check for arithmetic overflow in
72224         buffer size calculations.
72225         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
72226         Include <stddef.h>, for size_t.
72227         * lib/hash-pjw.c (hash_pjw): Likewise.
72228         Switch to method described by Bruno Haible.
72229         Include <limits.h>, for CHAR_BIT.
72230         (SIZE_BITS): New macro.
72231
72232 2003-10-23  Paul Eggert  <eggert@twinsun.com>
72233
72234         * m4/getline.m4 (AM_FUNC_GETLINE):
72235         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
72236         hosts.  Problem reported by Derek Robert Price in
72237         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
72238         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
72239         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
72240
72241 2003-10-21  Paul Eggert  <eggert@twinsun.com>
72242
72243         * lib/getndelim2.c (getndelim2): When size calculation overflows,
72244         ceiling the allocation at NMAX bytes rather than silently
72245         discarding input bytes before NMAX is reached.  This makes
72246         a difference only if NMAX exceeds SIZE_MAX / 2.
72247
72248         * lib/obstack.c: Merge from glibc.
72249         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
72250         Add libc_hidden_def (_obstack_newchunk).
72251         (_obstack_free) [! defined _LIBC]: Remove.
72252         [defined _LIBC]: Make a strong alias from obstack_free, rather than
72253         a clone of the function body.
72254         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
72255         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
72256
72257         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
72258         glibc.
72259         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
72260         arg to memcpy.
72261
72262         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
72263         (obstack_ptr_grow_fast, obstack_int_grow_fast):
72264         Don't use lvalue casts, as GCC plans to remove support for them
72265         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
72266         was also present in the non-GCC version, indicating that this
72267         code had always been buggy and had never been widely used.
72268         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
72269         Use the fast variant of each macro, rather than copying the
72270         definiens of the fast variant; that way, we'll be more likely to
72271         catch future bugs in the fast variants.
72272
72273 2003-10-20  Bruno Haible  <bruno@clisp.org>
72274
72275         * modules/wait-process: New file.
72276         * MODULES.html.sh (func_all_modules): Add wait-process.
72277
72278 2003-10-20  Bruno Haible  <bruno@clisp.org>
72279
72280         * m4/wait-process.m4: New file.
72281
72282 2003-10-20  Bruno Haible  <bruno@clisp.org>
72283
72284         * lib/wait-process.h: New file, from GNU gettext.
72285         * lib/wait-process.c: New file, from GNU gettext.
72286
72287 2003-10-19  Jim Meyering  <jim@meyering.net>
72288
72289         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
72290         HPUX 10.20.
72291
72292 2003-10-18  Karl Berry  <karl@gnu.org>
72293
72294         * config/config.guess: update from config.
72295
72296 2003-10-16  Paul Eggert  <eggert@twinsun.com>
72297
72298         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
72299         (getgroups): First arg is int, not size_t.
72300         Don't let 'free' mangle errno.
72301
72302 2003-10-16  Paul Eggert  <eggert@twinsun.com>
72303
72304         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
72305
72306 2003-10-16  Karl Berry  <karl@gnu.org>
72307
72308         * config/config.{guess,sub}: update from config.
72309
72310 2003-10-16  Jim Meyering  <jim@meyering.net>
72311
72312         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
72313         memcpy.
72314
72315 2003-10-15  Paul Eggert  <eggert@twinsun.com>
72316
72317         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
72318         (SIZE_MAX): Remove.
72319         (new_exclude, add_exclude_file): Initial size no longer needs to
72320         be a power of 2.
72321         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
72322         our own address arithmetic overflow checking.
72323
72324         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
72325         (fnmatch): Do not alloca more than 2000 wide characters;
72326         instead, use malloc for large buffers.
72327         Check for address arithmetic overflow, and return -1
72328         with errno set to ENOMEM in that case.
72329         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
72330         (NEW_PATTERN): Do not alloca more than 8000 bytes;
72331         instead, return -1.  Check for address arithmetic overflow.
72332
72333 2003-10-14  Paul Eggert  <eggert@twinsun.com>
72334
72335         Handle invalid suffixes and overflow independently, so that
72336         callers can treat them independently as needed.  Fix some bugs in
72337         suffix handling, e.g., "100k@" was not diagnosed as an invalid
72338         suffix for a human-readable blocksize.  The major caller-visible
72339         change is the addition of a new
72340         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
72341         that both overflow and suffix chars were found.
72342
72343         * lib/human.c (humblock): Don't check separately for invalid suffix
72344         char; that is xstrtoumax's job (now that its bug is fixed).
72345         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
72346         INTMAX_MAX]: New macros.
72347         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
72348         TYPE_MAXIMUM): New macros.
72349         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
72350         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
72351         if overflow occurs, as it's what __strtol does and it's more useful
72352         in practice.
72353         (__xstrtol): If __strtol reports some error other than ERANGE,
72354         reflect it to the caller as LONGINT_INVALID.  If it reports
72355         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
72356         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
72357         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
72358         value.
72359         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
72360         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
72361         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
72362         [defined UINTMAX_MAX]: New macros.
72363
72364 2003-10-14  Bruno Haible  <bruno@clisp.org>
72365
72366         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
72367
72368 2003-10-14  Bruno Haible  <bruno@clisp.org>
72369
72370         * m4/sig_atomic_t: New file, from GNU gettext.
72371         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
72372
72373 2003-10-14  Bruno Haible  <bruno@clisp.org>
72374
72375         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
72376         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
72377         Also use volatile where needed.
72378
72379 2003-10-12  Paul Eggert  <eggert@twinsun.com>
72380
72381         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
72382         Change maintainer from Bruno Haible to 'all'.
72383
72384 2003-10-12  Paul Eggert  <eggert@twinsun.com>
72385
72386         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
72387
72388 2003-10-12  Paul Eggert  <eggert@twinsun.com>
72389
72390         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
72391         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
72392         and define in terms of the other primitives.
72393         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
72394         (SIZE_MAX): Define if not already defined.
72395         (array_size_overflow): New function.
72396         (xalloc_die): Abort instead of exiting if 'error' returns.
72397         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
72398         (xmalloc, xrealloc): Use them.
72399         (xcalloc): Check for address arithmetic overflow.
72400         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
72401         a bit faster than strcpy.
72402
72403 2003-10-10  Simon Josefsson  <jas@extundo.com>
72404
72405         * modules/argp (Depends-on): Add restrict and strcase.
72406
72407 2003-10-10  Simon Josefsson  <jas@extundo.com>
72408
72409         * m4/argp.m4: Add AC_C_INLINE.
72410
72411 2003-10-08  Paul Eggert  <eggert@twinsun.com>
72412
72413         Merge getpass from libc, plus a few fixes.
72414
72415         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
72416         Include <stdbool.h>.
72417         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
72418         __fsetlocking to empty.
72419         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
72420         do include <bits/libc-lock.h>.
72421         Do not include <fcntl.h>; not needed.
72422         [_LIBC]: Include <wchar.h>.
72423         (NOTCANCEL_MODE): New macro.
72424         (flockfile, funlockfile) [_LIBC]: New macros.
72425         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
72426         [!_LIBC]: New macros.
72427         (call_fclose): New function.
72428         (getpass): Use it.  Save tty stream separately; this simplifies the
72429         code and makes it more reliable if stdin happens to equal stdout.
72430         Invoke __fsetlocking on tty.
72431         Handle thread cancellation if needed.
72432         Namespace cleanup (use __tcgetattr, __getline).
72433         Use bool for Booleans.
72434         [USE_IN_LIBIO]: Handle wide streams.
72435         [!_LIBC]: Unconditionally do the fseek, since we don't know what
72436         stream might go where.
72437
72438         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
72439         doesn't have to include <stdio.h> before us.
72440         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
72441         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
72442         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
72443         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
72444         if not declared, so that we can use getpass.c code from libc without
72445         rewriting it.
72446         (flockfile, ftrylockfile, funlockfile): New macros.
72447
72448 2003-10-08  Paul Eggert  <eggert@twinsun.com>
72449
72450         * modules/getpass: Depend on stdbool.
72451
72452 2003-10-08  Paul Eggert  <eggert@twinsun.com>
72453
72454         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
72455
72456 2003-10-07  Karl Berry  <karl@gnu.org>
72457
72458         * config/config.{guess,sub}: update from config.
72459
72460 2003-10-06  Jim Meyering  <jim@meyering.net>
72461             Bruno Haible  <bruno@clisp.org>
72462
72463         This lets translators provide better translations for the
72464         "Written by ..." part of --version output.
72465         * lib/version-etc.h: Include stdarg.h.
72466         (version_etc_copyright): Declare as readonly.
72467         (version_etc): Make this function variadic with a NULL-terminated list
72468         of author name strings.
72469         (version_etc_va): New declaration.
72470         * lib/version-etc.c: Include stdarg.h, stdlib.h.
72471         (version_etc_copyright): Declare as readonly.
72472         (version_etc_va): New function. Provide a different translatable string
72473         for each possible number of authors < 10. Abbreviate when there are 10
72474         authors or more.
72475         (version_etc): Make this function variadic. Call version_etc_va.
72476         Suggestion from Gary V. Vaughan.
72477
72478         * lib/long-options.h (parse_long_options): Change prototype: the
72479         authors string is moved to the end and becomes variadic.
72480         * lib/long-options.c: Include stdarg.h.
72481         (parse_long_options): Make this function variadic, too.
72482         Call version_etc_va, not version_etc.
72483
72484 2003-10-06  Bruno Haible  <bruno@clisp.org>
72485
72486         * modules/version-etc-2: Remove file.
72487         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
72488
72489 2003-10-06  Bruno Haible  <bruno@clisp.org>
72490
72491         * modules/fatal-signal: New file.
72492         * MODULES.html.sh (func_all_modules): Add fatal-signal.
72493
72494 2003-10-06  Bruno Haible  <bruno@clisp.org>
72495
72496         * m4/fatal-signal.m4: New file.
72497         * m4/signalblocking.m4: New file, from GNU gettext.
72498
72499 2003-10-06  Bruno Haible  <bruno@clisp.org>
72500
72501         * lib/version-etc-2.h: Remove file.
72502         * lib/version-etc-2.c: Remove file.
72503
72504 2003-10-06  Bruno Haible  <bruno@clisp.org>
72505
72506         * lib/fatal-signal.h: New file, from GNU gettext.
72507         * lib/fatal-signal.c: New file, from GNU gettext.
72508
72509 2003-10-05  Paul Eggert  <eggert@twinsun.com>
72510
72511         * README: Rework advice for preventing empty .o files.
72512         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
72513         not <sys/types.h>.
72514
72515 2003-10-04  Karl Berry  <karl@gnu.org>
72516
72517         * lib/argp*: update from libc.
72518
72519 2003-10-04  Karl Berry  <karl@gnu.org>
72520
72521         * config/config.{guess,sub}: update from config.
72522
72523 2003-10-02  Bruno Haible  <bruno@clisp.org>
72524
72525         * modules/lchown (Include): Add lchown.h.
72526         * modules/time_r (Include): Use "..." syntax.
72527         * modules/xgetdomainname (Include): Add xgetdomainname.h.
72528
72529 2003-10-01  Simon Josefsson  <jas@extundo.com>
72530
72531         * MODULES.html.sh (func_all_modules): Move gethostname from section
72532         'based on' to section 'lacking' POSIX:2001.
72533
72534 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
72535
72536         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
72537         to output mode on the same stream.
72538
72539 2003-09-29  Paul Eggert  <eggert@twinsun.com>
72540
72541         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
72542         Fix arg typo in previous patch.
72543
72544 2003-09-28  Jim Meyering  <jim@meyering.net>
72545
72546         * lib/error.c: Correct cpp indentation.
72547
72548 2003-09-27  Paul Eggert  <eggert@twinsun.com>
72549
72550         * modules/free: New file.
72551
72552 2003-09-27  Paul Eggert  <eggert@twinsun.com>
72553
72554         * m4/free.m4: New file.
72555
72556 2003-09-27  Paul Eggert  <eggert@twinsun.com>
72557
72558         * lib/minmax.h (MIN, MAX)
72559         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
72560         Omit the special code that used __typeof__, since we worry that
72561         it could be more trouble than it's worth.  See:
72562         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
72563         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
72564
72565         * lib/free.c: New file.
72566
72567 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
72568
72569         Trivial fixes to Makefile.am parts of module listings.
72570         * modules/strstr: Append strstr.h to lib_SOURCES.
72571         * modules/strcase: Likewise, for strcase.h.
72572
72573 2003-09-27  Karl Berry  <karl@gnu.org>
72574
72575         * config/mkinstalldirs: update from automake.
72576
72577 2003-09-26  Paul Eggert  <eggert@twinsun.com>
72578
72579         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
72580         (error_tail): Do not loop, reallocating temporary buffer, since
72581         the output cannot contain more wide characters than the input
72582         contains bytes, the size must be big enough already.  This avoids
72583         one potential size overflow calculation.  Check for size overflow
72584         when calculating temporary buffer size.  Free temporary buffer
72585         when done, if it was allocated with malloc; this plugs a memory
72586         leak.  Remove casts from void * to pointers, that are no longer
72587         needed now that we're assuming C89 or better.
72588
72589         Merge error changes from glibc.
72590
72591         * lib/error.c, error.h: Update copyright notice header to match glibc.
72592         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
72593         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
72594         Disable cancellation while printing error.
72595         * lib/error.h: Prepend __ to parameter names.
72596
72597 2003-09-26  Jim Meyering  <jim@meyering.net>
72598
72599         * lib/error.c (error_tail): Move some declarations
72600         into inner scope where the local variables are used.
72601
72602 2003-09-26  Bruno Haible  <bruno@clisp.org>
72603
72604         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
72605         stpncpy().
72606         Don't define stpncpy through config.h; it's now done through stpncpy.h.
72607
72608 2003-09-26  Bruno Haible  <bruno@clisp.org>
72609
72610         * lib/stpncpy.h (gnu_stpncpy): New declaration.
72611         (stpncpy): Define as alias for gnu_stpncpy.
72612         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
72613
72614 2003-09-25  Simon Josefsson  <jas@extundo.com>
72615
72616         * lib/xgetdomainname.h: New file.
72617         * lib/xgetdomainname.c: New file.
72618
72619 2003-09-25  Simon Josefsson  <jas@extundo.com>
72620             Bruno Haible  <bruno@clisp.org>
72621
72622         * modules/getdomainname: New file.
72623         * modules/xgetdomainname: New file.
72624         * MODULES.html.sh (func_all_modules): Add getdomainname,
72625         xgetdomainname.
72626
72627 2003-09-25  Simon Josefsson  <jas@extundo.com>
72628             Bruno Haible  <bruno@clisp.org>
72629
72630         * m4/getdomainname.m4: New file.
72631
72632 2003-09-25  Simon Josefsson  <jas@extundo.com>
72633             Bruno Haible  <bruno@clisp.org>
72634
72635         * lib/getdomainname.h: New file.
72636         * lib/getdomainname.c: New file.
72637
72638 2003-09-25  Karl Berry  <karl@gnu.org>
72639
72640         * lib/argp-fmtstream.c, argp-help.c: update from libc.
72641
72642 2003-09-25  Karl Berry  <karl@gnu.org>
72643
72644         * config/install-sh: update from automake.
72645
72646 2003-09-25  Bruno Haible  <bruno@clisp.org>
72647
72648         * modules/version-etc-2: New file, from modules/version-etc with
72649         modifications.
72650         * MODULES.html.sh (func_all_modules): Add version-etc-2.
72651
72652 2003-09-25  Bruno Haible  <bruno@clisp.org>
72653
72654         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
72655         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
72656
72657 2003-09-24  Simon Josefsson  <jas@extundo.com>
72658
72659         * modules/xgethostname: Add xgethostname.h.
72660
72661 2003-09-24  Paul Eggert  <eggert@twinsun.com>
72662
72663         * lib/linebuffer.c (freebuffer): Don't free the argument, just
72664         the buffer associated with the argument.  Bug reported by
72665         Simon Josefsson.
72666
72667 2003-09-24  Paul Eggert  <eggert@twinsun.com>
72668
72669         * README: Document assumptions that 'int' is at least 32 bits
72670         wide, that integer arithmetic is 2's complement without overflow,
72671         that there are no holes in integer values, that adding sizes of
72672         two nonoverlapping objects can't overflow, and that all-bits-zero
72673         yields scalar zero.  Fix spelling and capitalization typos.
72674
72675 2003-09-19  Karl Berry  <karl@gnu.org>
72676
72677         * lib/argp.h: update from libc.
72678
72679 2003-09-17  Paul Eggert  <eggert@twinsun.com>
72680
72681         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
72682         to avoid spurious warnings like "AC_RUN_IFELSE was called before
72683         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
72684
72685 2003-09-17  Paul Eggert  <eggert@twinsun.com>
72686
72687         * gnulib-tool: Use "test -h", not "test -L", for portability
72688         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
72689         (tags_regexp): Remove, since \| doesn't conform to POSIX.
72690         (sed_extract_prog): Issue s commands one-by-one, rather than
72691         using \| in one s command.
72692
72693 2003-09-16  Paul Eggert  <eggert@twinsun.com>
72694
72695         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
72696         input error, instead of returning NULL the next time we are called
72697         (and therefore losing track of errno).
72698
72699 2003-09-16  Bruno Haible  <bruno@clisp.org>
72700
72701         * gnulib-tool (func_create_testdir): Warn about duplicated
72702         dependencies.
72703
72704 2003-09-15  Paul Eggert  <eggert@twinsun.com>
72705
72706         * modules/argmatch, modules/fatal, modules/obstack,
72707         modules/xalloc, modules/xgethostname: Sort dependencies by
72708         importance, not alphabetically.
72709
72710 2003-09-15  Paul Eggert  <eggert@twinsun.com>
72711
72712         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
72713         fails, so that the caller gets the proper errno.
72714
72715         * lib/readutmp.c (read_utmp): Likewise.
72716         Check for fstat error.  Close stream and free storage
72717         when failing.
72718
72719 2003-09-14  Karl Berry  <karl@gnu.org>
72720
72721         * config/srclist.txt (strdup.c): disable for c89 changes.
72722
72723 2003-09-14  Jim Meyering  <jim@meyering.net>
72724
72725         * lib/getloadavg.c: Correct cpp indentation.
72726         * lib/strdup.c: Likewise.
72727         * lib/vasnprintf.c: Likewise.
72728
72729 2003-09-14  Bruno Haible  <bruno@clisp.org>
72730
72731         * modules/fwriteerror: New file.
72732         * MODULES.html.sh (func_all_modules): Add fwriteerror.
72733
72734 2003-09-14  Bruno Haible  <bruno@clisp.org>
72735
72736         * lib/fwriteerror.h: New file.
72737         * lib/fwriteerror.c: New file.
72738
72739 2003-09-12  Paul Eggert  <eggert@twinsun.com>
72740
72741         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
72742         modules/xgethostname, modules/xalloc: Depend on exit.
72743
72744 2003-09-12  Paul Eggert  <eggert@twinsun.com>
72745
72746         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
72747
72748         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
72749         and AC_MINIX, too, so that their extensions are available.
72750
72751         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
72752         This macro has been superseded by gl_BACKUPFILE.
72753
72754         More patches to assume C89 or better.
72755
72756         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
72757
72758         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
72759         unconditionally.
72760         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
72761         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
72762         Include <string.h>, <stdlib.h> unconditionally.
72763         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
72764         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
72765         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
72766         headers or for string.h.
72767         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
72768         or strtoul.
72769
72770         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
72771         headers.
72772         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
72773         * m4/userspec.m4 (gl_USERSPEC): Likewise.
72774         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
72775         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
72776         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
72777         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
72778         memcpy, memset.
72779         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
72780         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
72781         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
72782         strtol.
72783         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
72784         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
72785         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
72786         strtoul.
72787
72788 2003-09-12  Paul Eggert  <eggert@twinsun.com>
72789
72790         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
72791         * lib/obstack.c [!defined _LIBC]: Likewise.
72792         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
72793         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
72794         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
72795
72796         More changes to assume C89 or better.
72797
72798         * lib/error.c (error_tail): Assume vprintf.
72799
72800         * lib/argmatch.c (getenv): Remove decl.
72801         * lib/progreloc.c (get_full_program_name): Define via prototype.
72802         * lib/setenv.c (clearenv): Likewise.
72803         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
72804         needed.
72805         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
72806         (malloc, memcpy): Remove decls.
72807         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
72808         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
72809         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
72810         (memcpy): Remove macro.
72811         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
72812         (__P): Remove.  All uses removed.
72813         (PTR): Remove.  All uses changed to void *.
72814         (CHAR_BIT, NULL): Remove.
72815         (spaces, zeros, memset_space, memset_zero)
72816         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
72817         Remove.
72818         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
72819         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
72820         Define with prototype.
72821         Remove now-unnecessary prototype decl.
72822         (extra_args_spec): Assume ANSI C.  All uses changed.
72823         (extra_args_spec_iso): Remove.
72824         (my_strftime, emacs_strftimeu): Define via prototype.
72825         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
72826         unconditionally.
72827         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
72828         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
72829         (strtoul, strtol): Remove decls.
72830         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
72831         LONG_MAX): Remove.
72832         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
72833         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
72834         (LOCALE_PARAM_PROTO): New macro.
72835         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
72836         (INTERNAL (strtol), strtol): Define with a prototype.
72837         (PARAMS): Remove.  All uses removed.
72838         * lib/tempname.c: Include <string.h> unconditionally.
72839         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
72840         * lib/xgethostname.c (main): Define with a prototype.
72841         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
72842         Include <stdlib.h> unconditionally.
72843         (calloc, malloc, realloc, free): Remove decls.
72844         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
72845         Include <stdlib.h> unconditionally.  Sort include file names.
72846         (strtod): Remove.
72847         (xstrtod): Define with a prototype.
72848         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
72849         (strtol, strtoul): Remove decls.
72850
72851 2003-09-11  Paul Eggert  <eggert@twinsun.com>
72852
72853         More patches to assume C89 or better.
72854         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
72855         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
72856         string.h, memchr, STDC_HEADERS.
72857
72858 2003-09-11  Paul Eggert  <eggert@twinsun.com>
72859
72860         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
72861         Include <stdlib.h>, <string.h> unconditionally.
72862         Remove now-unnecessary cast to char *.
72863         * lib/strnlen.c: Include <string.h> unconditionally.
72864         * lib/yesno.c (yesno): Define with a prototype.
72865
72866 2003-09-11  Bruno Haible  <bruno@clisp.org>
72867
72868         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
72869
72870 2003-09-10  Jim Meyering  <jim@meyering.net>
72871
72872         * lib/error.c: Correct indentation of cpp directives.
72873
72874 2003-09-10  Bruno Haible  <bruno@clisp.org>
72875
72876         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
72877         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
72878         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
72879         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
72880         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
72881         <stdlib.h> and <string.h> checks.
72882         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
72883         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
72884
72885 2003-09-10  Bruno Haible  <bruno@clisp.org>
72886
72887         * lib/strcspn.c: Include <string.h> unconditionally.
72888         * lib/strpbrk.c: Include <string.h> unconditionally.
72889         * lib/strstr.c: Include <string.h> unconditionally.
72890         * lib/unicodeio.c: Include <string.h> unconditionally.
72891         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
72892         * lib/unsetenv.c: Likewise.
72893         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
72894         * lib/yesno.c: Include <stdlib.h> unconditionally.
72895         (rpmatch): Add prototype.
72896
72897 2003-09-09  Paul Eggert  <eggert@twinsun.com>
72898
72899         More patches to assume C89 or better.
72900         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
72901         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
72902         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
72903         or for string.h.
72904         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
72905         stdlib.h.
72906         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
72907         C headers.
72908         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
72909         string.h.
72910         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
72911         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
72912         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
72913         or for string.h.
72914         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
72915         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
72916         C headers.
72917         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
72918         memcpy.
72919         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
72920         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
72921         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
72922         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
72923         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
72924         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
72925         string.h, free.
72926         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
72927         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
72928         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
72929         C headers, or for string.h.
72930         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
72931         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
72932         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
72933         headers, memory.h, stdlib.h, string.h, strings.h.
72934         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
72935         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
72936         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
72937         strchr.
72938         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
72939         headers, memory.h, string.h.
72940         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
72941         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
72942         free.
72943         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
72944         headers.
72945         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
72946         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
72947         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
72948         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
72949         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
72950
72951 2003-09-09  Paul Eggert  <eggert@twinsun.com>
72952
72953         More K&R removal.
72954
72955         * lib/acosl.c (main): Use a prototype.
72956         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
72957         tanl.c: Likewise.
72958
72959         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
72960
72961         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
72962         (getopt, etopt_long, getopt_long_only, _getopt_internal)
72963         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
72964         with a prototype.
72965         * lib/getopt.c (const): Remove macro.
72966         Include <string.h> unconditionally.
72967         (my_index): Remove; all uses changed to strchr.
72968         (strlen): Remove decl.
72969         (exchange): Remove forward decl; no longer needed.
72970         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
72971         Define with prototype.
72972         * lib/getopt1.c (const): Remove macro.
72973         (getopt_long, getopt_long_only, main): Define with prototype.
72974
72975         * lib/getugroups.c: Include <string.h> unconditionally.
72976
72977         * lib/getusershell.c: Include <stdlib.h> unconditionally.
72978         (getusershell, setusershell, endusershell, readname, main):
72979         Define with prototypes.
72980
72981         * lib/group-member.c: Include group-member.h first.
72982         Include <stdlib.h> unconditionally.
72983
72984         * lib/hard-locale.c: Include hard-locale.h first.
72985         Include <stdlib.h>, <string.h> unconditionally.
72986
72987         * lib/hash.c (free, malloc): Remove decls.
72988         Include <stdlib.h> unconditionally.
72989
72990         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
72991         (getenv): Do not declare.
72992
72993         * lib/idcache.c: Include <string.h> unconditionally.
72994
72995         * lib/long-options.c: Include long-options.h first, to test interface.
72996         Include <stdlib.h> unconditionally.
72997
72998         * lib/makepath.c: Include makepath.h first, to test interface.
72999         Include <stdlib.h> and <string.h> unconditionally.
73000
73001         * lib/linebuffer.c: Include <stdlib.h>.
73002         (free): Remove decl.
73003
73004         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
73005         stddef.h. rpl_malloc returns void *, not char *.
73006         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
73007         prototype.
73008
73009         * lib/md5.h: Include <limits.h> unconditionally.
73010         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
73011         (__P): Remove; all uses removed.
73012         * lib/md5.c: Include "md5.h" first.
73013         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
73014         md5_buffer, md5_process_bytes, md5_process_block):
73015         Define with prototypes.
73016         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
73017         * lib/sha.c: Include "sha.h" first.
73018         Include <stdlib.h>, <string.h> unconditionally.
73019
73020         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
73021         * lib/memcmp.c (__ptr_t): Likewise.
73022         * lib/memrchr.c (__ptr_t): Likewise.
73023         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
73024         Include <string.h> unconditionally.
73025         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
73026         * lib/memchr.c: Include <stdlib.h> unconditionally.
73027         * lib/memchr.c (LONG_MAX): Remove.
73028         * lib/memrchr.c (LONG_MAX): Likewise.
73029         * lib/memchr.c (__memchr): Define via a prototype.
73030         * lib/memrchr.c (__memrchr): Likewise.
73031         * lib/memcmp.c (__P): Remove, and remove all uses.
73032         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
73033         Remove forward decls; no longer needed.
73034         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
73035         Use types required by C89 in prototype.
73036
73037         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
73038         * lib/savedir.c: Likewise.
73039         * lib/mkdir.c (free): Remove decl.
73040         * lib/rmdir.c (rmdir): Define with a prototype.
73041         * lib/savedir.c: Include savedir.h first, to test interface.
73042
73043         * lib/mktime.c (STDC_HEADERS): Remove.
73044         Include <stdlib.h>, <string.h> unconditionally.
73045
73046         * lib/modechange.c: Include <stdlib.h> unconditionally.
73047         (malloc): Remove decl.
73048
73049         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
73050         (free): Remove decl.
73051
73052         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
73053         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
73054         (This type really should be intptr_t, but that's a C99ism.)
73055         (_obstack_memcpy): Remove: all uses changed to memcpy.
73056         Include <string.h> unconditionally.
73057         (struct obstack): Assume __STDC__ for types of members
73058         chunkfun, freefun, extra_arg.
73059         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
73060         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
73061         obstack_begin, obstack_specify_allocation,
73062         obstack_specify_allocation_with_arg, obstack_chunkfun,
73063         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
73064         Remove unprototyped decls and the macros that use them.
73065         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
73066         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
73067         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
73068         (defined __STDC__ && __STDC__)]:
73069         Remove nonprototyped code.
73070         Include <stdlib.h> unconditionally.
73071         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
73072         _obstack_allocated_p, _obstack_free, obstack_free,
73073         _obstack_memory_used, print_and_abort):
73074         Define using prototypes.
73075         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
73076         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
73077         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
73078         obstack_next_free, obstack_object_size, obstack_room) [0]:
73079         Remove unused, unprototyped code.
73080
73081         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
73082
73083         * lib/physmem.c (physmem_total, physmem_available, main): Define
73084         with prototypes.
73085
73086         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
73087         (main): Define with a prototype.
73088
73089         * lib/posixver.c (getenv): Remove decl.
73090
73091         * lib/putenv.c (malloc): Returns void *, not char *.
73092         Include <string.h> unconditionally.
73093         (strchr, memcpy, NULL): Do not define.
73094
73095         * lib/readtokens.c: Include readtokens.h first, to test interface.
73096         Include <stdlib.h>, <string.h> unconditionally.
73097         (init_tokenbuffer): Define with a prototype.
73098
73099         * lib/regex.c (PARAMS): Remove.  All uses removed.
73100         All uses of _RE_ARGS removed, too.
73101         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
73102         unconditionally.
73103         (bzero): Assume memset exists.
73104         (memcmp, memcpy, NULL): Remove.
73105         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
73106         char, or assignments to local vars of type signed char.
73107         (init_syntax_once, PREFIX(extract_number_and_incr),
73108         PREFIX(print_partial_compiled_pattern),
73109         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
73110         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
73111         PREFIX(regex_grow_registers), PREFIX(regex_compile),
73112         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
73113         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
73114         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
73115         wcs_compile_range, byte_compile_range, truncate_wchar,
73116         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
73117         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
73118         count_mbs_length, wcs_re_match_2_internal,
73119         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
73120         PREFIX(alt_match_null_string_p),
73121         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
73122         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
73123         regfree, PREFIX(extract_number)): Define with prototype.  Remove
73124         now-unnecessary declaration, if any.
73125         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
73126         regcomp, regexec):
73127         Remove now-unnecessary casts among pointer types.
73128         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
73129
73130         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
73131         (free): Remove decl.
73132
73133         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
73134
73135         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
73136         (free): Remove decl.
73137
73138         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
73139         * lib/xgetcwd.c: Likewise.
73140
73141         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
73142         (free): Remove decl.
73143
73144         * lib/strchrnul.c (strchrnul): Define with a prototype.
73145         Fix bug: c_in was not converted to char before searching.
73146
73147         The following changes are not K&R related:
73148
73149         * lib/group-member.h: Include <sys/types.h>, so that this file is
73150         self-contained.
73151         * lib/makepath.h: Likewise.
73152
73153         * lib/getusershell.c (readname, default_index, line_size, readname):
73154         Use size_t, not int, for sizes.
73155         (readname): If the size overflows, report an error instead of
73156         looping forever.
73157
73158 2003-09-09  Paul Eggert  <eggert@twinsun.com>
73159
73160         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
73161         libc.
73162
73163 2003-09-09  Paul Eggert  <eggert@twinsun.com>
73164
73165         * README: New section: portability guidelines.
73166
73167 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
73168
73169         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
73170         C89 spec.
73171
73172 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
73173
73174         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
73175
73176 2003-09-08  Paul Eggert  <eggert@twinsun.com>
73177
73178         Assume C89 or better; remove K&R cruft.
73179         A few of these changes were first proposed by Derek Robert Price
73180         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
73181
73182         * lib/addext.c: Include <string.h> unconditionally.
73183         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
73184         Don't declare getenv or malloc.
73185
73186         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
73187         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
73188         (NULL): Remove.
73189         (find_stack_direction, alloca): Use prototypes.
73190
73191         * lib/atexit.c (atexit): Define using a prototype.
73192
73193         * lib/basename.c, dirname.c, stripslash.c:
73194         Include <string.h> unconditionally.
73195
73196         * lib/bcopy.c: Include <stddef.h>.
73197         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
73198
73199         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
73200
73201         * lib/error.h (error, error_at_line, error_print_progname)
73202         [! (defined (__STDC__) && __STDC__)]: Remove decls.
73203         * lib/error.c: Include error.h first, to check interface.
73204         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
73205         (VA_START): Remove; all uses changeed to va_start.
73206         (exit, strerror): Remove decls.
73207         (error_print_progname): Prototype uncondionally.
73208         Don't include <errno.h>; no longer needed.
73209         (private_strerror): Remove.
73210         (error_tail): Always define.
73211         (error, error_at_line): Assume C89 or better; always use prototypes.
73212         * lib/fatal.c: Include "fatal.h" first, to test interface.
73213         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
73214         (VA_START): Remove; all uses changed to va_start.
73215         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
73216         this case.
73217         (exit): Remove decl.
73218         (fatal): Prototype unconditionally.  Assume va_start works.
73219         Abort at end, to pacify gcc.
73220
73221         * lib/euidaccess.c (main): Define with a prototype.
73222
73223         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
73224
73225         * lib/exitfail.c: Include <stdlib.h> unconditionally.
73226
73227         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
73228         prototypes.
73229         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
73230         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
73231         (getenv): Remove decl.
73232         (fnmatch): Define using a prototype.
73233         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
73234         (FCT): Define using a prototype.
73235
73236         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
73237
73238         * lib/gethostname.c: Include <stddef.h>.
73239         (gethostname): Define with prototype.  Length is size_t, not int.
73240
73241 2003-09-08  Paul Eggert  <eggert@twinsun.com>
73242
73243         Assume C89 or better; remove K&R cruft.
73244         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
73245         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
73246         string.h, getenv, malloc.
73247         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
73248         headers.
73249         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
73250         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
73251         do not check for strerror.
73252         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
73253         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
73254         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
73255         do not check for doprnt or vprintf.
73256         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
73257         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
73258
73259 2003-09-08  Paul Eggert  <eggert@twinsun.com>
73260
73261         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
73262         getversion.c should have been removed then, but was accidentally
73263         preserved.
73264
73265         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
73266         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
73267
73268 2003-09-08  Karl Berry  <karl@gnu.org>
73269
73270         * config/config.sub, config.guess, srclistvars.sh: update from savannah
73271                 config, forget about prep.
73272
73273         * config/depcomp, missing: update from automake.
73274
73275 2003-09-07  Paul Eggert  <eggert@twinsun.com>
73276
73277         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
73278         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
73279
73280 2003-09-07  Paul Eggert  <eggert@twinsun.com>
73281
73282         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
73283         copy_tm_result.  Bug reported by Simon Josefsson in
73284         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
73285
73286 2003-09-06  Paul Eggert  <eggert@twinsun.com>
73287
73288         * m4/time_r.m4: New file.
73289         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
73290         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
73291         is. Check for timegm declaration.
73292         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
73293         Do not check for gmtime_r.
73294         Replace mktime if __mktime_internal does not exist and if mktime
73295         hasn't been replaced already.
73296
73297 2003-09-06  Paul Eggert  <eggert@twinsun.com>
73298
73299         * lib/time_r.c, lib/time_r.h: New files.
73300
73301         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
73302         __localtime_r.
73303         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
73304         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
73305
73306         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
73307         __gmtime_r.
73308         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
73309         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
73310         Include <time_r.h>.
73311
73312         * lib/timegm.c: Switch to glibc implementation, with the following
73313         changes:
73314         [defined HAVE_CONFIG_H]: Include <config.h>.
73315         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
73316         (__mktime_internal) [!defined _LIBC]: New decl.
73317         (__gmtime_r) [!defined _LIBC]: New macro and function.
73318         (timegm): Use a prototype, since gnulib assumes C89.
73319         Do not bother declaring tmp to be const, as it's not really usefu.
73320         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
73321         (timegm): Declare only if HAVE_DECL_TIMEGM.
73322
73323 2003-09-06  Paul Eggert  <eggert@twinsun.com>
73324
73325         * MODULES.html.sh (func_all_modules): Add time_r.
73326         * modules/time_r: New file.
73327         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
73328         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
73329
73330 2003-09-03  Paul Eggert  <eggert@twinsun.com>
73331
73332         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
73333         Bug reported by Lute Kamstra in
73334         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
73335
73336         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
73337         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
73338         course with correspondingly smaller numbers for tomorrow and
73339         yesterday.  From Tadayoshi Funaba.  Originally installed into
73340         sh-utils on 1999-08-07, but the patch got lost (I guess during the
73341         coreutils merge?).
73342
73343 2003-08-31  Simon Josefsson  <jas@extundo.com>
73344
73345         * modules/timegm: New file.
73346         * MODULES.html.sh (func_all_modules): Add timegm.
73347
73348 2003-08-31  Simon Josefsson  <jas@extundo.com>
73349
73350         * m4/timegm.m4: New file.
73351
73352 2003-08-31  Simon Josefsson  <jas@extundo.com>
73353
73354         * lib/timegm.h: New file.
73355         * lib/timegm.c: New file.  Based on
73356         wget-1.8.2/src/http.c:mktime_from_utc.
73357
73358 2003-08-31  Karl Berry  <karl@gnu.org>
73359
73360         * lib/argp.h: update from libc.
73361
73362 2003-08-28  Bruno Haible  <bruno@clisp.org>
73363
73364         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
73365         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
73366         followed by '#define fnmatch fnmatch_posix' gives an error.
73367
73368 2003-08-28  Bruno Haible  <bruno@clisp.org>
73369
73370         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
73371         warning on QNX, which defines O_BINARY to 000000.
73372
73373 2003-08-27  Jim Meyering  <jim@meyering.net>
73374
73375         * m4/mkstemp.m4: Require that the system mkstemp be able to create
73376         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
73377         would fail after 32.  Reported by Danny Levinson.  Details here:
73378         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
73379
73380 2003-08-24  Bruno Haible  <bruno@clisp.org>
73381
73382         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
73383         MSVC7 <stdio.h> is included later.
73384
73385 2003-08-22  Simon Josefsson  <jas@extundo.com>
73386
73387         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
73388
73389 2003-08-20  Karl Berry  <karl@gnu.org>
73390
73391         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
73392
73393 2003-08-20  Bruno Haible  <bruno@clisp.org>
73394
73395         * modules/progname: New file.
73396         * MODULES.html.sh (func_all_modules): Add progname.
73397
73398 2003-08-20  Bruno Haible  <bruno@clisp.org>
73399
73400         * lib/progname.h: New file, from GNU gettext.
73401         * lib/progname.c: New file, from GNU gettext.
73402         * lib/progreloc.c: New file, from GNU gettext.
73403
73404 2003-08-19  Jim Meyering  <jim@meyering.net>
73405
73406         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
73407         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
73408
73409 2003-08-19  Bruno Haible  <bruno@clisp.org>
73410
73411         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
73412         more.
73413
73414 2003-08-19  Bruno Haible  <bruno@clisp.org>
73415
73416         * lib/xstrdup.c: Assume <string.h> exists.
73417
73418 2003-08-18  Paul Eggert  <eggert@twinsun.com>
73419
73420         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
73421         in makefile rules.
73422
73423 2003-08-18  Jim Meyering  <jim@meyering.net>
73424
73425         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
73426         * m4/lib-ld.m4: Likewise.
73427
73428 2003-08-18  Jim Meyering  <jim@meyering.net>
73429
73430         * lib/setenv.h: Indent nested cpp directive.
73431         * lib/vasnprintf.c: Remove trailing blanks.
73432
73433 2003-08-17  Simon Josefsson  <jas@extundo.com>
73434
73435         * modules/xstrndup: New file.
73436         * MODULES.html.sh (func_all_modules): Add xstrndup.
73437
73438 2003-08-17  Simon Josefsson  <jas@extundo.com>
73439
73440         * modules/argp: Fix autoconf macro name. Add more dependencies.
73441
73442 2003-08-17  Simon Josefsson  <jas@extundo.com>
73443
73444         * m4/xstrndup.m4: New file.
73445
73446 2003-08-17  Simon Josefsson  <jas@extundo.com>
73447
73448         * m4/argp.m4: New file.
73449
73450 2003-08-17  Simon Josefsson  <jas@extundo.com>
73451             Bruno Haible  <bruno@clisp.org>
73452
73453         * lib/xstrndup.h: New file.
73454         * lib/xstrndup.c: New file.
73455
73456 2003-08-17  Bruno Haible  <bruno@clisp.org>
73457
73458         * modules/strndup (Files, Include): Add lib/strndup.h.
73459
73460 2003-08-17  Bruno Haible  <bruno@clisp.org>
73461
73462         * modules/euidaccess (Files): Add lib/euidaccess.h.
73463
73464 2003-08-17  Bruno Haible  <bruno@clisp.org>
73465
73466         * lib/strndup.h: New file.
73467
73468 2003-08-17  Bruno Haible  <bruno@clisp.org>
73469
73470         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
73471         like AC_GNU_SOURCE.
73472         * modules/extensions (configure.ac): Comment out the invocation of
73473         gl_USE_SYSTEM_EXTENSIONS.
73474
73475 2003-08-16  Paul Eggert  <eggert@twinsun.com>
73476
73477         Merges from coreutils, etc.
73478         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
73479         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
73480         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
73481         fixing a typo.
73482         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
73483         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
73484
73485 2003-08-16  Paul Eggert  <eggert@twinsun.com>
73486
73487         Document merge from coreutils.
73488         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
73489         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
73490         * modules/utime: Add m4/utimes-null.m4.
73491
73492 2003-08-16  Paul Eggert  <eggert@twinsun.com>
73493
73494         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
73495         space, undoing this 2003-08-12 change:
73496         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
73497
73498 2003-08-16  Paul Eggert  <eggert@twinsun.com>
73499
73500         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
73501         strtoul.c from libc, undoing this 2003-08-12 change:
73502         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
73503
73504 2003-08-16  Jim Meyering  <jim@meyering.net>
73505
73506         Merges from coreutils.
73507         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
73508         prefix.  Adjust cache variables similarly.  Create 500 rather than
73509         just 300 files, to exercise bug on Darwin6.5, too.
73510         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
73511         $missing_dir.
73512         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
73513         AM_SYS_POSIX_TERMIOS.
73514         Reported by mkc@mathdogs.com.
73515         Also change use of $am_cv_sys_posix_termios
73516         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
73517         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
73518         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
73519         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
73520         in /proc/mounts until it finds one with matching device number.  This
73521         is unnecessary when the FILE argument *is* a mount point.  No stat call
73522         is necessary in that case.  So, disable the statvfs-testing code on
73523         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
73524         as RedHat bug# 84846.
73525         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
73526         to 1MB, so as not to render systems with no stack size limit (e.g.,
73527         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
73528         Include <unistd.h>.  On some systems,
73529         it is required for the definition of _SC_PAGESIZE.
73530
73531 2003-08-16  Jim Meyering  <jim@meyering.net>
73532
73533         Merge from coreutils.
73534         * lib/xstrtoimax.c: #else #if -> #elif.
73535         * lib/xstrtoumax.c: Likewise.
73536
73537 2003-08-16  Jim Meyering  <jim@meyering.net>
73538
73539         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
73540         * m4/utimes.m4: Removed.
73541         * m4/utimes-null.m4: Renamed from utimes.m4.
73542
73543         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
73544         to 1MB, so as not to render systems with no stack size limit (e.g.,
73545         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
73546         Include <unistd.h>.  On some systems,
73547         it is required for the definition of _SC_PAGESIZE.
73548
73549 2003-08-16  Jim Meyering  <jim@meyering.net>
73550         and Paul Eggert  <eggert@cs.ucla.edu>
73551
73552         Merges from coreutils, etc.
73553
73554         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
73555         using the latest version from cvs.  This avoids problems with #line
73556         directives using a vendor (Sun) compiler.
73557         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
73558         Don't set GETGROUPS_LIB here; now it's
73559         done via getgroups.m4's wrapper function.
73560         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
73561         rather than just in sh-util/configure.in, so that the
73562         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
73563         same.
73564         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
73565         AC_FUNC_GETLOADAVG where to find getloadavg.c.
73566         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
73567         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
73568         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
73569         Remove code that is now done by the newly-required macros.
73570         Append $(EXEEXT) to DF_PROG.
73571         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
73572         Do not invoke or require the following here,
73573         since prereq.m4 or some gnulib .m4 now does this for us:
73574         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
73575         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
73576         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
73577         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
73578         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
73579         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
73580         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
73581         AC_FUNC_OBSTACK.
73582         Do not replace the following functions, as this is now the job
73583         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
73584         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
73585         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
73586         atexit getpass, strdup, getpagesize.
73587         Replace 'raise'.
73588         Do not check for the following functions, as this is now the job
73589         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
73590         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
73591         setregid.
73592         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
73593         Check for sys/sysctl.h.
73594         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
73595         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
73596         of checking for ssize_t ourselves.
73597
73598         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
73599         Require every macro that gnulib/modules/* suggests for us.
73600         (jm_PREREQ_ADDEXT): New macro.
73601         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
73602         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
73603
73604         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
73605         (gl_PHYSMEM): Use it.
73606         Also check for `table' function.
73607         Check for new headers and functions.
73608         Add check for sys/sysmp.h.
73609         With suggestions from Kaveh Ghazi.
73610         Ignore headers that are present but cannot be compiled.  This
73611         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
73612         C 5.4.
73613
73614 2003-08-15  Paul Eggert  <eggert@twinsun.com>
73615
73616         Document merge from coreutils.
73617         * modules/userspec: Depend on posixver.
73618         * modules/strftime: Depend on tzset.
73619
73620 2003-08-15  Paul Eggert  <eggert@twinsun.com>
73621
73622         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
73623         rather than tab, after '#' in shell-script copyright notices.
73624         Suggested by Bruno Haible.
73625
73626 2003-08-15  Paul Eggert  <eggert@twinsun.com>
73627
73628         * config/srclist-update: Use three spaces, rather than tab, after '#'
73629         in shell-script copyright notices.  Suggested by Bruno Haible.
73630         Remove unnecessary parenthesization in regular expression.
73631
73632 2003-08-15  Jim Meyering  <jim@meyering.net>
73633
73634         Merge from coreutils.
73635         * lib/xgethostname.c: Include <stdlib.h>.
73636         (xghostname): Don't exit for anything other than memory-related
73637         failure; just return NULL.
73638         * lib/userspec.c: Include "posixver.h".
73639         (parse_user_spec): Accept `.' as a separator only
73640         in pre-POSIX-200112 mode.
73641         * lib/strtoimax.c: Use #elif rather than #else #if.
73642         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
73643         Remove function, now that we can rely on a working tzset function.
73644         [!_LIBC]: Ensure that the required autoconf test has been run.
73645         [!defined _NL_CURRENT && HAVE_STRFTIME]:
73646         Use underlying_strftime for %r.
73647         * lib/sha.c: Merge in some clean-up and optimization changes from
73648         glibc.
73649         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
73650         Ensure that it is a multiple of 64.
73651         Rearrange loop exit tests so as to avoid performing an
73652         additional fread after encountering an error or EOF.
73653         * lib/realloc.c: Update copyright date.
73654
73655 2003-08-15  Jim Meyering  <jim@meyering.net>
73656         and Paul Eggert  <eggert@twinsun.com>
73657
73658         Merge from coreutils.
73659         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
73660         member but strut utmpx does not.  Needed for AIX 4.3.3.
73661         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
73662
73663 2003-08-15  Jim Meyering  <jim@meyering.net>
73664         and Paul Eggert  <eggert@cs.ucla.edu>
73665
73666         Merges from coreutils, etc.
73667         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
73668         Require gl_FUNC_TZSET_CLOBBER.
73669         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
73670         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
73671         members.
73672
73673 2003-08-14  Paul Eggert  <eggert@twinsun.com>
73674
73675         Help the merge from coreutils.
73676         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
73677         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
73678         * m4/tzset.m4: Use it too.
73679
73680 2003-08-14  Paul Eggert  <eggert@twinsun.com>
73681
73682         * modules/tzset: New file.
73683
73684 2003-08-14  Jim Meyering  <jim@meyering.net>
73685
73686         Merges from coreutils.
73687         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
73688         variable names, rather than @FNMATCH_H@.
73689         * modules/alloca: Likewise for $(ALLOCA_H).
73690
73691         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
73692         the three copies of the literal target, `fnmatch.h'.
73693         * modules/alloca (alloca.h): Likewise.
73694
73695 2003-08-14  Jim Meyering  <jim@meyering.net>
73696
73697         Merge from coreutils.
73698         * m4/tzset.m4: New file.
73699         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
73700         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
73701         otherwise, AIX 5.1 systems would end up using the latter.
73702         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
73703         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
73704         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
73705         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
73706
73707 2003-08-14  Jim Meyering  <jim@meyering.net>
73708
73709         Merge from coreutils.
73710         * lib/obstack.h: Whitespace changes.
73711         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
73712         and xcalloc return values.
73713         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
73714         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
73715         hang on OSF/1 5.1 for DIR on both local and remote file systems.
73716         Reported by (and fix confirmed by) Nelson H. F. Beebe.
73717         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
73718         error from mntctl.
73719         Use mntctl's return value to drive the entry-processing loop, since
73720         we can't rely on the value of the vmt_length member in the last
73721         entry.  On some systems doing so could result in exhausting
73722         virtual memory.  Based in part on a patch from Mike Jetzer.
73723
73724 2003-08-14  Jim Meyering  <jim@meyering.net>
73725         and Paul Eggert  <eggert@twinsun.com>
73726
73727         Merges from coreutils, plus other fixes.
73728         * lib/physmem.c: Merge in portability changes from gcc/libiberty
73729         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
73730         for credits and details.  Thanks to Kaveh Ghazi for helping
73731         to keep these files in sync.
73732         (ARRAY_SIZE): Define it.
73733         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
73734         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
73735         (memcasecmp): Don't assume size_t fits in unsigned int.
73736         Remove casts and duplicate code.
73737         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
73738         (memcpy): Remove definition.
73739         Merge in some clean-up and optimization changes from glibc.
73740         [BLOCKSIZE]: Move definition to top of file.
73741         Ensure that it is a multiple of 64.
73742         Rearrange loop exit tests so as to avoid performing an
73743         additional fread after encountering an error or EOF.
73744         * lib/md5.h (md5_uintptr): Define.
73745         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
73746         return to the initial working directory.  Preserve errno
73747         for caller.
73748         * lib/idcache.c: Include "xalloc.h".
73749         (xmalloc, xrealloc): Remove decls.
73750         (getuser): Remove casts no longer required in C89.
73751         * lib/human.c: Include stdio.h, for sprintf.
73752         * lib/group-member.c: Include "xalloc.h".
73753         (xmalloc, xrealloc): Remove decls.
73754         (get_group_info): Remove casts no longer required in C89.
73755         * lib/getusershell.c (readname): Remove casts no longer required in
73756         C89.
73757         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
73758         * lib/getline.c: Whitespace fix, from coreutils.
73759
73760 2003-08-13  Paul Eggert  <eggert@twinsun.com>
73761
73762         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
73763         Check for isascii.
73764
73765         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
73766         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
73767         Undo previous (whitespace-only) change.
73768
73769 2003-08-13  Paul Eggert  <eggert@twinsun.com>
73770
73771         * lib/exclude.c: Include <ctype.h>
73772         (IN_CTYPE_DOMAIN): New macro.
73773         (is_space): New fn.
73774         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
73775         and empty lines.
73776
73777         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
73778         Undo previous (whitespace-only) change.
73779
73780 2003-08-13  Paul Eggert  <eggert@twinsun.com>
73781
73782         * config/srclist-update: Change update back to the old behavior,
73783         leaving whitespace alone.  Use one 'sed' command rather than a
73784         pipeline.
73785         (fixlicense): Now a variable, not a function.
73786         (remove_trailing_blanks): Remove.
73787         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
73788         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
73789         Undo previous (whitespace-only) change.
73790
73791 2003-08-12  Paul Eggert  <eggert@twinsun.com>
73792
73793         Merge from coreutils.
73794         * modules/euidaccess: Add lib_SOURCES, include for new
73795         file euidaccess.h
73796
73797 2003-08-12  Paul Eggert  <eggert@twinsun.com>
73798
73799         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
73800         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
73801         Normalize leading white space and remove trailing white space.
73802
73803         Merge from coreutils
73804         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
73805
73806         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
73807         0.12.1.  These files are now being upgraded automatically by
73808         ../config/srclist-update.
73809
73810 2003-08-12  Paul Eggert  <eggert@twinsun.com>
73811
73812         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
73813         Normalize leading white space and remove trailing white space.
73814         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
73815         notice, as per ../config/srclist-update.
73816
73817         Merge from coreutils.
73818         * lib/euidaccess.h: New file.
73819         * lib/euidaccess.c: Include it.
73820         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
73821         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
73822         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
73823
73824 2003-08-12  Paul Eggert  <eggert@twinsun.com>
73825
73826         * config/srclist-update: Add copyright notice.
73827         (remove_id_lines, remove_trailing_blanks): New constants.
73828         (fixfile): Use them to normalize spacing a bit in copied files.
73829         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
73830         Normalize leading white space and remove trailing white space.
73831
73832         * config/texinfo.tex: Sync with texinfo.
73833
73834         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
73835         strtoul.c from libc, to merge coreutils whitespace changes.
73836
73837         * config/srclist.txt: Get the following m4 files from gettext:
73838         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
73839         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
73840         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
73841         wint_t.m4.
73842
73843 2003-08-12  Karl Berry  <karl@gnu.org>
73844
73845         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
73846         been made.
73847
73848 2003-08-11  Paul Eggert  <eggert@twinsun.com>
73849
73850         * modules/gnu-source, m4/gnu-source.m4:
73851         Remove; we're assuming Autoconf 2.54 or later now.
73852         Suggested by Bruno Haible.
73853         * MODULES.html.sh (func_all_modules): Remove gnu-source.
73854
73855 2003-08-11  Bruno Haible  <bruno@clisp.org>
73856
73857         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
73858
73859 2003-08-11  Bruno Haible  <bruno@clisp.org>
73860
73861         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
73862         (vasnprintf): Use it instead of wcslen.
73863
73864 2003-08-11  Bruno Haible  <bruno@clisp.org>
73865
73866         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
73867         value to ensure that _Bool promotes to int. Use #define for _Bool when
73868         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
73869
73870 2003-08-10  Karl Berry  <karl@gnu.org>
73871
73872         * lib/regex.h: update from libc (whitespace fix).
73873
73874 2003-08-09  Paul Eggert  <eggert@twinsun.com>
73875
73876         Merge some files from coreutils.  These changes were
73877         originally made by Jim Meyering.
73878         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
73879         many older Unixes require this.
73880         * lib/alloca.c (alloca): Remove cast to argument of free;
73881         no longer needed in C89.
73882         * lib/alloca_.h, regex.h: Fix white space to match
73883         what GNU indent does.
73884
73885 2003-08-09  Paul Eggert  <eggert@twinsun.com>
73886
73887         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
73888         apparently Emacs's Unicode mode got confused before my 2003-08-05
73889         checkin.
73890
73891 2003-08-08  Paul Eggert  <eggert@twinsun.com>
73892
73893         * m4/extensions.m4: New file.
73894         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
73895         Require gl_USE_SYSTEM_EXTENSIONS.
73896         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
73897         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
73898
73899 2003-08-08  Paul Eggert  <eggert@twinsun.com>
73900
73901         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
73902         * modules/extensions, modules/gnu-source: New files.
73903         * modules/timespec, modules/unlocked-io: Depend on extensions.
73904
73905 2003-08-07  Paul Eggert  <eggert@twinsun.com>
73906
73907         * modules/restrict: New file.
73908         * MODULES.html.sh (func_all_modules): Add restrict.
73909         * modules/regex: Depend on restrict.
73910
73911 2003-08-07  Paul Eggert  <eggert@twinsun.com>
73912
73913         * m4/restrict.m4: New file.
73914         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
73915
73916 2003-08-07  Bruno Haible  <bruno@clisp.org>
73917
73918         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
73919         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
73920
73921 2003-08-07  Bruno Haible  <bruno@clisp.org>
73922
73923         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
73924         makes the module 'getndelim2' compatible with the module 'getline'.
73925
73926 2003-08-05  Paul Eggert  <eggert@twinsun.com>
73927
73928         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
73929         byte with "\201" to avoid glitches when editing that source file
73930         with multi-gnome-terminal.
73931
73932 2003-08-05  Paul Eggert  <eggert@twinsun.com>
73933
73934         * lib/bumpalloc.h: Remove.
73935
73936 2003-08-05  Paul Eggert  <eggert@twinsun.com>
73937
73938         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
73939         * modules/bumpalloc: Remove.
73940
73941 2003-08-04  Paul Eggert  <eggert@twinsun.com>
73942
73943         * lib/getloadavg.c: Change copyright notice and spacing to conform to
73944         GNU coding style.
73945
73946         Merge from coreutils.
73947         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
73948         1. From glibc.
73949         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
73950         from Karl Berry, implemented by Jim Meyering.
73951         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
73952         from Dmitry V. Levin.
73953         Remove anachronistic cast of xrealloc.
73954         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
73955         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
73956         type. Otherwise, it wouldn't compile with at least /bin/cc on
73957         ymp-cray-unicos9.0.2.X.
73958         Combine two mostly-identical uses of alloca into one.
73959         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
73960
73961 2003-08-04  Dave Love  <d.love@dl.ac.uk>
73962
73963         [From Emacs.]
73964
73965         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
73966         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
73967         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
73968         obsolete NLIST_NAME_UNION.
73969         [__GNU__]: Undef BSD and FSCALE.
73970         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
73971
73972 2003-08-03  Paul Eggert  <eggert@twinsun.com>
73973
73974         * lib/stdbool_.h (_Bool): Make it signed char, instead of
73975         an enum type, so that it's guaranteed to promote to int.  See:
73976         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
73977
73978 2003-08-03  Karl Berry  <karl@gnu.org>
73979
73980         * config/depcomp: update from automake.
73981
73982 2003-07-31  Paul Eggert  <eggert@twinsun.com>
73983
73984         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
73985         (strerror): Don't assume that a printable int fits in 14 bytes.
73986
73987 2003-07-31  Bruno Haible  <bruno@clisp.org>
73988
73989         * modules/getpass-gnu: New file.
73990         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
73991
73992 2003-07-31  Bruno Haible  <bruno@clisp.org>
73993
73994         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
73995
73996 2003-07-24  Karl Berry  <karl@gnu.org>
73997
73998         * config/missing: update from automake.
73999
74000 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
74001             Bruno Haible  <bruno@clisp.org>
74002
74003         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
74004         * lib/getline.c (getline, getdelim): Likewise.
74005         Remove _GNU_SOURCE define; now it's defined in config.h through
74006         m4/getline.m4.
74007
74008 2003-07-23  Karl Berry  <karl@gnu.org>
74009
74010         * config/config.sub: update from prep.
74011
74012 2003-07-22  Paul Eggert  <eggert@twinsun.com>
74013
74014         * modules/xalloc (Depends-on): Add exitfail.
74015         * modules/xmemcoll: Likewise.
74016
74017 2003-07-22  Paul Eggert  <eggert@twinsun.com>
74018
74019         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
74020         over-parenthesization in macros.
74021
74022         Sync with coreutils.
74023
74024         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
74025         required by C99.
74026
74027         Use `exit_failure' for xalloc and xmemcoll instead of their own
74028         private exit-failure variables.
74029         * lib/xalloc.h (xalloc_exit_failure): Remove.
74030         * lib/xmalloc.c: Likewise.  Include exitfail.h.
74031         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
74032         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
74033         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
74034         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
74035
74036 2003-07-20  Jim Meyering  <jim@meyering.net>
74037
74038         * modules/closeout (Depends-on): Add exitfail.
74039         Suggestion from Bruno Haible.
74040
74041 2003-07-19  Karl Berry  <karl@gnu.org>
74042
74043         * config/config.sub: update from prep.
74044
74045 2003-07-18  Paul Eggert  <eggert@twinsun.com>
74046
74047         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
74048         Remove.
74049         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
74050         to test that it can stand by itself.  Include "exitfail.h".
74051         Clients should set exit_failure instead.
74052         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
74053
74054 2003-07-18  Bruno Haible  <bruno@clisp.org>
74055
74056         * modules/getndelim2: New file.
74057         * modules/getline: Share files with module getndelim2.
74058         * modules/getnline: Depend on getndelim2 instead of sharing files with
74059         it. Add getnline.c to lib_SOURCES.
74060         * MODULES.html.sh (func_all_modules): Add getndelim2.
74061
74062 2003-07-18  Bruno Haible  <bruno@clisp.org>
74063
74064         * m4/getndelim2.m4: New file.
74065         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
74066         invoke gl_PREREQ_GETNDELIM2.
74067         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
74068         gl_PREREQ_GETNDELIM2.
74069         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
74070         gl_GETNDELIM2.
74071
74072 2003-07-18  Bruno Haible  <bruno@clisp.org>
74073
74074         * lib/getndelim2.h: New file.
74075         * lib/getndelim2.c: Make into a module of its own. Include config.h,
74076         getndelim2.h.
74077         (getndelim2): Make non-static. Change return type to ssize_t.
74078         * lib/getline.h: Change argument names.
74079         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
74080         * lib/getnline.c: Include getndelim2.h.
74081
74082 2003-07-18  Andreas Schwab  <schwab@suse.de>
74083
74084         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
74085
74086 2003-07-17  Karl Berry  <karl@gnu.org>
74087
74088         * config/config.sub: update from prep.
74089
74090 2003-07-17  Bruno Haible  <bruno@clisp.org>
74091
74092         * modules/getnline: New file.
74093         * modules/getline: Add lib/getndelim2.c to source file list.
74094         * MODULES.html.sh (func_all_modules): Add getnline.
74095
74096 2003-07-17  Bruno Haible  <bruno@clisp.org>
74097
74098         * m4/getnline.m4: New file.
74099
74100 2003-07-17  Bruno Haible  <bruno@clisp.org>
74101
74102         * m4/Makefile.am.in: Remove file.
74103         * m4/Makefile.am: Remove file.
74104         * m4/Makefile.in: Remove file.
74105
74106 2003-07-17  Bruno Haible  <bruno@clisp.org>
74107
74108         * lib/getnline.h: New file.
74109         * lib/getnline.c: New file.
74110         * lib/getndelim2.c: New file, extracted from getline.c.
74111         (getndelim2): Renamed from getdelim2, with added nmax argument.
74112         * lib/getline.c: Include getndelim2.c.
74113         (getdelim2): Moved out to getndelim2.c.
74114         (getline, getdelim): Update.
74115
74116 2003-07-17  Bruno Haible  <bruno@clisp.org>
74117
74118         * lib/Makefile.am: Remove file.
74119         * lib/Makefile.in: Remove file.
74120
74121 2003-07-17  Bruno Haible  <bruno@clisp.org>
74122
74123         * configure.in: Remove file.
74124         * Makefile.in: Remove file.
74125
74126 2003-07-17  Bruno Haible  <bruno@clisp.org>
74127
74128         * MODULES.html.sh: Put the </BODY> right before </HTML>.
74129
74130 2003-07-16  Karl Berry  <karl@gnu.org>
74131
74132         * config/srclist-update: was running fixlicense twice, which caused
74133                 texinfo.tex to be nullified for some reason.  Simplify,
74134                 $gplsrc is no longer needed as far as I can see?
74135
74136 2003-07-16  Jim Meyering  <jim@meyering.net>
74137
74138         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
74139
74140 2003-07-15  Paul Eggert  <eggert@twinsun.com>
74141
74142         * config/srclist.txt: Get the following files from gettext-runtime/intl
74143         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
74144         ref-del.sin.  From Bruno Haible.
74145         * config/srclist-update (fixfile): Change grep pattern again, since the
74146         previous fix didn't work (there was another trailing $).  Use
74147         '[$]' to escape the $s.
74148
74149 2003-07-15  Karl Berry  <karl@gnu.org>
74150
74151         * lib/vasnprintf.c: update from gettext.
74152
74153 2003-07-15  Karl Berry  <karl@gnu.org>
74154
74155         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
74156         gets expanded when surrounded by '$'.
74157
74158 2003-07-15  Jim Meyering  <jim@meyering.net>
74159
74160         * modules/save-cwd: Don't depend on error.  From Derek Price.
74161
74162 2003-07-15  Jim Meyering  <jim@meyering.net>
74163
74164         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
74165
74166 2003-07-14  Simon Josefsson  <jas@extundo.com>
74167
74168         * modules/mempcpy: New file.
74169         * MODULES.html.sh (func_all_modules): Add mempcpy.
74170
74171 2003-07-14  Simon Josefsson  <jas@extundo.com>
74172
74173         * m4/mempcpy.m4: New file.
74174
74175 2003-07-14  Simon Josefsson  <jas@extundo.com>
74176
74177         * lib/mempcpy.h: New file.
74178         * lib/mempcpy.c: New file.
74179
74180 2003-07-14  Paul Eggert  <eggert@twinsun.com>
74181
74182         * modules/getdate, modules/posixtm: Depend on mktime.
74183
74184 2003-07-14  Paul Eggert  <eggert@twinsun.com>
74185
74186         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
74187         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
74188         unicodeio.c, unicodeio.h, unlocked-io.h:
74189         Switch from LGPL to GPL.
74190
74191 2003-07-14  Paul Eggert  <eggert@twinsun.com>
74192
74193         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
74194         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
74195         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
74196         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
74197         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
74198         updated automatically by ../config/srclist-update.  This changes
74199         their license from LPGL to GPL.
74200
74201 2003-07-14  Paul Eggert  <eggert@twinsun.com>
74202
74203         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
74204         assumed to refer to the root of the most recent stable gettext version.
74205         * config/srclistvars.sh: Add defaults for eggert.
74206         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
74207         Match "This program" as well as "The program".  This is needed
74208         for gettext.
74209
74210 2003-07-14  Jim Meyering  <jim@meyering.net>
74211
74212         Don't emit diagnostics.  Let callers do that.
74213         * lib/save-cwd.c: Don't include "error.h".
74214         (save_cwd): Don't call error.  Ensure that errno is valid
74215         when returning nonzero.
74216
74217         * lib/save-cwd.h (restore_cwd): Update prototype.
74218         * lib/save-cwd.c (restore_cwd): Remove two parameters.
74219         Simplify.  Don't call error upon failure.  Let callers do that.
74220         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
74221         when auditing is enabled.  But don't bother updating the #if.
74222
74223 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
74224
74225         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
74226         it breaks C++ compilation.
74227         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
74228
74229 2003-07-10  Simon Josefsson  <jas@extundo.com>
74230
74231         * modules/strchrnul (Makefile.am): Add strchrnul.h.
74232
74233 2003-07-10  Jim Meyering  <jim@meyering.net>
74234
74235         * m4/clock_time.m4: Remove trailing blank.
74236         * m4/intmax_t.m4: Likewise.
74237
74238 2003-07-10  Jim Meyering  <jim@meyering.net>
74239
74240         * lib/vasnprintf.c: Remove trailing blanks.
74241         Make cpp indentation consistent.
74242
74243 2003-07-09  Paul Eggert  <eggert@twinsun.com>
74244
74245         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
74246         posixver.c, strftime.c, strnlen.c, strverscmp.c:
74247         Switch from LGPL to GPL.
74248
74249 2003-07-09  Paul Eggert  <eggert@twinsun.com>
74250
74251         * config/srclist.txt: Sort sublists.  Add
74252         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
74253         that differ from gnulib for one reason or another; we'd like this list
74254         to be smaller but for now let's document what we have.
74255
74256 2003-07-08  Paul Eggert  <eggert@twinsun.com>
74257
74258         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
74259         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
74260         and sweeter "eval x=$x".
74261         * config/srclist.txt: Get lib/argp* from glibc.
74262
74263 2003-07-07  Paul Eggert  <eggert@twinsun.com>
74264
74265         * lib/mktime.c: Fix some boundary cases and remove need for floating
74266         point.
74267
74268         Issue a compile-time diagnostic if time_t is floating point, or if
74269         two's complement arithmetic is not in effect, or if arithmetic
74270         right shift does not propagate the sign.  These assumptions were
74271         all in the original code but they weren't checked.
74272
74273         (TIME_T_MIDPOINT, verify): New macros.
74274         (__isleap): Remove; it has integer overflow problems.
74275         (leapyear): New function, without those problems.
74276         (ydhms_tm_diff): Remove; splitting into two parts.
74277         (ydhms_diff): New function, containing the arithmetic part of
74278         the old ydhms_tm_diff function.  Issue a compile-time
74279         diagnostic if we are not using C99 integer division.
74280         Avoid casts when possible.
74281         (guess_time_tm): New function, containing the checking part of
74282         the old ydhms_tm_diff function.  Return the new value, rather than
74283         the difference between it and the old.  Accept a new argument T
74284         so that *T specifies the old value.  Check for overflow in the result.
74285
74286         (__mktime_internal): Use a time_t offset, not a long int offset.
74287         This undoes the 2003-06-04 change, which is no longer needed now
74288         that we have better overflow checking.
74289         (localtime_offset): Likewise.
74290
74291         (__mktime_internal): Avoid harmful overflow on hosts where time_t
74292         and long are 64-bit but int is only 32-bit.
74293         (ydhms_diff): Use long int to store year1 and yday1.
74294         Issue a compile-time diagnostic if long int is not wide enough.
74295
74296         (__mktime_internal): Use long int to store adjusted year and yday.
74297         Use plain C rather than preprocessor commands, if that doesn't
74298         affect efficiency.
74299         Check for overflow (and try to repair) after each probe
74300         rather than checking only at the very end.  This avoids some bugs
74301         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
74302         does not equal GMT offset at maximum time).
74303         Use integer to check for overflow rather than floating point; this
74304         is more portable to non-IEEE hosts, and is a tad faster.
74305         When we detect that we are oscillating between two values,
74306         don't check whether tm_isdst has the requested value, since
74307         we already know the answer.  When tm_isdst has the wrong value,
74308         use a different heuristic to find the right one, based on the
74309         extreme values actually observed in practice in tz2003a,
74310         rather than the (overly optimistic) "previous 3 calendar quarters".
74311
74312         (not_equal_tm, print_tm, check_result): Use "const T" rather than
74313         "T const" to accommodate glibc style.
74314         (check_result): Use less-confusing report format.  "long" -> "long int.
74315         (main): Likewise.
74316         Don't loop if the iteration overflows time_t.
74317         Allow a negative step in the iteration.
74318
74319 2003-07-06  Karl Berry  <karl@gnu.org>
74320
74321         * config/depcomp: update from automake.
74322         * config/config.sub: update from prep.
74323
74324 2003-07-03  Karl Berry  <karl@gnu.org>
74325
74326         * config/config.guess: update from prep.
74327
74328 2003-07-01  Paul Eggert  <eggert@twinsun.com>
74329
74330         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
74331         xreadlink.c now includes it unconditionally.
74332
74333 2003-07-01  Paul Eggert  <eggert@twinsun.com>
74334
74335         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
74336         having it depend on HAVE_SYS_TYPES_H.
74337
74338 2003-07-01  Bruno Haible  <bruno@clisp.org>
74339
74340         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
74341         <sys/types.h> should be sufficient.
74342         Reported by Paul Eggert.
74343
74344 2003-06-26  Karl Berry  <karl@gnu.org>
74345
74346         * config/depcomp: update from automake.
74347
74348 2003-06-26  Bruno Haible  <bruno@clisp.org>
74349
74350         * modules/human: Depend on module stdbool.
74351
74352 2003-06-25  Bruno Haible  <bruno@clisp.org>
74353
74354         * modules/readlink: New file.
74355         * modules/xreadlink: Depend on it.
74356         * MODULES.html.sh (func_all_modules): Add readlink.
74357
74358 2003-06-25  Bruno Haible  <bruno@clisp.org>
74359
74360         * m4/readlink.m4: New file.
74361
74362 2003-06-25  Bruno Haible  <bruno@clisp.org>
74363
74364         * lib/readlink.c: New file.
74365
74366 2003-06-22  Karl Berry  <karl@gnu.org>
74367
74368         * config/srclist.txt: update mkinstalldirs from automake.
74369         * config/mkinstalldirs: update.
74370
74371 2003-06-22  Bruno Haible  <bruno@clisp.org>
74372
74373         Portability to mingw32.
74374         * m4/ssize_t.m4: New file, from GNU gettext.
74375         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
74376         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
74377
74378 2003-06-22  Bruno Haible  <bruno@clisp.org>
74379
74380         * modules/safe-read: Add m4/ssize_t.m4.
74381         * modules/xreadlink: Add m4/ssize_t.m4.
74382
74383 2003-06-20  Bruno Haible  <bruno@clisp.org>
74384
74385         Assume C89, so PARAMS isn't needed.
74386         * lib/unicodeio.h (PARAMS): Remove.
74387         * lib/unicodeio.c: Don't use PARAMS.
74388
74389 2003-06-18  Karl Berry  <karl@gnu.org>
74390
74391         * config/config.{guess,sub}: update from prep.
74392
74393 2003-06-18  Jim Meyering  <jim@meyering.net>
74394
74395         Merge changes from coreutils.
74396         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
74397         Remove explicit declarations of xmalloc and realloc.
74398         Include xalloc.h.
74399         (read_utmp): Remove anachronistic cast of xmalloc.
74400
74401 2003-06-17  Paul Eggert  <eggert@twinsun.com>
74402
74403         Assume C89, so PARAMS isn't needed.
74404         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
74405         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
74406         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
74407         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
74408         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
74409         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
74410         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
74411         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
74412         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
74413         lib/xstrtod.h, lib/xstrtol.h: Likewise.
74414         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
74415         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
74416         no longer needed. Anyway, config.h should always be included before any
74417         other file.
74418
74419 2003-06-11  Simon Josefsson  <jas@extundo.com>
74420
74421         * modules/sysexits: New file.
74422         * MODULES.html.sh (func_all_modules): Add sysexits.
74423
74424 2003-06-11  Simon Josefsson  <jas@extundo.com>
74425
74426         * lib/sysexit_.h: New file.
74427
74428 2003-06-11  Derek Price  <derek@ximbiot.com>
74429
74430         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
74431         necessary.
74432
74433 2003-06-11  Bruno Haible  <bruno@clisp.org>
74434
74435         * m4/sysexits.m4: New file.
74436
74437 2003-06-10  Simon Josefsson  <jas@extundo.com>
74438
74439         * lib/argp.h: New file, from glibc.
74440         * lib/argp-ba.c: New file, from glibc.
74441         * lib/argp-eexst.c: New file, from glibc.
74442         * lib/argp-fmtstream.c: New file, from glibc.
74443         * lib/argp-fmtstream.h: New file, from glibc.
74444         * lib/argp-fs-xinl.c: New file, from glibc.
74445         * lib/argp-help.c: New file, from glibc.
74446         * lib/argp-namefrob.h: New file, from glibc.
74447         * lib/argp-parse.c: New file, from glibc.
74448         * lib/argp-pv.c: New file, from glibc.
74449         * lib/argp-pvh.c: New file, from glibc.
74450         * lib/argp-xinl.c: New file, from glibc.
74451
74452 2003-06-10  Simon Josefsson  <jas@extundo.com>
74453
74454         * modules/strchrnul: New file.
74455
74456 2003-06-10  Simon Josefsson  <jas@extundo.com>
74457
74458         * modules/argp: New file.
74459
74460 2003-06-10  Simon Josefsson  <jas@extundo.com>
74461
74462         * m4/strchrnul.m4: New file.
74463
74464 2003-06-10  Simon Josefsson  <jas@extundo.com>
74465
74466         * lib/strchrnul.h: New file.
74467         * lib/strchrnul.c: New file.
74468
74469 2003-06-10  Bruno Haible  <bruno@clisp.org>
74470
74471         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
74472
74473 2003-06-07  Karl Berry  <karl@gnu.org>
74474
74475         * config/config.{guess,sub}: update from prep.
74476
74477 2003-06-07  Jim Meyering  <jim@meyering.net>
74478
74479         * modules/strtod: Use $(...) notation, not @...@ for
74480         AC_REPLACE'd variables.
74481         * modules/localcharset: Likewise.
74482
74483 2003-06-07  Jim Meyering  <jim@meyering.net>
74484
74485         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
74486         in place of my name in the copyright comment.
74487         Remove definition and uses of __P.
74488
74489         From coreutils.
74490         * lib/stat.c: Don't declare xmalloc explicitly.
74491         Instead, include "xalloc.h".
74492         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
74493         xrealloc, and xcalloc return values.
74494         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
74495         Improve comment.
74496         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
74497
74498 2003-06-07  Bruno Haible  <bruno@clisp.org>
74499
74500         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
74501         avoid AC_CONFIG_LINKS.
74502         * modules/fnmatch (Makefile.am): Use explicit creation rule for
74503         fnmatch.h, to avoid AC_CONFIG_LINKS.
74504         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
74505
74506 2003-06-07  Bruno Haible  <bruno@clisp.org>
74507
74508         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
74509         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
74510         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
74511         directory.
74512         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
74513         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
74514         directory.
74515
74516 2003-06-06  Jim Meyering  <jim@meyering.net>
74517
74518         Merge from coreutils.
74519         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
74520         Consolidate declarations and initializations of *_base* locals.
74521
74522         Merge from coreutils.
74523         This avoids a core dump on systems without GNU putenv,
74524         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
74525         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
74526         (unsetenv): New static function, from GNU libc.
74527         (rpl_putenv): Use it.
74528
74529         * lib/modechange.c: Remove trailing blanks.
74530
74531         Merge from coreutils.
74532         * lib/fsusage.c: Remove declaration of statfs.
74533         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
74534
74535         * lib/posixtm.c: Include <stdbool.h> unconditionally.
74536
74537 2003-06-06  Jim Meyering  <jim@meyering.net>
74538
74539         * lib/stdbool_.h: Renamed from stdbool.h.in.
74540
74541 2003-06-06  Jim Meyering  <jim@meyering.net>
74542             Bruno Haible  <bruno@clisp.org>
74543
74544         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
74545         Adjust Makefile.am snippet not to redirect directly to target.
74546         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
74547
74548 2003-06-05  Paul Eggert  <eggert@twinsun.com>
74549
74550         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
74551         mismatch, look in future quarters as well as past.  This fixes a
74552         bug when processing fall-backwards gaps immediately after a long
74553         period of daylight-saving time.
74554
74555         * lib/mktime.c: Assume freestanding C89 or better.
74556         (HAVE_LIMITS_H): Remove.  Assume it's 1.
74557         (__P): Remove; not used.
74558         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
74559         (mktime, not_equal_tm, print_tm, check_result,
74560         main): Use prototypes.  Use const * where appropriate.
74561         (main): Fix typo in testing code that uncovered by above changes.
74562         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
74563
74564 2003-06-04  Paul Eggert  <eggert@twinsun.com>
74565
74566         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
74567         locale.h, localeconv.  This merges changes from coreutils.
74568
74569         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
74570         It can be removed after the next Autoconf is released.
74571         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
74572         needed.
74573
74574 2003-06-04  Paul Eggert  <eggert@twinsun.com>
74575
74576         * lib/mktime.c: Fix Debian bug 177940
74577         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
74578         (localtime_offset): Now long int, not time_t, because we want it
74579         to be guaranteed to be signed.  All uses changed.
74580         (__mktime_internal): If overflow would occur when adding offset,
74581         don't add it.
74582
74583         Merge 'human' changes from coreutils.  Rewrite to support
74584         locale-specific notations like thousands separators.
74585         * lib/human.c: Simplify authorship notice.
74586         Include human.h immediately after config.h.
74587         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
74588         <limits.h>: Do not include, since human.h does.
74589         (SIZE_MAX, UINTMAX_MAX): New macros.
74590         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
74591         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
74592         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
74593         (power_letter): Renamed from suffixes.
74594         (generate_suffix_backwards): Remove.
74595         (adjust_value): Now takes int style (because of human.h changes)
74596         and long double value (for greater precision on some platforms).
74597         (group_number): New function.
74598         (human_readable): Use it.  Use integer options, not enum.
74599         Put the options before the sizes in the arg list.
74600         Support all the new options.
74601         The old human_readable function has been removed;
74602         use inttostr.h instead.
74603         (human_readable, default_block_size, humblock):
74604         Use uintmax_t, not int, for block sizes.
74605         (human_readable_inexact, block_size_types): Remove.
74606         (block_size_opts): New constant.
74607         (human_options): Renamed from human_block_size, with new signature
74608         that allows block sizes up to UINTMAX_MAX.  All callers changed.
74609         * lib/human.h: Add copyright and authorship notice.
74610         Include <limits.h> and <stdbool.h> unconditionally.
74611         (PARAMS): Remove.  All uses removed.
74612         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
74613         (enum human_inexact_style): Remove tag; now a nameless enum.
74614         (human_floor, human_ceiling, human_round_to_even): Now have
74615         values 2, 0, 1 rather than -1, 1, 0.
74616         (human_group_digits, human_suppress_point_zero, human_autoscale,
74617         human_base_1024, human_SI, human_B): New constants.
74618         (human_readable_inexact, human_block_size): Remove.
74619         (human_readable): Size args are now uintmax_t, not int.
74620         (human_options): New decl.
74621
74622         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
74623         unnecessary now that we assume C89 or better.  This change
74624         imported from coreutils.
74625
74626         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
74627         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
74628         in the 2003-05-30 sync from glibc.
74629
74630         .h files should stand alone, but we shouldn't include <sys/types.h>
74631         if we can get away with just <stddef.h>.
74632
74633         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
74634         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
74635         rather than <sys/types.h>, as we merely need size_t.
74636         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
74637         to get size_t.
74638         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
74639         Include <stdio.h>, to get FILE.
74640         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
74641         memcasecmp.h has included <stddef.h> and all we need is size_t.
74642         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
74643         our interface, instead of including <sys/types.h>
74644
74645 2003-06-04  Paul Eggert  <eggert@twinsun.com>
74646
74647         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
74648         now, as glibc mktime is buggy on non-glibc systems.
74649
74650 2003-06-03  Karl Berry  <karl@gnu.org>
74651
74652         * config/config.sub: update from prep.
74653
74654 2003-06-02  Paul Eggert  <eggert@twinsun.com>
74655
74656         [from coreutils]
74657         Fix some minor time-related bugs with POSIX time arguments.
74658         Some valid time stamps were being rejected (notably -1, and
74659         time stamps before 1900 on 64-bit hosts).  And some invalid
74660         time stamps were being accepted, e.g. September 31.
74661
74662         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
74663         that we can return (time_t) -1 successfully.
74664         * lib/posixtm.c: Likewise.
74665         [HAVE_STDBOOL_H]: Include <stdbool.h>.
74666         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
74667         (t): Remove static var.
74668         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
74669         of static var.  All uses changed.
74670         (year): Do not reject years before 1900; they can occur with
74671         64-bit time_t.
74672         (posix_time_parse): Do not check for out-of-range components;
74673         that is now the caller's responsibility, since our checks were
74674         only approximations.
74675         (posixtime): Use mktime to check for out-of-range components,
74676         since it knows them exactly.
74677         If mktime returns (time_t) -1, check whether an error actually occurred
74678         by invoking localtime on -1.
74679         (main) [TEST_POSIXTIME]: Check for input data errors, and report
74680         posixtime failures better.
74681         Improve the test data (in comments only).
74682
74683 2003-06-02  Karl Berry  <karl@gnu.org>
74684
74685         * config/mkinstalldirs (version): new variable.
74686         (--version): new option.
74687         (usage): improve message.
74688
74689 2003-05-30  Karl Berry  <karl@gnu.org>
74690
74691         * lib/mktime.c: update from libc.
74692
74693 2003-05-30  Bruno Haible  <bruno@clisp.org>
74694
74695         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
74696         * config/config.rpath: Upgrade to gettext-0.12.1.
74697
74698 2003-05-30  Bruno Haible  <bruno@clisp.org>
74699
74700         * m4/gettext.m4: Upgrade to gettext-0.12.1.
74701         * m4/nls.m4: New file, from gettext-0.12.1.
74702         * m4/po.m4: New file, from gettext-0.12.1.
74703         * m4/progtest.m4: Upgrade to gettext-0.12.1.
74704
74705 2003-05-30  Bruno Haible  <bruno@clisp.org>
74706
74707         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
74708         * lib/localcharset.h: Likewise.
74709         * lib/localcharset.c: Likewise.
74710
74711 2003-05-29  Karl Berry  <karl@gnu.org>
74712
74713         * config/config.rpath: update from gettext.
74714
74715 2003-05-28  Paul Eggert  <eggert@twinsun.com>
74716
74717         Assume the headers required for C89 freestanding compilers.
74718         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
74719         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
74720         * m4/human.m4 (gl_HUMAN): Likewise.
74721         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
74722         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
74723         * m4/userspec.m4 (gl_USERSPEC): Likewise.
74724         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
74725         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
74726         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
74727
74728 2003-05-28  Paul Eggert  <eggert@twinsun.com>
74729
74730         Assume the headers required for C89 freestanding compilers.
74731         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
74732         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
74733         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
74734         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
74735         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
74736         define, since <limits.h> is guaranteed to do that.
74737         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
74738         * lib/exclude.c: Include <stdbool.h> unconditionally.
74739         * lib/tempname.c: Include <stddef.h> unconditionally.
74740         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
74741         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
74742         <stddef.h> does that.
74743         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
74744         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
74745         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
74746         needed.
74747         * lib/xstrtol.c: Likewise.
74748         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
74749         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
74750
74751         * lib/addext.c (addext): Use assignment rather than cast, to avoid
74752         warnings on some platforms.
74753
74754         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
74755         arbitrarily.
74756
74757 2003-05-26  Jim Meyering  <jim@meyering.net>
74758
74759         Merge in a change from coreutils:
74760         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
74761         that is guaranteed to be `no'.  Use `no_such_member' to indicate
74762         that condition, rather than `-1' which is slightly misleading.
74763         Change the name of the cache variable to have the gl_ prefix.
74764         Prompted by a patch from Richard Dawe for DJGPP.
74765
74766 2003-05-24  Karl Berry  <karl@gnu.org>
74767
74768         * config/config.guess: update from prep.
74769
74770 2003-05-22  Karl Berry  <karl@gnu.org>
74771
74772         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
74773
74774 2003-05-20  Karl Berry  <karl@gnu.org>
74775
74776         * config/config.guess: update from prep.
74777
74778 2003-05-18  Karl Berry  <karl@gnu.org>
74779
74780         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
74781         might actually be set by the user.
74782
74783         * config/depcomp, install-sh, mdate-sh: update from automake.
74784
74785 2003-05-17  Bruno Haible  <bruno@clisp.org>
74786
74787         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
74788         invalid expansion for AC_EGREP_CPP.
74789         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
74790         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
74791         Suggested by Akim Demaille <akim@epita.fr> in
74792         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
74793
74794 2003-05-12  Jim Meyering  <jim@meyering.net>
74795
74796         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
74797         the space-padded-by-default conversion specifiers, %e, %k, %l.
74798
74799 2003-05-12  Bruno Haible  <bruno@clisp.org>
74800
74801         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
74802         the string is longer than 4 KB.
74803
74804 2003-05-11  Karl Berry  <karl@gnu.org>
74805
74806         * config/config.{guess,sub}: update from prep.
74807
74808 2003-05-09  Bruno Haible  <bruno@clisp.org>
74809
74810         * modules/error: Add m4/strerror_r.m4 to file list.
74811
74812 2003-05-03  Bruno Haible  <bruno@clisp.org>
74813
74814         Upgrade to Unicode-4.0.
74815         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
74816         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
74817         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
74818         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
74819         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
74820         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
74821         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
74822         Change width of U+E0100..U+E01EF from 1 to 0.
74823
74824 2003-04-25  Jim Meyering  <jim@meyering.net>
74825
74826         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
74827         of type size_t, not int.
74828
74829 2003-04-25  Bruno Haible  <bruno@clisp.org>
74830
74831         * lib/copy-file.c: Include <stddef.h>, for size_t.
74832
74833 2003-04-21  Paul Eggert  <eggert@twinsun.com>
74834
74835         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
74836         code which expansion is under static control.  Patch imported from
74837         Akim Demaille's patch to Bison; see
74838         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
74839
74840 2003-04-14  Bruno Haible  <bruno@clisp.org>
74841
74842         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
74843
74844 2003-04-11  Jim Meyering  <jim@meyering.net>
74845
74846         Merge changes from Coreutils.
74847
74848         2003-03-22  Jim Meyering  <jim@meyering.net>
74849
74850         * lib/strftime.c (widen): Cast alloca return value to proper type.
74851
74852         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
74853
74854         From GNU libc.
74855         * lib/strftime.c (my_strftime): Handle very large width
74856         specifications for numeric values correctly.  Improve checks for
74857         overflow.
74858
74859         2003-01-19  Jim Meyering  <jim@meyering.net>
74860
74861         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
74862         definitions.
74863         (nl_get_alt_digit) [! defined my_strftime]: Define.
74864         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
74865         _nl_get_alt_digit and _nl_get_walt_digit.
74866
74867         * lib/strftime.c (my_strftime): Merge in locale-related changes from
74868         libc. These changes have no effect outside of _LIBC.
74869
74870 2003-04-10  Bruno Haible  <bruno@clisp.org>
74871
74872         * modules/findprog: New file.
74873         * MODULES.html.sh (func_all_modules): Add it.
74874
74875 2003-04-10  Bruno Haible  <bruno@clisp.org>
74876
74877         * m4/findprog.m4: New file.
74878         * m4/eaccess.m4: New file.
74879
74880 2003-04-10  Bruno Haible  <bruno@clisp.org>
74881
74882         * lib/findprog.h: New file, from GNU gettext.
74883         * lib/findprog.c: New file, from GNU gettext.
74884
74885 2003-04-05  Jim Meyering  <jim@meyering.net>
74886
74887         Merge changes from Coreutils.
74888
74889         * lib/exclude.h (PARAMS): Remove definition and uses.
74890         * lib/exclude.c: Remove uses of `PARAMS'.
74891
74892         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
74893         Add test-cases for DOS filenames. Declare program_name.
74894         (main): Set up program_name.  Patch by Rich Dawe.
74895
74896         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
74897         error from mntctl.
74898         Use mntctl's return value to drive the entry-processing loop, since
74899         we can't rely on the value of the vmt_length member in the last
74900         entry.  On some systems doing so could result in exhausting
74901         virtual memory.  Based in part on a patch from Mike Jetzer.
74902
74903 2003-04-04  Bruno Haible  <bruno@clisp.org>
74904
74905         * modules/linebreak: New file.
74906         * MODULES.html.sh (func_all_modules): Add it.
74907
74908 2003-04-04  Bruno Haible  <bruno@clisp.org>
74909
74910         * m4/linebreak.m4: New file.
74911
74912 2003-04-04  Bruno Haible  <bruno@clisp.org>
74913
74914         * lib/linebreak.h: New file, from GNU gettext.
74915         * lib/linebreak.c: New file, from GNU gettext with slight
74916         modifications.
74917         * lib/lbrkprop.h: New file, from GNU gettext.
74918
74919 2003-04-03  Bruno Haible  <bruno@clisp.org>
74920
74921         * modules/utf8-ucs4: New file.
74922         * modules/utf16-ucs4: New file.
74923         * modules/ucs4-utf8: New file.
74924         * modules/ucs4-utf16: New file.
74925         * MODULES.html.sh (func_all_modules): Add them.
74926
74927 2003-04-03  Bruno Haible  <bruno@clisp.org>
74928
74929         * m4/utf-ucs4.m4: New file.
74930         * m4/ucs4-utf.m4: New file.
74931
74932 2003-04-03  Bruno Haible  <bruno@clisp.org>
74933
74934         * lib/utf8-ucs4.h: New file, from GNU gettext.
74935         * lib/utf16-ucs4.h: New file, from GNU gettext.
74936         * lib/ucs4-utf8.h: New file, from GNU gettext.
74937         * lib/ucs4-utf16.h: New file, from GNU gettext.
74938
74939 2003-04-02  Bruno Haible  <bruno@clisp.org>
74940
74941         * modules/binary-io: New file.
74942         * MODULES.html.sh (func_all_modules): Add it.
74943
74944 2003-04-02  Bruno Haible  <bruno@clisp.org>
74945
74946         * lib/binary-io.h: New file, from GNU gettext.
74947
74948 2003-04-01  Bruno Haible  <bruno@clisp.org>
74949
74950         * modules/pathname: New file.
74951         * MODULES.html.sh (func_all_modules): Add it.
74952
74953 2003-04-01  Bruno Haible  <bruno@clisp.org>
74954
74955         * lib/pathname.h: New file, from GNU gettext.
74956         * lib/concatpath.c: New file, from GNU gettext.
74957
74958 2003-03-30  Bruno Haible  <bruno@clisp.org>
74959
74960         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
74961
74962 2003-03-30  Bruno Haible  <bruno@clisp.org>
74963
74964         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
74965         function chown() doesn't exist.
74966
74967 2003-03-28  Bruno Haible  <bruno@clisp.org>
74968
74969         * modules/copy-file: New file.
74970         * MODULES.html.sh (func_all_modules): Add it.
74971
74972 2003-03-28  Bruno Haible  <bruno@clisp.org>
74973
74974         * m4/copy-file.m4: New file.
74975
74976 2003-03-28  Bruno Haible  <bruno@clisp.org>
74977
74978         * lib/copy-file.h: New file, from GNU gettext.
74979         * lib/copy-file.c: New file, from GNU gettext.
74980
74981 2003-03-18  Jim Meyering  <jim@meyering.net>
74982
74983         * lib/quote.c (quote_n): Fix typo in comment.
74984
74985 2003-03-18  Bruno Haible  <bruno@clisp.org>
74986
74987         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
74988         checking.
74989         * m4/onceonly_2_57.m4: Likewise.
74990
74991 2003-03-17  Bruno Haible  <bruno@clisp.org>
74992
74993         * m4/onceonly.m4: Require autoconf 2.54 or newer.
74994         (m4_quote): Remove macro.
74995         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
74996
74997 2003-03-14  Jim Meyering  <jim@meyering.net>
74998
74999         Merge changes from Coreutils.
75000         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
75001         to be const, in order to avoid warnings.
75002         (obstack_room): Likewise.
75003         (obstack_empty_p): Likewise.
75004
75005 2003-03-14  Bruno Haible  <bruno@clisp.org>
75006
75007         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
75008         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
75009
75010 2003-03-13  Paul Eggert  <eggert@twinsun.com>
75011
75012         Merge changes from Bison.
75013         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
75014         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
75015         when compiling Bison 1.875's `bitset bset = obstack_alloc
75016         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
75017         * lib/hash.c: Include <stdbool.h> unconditionally.
75018
75019 2003-03-13  Paul Eggert  <eggert@twinsun.com>
75020
75021         * m4/onceonly.m4 (m4_quote): New macro.
75022         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
75023         Quote AC_FOREACH variable-expansions properly.
75024
75025 2003-03-13  Paul Eggert  <eggert@twinsun.com>
75026
75027         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
75028
75029 2003-03-09  Paul Eggert  <eggert@twinsun.com>
75030
75031         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
75032         Reported by Bruce Becker; see:
75033         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
75034
75035 2003-03-03  Paul Eggert  <eggert@twinsun.com>
75036             Bruno Haible  <bruno@clisp.org>
75037
75038         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
75039         Reported by John Hughes, see
75040         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
75041
75042 2003-02-20  Bruno Haible  <bruno@clisp.org>
75043
75044         * MODULES.html.sh (func_all_modules): Add poll.
75045
75046 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
75047
75048         * modules/poll: New file.
75049
75050 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
75051
75052         * lib/poll_.h: New file.
75053         * lib/poll.c: New file.
75054
75055 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
75056
75057         * m4/poll.m4: New file.
75058
75059 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
75060
75061         * modules/mathl: New file.
75062
75063 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
75064
75065         * lib/mathl.h: New file.
75066         * lib/acosl.c: New file.
75067         * lib/asinl.c: New file.
75068         * lib/atanl.c: New file.
75069         * lib/ceill.c: New file.
75070         * lib/cosl.c: New file.
75071         * lib/expl.c: New file.
75072         * lib/floorl.c: New file.
75073         * lib/frexpl.c: New file.
75074         * lib/ldexpl.c: New file.
75075         * lib/logl.c: New file.
75076         * lib/sincosl.c: New file.
75077         * lib/sinl.c: New file.
75078         * lib/sqrtl.c: New file.
75079         * lib/tanl.c: New file.
75080         * lib/trigl.c: New file.
75081         * lib/trigl.h: New file.
75082
75083 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
75084
75085         * m4/mathl.m4: New file.
75086
75087 2003-02-18  Bruno Haible  <bruno@clisp.org>
75088
75089         * MODULES.html.sh (func_all_modules): Add mathl.
75090
75091 2003-02-17  Bruno Haible  <bruno@clisp.org>
75092
75093         * modules/mkdtemp: New module.
75094         * MODULES.html.sh (func_all_modules): Add it.
75095
75096 2003-02-17  Bruno Haible  <bruno@clisp.org>
75097
75098         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
75099
75100 2003-02-17  Bruno Haible  <bruno@clisp.org>
75101
75102         * lib/mkdtemp.h: New file, from GNU gettext.
75103         * lib/mkdtemp.c: New file, from GNU gettext.
75104
75105 2003-02-02  Jim Meyering  <jim@meyering.net>
75106
75107         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
75108         e.g. glibc-2.2.93.
75109
75110 2003-01-31  Bruno Haible  <bruno@clisp.org>
75111
75112         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
75113         'rpl_rename'.
75114         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
75115         'rpl_strnlen'.
75116         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
75117         'rpl_strtod'.
75118         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
75119         'rpl_utime'.
75120
75121 2003-01-31  Bruno Haible  <bruno@clisp.org>
75122
75123         * lib/rename.c: #undef rename before defining rpl_rename.
75124         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
75125
75126 2003-01-30  Bruno Haible  <bruno@clisp.org>
75127
75128         * modules/vasnprintf, modules/vasprintf: New modules.
75129         * MODULES.html.sh (func_all_modules): Add them.
75130
75131 2003-01-30  Bruno Haible  <bruno@clisp.org>
75132
75133         * m4/signed.m4: New file, from GNU gettext.
75134         * m4/longdouble.m4: New file, from GNU gettext.
75135         * m4/wchar_t.m4: New file, from GNU gettext.
75136         * m4/wint_t.m4: New file, from GNU gettext.
75137         * m4/vasnprintf.m4: New file.
75138         * m4/vasprintf.m4: New file.
75139
75140 2003-01-30  Bruno Haible  <bruno@clisp.org>
75141
75142         * lib/printf-args.h: New file, from GNU gettext.
75143         * lib/printf-args.c: New file, from GNU gettext.
75144         * lib/printf-parse.h: New file, from GNU gettext.
75145         * lib/printf-parse.c: New file, from GNU gettext.
75146         * lib/vasnprintf.h: New file, from GNU gettext.
75147         * lib/vasnprintf.c: New file, from GNU gettext.
75148         * lib/asnprintf.c: New file, from GNU gettext.
75149         * lib/vasprintf.h: New file, from GNU gettext with modifications.
75150         * lib/vasprintf.c: New file, from GNU gettext.
75151         * lib/asprintf.c: New file, from GNU gettext.
75152
75153 2003-01-29  Bruno Haible  <bruno@clisp.org>
75154
75155         * modules/stpncpy: New module.
75156         * MODULES.html.sh (func_all_modules): Add it.
75157
75158 2003-01-29  Bruno Haible  <bruno@clisp.org>
75159
75160         * m4/stpncpy.m4: New file.
75161
75162 2003-01-29  Bruno Haible  <bruno@clisp.org>
75163
75164         * lib/stpncpy.h: New file, from GNU gettext with modifications.
75165         * lib/stpncpy.c: New file, from GNU gettext with modifications.
75166
75167 2003-01-28  Bruno Haible  <bruno@clisp.org>
75168
75169         * modules/c-ctype: New module.
75170         * MODULES.html.sh (func_all_modules): Add it.
75171
75172 2003-01-28  Bruno Haible  <bruno@clisp.org>
75173
75174         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
75175         Paul Eggert.
75176         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
75177         Paul Eggert.
75178
75179 2003-01-27  Bruno Haible  <bruno@clisp.org>
75180
75181         * modules/xsetenv: New module.
75182         * MODULES.html.sh (func_all_modules): Add it.
75183
75184 2003-01-27  Bruno Haible  <bruno@clisp.org>
75185
75186         * lib/xsetenv.h: New file, from GNU gettext.
75187         * lib/xsetenv.c: New file, from GNU gettext.
75188
75189 2003-01-23  Jim Meyering  <jim@meyering.net>
75190
75191         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
75192         from working on systems without dirfd (at least Irix and OSF1/Tru64).
75193
75194 2003-01-23  Bruno Haible  <bruno@clisp.org>
75195
75196         * modules/minmax: New module.
75197         * MODULES.html.sh (func_all_modules): Add it.
75198
75199 2003-01-23  Bruno Haible  <bruno@clisp.org>
75200
75201         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
75202         Eggert.
75203
75204 2003-01-22  Bruno Haible  <bruno@clisp.org>
75205
75206         * modules/exit: New module.
75207         * MODULES.html.sh (func_all_modules): Add it.
75208
75209 2003-01-22  Bruno Haible  <bruno@clisp.org>
75210
75211         * lib/exit.h: New file, from GNU gettext.
75212
75213 2003-01-19  Bruno Haible  <bruno@clisp.org>
75214
75215         * gnulib-tool: Recognize option --extract-maintainer.
75216         (func_get_maintainer): New function.
75217         * modules/*: Add Maintainer entry.
75218
75219 2003-01-16  Jim Meyering  <jim@meyering.net>
75220
75221         * m4/regex.m4: The `regex' struct is both input and output.
75222         Initialize it before each use.  Patch by Tim Waugh.
75223
75224 2003-01-16  Bruno Haible  <bruno@clisp.org>
75225
75226         * MODULES.html.sh: Add a table of contents. Add the module name as
75227         leftmost column. Add hyperlinks.
75228
75229 2003-01-15  Bruno Haible  <bruno@clisp.org>
75230
75231         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
75232
75233 2003-01-15  Bruno Haible  <bruno@clisp.org>
75234
75235         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
75236         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
75237         suffix.
75238
75239 2003-01-15  Bruno Haible  <bruno@clisp.org>
75240
75241         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
75242
75243 2003-01-15  Bruno Haible  <bruno@clisp.org>
75244
75245         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
75246         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
75247
75248 2003-01-14  Jim Meyering  <jim@meyering.net>
75249
75250         * lib/same.c (same_name): Tweak a comment.
75251
75252 2003-01-14  Bruno Haible  <bruno@clisp.org>
75253
75254         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
75255         when a string comparison is sufficient.
75256
75257 2003-01-14  Bruno Haible  <bruno@clisp.org>
75258
75259         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
75260         'unsigned int'.
75261
75262 2003-01-14  Bruno Haible  <bruno@clisp.org>
75263
75264         * lib/hash-pjw.c: Add comment about low quality of this function.
75265
75266 2003-01-13  Bruno Haible  <bruno@clisp.org>
75267
75268         * modules/stpcpy: Distribute lib/stpcpy.h.
75269         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
75270
75271 2003-01-13  Bruno Haible  <bruno@clisp.org>
75272
75273         * modules/*: Add a description.
75274         * modules/strpbrk: Fix Makefile.am snippet.
75275         * modules/strtoimax: Fix dependencies.
75276         * modules/strtoumax: Likewise.
75277
75278 2003-01-13  Bruno Haible  <bruno@clisp.org>
75279
75280         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
75281         * modules/alloca (Makefile.am): All object files depend on alloca.h.
75282         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
75283
75284 2003-01-13  Bruno Haible  <bruno@clisp.org>
75285
75286         * gnulib-tool (func_create_testdir): Store config/* files in the main
75287         directory.
75288         * config.rpath: Move to ...
75289         * config/config.rpath: ... here.
75290         * modules/gettext: Contains config/config.rpath, not config.rpath.
75291         * modules/iconv: Likewise.
75292
75293 2003-01-12  Paul Eggert  <eggert@twinsun.com>
75294
75295         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
75296         to avoid collisions with libcurses and libreadline.
75297
75298         * m4/getstr.m4: Remove.
75299         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
75300
75301 2003-01-12  Paul Eggert  <eggert@twinsun.com>
75302
75303         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
75304         to avoid collisions with libcurses and libreadline.
75305
75306         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
75307         * lib/getstr.h, getstr.c: Remove.
75308         * lib/getline.c: Include "getline.h", to check interface.
75309         Move body of old getstr.c here: this defines MIN_CHUNK and
75310         declares getdelim2, which is renamed from getstr.
75311         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
75312
75313         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
75314         All uses changed.
75315         * lib/linebuffer.h: Likewise.
75316         (readline): Remove backward-compatibility macro.
75317
75318 2003-01-12  Paul Eggert  <eggert@twinsun.com>
75319
75320         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
75321         to avoid collisions with libcurses and libreadline.
75322         * getstr: Remove.
75323         * MODULES.html.sh: Remove getstr.
75324         * modules/getline: Depend on unlocked-io, not getstr.
75325
75326 2003-01-12  Jim Meyering  <jim@meyering.net>
75327
75328         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
75329
75330 2003-01-10  Bruno Haible  <bruno@clisp.org>
75331
75332         * modules/alloca: Change Makefile.am requirements. Simplify Include
75333         requirements. Add lib/alloca_.h to file list.
75334
75335 2003-01-10  Bruno Haible  <bruno@clisp.org>
75336
75337         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
75338
75339 2003-01-10  Bruno Haible  <bruno@clisp.org>
75340
75341         * lib/alloca_.h: New file.
75342         * lib/getdate.y: Unconditionally include alloca.h.
75343         * lib/makepath.c: Likewise.
75344         * lib/setenv.c: Likewise.
75345         * lib/userspec.c: Likewise.
75346
75347 2003-01-09  Karl Berry  <karl@gnu.org>
75348
75349         * MODULES.html.sh: include `dirname $0` in PATH, to find
75350         gnulib-tool.
75351
75352 2003-01-09  Bruno Haible  <bruno@clisp.org>
75353
75354         * modules/stdbool: Change configure.ac, Makefile.am requirements.
75355         Simplify Include requirements. Add lib/stdbool.h.in to file list.
75356
75357 2003-01-09  Bruno Haible  <bruno@clisp.org>
75358
75359         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
75360
75361 2003-01-09  Bruno Haible  <bruno@clisp.org>
75362
75363         * lib/stdbool.h.in: New file.
75364
75365 2003-01-09  Bruno Haible  <bruno@clisp.org>
75366
75367         * gnulib-tool (func_all_modules): Ignore files ending in ~.
75368         * MODULES.html.sh: Likewise.
75369
75370 2003-01-08  Jim Meyering  <jim@meyering.net>
75371
75372         * lib/full-write.c: Undefine and define-away `const' after inclusion
75373         of errno.h, not before.  Suggestion from Bruno Haible.
75374
75375 2003-01-08  Bruno Haible  <bruno@clisp.org>
75376
75377         * modules/full-read: Depend on full-write.
75378
75379 2003-01-08  Bruno Haible  <bruno@clisp.org>
75380
75381         * lib/safe-read.c: Include specification header first, to ensure its
75382         selfcontainedness.
75383         * lib/full-write.c: Likewise.
75384
75385 2003-01-07  Jim Meyering  <jim@meyering.net>
75386
75387         * lib/full-write.c: Rework so that it may serve to define full_read,
75388         too.
75389         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
75390
75391 2003-01-07  Bruno Haible  <bruno@clisp.org>
75392
75393         * lib/strtoimax.c: Include <stdint.h> as an alternative to
75394         <inttypes.h>.
75395         * lib/xstrtol.h: Likewise.
75396         * lib/xstrtoimax.c: Likewise.
75397         * lib/xstrtoumax.c: Likewise.
75398         * lib/human.h: Likewise.
75399
75400         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
75401         on systems that have <inttypes.h> but not <stdint.h>.
75402
75403 2003-01-07  Bruno Haible  <bruno@clisp.org>
75404
75405         * MODULES.html.sh: Add copyright notice.
75406         (missed_files): Omit CVS directory entries.
75407         (func_module): Make it work with sed-3.02.
75408         * MODULES.txt: Remove file.
75409
75410 2003-01-06  Jim Meyering  <jim@meyering.net>
75411
75412         * lib/version-etc.c: Update year in translatable copyright string.
75413
75414 2003-01-03  Karl Berry  <karl@gnu.org>
75415
75416         * config/config.{guess,sub}: update from prep.
75417
75418 2003-01-02  Karl Berry  <karl@gnu.org>
75419
75420         * doc/COPYING.DOC: belatedly updated to 1.2.
75421
75422 2003-01-01  Karl Berry  <karl@gnu.org>
75423
75424         * gnulib-tool (func_verify_module): report module name $module in
75425         error message, not $1.
75426         * gnulib-tool (create-testdir): don't complain if destdir couldn't
75427         be created, only if it doesn't exist.
75428         * gnulib-tool (last_checkin_date): don't expand the $Date here.
75429
75430 2002-12-31  Paul Eggert  <eggert@twinsun.com>
75431
75432         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
75433
75434 2002-12-31  Paul Eggert  <eggert@twinsun.com>
75435
75436         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
75437         memcmp if strcoll doesn't work.
75438
75439 2002-12-31  Bruno Haible  <bruno@clisp.org>
75440
75441         * lib/utime.c (utime_null): No need to call ftruncate if the file was
75442         nonempty.
75443
75444 2002-12-31  Bruno Haible  <bruno@clisp.org>
75445
75446         * lib/memcoll.c (STRCOLL): New macro.
75447         (memcoll): Use it.
75448
75449 2002-12-31  Bruno Haible  <bruno@clisp.org>
75450
75451         * lib/localcharset.h: New file.
75452         * lib/localcharset.c: Include it.
75453         * lib/unicodeio.c: Likewise.
75454
75455 2002-12-31  Bruno Haible  <bruno@clisp.org>
75456
75457         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
75458         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
75459
75460 2002-12-31  Bruno Haible  <bruno@clisp.org>
75461
75462         * lib/getline.h: Include <stddef.h>, for size_t.
75463
75464         * lib/unicodeio.h: Include <stddef.h>, for size_t.
75465         * lib/unicodeio.c: Don't include <stddef.h>.
75466
75467 2002-12-31  Bruno Haible  <bruno@clisp.org>
75468
75469         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
75470         HAVE_TM_ZONE.
75471
75472 2002-12-24  Karl Berry  <karl@gnu.org>
75473
75474         * config/config.guess: update from prep.
75475
75476 2002-12-24  Bruno Haible  <bruno@clisp.org>
75477
75478         General infrasructure.
75479         * m4/README: Rewritten.
75480         * m4/onceonly.m4: New file.
75481         * m4/onceonly_2_57.m4: New file.
75482
75483         Module atexit.
75484         * m4/atexit.m4: New file.
75485
75486         Module strtod.
75487         * m4/strtod.m4: New file.
75488
75489         Module strtol.
75490         * m4/strtol.m4: New file.
75491
75492         Module strtoul.
75493         * m4/strtoul.m4: New file.
75494
75495         Module memchr.
75496         * m4/memchr.m4: New file.
75497
75498         Module memcmp.
75499         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
75500         (jm_FUNC_MEMCMP): Invoke it.
75501
75502         Module memcpy.
75503         * m4/memcpy.m4: New file.
75504
75505         Module memmove.
75506         * m4/memmove.m4: New file.
75507
75508         Module memset.
75509         * m4/memset.m4: New file.
75510
75511         Module strcspn.
75512         * m4/strcspn.m4: New file.
75513
75514         Module strpbrk.
75515         * m4/strpbrk.m4: New file.
75516
75517         Module strstr.
75518         * m4/strstr.m4: New file.
75519
75520         Module strerror.
75521         * m4/strerror.m4: New file.
75522
75523         Module mktime.
75524         * m4/mktime.m4: Renamed from jm-mktime.m4.
75525         (gl_PREREQ_MKTIME): New macro.
75526         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
75527
75528         Module malloc.
75529         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
75530         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
75531         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
75532
75533         Module realloc.
75534         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
75535         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
75536         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
75537
75538         Module strftime.
75539         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
75540         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
75541         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
75542         gl_TM_GMTOFF.
75543         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
75544
75545         Module xalloc.
75546         * m4/xalloc.m4: New file.
75547
75548         Module alloca.
75549         * m4/alloca.m4: New file.
75550
75551         Module putenv.
75552         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
75553         (jm_FUNC_PUTENV): Invoke it.
75554
75555         Module setenv.
75556         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
75557         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
75558         when invoked twice.
75559         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
75560         gt_FUNC_SETENV.
75561
75562         Module memrchr.
75563         * m4/memrchr.m4: New file.
75564
75565         Module stpcpy.
75566         * m4/stpcpy.m4: New file.
75567
75568         Module strcase.
75569         * m4/strcase.m4: New file.
75570
75571         Module strdup.
75572         * m4/strdup.m4: New file.
75573
75574         Module strnlen.
75575         * m4/strnlen.m4: New file.
75576
75577         Module strndup.
75578         * m4/strndup.m4: New file.
75579
75580         Module xstrtod.
75581         * m4/xstrtod.m4: New file.
75582
75583         Module xstrtol.
75584         * m4/xstrtol.m4: New file.
75585
75586         Module getdate.
75587         * m4/getdate.m4: New file.
75588
75589         Module unlocked-io.
75590         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
75591         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
75592         * m4/jm-glibc-io.m4n: Remove file.
75593
75594         Module long-options.
75595         * m4/long-options.m4: New file.
75596
75597         Module md5.
75598         * m4/md5.m4: New file.
75599
75600         Module sha.
75601         * m4/sha.m4: New file.
75602
75603         Module getstr.
75604         * m4/getstr.m4: New file.
75605
75606         Module getline.
75607         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
75608         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
75609         <sys/types.h>, for size_t. Use the function name gnu_getline, not
75610         simply getline. Infoke gl_PREREQ_GETLINE.
75611
75612         Module obstack.
75613         * m4/obstack.m4: New file.
75614
75615         Module hash.
75616         * m4/hash.m4: New file.
75617
75618         Module readtokens.
75619         * m4/readtokens.m4: New file.
75620
75621         Module strverscmp.
75622         * m4/strverscmp.m4: New file.
75623
75624         Module stdbool.
75625         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
75626         OSF/1.
75627
75628         Module strtoll.
75629         * m4/strtoll.m4: New file.
75630
75631         Module strtoull.
75632         * m4/strtoull.m4: New file.
75633
75634         Module strtoimax.
75635         * m4/strtoimax.m4: New file.
75636
75637         Module strtoumax.
75638         * m4/strtoumax.m4: New file.
75639
75640         Module xstrtoimax.
75641         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
75642         jm_AC_PREREQ_XSTRTOIMAX.
75643         Moved the strtol prerequisites to strtol.m4.
75644         Moved the strtoll prerequisites to strtoll.m4.
75645         Moved the strtoimax prerequisites to strtoimax.m4.
75646
75647         Module xstrtoumax.
75648         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
75649         jm_AC_PREREQ_XSTRTOUMAX.
75650         Moved the strtoul prerequisites to strtoul.m4.
75651         Moved the strtoull prerequisites to strtoull.m4.
75652         Moved the strtoumax prerequisites to strtoumax.m4.
75653
75654         Module chown.
75655         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
75656         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
75657
75658         Module dup2.
75659         * m4/dup2.m4: New file.
75660
75661         Module ftruncate.
75662         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
75663         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
75664
75665         Module getgroups.
75666         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
75667         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
75668
75669         Module gettimeofday.
75670         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
75671         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
75672         gl_PREREQ_GETTIMEOFDAY.
75673
75674         Module mkdir.
75675         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
75676         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
75677
75678         Module mkstemp.
75679         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
75680         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
75681         jm_AC_TYPE_UINTMAX_T.
75682         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
75683
75684         Module stat.
75685         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
75686         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
75687
75688         Module lstat.
75689         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
75690         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
75691
75692         Module timespec.
75693         * m4/timespec.m4 (gl_TIMESPEC): New macro.
75694         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
75695         * m4/st_mtim.m4: Indentation.
75696
75697         Module nanosleep.
75698         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
75699         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
75700         gl_PREREQ_NANOSLEEP.
75701
75702         Module regex.
75703         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
75704         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
75705         (gl_REGEX): New macro.
75706
75707         Module rename.
75708         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
75709         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
75710
75711         Module rmdir.
75712         * m4/rmdir.m4: New file.
75713
75714         Module utime.
75715         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
75716         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
75717         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
75718
75719         Module dirname.
75720         * m4/dirname.m4: New file.
75721
75722         Module getopt.
75723         * m4/getopt.m4: New file.
75724
75725         Module unistd-safer.
75726         * m4/unistd-safer.m4: New file.
75727
75728         Module fnmatch.
75729         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
75730         declaration.
75731         (gl_PREREQ_FNMATCH_EXTRA): New macro.
75732         (gl_FUNC_FNMATCH_POSIX): New macro.
75733         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
75734         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
75735         simply fnmatch.
75736
75737         Module exclude.
75738         * m4/exclude.m4: New file.
75739
75740         Module human.
75741         * m4/human.m4: New file.
75742
75743         Module acl.
75744         * m4/acl.m4: Nop.
75745
75746         Module backupfile.
75747         * m4/backupfile.m4: New file.
75748         * m4/d-ino.m4: Indentation.
75749
75750         Module fsusage.
75751         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
75752         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
75753         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
75754
75755         Module dirfd.
75756         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
75757         requirements.
75758
75759         Module euidaccess.
75760         * m4/euidaccess.m4: New file.
75761
75762         Module file-type.
75763         * m4/file-type.m4: New file.
75764
75765         Module fileblocks.
75766         * m4/fileblocks.m4: New file.
75767
75768         Module filemode.
75769         * m4/filemode.m4: New file.
75770
75771         Module isdir.
75772         * m4/isdir.m4: New file.
75773
75774         Module lchown.
75775         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
75776         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
75777
75778         Module makepath.
75779         * m4/makepath.m4: New file.
75780
75781         Module modechange.
75782         * m4/modechange.m4: New file.
75783
75784         Module mountlist.
75785         * m4/mountlist.m4: New file.
75786         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
75787         Indentation.
75788
75789         Module path-concat.
75790         * m4/path-concat.m4: New file.
75791
75792         Module pathmax.
75793         * m4/pathmax.m4: New file.
75794
75795         Module same.
75796         * m4/same.m4: New file.
75797
75798         Module save-cwd.
75799         * m4/save-cwd.m4: New file.
75800
75801         Module savedir.
75802         * m4/savedir.m4: New file.
75803
75804         Module xgetcwd.
75805         * m4/xgetcwd.m4: New file.
75806         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
75807
75808         Module xreadlink.
75809         * m4/xreadlink.m4: New file.
75810
75811         Module safe-read.
75812         * m4/safe-read.m4: New file.
75813
75814         Module safe-write.
75815         * m4/safe-write.m4: New file.
75816
75817         Module closeout.
75818         * m4/closeout.m4: New file.
75819
75820         Module stdio-safer.
75821         * m4/stdio-safer.m4: New file.
75822
75823         Module getpass.
75824         * m4/getpass.m4: New file.
75825
75826         Module getugroups.
75827         * m4/getugroups.m4: New file.
75828
75829         Module group-member.
75830         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
75831         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
75832
75833         Module idcache.
75834         * m4/idcache.m4: New file.
75835
75836         Module userspec.
75837         * m4/userspec.m4: New file.
75838
75839         Module gettime.
75840         * m4/clock_time.m4: New file.
75841         * m4/gettime.m4: New file.
75842
75843         Module settime.
75844         * m4/settime.m4: New file.
75845
75846         Module posixtm.
75847         * m4/posixtm.m4: New file.
75848
75849         Module gethostname.
75850         * m4/gethostname.m4: New file.
75851
75852         Module canon-host.
75853         * m4/canon-host.m4: New file.
75854
75855         Module gettext.
75856         * m4/codeset.m4: New file, from gettext-0.11.5.
75857         * m4/gettext.m4: New file, from gettext-0.11.5.
75858         * m4/glibc21.m4: New file, from gettext-0.11.5.
75859         * m4/iconv.m4: New file, from gettext-0.11.5.
75860         * m4/intdiv0.m4: New file, from gettext-0.11.5.
75861         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
75862         * m4/inttypes.m4: New file, from gettext-0.11.5.
75863         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
75864         * m4/isc-posix.m4: New file, from gettext-0.11.5.
75865         * m4/lcmessage.m4: New file, from gettext-0.11.5.
75866         * m4/lib-ld.m4: New file, from gettext-0.11.5.
75867         * m4/lib-link.m4: New file, from gettext-0.11.5.
75868         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
75869         * m4/progtest.m4: New file, from gettext-0.11.5.
75870         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
75871         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
75872         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
75873
75874         Module localcharset.
75875         * m4/localcharset.m4: New file.
75876
75877         Module hard-locale.
75878         * m4/hard-locale.m4: New file.
75879
75880         Module mbswidth.
75881         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
75882         onceonly macros.
75883         * m4/mbrtowc.m4: Add comment.
75884
75885         Module memcasecmp.
75886         * m4/memcasecmp.m4: New file.
75887
75888         Module memcoll.
75889         * m4/memcoll.m4: New file.
75890
75891         Module unicodeio.
75892         * m4/unicodeio.m4: New file.
75893
75894         Module rpmatch.
75895         * m4/rpmatch.m4: New file.
75896
75897         Module yesno.
75898         * m4/yesno.m4: New file.
75899
75900         Module exitfail.
75901         * m4/exitfail.m4: New file.
75902
75903         Module c-stack.
75904         * m4/c-stack.m4 (gl_C_STACK): New macro.
75905         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
75906
75907         Module error.
75908         * m4/error.m4 (gl_ERROR): New macro.
75909         (jm_PREREQ_ERROR): Use onceonly macros.
75910
75911         Module fatal.
75912         * m4/fatal.m4: New file.
75913
75914         Module getloadavg.
75915         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
75916         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
75917
75918         Module getpagesize.
75919         * m4/getpagesize.m4: New file.
75920
75921         Module getusershell.
75922         * m4/getusershell.m4: New file.
75923
75924         Module physmem.
75925         * m4/physmem.m4: New file.
75926
75927         Module posixver.
75928         * m4/posixver.m4: New file.
75929
75930         Module quotearg.
75931         * m4/quotearg.m4: New file.
75932
75933         Module quote.
75934         * m4/quote.m4: New file.
75935
75936         Module readutmp.
75937         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
75938
75939         Module sig2str.
75940         * m4/sig2str.m4: New file.
75941
75942         Other.
75943         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
75944         ulonglong.m4.
75945         * m4/intmax_t.m4: New file.
75946         * m4/d-type.m4: Indentation.
75947         * m4/jm-macros.m4: Update.
75948         * m4/prereq.m4 (jm_PREREQ): Update.
75949         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
75950         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
75951         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
75952         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
75953         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
75954         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
75955         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
75956         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
75957         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
75958         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
75959         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
75960         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
75961         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
75962         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
75963         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
75964         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
75965         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
75966         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
75967         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
75968
75969 2002-12-24  Bruno Haible  <bruno@clisp.org>
75970
75971         * MODULES.txt: Update according to m4/ changes.
75972
75973         Module gettext.
75974         * config.rpath: New file, from gettext-0.11.5.
75975
75976         * modules/*: New module descriptions.
75977         * gnulib-tool: New file.
75978         * MODULES.html.sh: New file.
75979
75980 2002-12-21  Karl Berry  <karl@gnu.org>
75981
75982         * doc/fdl.texi: update to version 1.2.
75983
75984 2002-12-19  Karl Berry  <karl@gnu.org>
75985
75986         * config/config.guess: update from prep.
75987
75988 2002-12-18  Bruno Haible  <bruno@clisp.org>
75989
75990         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
75991         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
75992
75993 2002-12-17  Bruno Haible  <bruno@clisp.org>
75994
75995         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
75996         stdlib.h, string.h.
75997
75998 2002-12-17  Bruno Haible  <bruno@clisp.org>
75999
76000         * lib/canon-host.c (strdup): Remove unused declaration.
76001
76002         * lib/fsusage.c: Include full_read.h.
76003         (get_fs_usage): Use full_read instead of safe_read.
76004
76005         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
76006
76007 2002-12-12  Karl Berry  <karl@gnu.org>
76008
76009         * config/config.guess: update from prep.
76010
76011 2002-12-11  Bruno Haible  <bruno@clisp.org>
76012
76013         * m4/setenv.m4: New file, from gettext-0.11.5.
76014
76015 2002-12-11  Bruno Haible  <bruno@clisp.org>
76016
76017         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
76018         not unsetenv().
76019         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
76020         modifications:
76021
76022         2002-12-11  Bruno Haible  <bruno@clisp.org>
76023
76024                 * setenv.c (alloca): Fall back to malloc.
76025                 (freea): New macro.
76026                 (setenv): Use freea() to free memory allocated with alloca().
76027
76028         2002-11-13  Bruno Haible  <bruno@clisp.org>
76029
76030                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
76031                 function declarations.
76032                 * unsetenv.c (unsetenv): Likewise.
76033
76034         2002-03-04  Bruno Haible  <bruno@clisp.org>
76035
76036                 Portability to AIX 4.3.3.
76037                 * unsetenv.c: New file, extracted from setenv.c.
76038                 * setenv.c: Move the unsetenv() function to unsetenv.c.
76039
76040         2001-12-20  Bruno Haible  <bruno@clisp.org>
76041
76042                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
76043                 use malloc instead. For SunOS 4.
76044
76045         2001-12-11  Bruno Haible  <bruno@clisp.org>
76046
76047                 * setenv.c: Declare alloca.
76048                 (compar_fn_t): New typedef.
76049                 (KNOWN_VALUE, STORE_VALUE): Use it.
76050
76051         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
76052         setenv.h.
76053
76054 2002-12-10  Paul Eggert  <eggert@twinsun.com>
76055
76056         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
76057         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
76058         Choose values that are less likely to collide with system fnmatch
76059         options.
76060         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
76061         defined (e.g., a pure POSIX system).
76062         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
76063         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
76064
76065 2002-12-06  Paul Eggert  <eggert@twinsun.com>
76066
76067         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
76068         a pain in practice to deal with generated m4 files.  This change
76069         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
76070
76071         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
76072         and jm-glibc-io.m4, as they are no longer a special case.
76073         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
76074         kludge and the auto-generation stuff.  Check only whether the
76075         functions are declared, not whether they exist, since older hosts
76076         that don't declare the functions can't use the optimization anyway.
76077
76078 2002-12-06  Jim Meyering  <jim@meyering.net>
76079
76080         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
76081
76082         Merge in changes from libc's misc/error.c, in preparation
76083         for the merge of gnulib's changes back into libc.
76084
76085         * lib/error.c (_): Define only if not already defined.
76086         Move definition to follow all #include directives.
76087         Include unlocked-io.h only if !_LIBC.
76088         [_LIBC]: Include <libio/libioP.h>.
76089         [USE_IN_LIBIO]: Include <libio/iolibio.h>
76090         (fflush): Tweak definition to use INTUSE.
76091         (putc): Define.
76092
76093 2002-12-05  Paul Eggert  <eggert@twinsun.com>
76094
76095         * lib/alloca.c [defined emacs]: Include "lisp.h".
76096         (xalloc_die) [defined emacs]: New macro.
76097         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
76098         [! defined emacs]: Include <xalloc.h>.
76099         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
76100         (pointer): Typedef to POINTER_TYPE *.
76101         (malloc): Remove decl; we now always use xmalloc.
76102         (alloca): Use old-style definition, since Emacs needs this.
76103         Check for arithmetic overflow when computing combined size.
76104
76105 2002-12-04  Paul Eggert  <eggert@twinsun.com>
76106
76107         Do not generate unlocked-io.h automatically, since it's easier to
76108         maintain it by hand.
76109
76110         * lib/unlocked-io.h: New file, from GNU diffutils,
76111         but with proper copyright notice and attribution.
76112         * lib/gen-uio: Remove.
76113         * lib/Makefile.am: Add copyright notice.
76114         (libfetish_a_SOURCES): Add unlocked-io.h.
76115         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
76116         (DISTCLEANFILES, io_functions): Remove macros.
76117         (EXTRA_DIST): Remove gen_uio.
76118         (unlocked-io.h): Remove rule.
76119
76120 2002-12-04  Jim Meyering  <jim@meyering.net>
76121
76122         Reflect the fact that stat.c and lstat.c are no longer generated.
76123         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
76124         (DISTCLEANFILES): Likewise.
76125         (EXTRA_DIST): Likewise.
76126         (all_local): Don't depend on stat.c or lstat.c.
76127         (stat.c, lstat.c): Remove rules.
76128         (EXTRA_DIST): Remove xstat.in.
76129
76130         * lib/xstat.in: Remove file.  Contents moved into stat.c.
76131         * lib/stat.c: New file.  Contents mostly from xstat.in.
76132         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
76133         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
76134
76135         * lib/safe-read.c: Rework so that it may serve to define safe_write,
76136         too.
76137         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
76138
76139 2002-12-03  Jim Meyering  <jim@meyering.net>
76140
76141         * lib/safe-read.c, safe-write.c: Change variable names and comments,
76142         but not semantics, to minimize the differences between these two files.
76143         (safe_read): Change comment to mention SAFE_READ_ERROR.
76144
76145         * lib/safe-read.c (IS_EINTR): Define.
76146         (safe_read): Use IS_EINTR in place of in-function cpp directives.
76147
76148 2002-12-02  Jim Meyering  <jim@meyering.net>
76149
76150         * lib/safe-read.c (EINTR): Define.
76151         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
76152         (INT_MAX): Provide fallback.
76153         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
76154
76155         * lib/safe-read.h (SAFE_READ_ERROR): Define.
76156
76157 2002-12-02  Bruno Haible  <bruno@clisp.org>
76158
76159         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
76160         Define, taken from safe-read.c.
76161         (INT_MAX): Provide fallback.
76162         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
76163         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
76164
76165         * lib/safe-read.c (EINTR): Remove definition.
76166         (safe_read): Don't use EINTR if it is absent.
76167
76168 2002-12-01  Jim Meyering  <jim@meyering.net>
76169
76170         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
76171         zero.
76172         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
76173
76174 2002-11-27  Paul Eggert  <eggert@twinsun.com>
76175
76176         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
76177         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
76178         with `if (! (value < limit)) abort ();', for readability.
76179
76180 2002-11-26  Karl Berry  <karl@gnu.org>
76181
76182         * lib/strdup.c: copy from libc again, with jim's ok.
76183         * lib/.cppi-disable: re-add strdup.c
76184
76185 2002-11-25  Karl Berry  <karl@gnu.org>
76186
76187         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
76188         instead of "strtol.c".
76189
76190 2002-11-25  Karl Berry  <karl@gnu.org>
76191
76192         * config/install-sh: update from automake for variable quoting, $0 in
76193         error msgs, etc.
76194
76195         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
76196         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
76197         entry.
76198
76199 2002-11-25  Jim Meyering  <jim@meyering.net>
76200
76201         * lib/mktime.c: Sync from libc, now that it has the latest fix.
76202
76203 2002-11-24  Karl Berry  <karl@gnu.org>
76204
76205         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
76206         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
76207
76208 2002-11-24  Jim Meyering  <jim@meyering.net>
76209
76210         Update from coreutils:
76211
76212         * lib/mktime.c: Merge in changes from libc.
76213
76214         Avoid a link-time failure on some Linux systems.
76215         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
76216         (otherwise).
76217         (__mon_yday): Declare with the STATIC attribute.
76218         (__mktime_internal): Likewise.
76219         Based on a report from Greg Schafer.
76220
76221 2002-11-23  Jim Meyering  <jim@meyering.net>
76222
76223         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
76224         Use `unsigned', not `int', as type of index.
76225
76226         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
76227
76228         * lib/fsusage.c: Remove unneeded parentheses around operands of
76229         `defined'.
76230
76231 2002-11-22  Paul Eggert  <eggert@twinsun.com>
76232
76233         * lib/quotearg.h: Allow multiple inclusion by surrounding with
76234         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
76235         so that we can be included first.
76236         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
76237         * lib/quotearg.c: Include quotearg.h immediately after config.h.
76238         No need to include stddef.h or sys/types.h any more.
76239         Surround local include files with "", not "<>".
76240         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
76241         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
76242         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
76243         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
76244         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
76245         (ISPRINT): Remove; no longer needed now that we assume C89.
76246
76247         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
76248         Preserve errno.
76249
76250         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
76251         quotearg_char): Use SIZE_MAX rather than
76252         (size_t) -1 when we are talking about "infinity".
76253
76254         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
76255
76256 2002-11-22  Paul Eggert  <eggert@twinsun.com>
76257
76258         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
76259         hint that one should use `if (! x) abort ();' rather than `assert
76260         (x);', and anyway it's one less thing to worry about configuring.
76261         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
76262         hash_rehash, hash_insert): Use abort rather than assert.
76263
76264 2002-11-22  Bruno Haible  <bruno@clisp.org>
76265
76266         * lib/safe-read.h: Assume C89. Add comments.
76267         (safe_read): Change return type to size_t.
76268         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
76269         byte counts > SSIZE_MAX correctly.
76270         * lib/safe-write.h: New file.
76271         * lib/safe-write.c: New file.
76272         * lib/full-read.h: New file.
76273         * lib/full-read.c: New file.
76274         * lib/full-write.h: Assume C89. Add comments.
76275         * lib/full-write.c: Include safe-write.h.
76276         (full_write): Rewritten to use safe_write.
76277         Suggested by Jim Meyering and Paul Eggert.
76278
76279 2002-11-21  Jim Meyering  <jim@meyering.net>
76280
76281         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
76282
76283         Merge in changes from the coreutils.
76284
76285         2002-09-25  Paul Eggert  <eggert@twinsun.com>
76286         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
76287         <stdint.h>.
76288         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
76289         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
76290         int.  Work more efficiently if X is the same width as uintmax_t.
76291         Do not compare X to -1, to avoid bogus compiler warning.
76292         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
76293         Don't assume that f_frsize and f_bsize are the same type.
76294
76295         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
76296         warning on FreeBSD.
76297
76298         * lib/makepath.c (make_path): Restore umask *before* creating the final
76299         component.
76300         (make_path): Minor reformatting.
76301
76302         * lib/xmalloc.c: Adjust to work with new autoconf macros,
76303         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
76304         HAVE_MALLOC/HAVE_REALLOC.
76305
76306         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
76307         dummy ones.  At least on GNU/Linux systems, `auto' means something
76308         else.
76309         From Michael Stone.
76310
76311 2002-11-21  Bruno Haible  <bruno@clisp.org>
76312
76313         Remove case insensitive option matching.
76314         * lib/argmatch.h (argcasematch): Remove declaration.
76315         (ARGCASEMATCH): Remove macro.
76316         (__xargmatch_internal): Remove case_sensitive argument.
76317         (XARGMATCH): Update.
76318         (XARGCASEMATCH): Remove macro.
76319         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
76320         case_sensitive argument.
76321         (argcasematch): Remove function.
76322         (__xargmatch_internal): Remove case_sensitive argument.
76323         (main): Use XARGMATCH instead of XARGCASEMATCH.
76324
76325         * lib/xmalloc.c: Change compile-time error message. Add comment about
76326         required autoconf version.
76327
76328 2002-11-20  Paul Eggert  <eggert@twinsun.com>
76329
76330         Merge argmatch cleanups from Bison.  Assume C89.
76331
76332         * lib/argmatch.c: Include config.h here, not in argmatch.h.
76333         Include stdlib.h, for EXIT_FAILURE.
76334         Always include <string.h>, since we assume C89.
76335         (EXIT_FAILURE): Remove pre-C89 bug workaround.
76336         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
76337         Include <stddef.h> instead, since it's all we need for size_t.
76338         (PARAMS): Remove.  All uses removed.
76339         (ARRAY_CARDINALITY): Do not bother to #undef.
76340         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
76341         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
76342         Remove unnecessary parentheses.
76343         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
76344         Insert necessary parentheses.
76345         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
76346         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
76347
76348 2002-11-19  Bruno Haible  <bruno@clisp.org>
76349
76350         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
76351         * lib/mbswidth.h: Include <stddef.h>, for size_t.
76352
76353         * lib/mbswidth.h (PARAMS): Remove macro.
76354         (mbswidth, mbsnwidth): Use ANSI C function declarations.
76355         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
76356
76357         * lib/gcd.h (PARAMS): Remove macro.
76358         (gcd): Use ANSI C function declarations.
76359         * lib/gcd.c (gcd): Likewise.
76360
76361 2002-11-15  Bruno Haible  <bruno@clisp.org>
76362
76363         * lib/strcspn.c: Include <stddef.h>.
76364         (strcspn): Use ANSI C function declaration. Change return type to
76365         size_t. Use NULL.
76366         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
76367         (strpbrk): Use NULL.
76368         * lib/strpbrk.h (PARAMS): Remove macro.
76369         (strpbrk): Use ANSI C function declaration.
76370         * lib/strstr.c: Don't include <sys/types.h>.
76371         * lib/strstr.h (PARAMS): Remove macro.
76372         (strstr): Use ANSI C function declarations.
76373
76374 2002-11-14  Karl Berry  <karl@gnu.org>
76375
76376         * config/mkinstalldirs: `do' on separate line, instead of
76377         `for var; do'.
76378
76379 2002-11-06  Bruno Haible  <bruno@clisp.org>
76380
76381         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
76382         * lib/gcd.c (gcd): Likewise.
76383
76384 2002-11-05  Bruno Haible  <bruno@clisp.org>
76385
76386         * lib/gcd.h: New file, from gettext-0.11.5.
76387         * lib/gcd.c: New file, from gettext-0.11.5.
76388
76389 2002-11-05  Bruno Haible  <bruno@clisp.org>
76390
76391         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
76392         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
76393         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
76394         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
76395
76396         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
76397         <libintl.h>.
76398         * lib/makepath.c: Include gettext.h instead of <locale.h> and
76399         <libintl.h>.
76400
76401         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
76402         * lib/human.c: Include gettext.h instead of <libintl.h>.
76403         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
76404         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
76405         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
76406         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
76407         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
76408         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
76409         (textdomain): Remove definition.
76410         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
76411
76412         * lib/long-options.c: Remove include of <libintl.h> and definition of
76413         _.
76414         * lib/same.c: Remove include of <libintl.h> and definition of _.
76415
76416 2002-11-04  Owen Taylor  <otaylor@redhat.com>
76417
76418         * lib/config.charset: A few additions for Solaris.
76419
76420 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
76421
76422         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
76423         * lib/localcharset.c (locale_charset): Declare as extern "C".
76424
76425 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
76426
76427         * lib/config.charset: msdos in uk_UA uses CP1125.
76428
76429 2002-11-04  Bruno Haible  <bruno@clisp.org>
76430
76431         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
76432         * lib/strcase.h: New file, from GNU gettext-0.11.5.
76433         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
76434         * lib/strstr.h: New file, from GNU gettext-0.11.5.
76435         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
76436
76437 2002-11-04  Bruno Haible  <bruno@clisp.org>
76438
76439         * lib/localcharset.c (locale_charset): Don't return an empty string.
76440
76441 2002-11-04  Bruno Haible  <bruno@clisp.org>
76442
76443         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
76444         aliases.
76445
76446 2002-11-04  Bruno Haible  <bruno@clisp.org>
76447
76448         * lib/config.charset: Update for newest glibc. Add canonical names
76449         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
76450
76451 2002-11-04  Bruno Haible  <bruno@clisp.org>
76452
76453         * lib/config.charset: Add support for NetBSD.
76454
76455 2002-11-04  Bruno Haible  <bruno@clisp.org>
76456
76457         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
76458
76459 2002-11-01  Bruno Haible  <bruno@clisp.org>
76460
76461         * configure.in: Add AC_CONFIG_AUX_DIR call.
76462         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
76463         test/Makefile.
76464         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
76465
76466 2002-09-28  Karl Berry  <karl@gnu.org>
76467
76468         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
76469         installed automake until the next release, since changes have been
76470         made.
76471
76472 2002-09-25  Karl Berry  <karl@gnu.org>
76473
76474         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
76475         * lib/getopt*: copy from libc/posix.
76476         * lib/gettext.h: copy from gettext.
76477         * lib/.cppi-disable: add strdup.c, gettext.h.
76478
76479 2002-09-25  Karl Berry  <karl@gnu.org>
76480
76481         * config/srclist.txt: enable gettext.h check.
76482         * config/config.{guess,sub}: update from prep.
76483         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
76484                 from automake 1.6.3.
76485         See srclist*.
76486
76487 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
76488
76489         * regex.c (PATFETCH): Remove the translating fetch.
76490         (PATFETCH_RAW): Rename to PATFETCH.
76491         (set_image_of_range): New fun.
76492         (SET_RANGE_TABLE_WORK_AREA): Use it.
76493         (regex_compile): Don't translate the pattern chars so eagerly.
76494         Only do it when inserting an `exactn' bytecode or when handling
76495         a char-range.
76496         (mutually_exclusive_p): Avoid empty statement.
76497
76498 2002-07-06  Jim Meyering  <meyering@lucent.com>
76499
76500         * m4/README: Don't mention Makefile.am.in.
76501         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
76502
76503 2002-07-01  Jim Meyering  <meyering@lucent.com>
76504
76505         * lib/c-stack.c: Include sys/time.h.
76506         From Volker Borchert.
76507
76508 2002-06-26  Paul Eggert  <eggert@twinsun.com>
76509
76510         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
76511
76512 2002-06-26  Paul Eggert  <eggert@twinsun.com>
76513
76514         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
76515         New macro.  Use it uniformly instead of
76516         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
76517         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
76518         reported by Vin Shelton.
76519
76520 2002-06-22  Paul Eggert  <eggert@twinsun.com>
76521
76522         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
76523         Do not assume SA_SIGINFO behavior.
76524         Bug reported by Jim Meyering on NetBSD 1.5.2.
76525
76526 2002-06-22  Jim Meyering  <meyering@lucent.com>
76527
76528         * m4/c-stack.m4: New file, from diffutils-2.8.2.
76529         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
76530
76531         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
76532         now that configure.ac uses AC_GNU_SOURCE.
76533         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
76534         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
76535
76536         Update to latest tools.  Suggestions from Paul Eggert.
76537         * m4/stdbool.m4: New file, from diffutils-2.8.2.
76538         * m4/gnu-source.m4: Update from diffutils-2.8.2.
76539         * m4/fnmatch.m4: Likewise.
76540         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
76541         to AC_HEADER_STDBOOL
76542
76543 2002-06-22  Jim Meyering  <meyering@lucent.com>
76544
76545         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
76546         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
76547
76548 2002-06-22  Jim Meyering  <meyering@lucent.com>
76549
76550         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
76551
76552         * lib/exitfail.c, exitfail.h: Likewise.
76553         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
76554
76555         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
76556         of fnmatch.h.
76557         (EXTRA_DIST): Add fnmatch_loop.c.
76558         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
76559
76560         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
76561         * lib/fnmatch.c: Update from diffutils-2.8.2.
76562         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
76563         * lib/fnmatch.h: Remove file.
76564
76565 2002-06-21  Jim Meyering  <meyering@lucent.com>
76566
76567         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
76568         * m4/mbrtowc.m4: Likewise.
76569
76570         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
76571         * m4/mbswidth.m4: Reflect name change:
76572         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
76573         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
76574
76575         * m4/lib-link.m4: Update from gettext-0.11.2.
76576         * m4/gettext.m4: Likewise.
76577
76578         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
76579         From Alfred M. Szmidt.
76580
76581 2002-06-18  Paul Eggert  <eggert@twinsun.com>
76582
76583         * lib/file-type.h: Report an error if neither S_ISREG nor
76584         S_IFREG is defined, instead of using a test specific to glibc
76585         2.2.  This should be safe, since POSIX requires S_ISREG and
76586         Unix Version 7 had S_IFREG.  We don't need to check for
76587         <sys/types.h> since we don't use any symbols that it defines.
76588
76589 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
76590
76591         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
76592         $@-t, so that each temporary file name is unique and valid in the first
76593         8 characters, for operation under DOS.
76594
76595 2002-06-15  Paul Eggert  <eggert@twinsun.com>
76596
76597         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
76598
76599 2002-06-15  Jim Meyering  <meyering@lucent.com>
76600
76601         Work even with DJGPP 2.03, which lacks support for symlinks.
76602         From Richard Dawe.
76603         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
76604         is defined.
76605         * lib/lchown.c (S_ISLNK): Likewise.
76606
76607 2002-06-15  Jim Meyering  <meyering@lucent.com>
76608
76609         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
76610         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
76611         have been included before this file.
76612
76613 2002-06-14  Jim Meyering  <meyering@lucent.com>
76614
76615         * lib/file-type.h: Use the version from diffutils-2.8.2.
76616         * lib/file-type.c: Likewise.
76617
76618 2002-06-07  Jim Meyering  <meyering@lucent.com>
76619
76620         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
76621         They're needed at least for NetBSD 1.5.2.
76622         ($statxfs_includes): Include those same headers.
76623         ($statxfs_includes): Include sys/vfs.h if available.
76624         ($statxfs_includes): Likewise for sys/statvfs.h.
76625         Check for the following members in both structs statfs and statvfs:
76626         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
76627
76628 2002-06-01  Jim Meyering  <meyering@lucent.com>
76629
76630         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
76631         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
76632
76633 2002-05-28  Jim Meyering  <meyering@lucent.com>
76634
76635         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
76636         Reported by Volker Borchert.
76637
76638 2002-05-27  Jim Meyering  <meyering@lucent.com>
76639
76640         Fix a problem seen only on nonconforming systems whereby ls.c's
76641         use of localtime, and then of gettimeofday would cause trouble:
76642         the localtime call used to initialize rpl_gettimeofday's save
76643         mechanism would clobber ls's current local time information so
76644         that in any long listing the first file would always be listed
76645         with date 1970-01-01.  Analysis by Volker Borchert.
76646
76647         * lib/gettimeofday.c (localtime): Undefine.
76648         (rpl_localtime): New function.
76649
76650 2002-05-27  Jim Meyering  <meyering@lucent.com>
76651
76652         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
76653         localtime.
76654
76655         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
76656         use the replacement function; it wouldn't resolve at link time.
76657         Reported by Volker Borchert.
76658
76659 2002-05-22  Jim Meyering  <meyering@lucent.com>
76660
76661         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
76662         file-type.h.
76663         * lib/file-type.h: New file.
76664         * lib/file-type.c (file_type): New file/function.  Extracted from
76665         diffutils.
76666
76667 2002-04-30  Jim Meyering  <meyering@lucent.com>
76668
76669         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
76670
76671 2002-04-29  Paul Eggert  <eggert@twinsun.com>
76672
76673         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
76674
76675 2002-04-29  Paul Eggert  <eggert@twinsun.com>
76676
76677         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
76678         Do not check for alloca.h (no longer used) or stdbool.h (was never
76679         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
76680
76681 2002-04-29  Paul Eggert  <eggert@twinsun.com>
76682
76683         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
76684
76685 2002-04-29  Jim Meyering  <meyering@lucent.com>
76686
76687         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
76688         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
76689         Use AC_FUNC_STRNLEN here instead.
76690
76691         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
76692         With autoconf-2.53a, it's part of AC_PROG_CC.
76693
76694 2002-04-28  Paul Eggert  <eggert@twinsun.com>
76695
76696         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
76697         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
76698
76699 2002-04-28  Paul Eggert  <eggert@twinsun.com>
76700
76701         * lib/sig2str.h, lib/sig2str.c: New files.
76702         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
76703
76704 2002-04-28  Paul Eggert  <eggert@twinsun.com>
76705
76706         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
76707         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
76708         of 127, since 64 is the largest conceivable number for ancient
76709         nonstandard hosts.
76710         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
76711
76712 2002-04-28  Jim Meyering  <meyering@lucent.com>
76713
76714         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
76715
76716 2002-04-24  Jim Meyering  <meyering@lucent.com>
76717
76718         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
76719         (jm_PREREQ): Use it.
76720
76721         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
76722         mach/mach.h fcntl.h.
76723         Check for this function: setlocale.
76724
76725 2002-04-24  Jim Meyering  <meyering@lucent.com>
76726
76727         * lib/gettext.h: New file, from Gettext.
76728         * lib/Makefile.am (INCLUDES): Remove -I../intl.
76729         (libfetish_a_SOURCES): Add gettext.h.
76730
76731 2002-04-16  Jim Meyering  <meyering@lucent.com>
76732
76733         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
76734         ut_pid, ut_id, ut_exit.
76735
76736 2002-04-16  Jim Meyering  <meyering@lucent.com>
76737
76738         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
76739         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
76740         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
76741
76742 2002-04-12  Jim Meyering  <meyering@lucent.com>
76743
76744         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
76745         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
76746         existence of the getmntinfo function.  Needed for Darwin 5.3.
76747
76748         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
76749         This is necessary at least on Darwin 5.3.
76750
76751         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
76752         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
76753         strnlen.o in the library, and that makes some versions of ranlib
76754         object.
76755
76756 2002-04-12  Jim Meyering  <meyering@lucent.com>
76757
76758         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
76759
76760 2002-04-09  Jim Meyering  <meyering@lucent.com>
76761
76762         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
76763         to be more precise.  Rather than saying we're checking whether the
76764         function `works', say what we're testing.
76765         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
76766         Reported by Bruno Haible.
76767
76768 2002-03-10  Jim Meyering  <meyering@lucent.com>
76769
76770         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
76771         Suggestion from Santiago Vila.
76772
76773 2002-03-08  Jim Meyering  <meyering@lucent.com>
76774
76775         * lib/rename.c: Mention that this wrapper is needed also on
76776         mips-dec-ultrix4.4 systems.
76777
76778 2002-03-02  Jim Meyering  <meyering@lucent.com>
76779
76780         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
76781         not HAVE_CLOCK_SETTIME.
76782
76783 2002-02-27  Paul Eggert  <eggert@twinsun.com>
76784
76785         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
76786         Check for clock_settime.
76787
76788 2002-02-27  Paul Eggert  <eggert@twinsun.com>
76789
76790         * lib/nanosleep.h: Rename to....
76791         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
76792
76793         * lib/gettime.c: New file.
76794         * lib/settime.c: New file.
76795         * lib/stime.c: Remove.
76796
76797         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
76798         timespec.h.  Remove nanosleep.h.
76799
76800 2002-02-25  Paul Eggert  <eggert@twinsun.com>
76801
76802         * m4/acl.m4: New file.
76803         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
76804         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
76805
76806 2002-02-25  Paul Eggert  <eggert@twinsun.com>
76807
76808         * lib/acl.c, lib/acl.h: New files.
76809         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
76810
76811 2002-02-24  Jim Meyering  <meyering@lucent.com>
76812
76813         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
76814         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
76815         cause trouble.  Reported by Nelson Beebe.
76816
76817 2002-02-23  Paul Eggert  <eggert@twinsun.com>
76818
76819         * lib/path-concat.c (xpath_concat): Reorder code to pacify
76820         compilers that don't know that xalloc_die never returns.
76821
76822 2002-02-20  Jim Meyering  <meyering@lucent.com>
76823
76824         * lib/getdate.c: Regenerate using bison-1.33.
76825
76826 2002-02-17  Jim Meyering  <meyering@lucent.com>
76827
76828         * config/config.guess (main): Don't use `head -1'; it's no longer
76829         portable. Use `sed 1q' instead.
76830
76831 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
76832
76833         * m4/codeset.m4: Upgrade to gettext-0.11.
76834         * m4/gettext.m4: Upgrade to gettext-0.11.
76835         * m4/glibc21.m4: Upgrade to gettext-0.11.
76836         * m4/iconv.m4: Upgrade to gettext-0.11.
76837         * m4/isc-posix.m4: Upgrade to gettext-0.11.
76838         * m4/lcmessage.m4: Upgrade to gettext-0.11.
76839         * m4/lib-ld.m4: New file, from gettext-0.11.
76840         * m4/lib-link.m4: New file, from gettext-0.11.
76841         * m4/lib-prefix.m4: New file, from gettext-0.11.
76842         * m4/progtest.m4: Upgrade to gettext-0.11.
76843
76844 2002-02-15  Paul Eggert  <eggert@twinsun.com>
76845
76846         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
76847         (jm_PREREQ): Use it.
76848
76849 2002-02-15  Paul Eggert  <eggert@twinsun.com>
76850
76851         * lib/posixver.c, lib/posixver.h: New files.
76852         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
76853
76854 2002-02-02  Paul Eggert  <eggert@twinsun.com>
76855             Bruno Haible  <bruno@clisp.org>
76856
76857         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
76858         (fwrite_success_callback): New declaration.
76859         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
76860         print_unicode_char. Call failure callback instead of error.
76861         (fwrite_success_callback): New function.
76862         (exit_failure_callback): New function.
76863         (fallback_failure_callback): New function.
76864         (print_unicode_char): Call unicode_to_mb.
76865
76866 2002-01-26  Jim Meyering  <meyering@lucent.com>
76867
76868         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
76869         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
76870
76871 2002-01-26  Jim Meyering  <meyering@lucent.com>
76872
76873         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
76874
76875 2002-01-22  Paul Eggert  <eggert@twinsun.com>
76876
76877         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
76878
76879 2002-01-22  Jim Meyering  <meyering@lucent.com>
76880
76881         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
76882         Otherwise, some versions of automake would omit the rule that makes
76883         Makefile from Makefile.in.
76884
76885 2002-01-21  Paul Eggert  <eggert@twinsun.com>
76886
76887         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
76888         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
76889         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
76890         (memcoll): Set errno to zero if there is no error.
76891
76892         * lib/quotearg.c (quotearg_buffer_restyled):
76893         Fix bug with quoting buffers containing NUL when backslashing escapes.
76894         This bug was exposed by the other changes in this patch.
76895         (quotearg_n_options): New arg ARGSIZE.
76896         All callers changed.
76897         (quoting_options_from_style): New function.
76898         (quotearg_n_style): Use it.
76899         (quotearg_n_style_mem): New function.
76900
76901         * lib/quotearg.h (quotearg_n_style_mem): New function.
76902
76903 2002-01-19  Jim Meyering  <meyering@lucent.com>
76904
76905         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
76906         Remove useless quotes: DF_PROG="df".
76907         * m4/strnlen.m4: New file.
76908
76909 2002-01-16  Paul Eggert  <eggert@twinsun.com>
76910
76911         * lib/backupfile.c (ISDIGIT): Comment fix.
76912         * lib/getdate.y (ISDIGIT): Likewise.
76913         * lib/posixtm.c (ISDIGIT, year): Likewise.
76914         * lib/strverscmp.c (ISDIGIT): Likewise.
76915         * lib/userspec.c (ISDIGIT): Likewise.
76916
76917 2002-01-16  Jim Meyering  <meyering@lucent.com>
76918
76919         * lib/getdate.y: Add three semicolons, each just before a closing
76920         brace. Bison (as of version 1.31) no longer papers over that mistake.
76921
76922 2002-01-05  Jim Meyering  <meyering@lucent.com>
76923
76924         * lib/version-etc.c (version_etc_copyright): Update copyright year.
76925
76926 2001-12-19  Paul Eggert  <eggert@twinsun.com>
76927
76928         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
76929         not silently exit merely because the output buffer happens to
76930         have nothing pending.
76931
76932 2001-12-18  Paul Eggert  <eggert@twinsun.com>
76933
76934         See the big note in ../ChangeLog.
76935         * lib/human.c (suffixes): Prefer K to k for 1024.
76936         (generate_suffix_backwards): New function.
76937         (human_readable_inexact): Use it.
76938         * lib/xstrtol.c (__xstrtol): If there is no number but there
76939         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
76940         Accept 'K' as well as 'k'.
76941
76942 2001-12-15  Jim Meyering  <meyering@lucent.com>
76943
76944         * lib/regex.h (__restrict_arr): Update from libc.
76945
76946         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
76947         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
76948         (STREQ): Define.
76949
76950 2001-12-14  Jim Meyering  <meyering@lucent.com>
76951
76952         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
76953         Suggestion from Bruno Haible.
76954
76955 2001-12-10  Jim Meyering  <meyering@lucent.com>
76956
76957         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
76958         xrealloc, Instead, include "xalloc.h".
76959         (initbuffer): Don't cast xmalloc return value to char*.
76960         (readline): Reword comment.
76961         Don't cast xrealloc return value to char*
76962         Return NULL, not 0.
76963
76964 2001-12-09  Jim Meyering  <meyering@lucent.com>
76965
76966         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
76967         about `signed and unsigned type in conditional expression'.
76968         * lib/posixtm.c (posix_time_parse): Likewise.
76969
76970         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
76971
76972         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
76973         to avoid a pedantic warning.
76974
76975         * lib/getstr.c: Don't include assert.h.
76976         (getstr): Remove warning-evoking assertions.
76977         Return -1 if offset parameter is out of bounds.
76978         Change the type of a local from int to size_t.
76979
76980         * lib/strftime.c (my_strftime_localtime_r): Include this function
76981         definition in the `#if ! HAVE_TM_GMTOFF' block.
76982
76983         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
76984         Include xalloc.h instead.
76985
76986 2001-12-02  Jim Meyering  <meyering@lucent.com>
76987
76988         * lib/tempname.c: Don't declare getenv, thus reverting the change of
76989         2001-11-18.  It's no longer necessary, now that stdlib.h is always
76990         included.
76991
76992         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
76993         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
76994
76995 2001-11-30  Akim Demaille  <akim@epita.fr>
76996
76997         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
76998         before being defined.
76999
77000 2001-11-27  Paul Eggert  <eggert@twinsun.com>
77001
77002         * lib/quotearg.h (quotearg_n, quotearg_n_style):
77003         First arg is int, not unsigned.
77004         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
77005         (SIZE_MAX, UINT_MAX): New macros.
77006         (quotearg_n_options): Abort if N is negative.
77007         Avoid overflow check on hosts where size_t is 64 bits and int
77008         is 32 bits, as overflow is impossible there.
77009         Fix off-by-one typo that caused unnecessary reallocation.
77010
77011 2001-11-27  Jim Meyering  <meyering@lucent.com>
77012
77013         * lib/tempname.c: Merge with version from libc.
77014         * lib/regex.c: Likewise.
77015
77016         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
77017         systems for which STDC_HEADERS is 0, it was not included, resulting in
77018         a warning about an integer-to-pointer conversion problem with getenv.
77019         Reported by Volker Borchert.
77020
77021 2001-11-26  Jim Meyering  <meyering@lucent.com>
77022
77023         * lib/gtod.h: Remove file.
77024         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
77025         * lib/gettimeofday.c: Don't include gtod.h.
77026         (GTOD_init): Remove function.
77027         (rpl_gettimeofday): Do its job here instead, rather than aborting.
77028         Suggestion from Volker Borchert.
77029
77030 2001-11-23  Jim Meyering  <meyering@lucent.com>
77031
77032         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
77033         it.
77034         * lib/hash.c (struct hash_table): Define it here instead.
77035
77036 2001-11-22  Jim Meyering  <meyering@lucent.com>
77037
77038         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
77039
77040 2001-11-20  Jim Meyering  <meyering@lucent.com>
77041
77042         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
77043         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
77044
77045 2001-11-19  Jim Meyering  <meyering@lucent.com>
77046
77047         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
77048         directory.  Use "conftestXXXXXX" as the template.
77049         Suggestion from Paul Eggert.
77050
77051         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
77052         immediately, so the test doesn't mistakenly hit the max-open-files
77053         limit.
77054
77055 2001-11-18  Paul Eggert  <eggert@twinsun.com>
77056
77057         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
77058         (TEMPORARIES): New macro.
77059         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
77060         removes an artificial limitation (e.g. HP-UX 10.20, where
77061         TMP_MAX is 17576).
77062
77063 2001-11-18  Jim Meyering  <meyering@lucent.com>
77064
77065         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
77066
77067 2001-11-18  Jim Meyering  <meyering@lucent.com>
77068
77069         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
77070         on SunOS 4.
77071
77072         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
77073         files will be created before anything else.
77074
77075 2001-11-17  Paul Eggert  <eggert@twinsun.com>
77076
77077         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
77078         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
77079
77080 2001-11-17  Jim Meyering  <meyering@lucent.com>
77081
77082         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
77083         Prompted by a report from Bob Proulx.
77084
77085         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
77086         Instead, require UTILS_FUNC_MKSTEMP.
77087
77088 2001-11-17  Jim Meyering  <meyering@lucent.com>
77089
77090         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
77091         Now, that's done as part of AC_FUNC_STRTOD.
77092
77093 2001-11-17  Jim Meyering  <meyering@lucent.com>
77094
77095         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
77096         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
77097         rather than group writable.  Patch by Juan F. Codagnone.
77098
77099         * lib/readtokens.c: Remove explicit declarations of xmalloc and
77100         xrealloc, Instead, include "xalloc.h".
77101
77102         * lib/mountlist.c: Include unlocked-io.h after all system headers.
77103         Remove explicit declarations of xmalloc, xrealloc,
77104         and xstrdup.  Instead, include "xalloc.h".
77105
77106         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
77107         unlocked-io.h.
77108         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
77109         Likewise.
77110         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
77111
77112         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
77113         Reported by Padraig Brady.
77114
77115         * lib/mkstemp.c: #undef mkstemp.
77116         Include config.h.
77117         (rpl_mkstemp): Rename from mkstemp.
77118         Protoize.
77119
77120 2001-11-16  Jim Meyering  <meyering@lucent.com>
77121
77122         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
77123         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
77124         determine the amount of total physical memory, use pstat_getstatic.
77125         HPUX-11 doesn't define _SC_PHYS_PAGES.
77126         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
77127         If sysconf couldn't be used to determine the amount of available
77128         physical memory, use both pstat_getstatic and pstat_getdynamic.
77129         Based on a patch from Bob Proulx.
77130
77131 2001-11-10  Jim Meyering  <meyering@lucent.com>
77132
77133         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
77134         (jm_PREREQ): Use it.
77135
77136 2001-11-09  Jim Meyering  <meyering@lucent.com>
77137
77138         * m4/jm-macros.m4: Require autoconf-2.52f.
77139         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
77140         Use these AC_-prefixed names, not the AM_-prefixed ones.
77141
77142         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
77143
77144 2001-11-05  Jim Meyering  <meyering@lucent.com>
77145
77146         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
77147
77148 2001-11-04  Jim Meyering  <meyering@lucent.com>
77149
77150         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
77151         $DEFS.
77152
77153 2001-11-03  Jim Meyering  <meyering@lucent.com>
77154
77155         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
77156         of AC_DEFUN.
77157
77158         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
77159         know the name of the variable in the macro definition.
77160
77161 2001-11-03  Jim Meyering  <meyering@lucent.com>
77162
77163         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
77164         in argmatch_to_argument call.
77165
77166         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
77167         argument.
77168
77169         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
77170         e.g., a fault due to an attempt to free a NULL pointer.
77171
77172 2001-11-01  Jim Meyering  <meyering@lucent.com>
77173
77174         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
77175         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
77176
77177 2001-11-01  Jim Meyering  <meyering@lucent.com>
77178
77179         * lib/dirfd.c, lib/dirfd.h: New files.
77180         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
77181
77182         * lib/hash.c (hash_print) [TESTING]: Clean up.
77183
77184 2001-10-22  Paul Eggert  <eggert@twinsun.com>
77185
77186         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
77187         to avoid a warning if -Wall.
77188
77189 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
77190
77191         * README: New file
77192         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
77193         (per RMS's instructions, this is now the canonical source)
77194         * lgpl/, gpl/: New directories.
77195
77196 2001-10-21  Paul Eggert  <eggert@twinsun.com>
77197
77198         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
77199
77200 2001-10-21  Jim Meyering  <meyering@lucent.com>
77201
77202         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
77203         this code would end up calling gettext even in packages built
77204         with --disable-nls.
77205         * lib/getopt.c (_): Likewise.
77206         * lib/regex.c (_): Likewise.
77207
77208 2001-10-20  Paul Eggert  <eggert@twinsun.com>
77209
77210         * m4/error.m4 (jm_PREREQ_ERROR):
77211         Do not invoke AC_CHECK_FUNCS with strerror_r, as
77212         AC_FUNC_STRERROR_R does that.
77213         Check for strerror declaration.
77214
77215         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
77216         are supposed to have them these days.
77217         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
77218         Merge changes from latest Autoconf CVS.
77219         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
77220         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
77221         POSIX decided to standardize on the int flavor of strerror_r.
77222
77223 2001-10-20  Paul Eggert  <eggert@twinsun.com>
77224
77225         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
77226         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
77227         Use strerror_r that is only a macro, even if it is not a function.
77228         (strerror): Check for HAVE_DECL_STRERROR before declaring.
77229         (private_strerror): Use prototypes, not old-style function definition.
77230         (print_errno_message): New function.
77231         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
77232         char*-flavored one.
77233         (error_tail, error, error_at_line): Use it.
77234
77235 2001-10-11  Jim Meyering  <meyering@lucent.com>
77236
77237         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
77238         and quote_n (1, ... to avoid clobbering a buffer.
77239
77240 2001-10-05  Jim Meyering  <meyering@lucent.com>
77241
77242         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
77243         hash-pjw.h.
77244         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
77245         * lib/hash-pjw.h: New file.
77246
77247 2001-09-30  Jim Meyering  <meyering@lucent.com>
77248
77249         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
77250         `struct fsstat' has the `f_fstypename' member.
77251         Use that to define FS_TYPE, which is now used to make
77252         the getfsstat link test tighter.
77253
77254 2001-09-30  Jim Meyering  <meyering@lucent.com>
77255
77256         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
77257         Include <sys/ucred.h>, for Apple Darwin.
77258         Include sys/mount.h and sys/fs_types.h only if available.
77259         (FS_TYPE): Define.
77260         (read_filesystem_list): Use FS_TYPE.
77261
77262 2001-09-29  Paul Eggert  <eggert@twinsun.com>
77263
77264         * lib/exclude.c (excluded_filename): 0 -> false, since it's
77265         a boolean context.
77266
77267 2001-09-29  Jim Meyering  <meyering@lucent.com>
77268
77269         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
77270         [one-argument getmntent function]): Include stdio.h before mntent.h.
77271         SunOS 4.1.x needs it for the declaration of `FILE'.
77272         Patch by Volker Borchert.
77273
77274         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
77275         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
77276         sys/fs_types.h, and make the link-test for getfsstat guard #include
77277         directives with appropriate #if HAVE_*_H tests so that we can
77278         detect getfsstat on Apple Darwin1.3.7 systems.
77279         Reported by Nelson Beebe.
77280         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
77281
77282 2001-09-28  Paul Eggert  <eggert@twinsun.com>
77283
77284         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
77285         #defines strtoimax.  Also treat the other strto* functions
77286         like strtoimax.
77287
77288         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
77289         Check for strtoul and strtoumax,
77290         as those declarations are made even in the signed case.
77291         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
77292         Likewise, for strtol and strtoimax.
77293
77294 2001-09-28  Paul Eggert  <eggert@twinsun.com>
77295
77296         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
77297         #defines strtoimax.  Also treat the other strto* functions
77298         like strtoimax.
77299
77300         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
77301         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
77302         (strtoimax, strtoumax): Do not declare if already defined as a macro.
77303
77304 2001-09-26  Jim Meyering  <meyering@lucent.com>
77305
77306         Most macros in unlocked-io.h had the wrong number of arguments.
77307         * lib/gen-uio: New script.
77308         (USE_UNLOCKED_IO): Define to 1 if not already defined.
77309         * lib/unlocked-io.hin: Remove file.
77310         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
77311         rather than trying to embed it here.
77312         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
77313         Reported by Padraig Brady.
77314
77315 2001-09-25  Volker Borchert  <bt@teknon.de>
77316
77317         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
77318         `result'.
77319
77320 2001-09-24  Jim Meyering  <meyering@lucent.com>
77321
77322         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
77323
77324 2001-09-23  Jim Meyering  <meyering@lucent.com>
77325
77326         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
77327         instead of the mere test for existence of mntent.h.  The latter
77328         would get a false-positive on AIX 3.4 systems.
77329         In the outer getmntent if-block, don't die if neither of the getmntent
77330         tests succeeds.  Instead, just fall through and continue with the
77331         remaining tests.
77332
77333 2001-09-23  Jim Meyering  <meyering@lucent.com>
77334
77335         * lib/mountlist.c: Remove useless parentheses in #if directives.
77336         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
77337         the deprecated MOUNTED symbol is no longer defined in mntent.h.
77338
77339 2001-09-22  Jim Meyering  <meyering@lucent.com>
77340
77341         * m4/gettext.m4: New file.  From gettext.
77342         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
77343         * m4/progtest.m4: Likewise
77344         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
77345         * m4/glibc21.m4: Likewise.
77346
77347         * m4/libintl.m4: Remove.  No longer used.
77348
77349 2001-09-22  Jim Meyering  <meyering@lucent.com>
77350
77351         * lib/localcharset.c: Update from latest gettext.
77352         * lib/config.charset: Likewise.
77353
77354 2001-09-20  Jim Meyering  <meyering@lucent.com>
77355
77356         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
77357         strtoimax.
77358         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
77359         strtoumax.
77360
77361 2001-09-20  Jim Meyering  <meyering@lucent.com>
77362
77363         * lib/xstrtol.c (strtoimax): Guard declaration with
77364         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
77365         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
77366         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
77367         (strtoumax): Likewise, for completeness (it wasn't necessary).
77368
77369 2001-09-17  Paul Eggert  <eggert@twinsun.com>
77370
77371         * lib/strtoimax.c (HAVE_LONG_LONG):
77372         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
77373         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
77374         to work around bug in IBM C compiler.
77375
77376 2001-09-17  Jim Meyering  <meyering@lucent.com>
77377
77378         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
77379         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
77380         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
77381         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
77382         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
77383         whenever the right hand side need not be expanded by the shell.
77384
77385 2001-09-16  Paul Eggert  <eggert@twinsun.com>
77386
77387         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
77388         library.  It's not correct, as some older glibcs are buggy.
77389         fnmatch wasn't fixed until glibc 2.2.
77390
77391         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
77392         special shell magic here.
77393
77394 2001-09-16  Jim Meyering  <meyering@lucent.com>
77395
77396         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
77397         * m4/jm-macros.m4: Require it.
77398
77399 2001-09-16  Jim Meyering  <meyering@lucent.com>
77400
77401         * lib/mkdir.c: New file.
77402
77403 2001-09-15  Jim Meyering  <meyering@lucent.com>
77404
77405         * m4/jm-macros.m4: Check for help2man.
77406
77407 2001-09-11  Jim Meyering  <meyering@lucent.com>
77408
77409         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
77410         The body, by Paul Eggert, was moved here from configure.in.
77411         * m4/jm-macros.m4: Require UTILS_HOST_OS.
77412
77413 2001-09-04  Paul Eggert  <eggert@twinsun.com>
77414
77415         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
77416         (jm_PREREQ): Use it.
77417
77418 2001-09-04  Paul Eggert  <eggert@twinsun.com>
77419
77420         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
77421         Use ssize_t, not int, to store result of readlink.
77422         Check for ssize_t overflow as well as size_t overflow,
77423         as POSIX says the result of readlink is implementation-defined
77424         when ssize_t overflows.
77425         Remove unnecessary cast to char*.
77426         Use free+malloc instead of realloc, as the storage doesn't need
77427         to be preserved and it's clearer and can be more efficient that way.
77428         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
77429         * lib/xreadlink.h (xreadlink): Update prototype.
77430
77431 2001-09-04  Paul Eggert  <eggert@twinsun.com>
77432
77433         * lib/xgetcwd.c: Revert some of the previous change; intead,
77434         fix the HAVE_GETCWD_NULL code to behave more like the
77435         !HAVE_GETCWD_NULL code used to.
77436
77437         Include "xalloc.h".
77438         (xgetcwd): Do not return NULL when memory is exhausted; instead,
77439         invoke xalloc_die.
77440
77441 2001-09-03  Paul Eggert  <eggert@twinsun.com>
77442
77443         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
77444         sys/param.h, as pathmax.h includes them.
77445
77446 2001-09-03  Paul Eggert  <eggert@twinsun.com>
77447
77448         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
77449         (jm_PREREQ_XGETCWD): New macro.
77450
77451         * m4/getcwd.m4: New file.
77452
77453 2001-09-03  Paul Eggert  <eggert@twinsun.com>
77454
77455         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
77456         like the HAVE_GETCWD_NULL code.
77457         Include pathmax.h if not HAVE_GETCWD.
77458         Do not include xalloc.h.
77459         (INITIAL_BUFFER_SIZE): New symbol.
77460         Do not use xmalloc / xrealloc, since the caller is responsible for
77461         handling errors.  Preserve errno around `free' during failure.
77462         Do not overrun buffer when using getwd.
77463
77464 2001-09-03  Paul Eggert  <eggert@twinsun.com>
77465
77466         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
77467         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
77468         getcwd (NULL, 0).
77469
77470 2001-09-03  Paul Eggert  <eggert@twinsun.com>
77471
77472         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
77473         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
77474         spotted by Jim Meyering.
77475
77476 2001-09-03  Jim Meyering  <meyering@lucent.com>
77477
77478         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
77479         failure.
77480
77481 2001-09-02  Jim Meyering  <meyering@lucent.com>
77482
77483         * lib/error.c: Update from GNU libc.
77484
77485 2001-09-01  Jim Meyering  <meyering@lucent.com>
77486
77487         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
77488         Used by df.
77489
77490 2001-09-01  Jim Meyering  <meyering@lucent.com>
77491
77492         * lib/xreadlink.c: New file.
77493         * lib/xreadlink.h: New file.
77494         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
77495         xreadlink.h.
77496
77497         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
77498         doesn't conflict with sparc Solaris 7's definition in
77499         /usr/include/sys/int_types.h.
77500
77501         * lib/exclude.c: Use `""', not `<>' to #include non-system header
77502         files.
77503         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
77504         and strncasecmp as r-values.  Unixware didn't have declarations.
77505
77506 2001-08-31  Paul Eggert  <eggert@twinsun.com>
77507
77508         * lib/xstrtol.h: Add copyright notice.
77509         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
77510         LONGINT_INVALID_SUFFIX_CHAR.
77511
77512 2001-08-31  Paul Eggert  <eggert@twinsun.com>
77513
77514         * lib/xstrtol.c (strtoimax): New decl.
77515
77516 2001-08-31  Paul Eggert  <eggert@twinsun.com>
77517
77518         * lib/xgetcwd.c: Don't include pathmax.h.
77519         Include stdlib.h and unistd.h if available.
77520         Include xalloc.h.
77521         (xmalloc, xstrdup, free): Remove decls.
77522         (xgetcwd): Don't assume sizes fit in unsigned.
77523         Check for overflow when computing sizes.
77524         Simplify reallocation code.
77525
77526 2001-08-31  Paul Eggert  <eggert@twinsun.com>
77527
77528         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
77529         a directory's st_size can have an arbitrary value, so the old
77530         usage could waste an arbitrary amount of memory.  All uses
77531         changed.
77532         * lib/savedir.h: Update prototype.
77533
77534 2001-08-31  Paul Eggert  <eggert@twinsun.com>
77535
77536         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
77537
77538         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
77539         old strtoimax.c.
77540
77541         Also, make the following further changes to make this file's
77542         configuration more similar to that of strtol.c:
77543         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
77544         (strtoumax, uintmax_t, strtoull, strtol): Remove.
77545         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
77546         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
77547         changed to signed values.
77548
77549         And make the following changes as well:
77550         Fix copyright notice, as 1999 was missing.
77551         (verify): New macro.
77552         (strtoimax): Check sizes at compile-time, not run-time.
77553         Prefer strtol to strtoll if both work.
77554         (main): Remove; it was not that useful and was a pain to maintain.
77555
77556         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
77557
77558 2001-08-31  Jim Meyering  <meyering@lucent.com>
77559
77560         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
77561         Use an initial, malloc'd, buffer of length 128 rather than
77562         a statically allocated one of length 1024.
77563
77564 2001-08-30  Paul Eggert  <eggert@twinsun.com>
77565
77566         Simplify code, partly by assuming autoconf 2.52 semantics.
77567
77568         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
77569
77570         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
77571         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
77572         All uses removed.
77573         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
77574         Move AC_REQUIRE to next-to-top level, to avoid confusion.
77575         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
77576         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
77577         jm_AC_HEADER_INTTYPES_H.
77578         * m4/jm-macros.m4 (jm_MACROS): Likewise.
77579
77580         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
77581
77582         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
77583         Quote first arg of AC_DEFUN.
77584         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
77585         since they are needed to parse the include file even if we need
77586         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
77587         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
77588         but with opposite signedness.
77589
77590 2001-08-30  Paul Eggert  <eggert@twinsun.com>
77591
77592         Merge 'exclude' changes from tar 1.13.22.
77593         This fixes one or two unlikely storage allocation overflow bugs,
77594         but doesn't change user-visible behavior otherwise.
77595
77596 2001-08-30  Paul Eggert  <eggert@twinsun.com>
77597
77598         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
77599         (jm_PREREQ_EXCLUDE): New macro.
77600
77601 2001-08-30  Paul Eggert  <eggert@twinsun.com>
77602
77603         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
77604         tm to be declared.
77605
77606 2001-08-30  Paul Eggert  <eggert@twinsun.com>
77607
77608         * lib/hash.c: Remove '2001' from copyright notice.
77609
77610 2001-08-30  Paul Eggert  <eggert@twinsun.com>
77611
77612         * lib/full-write.h: New file.
77613         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
77614         * lib/full-write.c: Correct credits, as cccp.c no longer
77615         exists and anyway it was so heavily changed from the old cccp
77616         code as to be unrecognizable.  Include full-write.h.
77617         (full_write): Return size_t, with short writes meaning failure.
77618         All callers changed.  This fixes a bug with large buffers
77619         on 64-bit hosts.
77620         * lib/utime.c: Include full-write.h.
77621
77622 2001-08-30  Paul Eggert  <eggert@twinsun.com>
77623
77624         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
77625         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
77626         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
77627         Include if available.
77628         (<xalloc.h>): Include
77629         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
77630         (verify): New macro.  Use it to verify that EXCLUDE macros do not
77631         collide with FNM macros.
77632         (struct patopts): New struct.
77633         (struct exclude): Use it, as exclude patterns now come with options.
77634         (new_exclude): Support above changes.
77635         (new_exclude, add_exclude_file):
77636         Initial size must now be a power of two to simplify overflow checking.
77637         (free_exclude, fnmatch_no_wildcards): New function.
77638         (excluded_filename): No longer requires options arg, as the options
77639         are determined by add_exclude.  Now returns bool, not int.
77640         (excluded_filename, add_exclude):
77641         Add support for the fancy new exclusion options.
77642         (add_exclude, add_exclude_file): Now takes int options arg.
77643         Check for arithmetic overflow when computing sizes.
77644         (add_exclude_file): xrealloc might modify errno, so don't
77645         realloc until after errno might be used.
77646
77647         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
77648         New macros.
77649         (free_exclude): New decl.
77650         (add_exclude, add_exclude_file): Now takes int options arg.
77651         (excluded_filename): No longer requires options arg, as the options
77652         are determined by add_exclude.  Now returns bool, not int.
77653
77654 2001-08-30  Paul Eggert  <eggert@twinsun.com>
77655
77656         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
77657
77658 2001-08-27  Jim Meyering  <meyering@lucent.com>
77659
77660         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
77661
77662         * lib/version-etc.c (N_): Remove definition.
77663         Revert most of last change.
77664         Instead, simply don't mark the `Copyright...' string for translation.
77665         Based on advice from Paul Eggert.
77666
77667         * lib/strtoxmax.c: Tweak comment.
77668
77669 2001-08-26  Jim Meyering  <meyering@lucent.com>
77670
77671         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
77672
77673         * m4/xstrtoimax.m4: New file.
77674         * m4/xstrtoumax.m4: Add comments explaining why we
77675         AC_REPLACE_FUNCS(strtol).
77676
77677 2001-08-26  Jim Meyering  <meyering@lucent.com>
77678
77679         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
77680         of copyright with `%s' so translators don't get an untranslated
77681         message in 2002.
77682         (COPYRIGHT_YEAR): Define.
77683         (version_etc): Use fprintf rather than fputs.
77684         Suggestion from Ulrich Drepper.
77685
77686         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
77687
77688         * lib/strtoll.c: New file, from GNU libc.
77689         * lib/xstrtoimax.c: New file.
77690
77691         * lib/xstrtol.h: Add xstrtoimax.
77692         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
77693         * lib/strtoimax.c: New file.  Likewise, but first define
77694         STRTOUXMAX_SIGNED.
77695
77696         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
77697         ...
77698         * lib/strtoxmax.c: ... then renamed to this.
77699
77700 2001-08-18  Paul Eggert  <eggert@twinsun.com>
77701
77702         * m4/inttypes.m4: Add AC_PREREQ(2.13).
77703         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
77704         (jm_AC_TYPE_INTMAX_T): New macro.
77705         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
77706
77707         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
77708
77709         * m4/longlong.m4: Renamed from ulonglong.m4.
77710         * m4/inttypes.m4: Renamed from inttypes_h.m4.
77711         * m4/uintmax_t.m4: Removed.
77712
77713 2001-08-13  Paul Eggert  <eggert@twinsun.com>
77714
77715         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
77716         Port to Solaris 8, where 'sed' requires a space after the 'r'
77717         command, and where sh dislikes "$/".  Clean up the spacing a bit.
77718         Redirect output to $tmp just once.
77719
77720 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
77721
77722         * lib/addext.c (<errno.h>): Include.
77723         (errno): Declare if not defined.
77724         (addext): Work correctly when pathconf returns -1 and leaves
77725         errno alone because there is no limit.  Also, work even if
77726         pathconf returns a value greater than SIZE_MAX.
77727
77728 2001-08-12  Jim Meyering  <meyering@lucent.com>
77729
77730         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
77731         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
77732         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
77733         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
77734         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
77735         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
77736         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
77737         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
77738         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
77739         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
77740         utime.m4, utimes.m4, xstrtoumax.m4:
77741         Quote the first argument in each use of AC_DEFUN.
77742
77743 2001-08-12  Jim Meyering  <meyering@lucent.com>
77744
77745         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
77746         Simply `return getcwd (NULL, 0);'.
77747         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
77748         Use 1300 as initial value for length, not PATH_MAX.
77749
77750         * lib/pathmax.h: Clean up cpp syntax.
77751
77752 2001-08-12  Jim Meyering  <meyering@lucent.com>
77753
77754         * lib/gettimeofday.c: New file.
77755         * lib/gtod.h: New file.
77756         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
77757
77758 2001-08-05  Jim Meyering  <meyering@lucent.com>
77759
77760         * m4/jm-macros.m4: Require autoconf-2.52.
77761
77762 2001-08-04  Jim Meyering  <meyering@lucent.com>
77763
77764         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
77765         stmt, to get in sync with glibc.
77766
77767 2001-08-03  Paul Eggert  <eggert@twinsun.com>
77768
77769         The following changes are from gettext 0.10.39 as maintained by
77770         Bruno Haible.
77771
77772         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
77773         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
77774         with inverted sense.  All uses changed.
77775
77776         * lib/mbswidth.c: Don't include <limits.h>.
77777         Include <stdlib.h> and <string.h> unconditionally.
77778         (iswcntrl, mbsinit, ISCNTRL): New macros.
77779         (mbsnwidth): Use K&R style function declarations.
77780         Don't bother checking for MB_LEN_MAX == 1, since the compiler
77781         can optimize it when MB_CUR_MAX == 1.
77782         The width of control characters is zero, not 1.
77783
77784 2001-08-03  Paul Eggert  <eggert@twinsun.com>
77785
77786         The following changes are from gettext 0.10.39 as maintained by
77787         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
77788
77789         * m4/codeset.m4: Upgrade to serial AM1.
77790         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
77791         all uses changed.  Quote first arg of AC_DEFUN.
77792         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
77793
77794         * m4/iconv.m4: Upgrade to serial AM2.
77795         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
77796         Add --with-libconv-prefix.
77797         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
77798         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
77799         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
77800         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
77801         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
77802
77803         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
77804         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
77805         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
77806         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
77807         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
77808         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
77809         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
77810         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
77811         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
77812
77813         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
77814         string.h any more.
77815
77816         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
77817         not the default value.
77818
77819         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
77820         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
77821         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
77822         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
77823         Also check for iswcntrl, used for wcwidth fallback.
77824         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
77825         to Autoconf 2.13.
77826
77827 2001-08-03  Jim Meyering  <meyering@lucent.com>
77828
77829         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
77830         as it was in the original.  Reported by Paul Eggert.
77831
77832 2001-07-16  Jim Meyering  <meyering@lucent.com>
77833
77834         * m4/gettimeofday.m4: New file.
77835         Prompted by a report from Bernhard Baehr.
77836
77837 2001-07-15  Jim Meyering  <meyering@lucent.com>
77838
77839         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
77840         stuff. Now it's in ../Makefile.cfg.
77841
77842 2001-07-15  Jim Meyering  <meyering@lucent.com>
77843
77844         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
77845         (BUILT_SOURCES): Add unlocked-io.h.
77846         (io_functions): Define.
77847         (unlocked-io.h): New rule.
77848         (DISTCLEANFILES): Add unlocked-io.h.
77849         (all-local): Depend on unlocked-io.h, to ensure it is created.
77850
77851         * lib/unlocked-io.hin: New file
77852
77853         * lib/regex.c: Update from glibc.
77854
77855 2001-07-05  Jim Meyering  <meyering@lucent.com>
77856
77857         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
77858         recommendation.
77859         (libfetish_a_SOURCES): Put all .h files here instead.
77860         Remove a thus-exposed (better checks in automake) duplicate and
77861         two unnecessary .h files.
77862
77863 2001-07-04  Jim Meyering  <meyering@lucent.com>
77864
77865         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
77866         that generates jm-glibc-io.m4 so that it doesn't trigger any make
77867         distcheck failure.
77868
77869 2001-07-02  Jim Meyering  <meyering@lucent.com>
77870
77871         The following changes were prompted by suggestions from Bruno Haible.
77872
77873         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
77874         is now generated.
77875         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
77876         definition of EXTRA_DIST.
77877         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
77878         ensure that the generated file is created/updated whenever the list
77879         of $(unlocked_functions) is changed.
77880         (jm-glibc-io.m4): New rule.
77881         (unlocked-io.h): New rule -- currently unused.
77882
77883 2001-06-24  Jim Meyering  <meyering@lucent.com>
77884
77885         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
77886         unmatched right bracket, rather than kludging it with an extra,
77887         falsely-matching quote in a comment.  Patch by Akim Demaille.
77888
77889 2001-06-11  Jim Meyering  <meyering@lucent.com>
77890
77891         * lib/regex.c: Update from GNU libc.
77892
77893 2001-05-27  Jim Meyering  <meyering@lucent.com>
77894
77895         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
77896         Check for ut_type in struct utmp.
77897
77898 2001-05-27  Jim Meyering  <meyering@lucent.com>
77899
77900         * lib/readutmp.h (UT_TYPE): Define.
77901
77902 2001-05-24  Jim Meyering  <meyering@lucent.com>
77903
77904         * lib/argmatch.c: Include "quote.h".
77905         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
77906         quote function.  Reported by Göran Uddeborg.
77907
77908 2001-05-22  Jim Meyering  <meyering@lucent.com>
77909
77910         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
77911         now that we use the package-supplied version unconditionally.
77912         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
77913
77914 2001-05-21  Jim Meyering  <meyering@lucent.com>
77915
77916         * m4/regex.m4: Change a couple backticks to single quotes to avoid
77917         shell syntax errors.
77918
77919 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
77920
77921         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
77922
77923 2001-05-20  Paul Eggert  <eggert@twinsun.com>
77924
77925         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
77926         Don't bother to check library strftime, since
77927         we'll be using our own my_strftime function anyway.
77928         Define my_strftime instead of strftime.
77929
77930 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
77931
77932         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
77933         which is not yet declared.
77934
77935 2001-05-15  Jim Meyering  <meyering@lucent.com>
77936
77937         * m4/regex.m4: Use proper quoting so brackets appear in the test
77938         program.
77939         Reported by, and with help from, Bruno Haible.
77940
77941 2001-05-13  Jim Meyering  <meyering@lucent.com>
77942
77943         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
77944         undefined.
77945
77946 2001-05-11  Paul Eggert  <eggert@twinsun.com>
77947
77948         dirname code cleanup.  base_name now behaves more compatibly
77949         with POSIX basename when given file names that have trailing
77950         slashes, and similarly for dir_name.  Add new primitives
77951         base_len and dir_len.  Put the directory-name-related decls
77952         into dirname.h.
77953
77954         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
77955         * lib/backupfile.c (base_name): Likewise.
77956         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
77957         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
77958         * lib/makepath.c (strip_trailing_slashes): Likewise.
77959         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
77960         ISSLASH): Likewise.
77961         * lib/rename.c (strip_trailing_slashes): Likewise.
77962         * lib/same.c (base_name): Likewise.
77963         * lib/stripslash.c (ISSLASH): Likewise.
77964
77965         * lib/addext.c: Include <dirname.h> after size_t is defined.
77966         * lib/backupfile.c: Likewise.
77967
77968         * lib/addext.c (addext): Use base_len to trim redundant
77969         trailing slashes instead of doing it ourselves.
77970         But do not trim the last slash if it is not redundant.
77971
77972         * lib/backupfile.c (find_backup_file_name,
77973         max_backup_version): Use base_len instead of rolling it ourselves.
77974         Handle the case of "" and (on DOS) "C:" correctly.
77975
77976         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
77977         needed. Include <string.h>, <dirname.h>.
77978         (base_name): Allow file names ending in slashes, other than names
77979         that are all slashes.  In this case, return the basename followed
77980         by the slashes.  This is more general, and can be used in places
77981         where the original base_name purposely had an assertion failure.
77982         (base_len): New function.
77983
77984         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
77985         Do not include <assert.h>; no longer needed.
77986         Include xalloc.h.
77987         (memrchr): Remove decl.
77988         (dir_name_r): Remove.
77989         (dir_len): Renamed from dirlen.  All callers changed.
77990         Rewrite in terms of base_name, for simplicity and consistency.
77991         (dir_name): Never return NULL.  All callers changed.
77992         Do not include <stdlib.h> in test program; no longer needed.
77993         return 0; is fine for test program.
77994
77995         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
77996         New macros.
77997         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
77998
77999         * lib/path-concat.c (path_concat): Use base_len to compute
78000         base length, not strlen; this means we cannot rely on memcpy
78001         to null-terminate.
78002
78003         * lib/same.c (STREQ): Remove.
78004         (same_name): Handle the case where the basename ends in trailing '/'.
78005
78006         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
78007         a slash was stripped.  Do not strip the last slash after a
78008         file system prefix.
78009
78010 2001-05-11  Paul Eggert  <eggert@twinsun.com>
78011
78012         * lib/Makefile.am (libfetish_a_SOURCES):
78013         Add strftime.c, since we now compile it on all hosts.
78014
78015         * lib/strftime.c (my_strftime):
78016         Define to nstrftime if emacs, but only if my_strftime is not defined.
78017         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
78018         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
78019         Add one more extra argument: a nanoseconds value.
78020         All uses changed.
78021         (ns): New macro.
78022         (my_strftime function): Add %N format.
78023         (emacs_strftimeu): Renamed from emacs_strftime,
78024         with extra ut argument.
78025
78026 2001-05-09  Paul Eggert  <eggert@twinsun.com>
78027
78028         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
78029
78030 2001-04-21  Jim Meyering  <meyering@lucent.com>
78031
78032         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
78033         doesn't interfere.
78034
78035 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
78036
78037         * m4/ftruncate.m4: Check for chsize.
78038         Link with ftruncate.o unconditionally if ftruncate is missing.
78039         This was required when cross-compiling to i586-mingw32msvc.
78040
78041 2001-04-08  Jim Meyering  <meyering@lucent.com>
78042
78043         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
78044         recomputed; that's necessary when the offset spans a DST transition.
78045         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
78046
78047 2001-04-02  Jim Meyering  <meyering@lucent.com>
78048
78049         * lib/regex.h, regex.c: Update from GNU libc.
78050
78051 2001-03-24  Jim Meyering  <meyering@lucent.com>
78052
78053         * m4/jm-macros.m4: Require autoconf-2.49d.
78054
78055 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
78056
78057         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
78058
78059 2001-03-19  Paul Eggert  <eggert@twinsun.com>
78060
78061         * lib/version-etc.c (version_etc_copyright): Update to 2001.
78062
78063 2001-03-17  Jim Meyering  <meyering@lucent.com>
78064
78065         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
78066         now that the version in autoconf is equivalent.
78067         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
78068
78069         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
78070         Suggestion from Akim Demaille.
78071
78072         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
78073         (jm_PREREQ_TEMPNAME): New function.
78074
78075 2001-03-16  Paul Eggert  <eggert@twinsun.com>
78076
78077         * lib/tempname.c (uint64_t): Define to uintmax_t if
78078         not defined, and if UINT64_MAX is not defined.
78079         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
78080         Reported by John David Anglin.
78081
78082 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
78083
78084         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
78085         resolve alias if codeset is empty.
78086         * lib/config.charset (BeOS): Use wildcard syntax.
78087
78088 2001-03-13  Jim Meyering  <meyering@lucent.com>
78089
78090         * lib/path-concat.c (path_concat)
78091         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
78092         concatenating e.g., `C:' and `foo'.
78093         From Bruno Haible.
78094
78095 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
78096
78097         * lib/localcharset.c (locale_charset): Don't use
78098         setlocale(LC_CTYPE,NULL). Don't return NULL.
78099         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
78100
78101 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
78102
78103         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
78104         support for DOS/DJGPP.
78105
78106 2001-03-01  Paul Eggert  <eggert@twinsun.com>
78107
78108         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
78109         lacks mkstemp.  Compile our own tempname.c if we compile our own
78110         mkstemp.c, as mkstemp relies on tempname.
78111
78112 2001-03-01  Jim Meyering  <meyering@lucent.com>
78113
78114         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
78115         AH_VERBATIM really does output its argument verbatim.
78116
78117 2001-02-28  Paul Eggert  <eggert@twinsun.com>
78118
78119         * lib/Makefile.am (libfetish_a_SOURCES):
78120         Add dup-safer.c, fopen-safer.c.
78121         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
78122
78123         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
78124         * lib/unistd-safer.h: New files.
78125
78126 2001-02-25  Paul Eggert  <eggert@twinsun.com>
78127
78128         The mkstemp replacement is taken from glibc 2.2.2, with some
78129         portability fixes for use outside glibc, as follows:
78130
78131         * lib/tempname.c (struct_stat64): New macro.
78132         (direxists, __gen_tempname): Use it.
78133         This avoids a portability problem with Solaris 8.
78134
78135         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
78136         (<stddef.h>, <stdint.h>, <string.h>):
78137         Include only if STDC_HEADERS || _LIBC.
78138         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
78139         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
78140         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
78141         (__set_errno): Define this macro if <errno.h> doesn't.
78142         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
78143         Define these macros if <stdio.h> doesn't.
78144         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
78145         Define these macros if <sys/stat.h>
78146         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
78147         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
78148         __xstat64): Define if not _LIBC.
78149         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
78150         (__gen_tempname): Invoke gettimeofday only if
78151         HAVE_GETTIMEOFDAY || _LIBC;
78152         otherwise, fall back on plain "time".
78153         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
78154
78155         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
78156
78157         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
78158
78159 2001-02-18  Paul Eggert  <eggert@twinsun.com>
78160
78161         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
78162
78163 2001-02-17  Paul Eggert  <eggert@twinsun.com>
78164
78165         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
78166         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
78167         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
78168         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
78169
78170 2001-02-17  Paul Eggert  <eggert@twinsun.com>
78171
78172         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
78173         Remove workaround macros for hosts that have mbrtowc but not
78174         mbstate_t, as we now insist on proper declarations for both
78175         before using mbrtowc.
78176
78177 2001-02-17  Jim Meyering  <meyering@lucent.com>
78178
78179         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
78180         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
78181         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
78182         UnixWare 7.1.1.
78183
78184         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
78185         rather than AC_CACHE_VAL.
78186
78187 2001-02-17  Jim Meyering  <meyering@lucent.com>
78188
78189         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
78190         around included file name.
78191
78192         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
78193
78194         * lib/strftime.c: Update from GNU libc (the only changes were to
78195         comments).
78196
78197 2001-02-17  Jim Meyering  <meyering@lucent.com>
78198
78199         * lib/regex.c: Update from libc.
78200
78201 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
78202
78203         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
78204         clash.
78205
78206 2001-02-16  Paul Eggert  <eggert@twinsun.com>
78207
78208         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
78209         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
78210         Reported by Mark Hounschell via Paul Eggert.
78211
78212 2001-02-07  Jim Meyering  <meyering@lucent.com>
78213
78214         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
78215
78216 2001-02-05  Jim Meyering  <meyering@lucent.com>
78217
78218         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
78219         it includes the patch required for `large file' support with at least
78220         HP-UX's 10.20 /bin/cc.
78221
78222 2001-02-03  Jim Meyering  <meyering@lucent.com>
78223
78224         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
78225         AS_IF, now that it works once again (mysteriously).
78226         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
78227
78228 2001-01-30  Jim Meyering  <meyering@lucent.com>
78229
78230         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
78231         * m4/chown.m4: Rename conftestchown to conftest.chown.
78232         * m4/rename.m4: s/conftestdir/conftest.d1/ and
78233         s/conftestdir2/conftest.d2/.
78234         * m4/utimes.m4: s/conftestdata/conftest.data/
78235         Inspired by Pavel Roskin's change in autoconf.
78236
78237 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
78238
78239         * lib/config.charset: Update for FreeBSD 4.2.
78240
78241 2001-01-27  Jim Meyering  <meyering@lucent.com>
78242
78243         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
78244         a use of AS_IF.
78245         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
78246
78247 2001-01-26  Jim Meyering  <meyering@lucent.com>
78248
78249         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
78250         quotearg.c includes it.
78251
78252 2001-01-26  Jim Meyering  <meyering@lucent.com>
78253
78254         * lib/quotearg.c: Include stddef.h.
78255         * lib/quote.c: Include stddef.h.
78256         Reported by Axel Kittenberger.
78257
78258         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
78259         line in double quotes so that it evokes a better diagnostic.
78260         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
78261         Reported by Axel Kittenberger.
78262
78263 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
78264
78265         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
78266         as if it was a `charset'.
78267
78268 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
78269
78270         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
78271         has const.
78272
78273 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
78274
78275         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
78276         to avoid a warning.  Add back 'const' to inptr.
78277
78278 2001-01-20  Jim Meyering  <meyering@lucent.com>
78279
78280         Be sure that headers are checked before used in code compiled
78281         for the type checks.
78282         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
78283         In place of that, invoke jm_CHECK_ALL_TYPES.
78284         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
78285         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
78286         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
78287         The check for ssize_t was mistakenly run before the test for unistd.h.
78288
78289         The configure-time check for stdbool.h was missing.
78290         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
78291         (jm_PREREQ_HASH): New function.
78292
78293 2001-01-17  Jim Meyering  <meyering@lucent.com>
78294
78295         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
78296         for autoconf-2.49c.
78297         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
78298
78299 2001-01-16  Jim Meyering  <meyering@lucent.com>
78300
78301         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
78302         From Bruno Haible.
78303
78304 2001-01-14  Jim Meyering  <meyering@lucent.com>
78305
78306         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
78307         foo and bar.  Create conftestdir/ in the script, not in the C code.
78308         Remove directories in the script, not in the C code.
78309         Remove conftestdir{,2} before trying to create the directory.
78310         Make the entire configure script fail if the mkdir fails.
78311
78312 2001-01-14  Jim Meyering  <meyering@lucent.com>
78313
78314         * lib/rename.c: New file.  From Volker Borchert.
78315         Include stdlib.h, string.h or strings.h, and xalloc.h.
78316         Use strip_trailing_slashes rather than open-coding it.
78317
78318 2001-01-03  Paul Eggert  <eggert@twinsun.com>
78319
78320         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
78321
78322 2001-01-03  Jim Meyering  <meyering@lucent.com>
78323
78324         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
78325         of local `inptr' to avoid warning with some system declarations of
78326         iconv.
78327
78328 2001-01-02  Volker Borchert  <bt@teknon.de>
78329
78330         * m4/rename.m4: New file.
78331         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
78332
78333 2001-01-01  Jim Meyering  <meyering@lucent.com>
78334
78335         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
78336         even on systems with utmpx.h.  It's necessary for the declaration of
78337         utmp's ut_user member.  Reported by Andreas Jaeger.
78338
78339         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
78340         available. They are required for the declarations of getgrgid and
78341         getpwuid resp.
78342         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
78343         Reported by Andreas Jaeger.
78344
78345 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
78346
78347         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
78348         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
78349         so `make install' also works in VPATH builds.
78350
78351 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
78352
78353         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
78354         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
78355         can be used in subdirectories.
78356
78357 2000-12-29  Paul Eggert  <eggert@twinsun.com>
78358
78359         * lib/modechange.c: Do not assume that mode_t uses the
78360         traditional octal encoding.  E.g. "chmod 1 FOO" should set
78361         the other-execute bit of FOO even if S_IXOTH != 1.
78362
78363         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
78364         WOTH, XOTH, ALLM): New macros.
78365         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
78366          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
78367         Use them.
78368         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
78369         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
78370         (mode_compile):
78371         No need to use uintmax_t; unsigned long is long enough.
78372         Don't bother to get suffix since we don't use it.
78373
78374 2000-12-26  Jim Meyering  <meyering@lucent.com>
78375
78376         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
78377         better with autoheader.
78378
78379 2000-12-24  Jim Meyering  <meyering@lucent.com>
78380
78381         * lib/hash.c (is_prime): Return explicit boolean values.
78382         (hash_get_first): Return NULL to appease Irix5.6's 89.
78383         Reported by Nelson Beebe.
78384
78385 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
78386
78387         * lib/localcharset.c (locale_charset): Add support for Win32.
78388
78389 2000-12-18  Paul Eggert  <eggert@twinsun.com>
78390
78391         * lib/physmem.h, lib/physmem.c: New files.
78392
78393         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
78394         (noinst_HEADERS): Add physmem.h.
78395
78396         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
78397         't' for compatibility with Solaris 8 sort.
78398
78399 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
78400
78401         * lib/config.charset: Add support for BeOS.
78402
78403 2000-12-17  Jim Meyering  <meyering@lucent.com>
78404
78405         * m4/dos.m4 (jm_AC_DOS): New file and macro.
78406         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
78407
78408 2000-12-16  Jim Meyering  <meyering@lucent.com>
78409
78410         This bug had a serious impact on chown: `chown N:M FILE' (for integer
78411         N and M) would have treated it like `chown N:N FILE'.
78412
78413         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
78414
78415 2000-12-16  Jim Meyering  <meyering@lucent.com>
78416
78417         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
78418         SHELLS_FILE to a file name that's useful on djgpp systems.
78419         Include stdlib.h.
78420         (ADDITIONAL_DEFAULT_SHELLS): Define.
78421         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
78422         Based mostly on a patch from Prashant TR.
78423
78424 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
78425
78426         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
78427         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
78428         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
78429
78430 2000-12-08  Andreas Schwab  <schwab@suse.de>
78431
78432         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
78433         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
78434
78435 2000-12-07  Jim Meyering  <meyering@lucent.com>
78436
78437         * lib/stripslash.c (ISSLASH): Define.
78438         (strip_trailing_slashes): Use ISSLASH rather than comparing against
78439         `/'.
78440         From Prashant TR.
78441
78442         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
78443         (dir_name_r): Declare this function as static.
78444         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
78445         manifest itself on a name containing a mix of slashes and
78446         backslashes.
78447         Make this function work with names starting with a DOS-style
78448         drive letter and colon prefix.
78449         (dir_name): Append `.' if necessary.
78450         Based mostly on patches from Prashant TR and Eli Zaretskii.
78451
78452         * lib/dirname.h (dir_name_r): Remove prototype.
78453
78454 2000-12-06  Paul Eggert  <eggert@twinsun.com>
78455
78456         * m4/off_t-format.m4: Remove this file.
78457         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
78458
78459 2000-12-06  Jim Meyering  <meyering@lucent.com>
78460
78461         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
78462         replacement strtoull, we may well need the replacement strtoul, too.
78463         Check for declarations of strtoul and strtoull.
78464         Check for strtol.  Mainly as a cue to cause automake to include
78465         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
78466         Check for limits.h -- strtol.c needs it.
78467
78468 2000-12-05  Jim Meyering  <meyering@lucent.com>
78469
78470         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
78471
78472 2000-12-04  Jim Meyering  <meyering@lucent.com>
78473
78474         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
78475         Also include memory.h, stdlib.h, unistd.h if appropriate.
78476         Reported by Andreas Jaeger (conflicting declaration of malloc).
78477
78478 2000-12-02  Jim Meyering  <meyering@lucent.com>
78479
78480         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
78481         * m4/jm-macros.m4 (jm_MACROS): require it.
78482
78483 2000-12-02  Jim Meyering  <meyering@lucent.com>
78484
78485         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
78486
78487 2000-12-01  Paul Eggert  <eggert@twinsun.com>
78488
78489         * lib/memrchr.c: Include <config.h> before any system include file.
78490
78491 2000-11-30  Jim Meyering  <meyering@lucent.com>
78492
78493         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
78494
78495 2000-11-30  Jim Meyering  <meyering@lucent.com>
78496
78497         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
78498
78499 2000-11-29  Paul Eggert  <eggert@twinsun.com>
78500
78501         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
78502
78503 2000-11-26  Jim Meyering  <meyering@lucent.com>
78504
78505         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
78506
78507 2000-11-22  Paul Eggert  <eggert@twinsun.com>
78508
78509         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
78510         size of (size_t) -1; it's not portable.
78511
78512 2000-11-17  Jim Meyering  <meyering@lucent.com>
78513
78514         * lib/strstr.c: Update from GNU libc.
78515
78516 2000-11-17  Akim Demaille  <akim@epita.fr>
78517
78518         * lib/obstack.h: Formatting changes.
78519         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
78520         prevent type checking.
78521         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
78522         cast the value to (void *): assigning a `foo *' to a `void *'
78523         variable is valid.
78524         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
78525
78526 2000-11-16  Jim Meyering  <meyering@lucent.com>
78527
78528         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
78529
78530 2000-11-11  Jim Meyering  <meyering@lucent.com>
78531
78532         * lib/error.c: Add a couple #includes, merging from GNU libc version.
78533
78534 2000-11-10  Jim Meyering  <meyering@lucent.com>
78535
78536         * lib/obstack.h: Update from GNU libc.
78537         * lib/obstack.c: Likewise.
78538
78539 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
78540
78541         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
78542
78543 2000-11-06  Paul Eggert  <eggert@twinsun.com>
78544
78545         * lib/getusershell.c (setusershell): Use rewind rather than
78546         fseek/fseeko, to avoid configuration hassles with fseeko.
78547         Don't bother opening SHELLS_FILE if shellstream is NULL;
78548         it's not necessary.
78549
78550 2000-11-05  Jim Meyering  <meyering@lucent.com>
78551
78552         * lib/makepath.h (make_dir): Declare.
78553         * lib/makepath.c (make_dir): Remove `static' attribute.
78554         Tweak a comment.
78555
78556 2000-11-04  Jim Meyering  <meyering@lucent.com>
78557
78558         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
78559
78560 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
78561
78562         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
78563         last one in a bucket, advance to the next bucket.
78564
78565 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
78566
78567         * lib/fnmatch.c: Do not comment out all the code if we are using
78568         the GNU C library, because in some cases we are replacing buggy
78569         code in the GNU C library itself.
78570
78571 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
78572
78573         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
78574         (regex_compile): Catch bogus \(\1\).
78575
78576 2000-10-30  Paul Eggert  <eggert@twinsun.com>
78577
78578         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
78579         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
78580         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
78581
78582 2000-10-30  Paul Eggert  <eggert@twinsun.com>
78583
78584         * lib/error.h, getline.h, modechange.h:
78585         Remove "2000" from Copyright line, as the file hasn't been
78586         changed this year other than in the copyright notice.
78587
78588         * lib/xalloc.h: Add "2000" to Copyright line, as this file
78589         was changed this year.
78590
78591 2000-10-29  Jim Meyering  <meyering@lucent.com>
78592
78593         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
78594         renaming.
78595         * m4/ls-mntd-fs.m4: Likewise
78596
78597 2000-10-29  Jim Meyering  <meyering@lucent.com>
78598
78599         * lib/xstat.in: Fix grammar in comment.
78600
78601 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
78602
78603         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
78604         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
78605         doesn't define __restrict_arr.
78606
78607 2000-10-28  Jim Meyering  <meyering@lucent.com>
78608
78609         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
78610         (jm_PREREQ_MEMCHR): New function.
78611
78612 2000-10-28  Jim Meyering  <meyering@lucent.com>
78613
78614         * lib/memchr.c: Update from libc.
78615         Adjust for portability:
78616         [HAVE_STDLIB_H]: Include stdlib.h.
78617         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
78618         Undef __memchr, too.
78619         [!weak_alias]: Define __memchr to memchr.
78620
78621         * lib/regex.c: Update from libc.
78622         * lib/regex.h: Likewise.
78623         * lib/getopt1.c: Likewise.
78624         * lib/memcmp.c: Likewise.
78625
78626         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
78627         Avoid using fseek, when possible -- it's broken by design.
78628         Patch by Ulrich Drepper.
78629
78630 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
78631
78632         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
78633         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
78634         Giving in to popular pressure to shut up the compiler with casts.
78635
78636 2000-10-26  Jim Meyering  <meyering@lucent.com>
78637
78638         * lib/strftime.c: Update from libc.
78639
78640 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
78641
78642         * regex.c: More `unsigned char' -> `re_char' changes.
78643         Also change several `int' into `re_wchar_t'.
78644         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
78645         (PUSH_FAILURE_POINTER): Don't cast any more.
78646         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
78647         We want GCC to complain, since this piece of code makes
78648         re_match non-reentrant, which *should* be fixed.
78649         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
78650         (EXTEND_BUFFER): Use RETALLOC.
78651         (SET_LIST_BIT): Don't cast.
78652         (re_wchar_t): New type.
78653         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
78654         that those two functions will always properly return.
78655         (IMMEDIATE_QUIT_CHECK): Cast to void.
78656         (analyse_first): Use recursion rather than an explicit stack.
78657         (re_compile_fastmap): Can't fail anymore.
78658         (re_search_2): Don't check re_compile_fastmap for failure.
78659         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
78660         Now also sets the new value (passed in a new argument).
78661         (re_match_2_internal): Use it.
78662         Also, use a new var `reg' of type size_t when looping through regs
78663         rather than reuse the inappropriate `mcnt'.
78664
78665 2000-10-25  Jim Meyering  <meyering@lucent.com>
78666
78667         * lib/obstack.c: Update from libc.
78668
78669 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
78670
78671         * regex.c (regex_compile): Change the way of handling a range from
78672         a char less than 256 to a char not less than 256.
78673
78674 2000-10-24  Andrew Innes  <andrewi@gnu.org>
78675
78676         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
78677         NT-Emacs only.
78678         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
78679         so that re_search functions only quit when callers expect them to.
78680
78681 2000-10-23  Jim Meyering  <meyering@lucent.com>
78682
78683         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
78684         wrong.  That set_locale call must not have any side effects.
78685         From Paul Eggert.
78686
78687 2000-10-22  Jim Meyering  <meyering@lucent.com>
78688
78689         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
78690         [CYCLIC]: Remove now-unused definition.
78691
78692         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
78693         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
78694         Suggestion from Ulrich Drepper.
78695
78696 2000-10-21  Jim Meyering  <meyering@lucent.com>
78697
78698         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
78699         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
78700         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
78701
78702 2000-10-21  Jim Meyering  <meyering@lucent.com>
78703
78704         * lib/dirname.c (memrchr): Declare if necessary.
78705         (dir_name): Remove the restriction that there be no
78706         trailing slashes.  Now, this code skips past them, effectively
78707         ignoring them.
78708         [TEST_DIRNAME] (main): New unit tests.
78709
78710         * lib/memrchr.c: New file from GNU libc.
78711         Undef __memrchr, too.
78712         [!weak_alias]: Define __memrchr to memrchr.
78713         Guard weak_alias use with `#ifdef weak_alias'.
78714
78715 2000-10-21  Jim Meyering  <meyering@lucent.com>
78716
78717         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
78718         (dir_name): Use dir_name_r.
78719         * lib/dirname.h (dir_name_r): Declare it.
78720
78721 2000-10-17  Jim Meyering  <meyering@lucent.com>
78722
78723         * lib/quote.h (PARAMS): Define and use.
78724         Reported by Akim Demaille.
78725
78726         * lib/getopt.c: Update from libc.
78727
78728 2000-10-16  Jim Meyering  <meyering@lucent.com>
78729
78730         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
78731         setlocale.
78732         From Jan Fedak.
78733
78734 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
78735
78736         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
78737
78738 2000-09-25  Jim Meyering  <meyering@lucent.com>
78739
78740         * lib/md5.h (rol): Define (from GnuPG).
78741
78742         * lib/sha.c: Give credit (GnuPG) where due.
78743         (M): Use rol rather than open-coding it.
78744         Add a FIXME comment.
78745
78746 2000-09-21  Jim Meyering  <meyering@lucent.com>
78747
78748         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
78749         Reported by Michael Stone.
78750
78751 2000-09-20  Jim Meyering  <meyering@lucent.com>
78752
78753         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
78754         (noinst_HEADERS): Add sha.h.
78755         Based on code from Scott G. Miller and from GnuPG.
78756
78757 2000-09-18  Jim Meyering  <meyering@lucent.com>
78758
78759         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
78760         LIBS. Otherwise, everyone ends up linking with -lelf for some
78761         configurations.
78762         Reported by Mike Stone.
78763
78764 2000-09-15  Jim Meyering  <meyering@lucent.com>
78765
78766         * lib/regex.c: Update from libc.
78767
78768 2000-09-10  Jim Meyering  <meyering@lucent.com>
78769
78770         * lib/getopt.c (_getopt_internal): Update from glibc.
78771
78772 2000-09-09  Jim Meyering  <meyering@lucent.com>
78773
78774         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
78775         think it should be used as a general replacement for isascii.
78776         * lib/fnmatch.c: Likewise.
78777         * lib/mbswidth.c: Likewise
78778         * lib/regex.c: Likewise.
78779
78780         Don't use atoi.
78781         * lib/userspec.c: Include sys/param.h and limits.h.
78782         Include xstrtol.h.
78783         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
78784         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
78785         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
78786         UID, GID.  Check range.
78787
78788 2000-09-06  Jim Meyering  <meyering@lucent.com>
78789
78790         * lib/getopt.c (_getopt_internal): Update from glibc.
78791
78792 2000-08-30  Jim Meyering  <meyering@lucent.com>
78793
78794         * lib/strftime.c: Merge in changes from GNU libc.
78795
78796 2000-08-26  Jim Meyering  <meyering@lucent.com>
78797
78798         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
78799         * m4/fpending.m4: New file.
78800
78801 2000-08-26  Jim Meyering  <meyering@lucent.com>
78802
78803         * lib/closeout.c: Include "__fpending.h".
78804         (close_stdout_status): Return right away if there's nothing to flush.
78805
78806         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
78807         * lib/__fpending.c: New file.
78808         * lib/__fpending.h: New file.
78809
78810 2000-08-20  Jim Meyering  <meyering@lucent.com>
78811
78812         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
78813         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
78814         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
78815
78816 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
78817
78818         Improve fileutils installation on systems where running
78819         programs (like install) can't be unlinked.
78820         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
78821         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
78822
78823 2000-08-07  Paul Eggert  <eggert@twinsun.com>
78824
78825         Standardize on "memory exhausted" instead of "Memory exhausted"
78826         or "virtual memory exhausted".
78827         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
78828         "virtual memory exhausted".
78829         * lib/same.c (same_name): Invoke xalloc_die instead of printing
78830         our own message.
78831         * lib/userspec.c (parse_user_spec): Likewise.
78832         * lib/bumpalloc.h: comment fix
78833         * lib/same.c, userspec.c: Include xalloc.h.
78834
78835         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
78836         not char *const and pointing to a constant array.
78837         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
78838         (xrealloc): Comment fix.
78839
78840         * lib/userspec.c (parse_user_spec):
78841         Don't translate a message until just before returning,
78842         to avoid unnecessary translation.
78843
78844 2000-08-07  Jim Meyering  <meyering@lucent.com>
78845
78846         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
78847         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
78848         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
78849         getgroups.c, gethostname.c, getopt.h, group-member.c,
78850         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
78851         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
78852         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
78853         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
78854         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
78855         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
78856         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
78857         yesno.c: Back out Copyright date changes for each file with no change
78858         this year.  This eases coordination with other programs using the same
78859         source code modules.  From Paul Eggert.
78860
78861 2000-08-06  Paul Eggert  <eggert@twinsun.com>
78862
78863         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
78864         not char, for compatibility with glibc 2.1.3 strftime.c.
78865
78866 2000-08-03  Greg McGary  <greg@mcgary.org>
78867
78868         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
78869         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
78870         (EXTEND_BUFFER): Use them.
78871
78872 2000-08-01  Jim Meyering  <meyering@lucent.com>
78873
78874         * lib/dirname.c (ISSLASH): Define.
78875         (BACKSLASH_IS_PATH_SEPARATOR): Define.
78876         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
78877         both `\' and `/' may be use as path separators.
78878         Based on a patch from Prashant TR.
78879
78880 2000-07-31  Paul Eggert  <eggert@twinsun.com>
78881
78882         * lib/quotearg.c (quotearg_n_options): Don't make the initial
78883         slot vector a constant, since it might get modified.
78884
78885 2000-07-31  Jim Meyering  <meyering@lucent.com>
78886
78887         * lib/xmalloc.c: Use `virtual memory exhausted', not
78888         `Memory exhausted'.
78889         * lib/obstack.c (print_and_abort): Likewise.
78890
78891 2000-07-30  Paul Eggert  <eggert@twinsun.com>
78892
78893         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
78894         buffer, so that the caller can always quote one small
78895         component of a "memory exhausted" message in slot 0.
78896         From a suggestion by Jim Meyering.
78897
78898 2000-07-30  Jim Meyering  <meyering@lucent.com>
78899
78900         * lib/makepath.c (make_path): Quote the other instance, too.
78901
78902         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
78903         (STATIC_BUF_SIZE): Define.
78904         (quotearg_n_options): Use only statically allocated storage when
78905         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
78906         than STATIC_BUF_SIZE.
78907
78908 2000-07-29  Jim Meyering  <meyering@lucent.com>
78909
78910         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
78911         * lib/dirname.c (dir_name): Likewise.
78912
78913         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
78914         `/'.
78915
78916         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
78917         (dir_name): Assert that there are no trailing slashes.
78918
78919 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
78920
78921         * lib/mbswidth.h (mbswidth): Add a flags argument.
78922         (mbswidth): New declaration.
78923         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
78924         * lib/mbswidth.c (mbswidth): Add a flags argument.
78925         (mbsnwidth): New function.
78926
78927 2000-07-24  Jim Meyering  <meyering@lucent.com>
78928
78929         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
78930
78931 2000-07-23  Paul Eggert  <eggert@twinsun.com>
78932
78933         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
78934
78935 2000-07-23  Paul Eggert  <eggert@twinsun.com>
78936
78937         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
78938         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
78939         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
78940         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
78941         invoke multibyte primitives.
78942
78943 2000-07-23  Paul Eggert  <eggert@twinsun.com>
78944
78945         * lib/quotearg.c:
78946         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
78947         so that mbstate_t is always defined.
78948
78949         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
78950         be 1 in at least one GCC installation, and this configuration
78951         error is likely to be common.  Ignoring MB_LEN_MAX hurts
78952         performance on hosts that have mbrtowc but have only unibyte
78953         locales, but I assume these hosts are rare.
78954
78955 2000-07-23  Paul Eggert  <eggert@twinsun.com>
78956
78957         * lib/mbswidth.c (_XOPEN_SOURCE):
78958         Don't define; this causes problems on Solaris 7.
78959         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
78960
78961 2000-07-23  Jim Meyering  <meyering@lucent.com>
78962
78963         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
78964         too: getgrgid, getpwuid, getuid.
78965
78966 2000-07-23  Jim Meyering  <meyering@lucent.com>
78967
78968         * lib/basename.c (base_name): Add an assertion.
78969
78970 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
78971
78972         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
78973         shadow its mbsinit function.
78974
78975 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
78976
78977         * lib/mbswidth.h: New file.
78978         * lib/mbswidth.c: New file.
78979         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
78980         (noinst_HEADERS): Add mbswidth.h.
78981
78982 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
78983
78984         * lib/config.charset: Add support for FreeBSD. Improve support for
78985         HP-UX and IRIX 6.
78986
78987 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
78988
78989         * m4/mbswidth.m4: New file.
78990         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
78991
78992 2000-07-15  Jim Meyering  <meyering@lucent.com>
78993
78994         * lib/makepath.c: Include quote.h.
78995         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
78996         corresponding argument in a `quote (...)' call.
78997         Give better diagnostics.
78998
78999         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
79000         (noinst_HEADERS): Add quote.h.
79001
79002         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
79003         from tar's src/misc.c.
79004         * lib/quote.h: New file.  Prototypes for same.
79005
79006 2000-07-14  Paul Eggert  <eggert@twinsun.com>
79007
79008         From a suggestion by Bruno Haible.
79009         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
79010         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
79011         to decide whether to define the BeOS workaround macro;
79012         this adjusts to the change to AC_MBSTATE_T.
79013
79014 2000-07-14  Jim Meyering  <meyering@lucent.com>
79015
79016         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
79017         jm_AC_TYPE_UINTMAX_T.
79018
79019 2000-07-13  Paul Eggert  <eggert@twinsun.com>
79020
79021         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
79022
79023         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
79024         quotearg_buffer_restyled): Add support for
79025         clocale_quoting_style.  Undo previous change to
79026         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
79027         and "{RIGHT QUOTATION MARK}" msgids.
79028
79029 2000-07-10  Paul Eggert  <eggert@twinsun.com>
79030
79031         From a suggestion by Bruno Haible.
79032         * m4/mbstate_t.m4 (AC_MBSTATE_T):
79033         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
79034         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
79035         and mbstate_t, to a single-part test that simply defines mbstate_t.
79036         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
79037         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
79038
79039 2000-07-10  Jim Meyering  <meyering@lucent.com>
79040
79041         * m4/strerror_r.m4: Mirror the correction made in autoconf.
79042
79043         * m4/gnu-source.m4: Output to confdefs.h directly.
79044         Suggestion from Akim Demaille.
79045
79046 2000-07-09  Paul Eggert  <eggert@twinsun.com>
79047
79048         The old behavior of quoting `like this' doesn't look good with
79049         newer, ISO-style fonts.  See:
79050         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
79051
79052         Instead, quote "like this" by default.  Let the translator
79053         tailor the locale-specific quoting behavior by providing
79054         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
79055
79056         * lib/quotearg.c (N_): New macro.
79057         (gettext_default): New function.
79058         (quotearg_buffer_restyled): Use
79059         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
79060         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
79061
79062 2000-07-09  Jim Meyering  <meyering@lucent.com>
79063
79064         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
79065         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
79066
79067         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
79068         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
79069
79070 2000-07-09  Jim Meyering  <meyering@lucent.com>
79071
79072         * lib/Most files: Update copyright dates to include 2000.
79073
79074 2000-07-08  Jim Meyering  <meyering@lucent.com>
79075
79076         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
79077         if not defined.
79078         (xgethostname): Remove now-unnecessary #ifdef.
79079         Move declaration of `err' into loop where it's used.
79080
79081 2000-07-05  Paul Eggert  <eggert@twinsun.com>
79082         and Bruno Haible  <haible@clisp.cons.org>
79083
79084         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
79085         only if the test for an object-type mbstate_t fails.  This
79086         prevents us from mistakenly reporting that mbstate_t is a
79087         system object type after we "#define mbstate_t int" to work
79088         around its lack.
79089
79090 2000-07-05  Paul Eggert  <eggert@twinsun.com>
79091         and Bruno Haible  <haible@clisp.cons.org>
79092
79093         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
79094
79095 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
79096
79097         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
79098         to strerror_r.
79099         Include <ctype.h> for use of isalpha.
79100
79101 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
79102
79103         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
79104         by allocating a larger buffer. Test the gethostname return value for
79105         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
79106         returns an error and ENAMETOOLONG isn't defined.
79107
79108 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
79109
79110         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
79111         dimension.
79112
79113 2000-07-04  Jim Meyering  <meyering@lucent.com>
79114
79115         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
79116         of the deprecated AC_CHECKING.
79117
79118 2000-07-04  Jim Meyering  <meyering@lucent.com>
79119
79120         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
79121         Reported by Bruno Haible.
79122
79123 2000-07-04  Jim Meyering  <meyering@lucent.com>
79124
79125         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
79126         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
79127         lacks mbrtowc.
79128
79129 2000-07-03  Paul Eggert  <eggert@twinsun.com>
79130
79131         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
79132         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
79133
79134 2000-07-03  Paul Eggert  <eggert@twinsun.com>
79135         and Bruno Haible  <haible@clisp.cons.org>
79136
79137         * lib/quotearg.c (mbrtowc):
79138         Assign to *pwc, and return 1 only if result is nonzero.
79139         (iswprint): Use ISPRINT when substituting our own mbrtowc.
79140
79141 2000-07-03  Jim Meyering  <meyering@lucent.com>
79142
79143         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
79144
79145 2000-07-03  Jim Meyering  <meyering@lucent.com>
79146
79147         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
79148         This is necessary to get a definition of e.g., UTMP_FILE on
79149         HP-UX 10.20.
79150         From Bob Proulx.
79151
79152 2000-07-02  Jim Meyering  <meyering@lucent.com>
79153
79154         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
79155
79156         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
79157         AC_LIBOBJ(function_name).
79158         * m4/chown.m4: Likewise.
79159         * m4/fnmatch.m4: Likewise.
79160         * m4/ftruncate.m4: Likewise.
79161         * m4/getgroups.m4: Likewise.
79162         * m4/getline.m4: Likewise.
79163         * m4/group-member.m4: Likewise.
79164         * m4/jm-macros.m4: Likewise.
79165         * m4/lstat.m4: Likewise.
79166         * m4/malloc.m4: Likewise.
79167         * m4/memcmp.m4: Likewise.
79168         * m4/nanosleep.m4: Likewise.
79169         * m4/putenv.m4: Likewise.
79170         * m4/realloc.m4: Likewise.
79171         * m4/regex.m4: Likewise.
79172         * m4/stat.m4: Likewise.
79173         * m4/strftime.m4: Likewise.
79174
79175 2000-07-02  Jim Meyering  <meyering@lucent.com>
79176
79177         * lib/quotearg.c (mbstate_t): Don't define here.
79178
79179 2000-07-02  Jim Meyering  <meyering@lucent.com>
79180
79181         * lib/nanosleep.c (SIGCONT): Define if not already defined.
79182
79183 2000-07-01  Jim Meyering  <meyering@lucent.com>
79184
79185         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
79186
79187 2000-07-01  Jim Meyering  <meyering@lucent.com>
79188
79189         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
79190         problem.
79191
79192 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
79193
79194         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
79195         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
79196
79197 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
79198
79199         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
79200         per change in ../m4/ls-mntd-fs.m4.
79201         (read_filesystem_list): Ignore symbolic links.
79202
79203 2000-06-29  Jim Meyering  <meyering@lucent.com>
79204
79205         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
79206         for declaration of strcmp.
79207
79208         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
79209
79210         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
79211         Avoid warning by casting result to `char *' to remove `const'.
79212
79213 2000-06-28  Jim Meyering  <meyering@lucent.com>
79214
79215         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
79216         included by quotearg.c, for which we perform this test.  From
79217         Bruno Haible.
79218
79219 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
79220
79221         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
79222         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
79223         <utmpx.h> exists, put readutmp.o into LIBOBJS.
79224
79225 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
79226
79227         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
79228
79229 2000-06-26  Paul Eggert  <eggert@twinsun.com>
79230
79231         savedir now sets errno on failure and invokes xmalloc to get memory.
79232         Fix a couple of other minor bugs while we're at it.
79233
79234         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
79235         (NAMLEN): Remove macro.
79236         (malloc, realloc): Remove decls.
79237         (stpcpy): Likewise.
79238         ("xalloc.h"): Include.
79239         (NAME_SIZE_DEFAULT): New macro.
79240         (savedir): Use xmalloc / xrealloc to allocate memory.
79241         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
79242         Skip "" directory entries.
79243         Use strlen to calculate directory entry length, since the old method
79244         is rarely used these days and isn't worth supporting.
79245         Don't use a pointer after freeing it.
79246         Check for integer overflow when calculating allocation size.
79247         Use memcpy to copy entries, instead of stpcpy.
79248         Set errno properly when returning NULL.
79249         Check for readdir error.
79250
79251 2000-06-26  Jim Meyering  <meyering@lucent.com>
79252
79253         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
79254
79255 2000-06-25  Jim Meyering  <meyering@lucent.com>
79256
79257         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
79258         Linux header bug when _XOPEN_SOURCE is defined to 500.
79259
79260 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
79261
79262         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
79263         deficiency.
79264
79265 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
79266
79267         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
79268         Include xalloc.h.
79269         Don't include <stdlib.h>.  Don't declare malloc, realloc.
79270
79271 2000-06-24  Jim Meyering  <meyering@lucent.com>
79272
79273         * m4/strerror_r.m4: Revive this file -- to try out an experimental
79274         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
79275         for which strerror does return char*, but which lacks a conveniently
79276         accessible declaration of the function.  If the compile-test says
79277         strerror_r doesn't work, then resort to a `run'-test that works on
79278         BeOS and segfaults on DEC Unix.
79279
79280 2000-06-24  Jim Meyering  <meyering@lucent.com>
79281
79282         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
79283
79284 2000-06-23  Paul Eggert  <eggert@twinsun.com>
79285
79286         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
79287         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
79288
79289 2000-06-23  Paul Eggert  <eggert@twinsun.com>
79290
79291         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
79292         (mbrtowc, mbstate_t): Define substitutes if
79293         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
79294         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
79295         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
79296
79297 2000-06-23  Jim Meyering  <meyering@lucent.com>
79298
79299         * m4/afs.m4: Add missing AC_MSG_RESULT.
79300         Reported by Bruno Haible.
79301
79302         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
79303         Suggestion from Bruno Haible.
79304
79305 2000-06-23  Jim Meyering  <meyering@lucent.com>
79306
79307         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
79308
79309 2000-06-21  Jim Meyering  <meyering@lucent.com>
79310
79311         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
79312
79313 2000-06-21  Jim Meyering  <meyering@lucent.com>
79314
79315         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
79316         (noinst_HEADERS): Add getstr.h.
79317
79318         * lib/getline.c (getstr): Move into a separate file.
79319         * lib/getstr.c (getstr): New file, extracted from getline.c, with
79320         the following changes: new parameter, delim2; both delim[12]
79321         parameters have type `int', not `char'.  The latter would lose
79322         with 8-bit delimiters.
79323         * lib/getstr.h: New file.
79324
79325 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
79326
79327         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
79328         than 1024, return a memory chunk of least possible size, instead
79329         of size PATH_MAX + 2. In the loop, increment the size proportionally.
79330         Use free/xmalloc instead of xrealloc to avoid copying for very long
79331         paths.
79332
79333 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
79334
79335         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
79336         the empty string.
79337
79338 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
79339
79340         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
79341         address, not strdup.  Include <stdlib.h> and don't declare free().
79342
79343 2000-06-19  Jim Meyering  <meyering@lucent.com>
79344
79345         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
79346
79347 2000-06-18  Jim Meyering  <meyering@lucent.com>
79348
79349         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
79350
79351         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
79352         `checking whether...' message to be consistent with that of the
79353         lstat test.
79354
79355 2000-06-18  Jim Meyering  <meyering@lucent.com>
79356
79357         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
79358         Besides, these days every porting target provides a mkdir function.
79359
79360         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
79361         needed. (this snippet comes from src/system.h).
79362
79363 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
79364
79365         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
79366
79367 2000-06-15  Paul Eggert  <eggert@twinsun.com>
79368
79369         * lib/human.c (adjust_value): New function.
79370         (human_readable_inexact): Apply rounding style even when
79371         printing approximate values.
79372
79373 2000-06-14  Paul Eggert  <eggert@twinsun.com>
79374
79375         * lib/human.c (human_readable_inexact): Allow an input block
79376         size that is not a multiple of the output block size, and vice versa.
79377         Reported by Piergiorgio Sartor.
79378
79379 2000-06-14  Paul Eggert  <eggert@twinsun.com>
79380
79381         * lib/getdate.y (get_date): Apply relative times after time
79382         zone indicator, not before.  Reported by Todd A. Jacobs.
79383
79384 2000-06-13  Jim Meyering  <meyering@lucent.com>
79385
79386         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
79387
79388         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
79389
79390 2000-06-12  Paul Eggert  <eggert@twinsun.com>
79391
79392         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
79393
79394 2000-06-12  Jim Meyering  <meyering@lucent.com>
79395
79396         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
79397         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
79398         optional argument.
79399         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
79400         the optional argument, `lib'.
79401
79402 2000-06-08  Jim Meyering  <meyering@lucent.com>
79403
79404         * m4/largefile.m4: Remove file (now that it's part of autoconf).
79405
79406 2000-06-04  Paul Eggert  <eggert@twinsun.com>
79407
79408         Rewrite largefile configuration so that we don't need to run
79409         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
79410         AC_CANONICAL_HOST in configure.in -- jmm]
79411
79412         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
79413         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
79414         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
79415         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
79416         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
79417         All uses changed.
79418         Instead of inspecting the output of getconf, try to compile the
79419         test program without and with the macro definition.
79420         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
79421         for getconf.  Instead, check for the needed flags by compiling
79422         test programs.
79423
79424 2000-06-04  Paul Eggert  <eggert@twinsun.com>
79425
79426         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
79427
79428 2000-06-04  Jim Meyering  <meyering@lucent.com>
79429
79430         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
79431         SunOS 4.1.4 for which gid_t is an unsigned type.
79432
79433 2000-06-03  Jim Meyering  <meyering@lucent.com>
79434
79435         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
79436         now that autoconf requires that.
79437
79438         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
79439         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
79440         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
79441
79442 2000-06-03  Jim Meyering  <meyering@lucent.com>
79443
79444         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
79445
79446 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
79447
79448         * m4/glibc21.m4: New file.
79449         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
79450
79451 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
79452
79453         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
79454         newer, don't install charset.alias.
79455         * lib/config.charset: Change the Linux/glibc rules so they become empty
79456         on glibc-2.1 or newer.
79457
79458 2000-06-02  Jim Meyering  <meyering@lucent.com>
79459
79460         * lib/mountlist.c: Back out last change.  Instead, do this...
79461         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
79462         me_dummy member using the same `ignore'-testing code.
79463         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
79464         fs_type strings.
79465         From Mark D. Roth.
79466
79467 2000-05-29  Jim Meyering  <meyering@lucent.com>
79468
79469         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
79470         mounts with the `ignore' attribute.  Based on a patch from
79471         Mark D. Roth.
79472
79473 2000-05-28  Jim Meyering  <meyering@lucent.com>
79474
79475         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
79476         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
79477         * m4/stat.m4: Likewise.
79478         * m4/lstat.m4: Likewise.
79479         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
79480
79481         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
79482         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
79483
79484 2000-05-26  Jim Meyering  <meyering@lucent.com>
79485
79486         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
79487
79488 2000-05-24  Jim Meyering  <meyering@lucent.com>
79489
79490         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
79491         autoconf requires that.
79492         * m4/lib-check.m4: Likewise.
79493         * m4/jm-macros.m4: Likewise.
79494         * m4/strftime.m4: Likewise.
79495
79496         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
79497         AC_CHECK_DECLS, now that autoconf requires that.
79498
79499 2000-05-22  Jim Meyering  <meyering@lucent.com>
79500
79501         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
79502         * m4/lstat.m4: Likewise.
79503
79504 2000-05-22  Jim Meyering  <meyering@lucent.com>
79505
79506         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
79507
79508 2000-05-20  Jim Meyering  <meyering@lucent.com>
79509
79510         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
79511         (jm_PREREQ): Use it.
79512
79513 2000-05-18  Jim Meyering  <meyering@lucent.com>
79514
79515         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
79516         back, too, since it may have been modified by allocate_entry.
79517         (hash_delete): Rewrite to use neither the assignment operator
79518         nor the comma operator in an if-expression.
79519
79520 2000-05-15  Paul Eggert  <eggert@twinsun.com>
79521
79522         * lib/closeout.c:
79523         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
79524         Remove; no longer needed.
79525         "quotearg.h": Add include.
79526         (file_name): Do not bother to explicitly initialize to NULL; it's less
79527         efficient on some hosts.
79528         (close_stdout_status): Remove test as to whether stdout was already
79529         closed; it breaks for the case "echo x | sort >&-".
79530         Quote file name colons.
79531         Do not assume that _("write error") lacks format strings.
79532
79533 2000-05-15  Jim Meyering  <meyering@lucent.com>
79534
79535         * lib/version-etc.c (version_etc_copyright): Update the copyright
79536         string used in all --version output.
79537
79538 2000-05-14  Jim Meyering  <meyering@lucent.com>
79539
79540         * lib/closeout.c (close_stdout_set_file_name): New function.
79541         (close_stdout_status): Use new file-scoped global.
79542         Return right away if fstat says the stdout file descriptor is invalid.
79543         * lib/closeout.h (close_stdout_set_file_name): Declare.
79544
79545 2000-05-10  Jim Meyering  <meyering@lucent.com>
79546
79547         * lib/closeout.c [default_exit_status]: New file-scoped variable.
79548         (close_stdout_set_status): New function.
79549         * lib/closeout.h (close_stdout_set_status): Declare.
79550
79551 2000-05-09  Jim Meyering  <meyering@lucent.com>
79552
79553         * m4/gettext.m4: Rename this...
79554         * m4/libintl.m4: ...to this.
79555
79556 2000-05-08  Jim Meyering  <meyering@lucent.com>
79557
79558         * lib/long-options.c: Don't include closeout.h.
79559         (parse_long_options): Don't call close_stdout for --version.
79560
79561 2000-05-06  Paul Eggert  <eggert@twinsun.com>
79562
79563         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
79564         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
79565         2.1.3 bug.  This avoids a clash when files like regex.c define
79566         _GNU_SOURCE.
79567
79568 2000-05-06  Jim Meyering  <meyering@lucent.com>
79569
79570         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
79571         (AC_REPLACE_FUNCS): Add strnlen.
79572
79573         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
79574         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
79575
79576         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
79577         AC_SEARCH_LIBS call for nanosleep.
79578         (LIB_NANOSLEEP): Set and AC_SUBST.
79579
79580 2000-05-06  Jim Meyering  <meyering@lucent.com>
79581
79582         * lib/strnlen.c: Undefine __strnlen and strnlen.
79583         [!weak_alias]: Define __strnlen to strnlen.
79584
79585         * lib/atexit.c: New file, from libiberty.
79586
79587 2000-05-06  Jim Meyering  <meyering@lucent.com>
79588
79589         * lib/closeout.c (close_stdout_status): Also check for errors on the
79590         stderr stream.
79591
79592 2000-05-05  Jim Meyering  <meyering@lucent.com>
79593
79594         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
79595         AC_SEARCH_LIBS call for clock_gettime.
79596         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
79597
79598         * m4/search-libs.m4: Update from autoconf.
79599
79600         su doesn't work on Solaris 2.6.
79601         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
79602         <shadow.h>.  Reported by Dragos Harabor.
79603
79604 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
79605
79606         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
79607         memcpy instead of xmalloc, xrealloc, path_concat.
79608         (locale_charset): Treat empty environment variables as absent.
79609         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
79610
79611 2000-05-04  Jim Meyering  <meyering@lucent.com>
79612
79613         * lib/getopt.c: Update from glibc.
79614         * lib/obstack.c: Likewise.
79615         * lib/obstack.h: Likewise.
79616         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
79617         file
79618
79619         * lib/regex.h: Likewise.
79620         * lib/strndup.c: Likewise.
79621         * lib/strnlen.c: New file, from glibc.
79622
79623 2000-05-03  Jim Meyering  <meyering@lucent.com>
79624
79625         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
79626
79627 2000-05-02  Paul Eggert  <eggert@twinsun.com>
79628
79629         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
79630         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
79631         compile-time test, rather than inspecting host and OS, to
79632         decide whether to define _LARGEFILE_SOURCE.
79633
79634 2000-05-01  Jim Meyering  <meyering@lucent.com>
79635
79636         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
79637
79638         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
79639         Based on a patch from Bruno Haible.
79640
79641 2000-05-01  Jim Meyering  <meyering@lucent.com>
79642
79643         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
79644
79645 2000-04-29  Jim Meyering  <meyering@lucent.com>
79646
79647         * lib/path-concat.c: Declare strdup only if it's not defined.
79648         * lib/canon-host.c: Likewise.
79649
79650 2000-04-28  Jim Meyering  <meyering@lucent.com>
79651
79652         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
79653         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
79654         is included first, then limits.h is included by locale.h by libintl.h.
79655         From John David Anglin.
79656
79657 2000-04-25  Jim Meyering  <meyering@lucent.com>
79658
79659         * lib/makepath.c (S_IRWXUGO): Define.
79660         (make_path): Always perform explicit chmod if MODE specifies any
79661         of the `special' permission bits.  Prompted by a bug report against
79662         install from Mate Wierdl and Joost van Baal.
79663
79664 2000-04-18  Jim Meyering  <meyering@lucent.com>
79665
79666         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
79667         (jm_PREREQ): Use it.
79668
79669 2000-04-18  Jim Meyering  <meyering@lucent.com>
79670
79671         * lib/README: New file.
79672
79673         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
79674         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
79675
79676 2000-04-17  Jim Meyering  <meyering@lucent.com>
79677
79678         Get it right :-)
79679         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
79680         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
79681         Suggestion from Akim Demaille.
79682
79683 2000-04-17  Jim Meyering  <meyering@lucent.com>
79684
79685         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
79686         the definition of it to rpl_strftime also defined-away the system's
79687         declaration.
79688
79689 2000-04-15  Jim Meyering  <meyering@lucent.com>
79690
79691         Use `C' to denote so-called `contiguous' files, the same way
79692         that tar does.
79693         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
79694         (ftypelet): Use S_ISCTG.
79695         From Michael Deutschmann.
79696
79697 2000-04-14  Jim Meyering  <meyering@lucent.com>
79698
79699         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
79700         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
79701         clobbered.
79702
79703 2000-04-14  Jim Meyering  <meyering@lucent.com>
79704
79705         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
79706
79707 2000-04-13  Jim Meyering  <meyering@lucent.com>
79708
79709         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
79710         AH_VERBATIM to insert required #ifndef into config.h.in.
79711         Suggestion from Akim Demaille.
79712
79713 2000-04-12  Jim Meyering  <meyering@lucent.com>
79714
79715         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
79716         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
79717         Christian Krackowizer.
79718
79719         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
79720         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
79721         (AC_SYS_LARGEFILE): Require.
79722         (AM_C_PROTOTYPES): Require.
79723
79724 2000-04-08  Jim Meyering  <meyering@lucent.com>
79725
79726         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
79727         names don't conflict.  Reported by Eli Zaretskii.
79728
79729 2000-04-07  Jim Meyering  <meyering@lucent.com>
79730
79731         * lib/putenv.c: Move inclusion of errno.h so it follows that of
79732         sys/types.h, to work around system header problems on AIX 3.2.5.
79733         From Bruno Haible.
79734
79735 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
79736
79737         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
79738         bug.  Deal with the different error behavior of Irix iconv.
79739
79740 2000-04-05  Paul Eggert  <eggert@twinsun.com>
79741
79742         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
79743         IRIX if the installer said otherwise.
79744
79745 2000-04-05  Jim Meyering  <meyering@lucent.com>
79746
79747         Portability tweaks required for ultrix4.3.
79748         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
79749         (jm_CHECK_DECLS): Add getutent to the list of functions.
79750         (_jm_DECL_HEADERS): Add utmpx.h.
79751         From John David Anglin.
79752
79753         * m4/strftime.m4: Back out the 2000-04-02 change.
79754         Instead of that change, simply undefine putenv in the test program.
79755
79756 2000-04-05  Jim Meyering  <meyering@lucent.com>
79757
79758         Portability tweaks required for ultrix4.3.
79759         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
79760         getutent.
79761         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
79762         * lib/canon-host.c: Declare strdup.
79763         * lib/path-concat.c: Likewise.
79764         From John David Anglin.
79765
79766 2000-04-04  Jim Meyering  <meyering@lucent.com>
79767
79768         Be more DOS 8.3-friendly.
79769         * lib/ref-add.sin: Renamed from ref-add.sed.in.
79770         * lib/ref-del.sin: Renamed from ref-del.sed.in.
79771         * lib/Makefile.am: Reflect renaming.
79772         Reported by Eli Zaretskii.
79773
79774         Use a temporary file name that won't clash with `charset.alias'
79775         in the DOS 8.3 name space.
79776         * lib/Makefile.am (charset_tmp): Define.
79777         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
79778         (uninstall-local): Likewise.
79779         Reported by Eli Zaretskii.
79780
79781 2000-04-03  Jim Meyering  <meyering@lucent.com>
79782
79783         * m4/gettext.m4: Fix typo in comment.
79784
79785         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
79786         textutils/configure.in).  Suggestion from Paul Eggert.
79787         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
79788
79789 2000-04-02  Paul Eggert  <eggert@twinsun.com>
79790
79791         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
79792         variable in the shell rather than using putenv, which isn't
79793         portable.  This avoids the configure-time inter-test dependency
79794         on the potentially-renamed putenv function.
79795
79796 2000-03-30  Paul Eggert  <eggert@twinsun.com>
79797
79798         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
79799         before checking struct stat.st_blksize, so that
79800         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
79801
79802 2000-03-29  Paul Eggert  <eggert@twinsun.com>
79803
79804         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
79805         since strftime.c uses HAVE_STRFTIME to decide whether to use
79806         the underlying strftime.
79807
79808 2000-03-29  Paul Eggert  <eggert@twinsun.com>
79809
79810         * lib/time/strftime.c (my_strftime): Make sure we call the system
79811         strftime, not ourselves, when invoking the underlying strftime.
79812
79813 2000-03-24  Jim Meyering  <meyering@lucent.com>
79814
79815         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
79816         (charset_alias): Define.
79817         (install-exec-local): Factor out common code.
79818         (uninstall-local): Split lines longer than 80.
79819         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
79820         (SUFFIXES): Define.
79821         (.sed.in.sed): New rule.  Don't redirect directly to $@.
79822         (CLEANFILES): Add ref-add.sed and ref-del.sed.
79823
79824 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
79825
79826         * lib/config.charset: Output a line containing "Packages using this
79827         file".
79828         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
79829         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
79830         ref-del.sed): New rules.
79831
79832 2000-03-17  Jim Meyering  <meyering@lucent.com>
79833
79834         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
79835         Otherwise, include <strings.h>
79836
79837 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
79838
79839         * lib/unicodeio.c (utf8_wctomb): New function.
79840         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
79841         format instead of in UCS-4 with platform dependent endianness.
79842
79843 2000-03-10  Jim Meyering  <meyering@lucent.com>
79844
79845         * m4/lib-check.m4: Look for getspnam in -lgen, too.
79846         From Marco Franzen.
79847
79848 2000-03-07  Paul Eggert  <eggert@twinsun.com>
79849
79850         * lib/savedir.c (savedir): Work even if directory size is
79851         negative; this can happen with some screwy NFS configurations.
79852
79853 2000-03-06  Jim Meyering  <meyering@lucent.com>
79854
79855         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
79856         if it's NULL (because we ran out of memory).  From Bruno Haible.
79857
79858 2000-03-05  Jim Meyering  <meyering@lucent.com>
79859
79860         * lib/localcharset.c ("path-concat.h"): Include.
79861         (get_charset_aliases): Use path_concat instead of ANSI string
79862         concatenation.
79863
79864         * lib/unicodeio.h (PARAMS): Define.
79865         Use it to guard prototype.
79866
79867 2000-03-04  Jim Meyering  <meyering@lucent.com>
79868
79869         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
79870         for lib/localcharset.c.
79871
79872 2000-03-04  Jim Meyering  <meyering@lucent.com>
79873
79874         * lib/Makefile.am (install-exec-local): Create $(libdir) before
79875         installing into it.
79876         (uninstall-local): Uncomment this rule so `make distcheck' works
79877         once again.
79878
79879         * lib/unicodeio.c (<errno.h>): Include it.
79880         (errno): Declare if not defined.
79881
79882         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
79883
79884         * lib/config.charset: New version, incorporating remarks from a linux
79885         i18n mailing list.  From Bruno Haible.
79886
79887 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
79888
79889         * m4/codeset.m4: New file.
79890         * m4/iconv.m4: New file.
79891         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
79892
79893 2000-03-03  Jim Meyering  <meyering@lucent.com>
79894
79895         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
79896
79897 2000-03-02  Jim Meyering  <meyering@lucent.com>
79898
79899         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
79900         the messages come out on separate lines.
79901
79902         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
79903         rather than jm_CHECK_DECLARATIONS.
79904         * m4/decl.m4: Remove now-unused file.
79905
79906         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
79907         geteuid.
79908
79909 2000-03-02  Jim Meyering  <meyering@lucent.com>
79910
79911         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
79912
79913 2000-03-01  Jim Meyering  <meyering@lucent.com>
79914
79915         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
79916         * lib/unicodeio.c: Likewise.
79917
79918 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
79919
79920         * lib/config.charset: New file.
79921         * lib/localcharset.c: New file.
79922         * lib/unicodeio.h, lib/unicodeio.c: New files.
79923         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
79924         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
79925         (noinst_HEADERS): Add unicodeio.h.
79926         (all-local, install-exec-local, charset.alias): New targets.
79927
79928 2000-02-28  Paul Eggert  <eggert@twinsun.com>
79929
79930         * lib/quotearg.c (ALERT_CHAR): New macro.
79931         (quotearg_buffer_restyled): Use it.
79932
79933 2000-02-27  Jim Meyering  <meyering@lucent.com>
79934
79935         * m4/check-decl.m4: Add getenv to the list.
79936
79937 2000-02-27  Jim Meyering  <meyering@lucent.com>
79938
79939         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
79940         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
79941
79942         * lib/backupfile.c: Guard inclusion of stdlib.h with
79943         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
79944         Declare malloc if needed.
79945
79946         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
79947         `#ifndef HAVE_DECL..'
79948         now that autoconf always defines the HAVE_DECL_ symbols.
79949         * lib/human.c: Likewise.
79950         * lib/same.c: Likewise.
79951         * lib/strtoumax.c: Likewise.
79952
79953         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
79954         declaration check was not run.
79955         * lib/hash.c: Likewise.
79956         * lib/human.c: Likewise.
79957         * lib/same.c: Likewise.
79958         * lib/strtoumax.c: Likewise.
79959
79960         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
79961         `.', then first look up the entire `.'-containing string as a login
79962         name.
79963
79964 2000-02-23  Jim Meyering  <meyering@lucent.com>
79965
79966         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
79967         in place of my hack.
79968
79969 2000-02-18  Paul Eggert  <eggert@twinsun.com>
79970
79971         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
79972         (textint): New typedef.
79973         (parser_control): Member year changed from int to textint.
79974         All uses changed.
79975         (YYSTYPE): Removed; replaced by %union with int and textint members.
79976         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
79977         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
79978         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
79979         (tSNUMBER, tUNUMBER): Now of type <textintval>.
79980         (date, number, to_year): Use width of number in digits, not its value,
79981         to determine whether it's a 2-digit year, or a 2-digit time.
79982         (yylex): Store number of digits of numeric tokens.
79983         Reported by John Kendall.
79984
79985         (parser_control): Changed from struct parser_control to typedef (for
79986         consistency).  All uses changed.
79987
79988         (tID): Removed; not used.
79989         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
79990
79991 2000-02-14  Paul Eggert  <eggert@twinsun.com>
79992
79993         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
79994         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
79995
79996 2000-02-12  Jim Meyering  <meyering@lucent.com>
79997
79998         * lib/userspec.c (ISDIGIT): Define it.
79999         (isdigit): Remove definition.
80000         (is_number): Use ISDIGIT, not isdigit.
80001         <libintl.h>: Include.
80002         (_ and N_): Define.
80003         (parse_user_spec): Mark translatable strings.
80004
80005 2000-02-10  Jim Meyering  <meyering@lucent.com>
80006
80007         With these changes, nanosleep.[ch] are finally enough like the other
80008         lib/* replacement files to compile on a few more losing systems.
80009
80010         * lib/nanosleep.h: Don't include config.h.
80011         Remove prototype from declaration of nanosleep.
80012         (PARAMS): Remove now-unneeded definition.
80013         * lib/nanosleep.c: #undef nanosleep.
80014         (rpl_nanosleep): Rename from nanosleep.
80015
80016 2000-02-10  Jim Meyering  <meyering@lucent.com>
80017
80018         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
80019         gnu_nanosleep to rpl_nanosleep.
80020
80021 2000-02-09  Jim Meyering  <meyering@lucent.com>
80022
80023         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
80024         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
80025
80026 2000-02-08  Akim Demaille  <akim@epita.fr>
80027
80028         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
80029         `[' and `]' and remove uses of `changequote'.
80030         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
80031         (AC_SYS_LARGEFILE): Likewise.
80032         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
80033         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
80034         of changequote.
80035         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
80036         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
80037         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
80038         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
80039
80040 2000-02-05  Jim Meyering  <meyering@lucent.com>
80041
80042         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
80043         Remove explicit use of AC_HEADER_TIME.  It is required by
80044         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
80045         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
80046         in autoconf whereby the expansion of the latter ended up preceding
80047         the expansion of its prerequisite, AC_HEADER_TIME.
80048         Reported by Volker Borchert.
80049
80050 2000-02-03  Jim Meyering  <meyering@lucent.com>
80051
80052         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
80053
80054 2000-02-03  Jim Meyering  <meyering@lucent.com>
80055
80056         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
80057         rather than with `#if HAVE_UTMPNAME'.
80058
80059 2000-02-02  Jim Meyering  <meyering@lucent.com>
80060
80061         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
80062         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
80063         Reported by Eli Zaretskii.
80064
80065 2000-02-01  Jim Meyering  <meyering@lucent.com>
80066
80067         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
80068
80069 2000-01-31  Jim Meyering  <meyering@lucent.com>
80070
80071         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
80072         functions.  Add the time.h and sys/time.h headers along with the
80073         AC_REQUIRE'ment of AC_HEADER_TIME.
80074
80075 2000-01-31  Jim Meyering  <meyering@lucent.com>
80076
80077         * lib/nanosleep.h (nanosleep): Guard declaration with
80078         `#if ! HAVE_DECL_NANOSLEEP'.
80079         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
80080         the declaration in that vendor's sys/timers.h.
80081         Reported by Christian Krackowizer.
80082
80083         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
80084         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
80085         (ISPRINT): Likewise.
80086         Reported by Tom Tromey.
80087
80088 2000-01-30  Jim Meyering  <meyering@lucent.com>
80089
80090         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
80091
80092         * m4/prereq.m4 (utmp_includes): Define.
80093         Check for ut_user and ut_name members in both struct utmpx
80094         and struct utmp.
80095
80096 2000-01-30  Jim Meyering  <meyering@lucent.com>
80097
80098         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
80099         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
80100         header files where only utmpx.ut_user is declared.
80101
80102         * lib/readutmp.h (UT_USER): Define.
80103
80104 2000-01-29  Jim Meyering  <meyering@lucent.com>
80105
80106         * m4/lib-check.m4: New file containing library-related checks from
80107         fileutils and sh-utils (textutils had none).
80108
80109 2000-01-28  Jim Meyering  <meyering@lucent.com>
80110
80111         * m4/perl.m4: Change format of warning message to look more like that
80112         from the missing script.  Suggestion from François Pinard.
80113
80114 2000-01-25  Jim Meyering  <meyering@lucent.com>
80115
80116         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
80117         well as time.h in the compile check.
80118         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
80119         Fix typo in cross-compiling case: s/yes/no/.
80120
80121 2000-01-23  Jim Meyering  <meyering@lucent.com>
80122
80123         * m4/jm-macros.m4: Move df-related tests here from
80124         fileutils/configure.in
80125
80126         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
80127         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
80128
80129         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
80130         s/space/ac_fsusage_space/.
80131         (jm_FILE_SYSTEM_USAGE): Take two parameters.
80132
80133         * m4/ftruncate.m4: New file (derived from part of
80134         fileutils/configure.in).
80135         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
80136         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
80137
80138         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
80139         AC_SUBST these here, rather than just in sh-util/configure.in, so
80140         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
80141         all the same.
80142         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
80143         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
80144         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
80145         (AC_SUBST(POW_LIBM)): Likewise.
80146         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
80147
80148 2000-01-23  Jim Meyering  <meyering@lucent.com>
80149
80150         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
80151         obstack.c.
80152
80153 2000-01-22  Jim Meyering  <meyering@lucent.com>
80154
80155         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
80156
80157         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
80158
80159         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
80160         configure.in
80161         (AC_CHECK_HEADERS): Likewise for sh-utils.
80162         (AC_CHECK_HEADERS): Likewise for textutils.
80163         Merge the three lists of headers.
80164
80165         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
80166         from fileutils' configure.in.
80167
80168         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
80169         code. Moved tests into their own function (_jm_DECL_HEADERS) in
80170         check-decl.m4.
80171
80172         * m4/check-decl.m4: Use #if rather than #ifdef.
80173         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
80174         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
80175         (_jm_DECL_HEADERS): Define new function.
80176         (jm_CHECK_DECLARATIONS): Require it.
80177
80178 2000-01-22  Jim Meyering  <meyering@lucent.com>
80179
80180         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
80181         [! HAVE_DECL_STRTOULL]: Declare strtoull.
80182         Required for some AIX systems.  Reported by Christian Krackowizer.
80183         [TESTING] (main): New function.
80184
80185         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
80186         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
80187         letters.
80188
80189         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
80190         iswprint.
80191
80192         * lib/strverscmp.c (ISDIGIT): Define.
80193         (strverscmp): Use ISDIGIT, not isdigit.
80194
80195 2000-01-19  Jim Meyering  <meyering@lucent.com>
80196
80197         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
80198         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
80199         defines `struct timespec' in <sys/time.h>
80200
80201         * m4/c-bs-a.m4: Remove uses of changequote altogether.
80202         Thanks to Akim for explaining.
80203
80204 2000-01-17  Paul Eggert  <eggert@twinsun.com>
80205
80206         * lib/nanosleep.c (nanosleep):
80207         Don't use SA_INTERRUPT to decide whether to call sigaction, as
80208         POSIX.1 doesn't require SA_INTERRUPT and some systems
80209         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
80210         it's been part of POSIX.1 since day 1 (in 1988).
80211
80212 2000-01-17  Jim Meyering  <meyering@lucent.com>
80213
80214         * lib/interlock: Remove unused file.  Reported by François Pinard.
80215
80216 2000-01-16  Paul Eggert  <eggert@twinsun.com>
80217
80218         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
80219         alert, backslash, formfeed, and vertical tab unnecessarily in
80220         shell quoting style.
80221
80222 2000-01-16  Jim Meyering  <meyering@lucent.com>
80223
80224         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
80225         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
80226         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
80227         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
80228
80229 2000-01-16  Jim Meyering  <meyering@lucent.com>
80230
80231         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
80232         because the latter didn't work.
80233
80234 2000-01-15  Jim Meyering  <meyering@lucent.com>
80235
80236         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
80237         (AC_REPLACE_FUNCS): Add memcpy and memset.
80238         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
80239         Add strpbrk.
80240         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
80241
80242 2000-01-12  Jim Meyering  <meyering@lucent.com>
80243
80244         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
80245         (jm_PREREQ): Use it.
80246         (jm_PREREQ_READUTMP): New macro.
80247         (jm_PREREQ): Use it.
80248
80249 2000-01-11  Paul Eggert  <eggert@twinsun.com>
80250
80251         Quote multibyte characters correctly.
80252         * m4/c-bs-a.m4: New file.
80253         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
80254         (jm_PREREQ): Use it.
80255
80256 2000-01-11  Paul Eggert  <eggert@twinsun.com>
80257
80258         * m4/uintmax_t.m4: Port to autoconf 2.13.
80259
80260 2000-01-08  Jim Meyering  <meyering@ascend.com>
80261
80262         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
80263         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
80264
80265 2000-01-04  Jim Meyering  <meyering@ascend.com>
80266
80267         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
80268         jm_STRUCT_DIRENT_D_TYPE.
80269         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
80270         jm_STRUCT_DIRENT_D_INO.
80271         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
80272         jm_STRUCT_UTIMBUF.
80273         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
80274         renamings.
80275         * m4/utime.m4: Likewise.
80276
80277         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
80278         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
80279
80280 2000-01-03  Paul Eggert  <eggert@twinsun.com>
80281
80282         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
80283         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
80284
80285 2000-01-02  Jim Meyering  <meyering@ascend.com>
80286
80287         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
80288         remember if this is necessary.
80289
80290 1999-12-26  Jim Meyering  <meyering@ascend.com>
80291
80292         * m4/jm-macros.m4: Use it here.
80293         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
80294
80295 1999-12-23  Jim Meyering  <meyering@ascend.com>
80296
80297         * m4/jm-macros.m4: Check for clock_gettime (moved from
80298         fileutils/configure.in)
80299         Check for gettimeofday.
80300
80301 1999-12-20  Jim Meyering  <meyering@ascend.com>
80302
80303         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
80304         autoconf-2.14a-1999-12-20.
80305
80306 1999-12-19  Jim Meyering  <meyering@ascend.com>
80307
80308         * m4/lstat-slash.m4: New file.
80309         * m4/jm-macros.m4: Use the new macro:
80310         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
80311
80312 1999-12-07  Jim Meyering  <meyering@ascend.com>
80313
80314         * m4/perl.m4: Require that File::Compare be available, too.
80315         Too many systems seem to lack it.
80316
80317         * m4/strftime.m4: Add checks for most of the cpp macros tested in
80318         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
80319
80320 1999-11-18  Paul Eggert  <eggert@twinsun.com>
80321
80322         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
80323         problem with the QNX 4.25 shell, which doesn't propagate exit
80324         status of failed commands inside shell assignments.
80325
80326 1999-11-17  Jim Meyering  <meyering@ascend.com>
80327
80328         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
80329
80330 1999-11-07  Jim Meyering  <meyering@ascend.com>
80331
80332         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
80333
80334 1999-11-06  Jim Meyering  <meyering@ascend.com>
80335
80336         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
80337         * m4/jm-macros.m4 (jm_MACROS): Use it here.
80338
80339 1999-11-05  Jim Meyering  <meyering@ascend.com>
80340
80341         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
80342         configure.in of textutils, fileutils, and sh-utils into this one
80343         (shared between those packages) file.
80344         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
80345         AC_STRUCT_ST_BLKSIZE.
80346
80347 1999-11-03  Jim Meyering  <meyering@ascend.com>
80348
80349         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
80350         of AC_CHECK_TYPE checks includes unistd.h.
80351         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
80352         Suggestion from Akim Demaille.
80353
80354 1999-10-30  Jim Meyering  <meyering@ascend.com>
80355
80356         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
80357         m4-quoted string.
80358         * m4/ls-mntd-fs.m4: Likewise.
80359         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
80360         * m4/jm-winsz1.m4: Likewise.
80361
80362         * m4/const.m4: Remove file, since the fix made it into the experimental
80363         version of autoconf.
80364         * m4/mktime.m4: Likewise.
80365
80366         * m4/check-type.m4: Remove file, now that the latest version of
80367         AC_CHECK_TYPE takes a third arg to specify additional #includes.
80368
80369         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
80370         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
80371         AC_CHECK_TYPE.
80372
80373 1999-10-04  Jim Meyering  <meyering@ascend.com>
80374
80375         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
80376
80377 1999-09-22  Paul Eggert  <eggert@twinsun.com>
80378
80379         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
80380         2.95.1 bug with HP-UX 10.20.
80381
80382 1999-09-17  Jim Meyering  <meyering@ascend.com>
80383
80384         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
80385         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
80386         due to missing strdup (against sh-utils-2.0).
80387
80388 1999-08-29  Jim Meyering  <meyering@ascend.com>
80389
80390         * m4/jm-macros.m4: Require jm_BISON.
80391         * m4/bison.m4: New file.
80392
80393 1999-08-17  Paul Eggert  <eggert@twinsun.com>
80394
80395         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
80396         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
80397
80398 1999-08-05  Jim Meyering  <meyering@ascend.com>
80399
80400         * m4/getline.m4: Rename test file from conftestdata to conftest.data
80401         to avoid conflicts with `conftest' on 8+3 filesystems.
80402         Suggestion from Eli Zaretskii.
80403
80404 1999-08-04  Jim Meyering  <meyering@ascend.com>
80405
80406         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
80407         fileutils and sh-utils (textutils's getline test was inadequate).
80408         (AM_FUNC_GETLINE): Run this test.
80409         (AC_CHECK_FUNCS): Check for getdelim.
80410         Reported by Bob Proulx.
80411
80412 1999-08-02  Jim Meyering  <meyering@ascend.com>
80413
80414         * m4/jm-macros.m4: Add a comment.
80415
80416 1999-08-01  Paul Eggert  <eggert@twinsun.com>
80417
80418         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
80419         <inttypes.h> defines strtoumax as a macro (and not as a
80420         function).
80421
80422 1999-08-01  Paul Eggert  <eggert@twinsun.com>
80423
80424         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
80425         that we can shift, multiply and divide unsigned long long
80426         values; Ultrix cc can't do it.
80427
80428 1999-08-01  Paul Eggert  <eggert@twinsun.com>
80429
80430         * m4/mktime.m4: New file, which is a preview of what should appear
80431         in the next public autoconf release.
80432
80433 1999-08-01  Paul Eggert  <eggert@twinsun.com>
80434
80435         * m4/lfs.m4: Remove this file.
80436         * m4/largefile.m4: New file.  It contains the old contents of
80437         lfs.m4, except that all names with prefix AC_LFS have been
80438         changed to use the prefix AC_SYS_LARGEFILE instead, to be
80439         compatible with future autoconf versions.  Also, some minor m4
80440         quoting problems have been fixed.
80441
80442 1999-08-01  Paul Eggert  <eggert@twinsun.com>
80443
80444         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
80445         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
80446         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
80447         and simplify the shell code.
80448
80449 1999-08-01  Jim Meyering  <meyering@ascend.com>
80450
80451         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
80452         m4.
80453
80454 1999-07-20  Jim Meyering  <meyering@ascend.com>
80455
80456         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
80457
80458 1999-07-15  Jim Meyering  <meyering@ascend.com>
80459
80460         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
80461
80462 1999-05-22  Jim Meyering  <meyering@ascend.com>
80463
80464         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
80465
80466 1999-05-20  Jim Meyering  <meyering@ascend.com>
80467
80468         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
80469         Add a colon after each `then' in case $4 is empty.
80470
80471 1999-05-16  Jim Meyering  <meyering@ascend.com>
80472
80473         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
80474
80475 1999-05-10  Jim Meyering  <meyering@ascend.com>
80476
80477         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
80478
80479         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
80480         AC_FUNC_MKTIME.
80481
80482 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
80483
80484         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
80485
80486 1999-05-04  Paul Eggert  <eggert@twinsun.com>
80487
80488         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
80489         not CPPFLAGS, so that linking works correctly in IRIX.
80490
80491 1999-04-30  Paul Eggert  <eggert@twinsun.com>
80492
80493         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
80494
80495 1999-04-20  Paul Eggert  <eggert@twinsun.com>
80496
80497         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
80498         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
80499         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
80500         jm_AC_TYPE_UNSIGNED_LONG_LONG.
80501         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
80502
80503         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
80504
80505 1999-04-20  Jim Meyering  <meyering@ascend.com>
80506
80507         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
80508         AC_REPLACE xstroull if necessary.  From Paul Eggert.
80509         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
80510
80511 1999-04-18  Jim Meyering  <meyering@ascend.com>
80512
80513         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
80514         * m4/jm-macros.m4: Use it.
80515
80516 1999-04-06  Jim Meyering  <meyering@ascend.com>
80517
80518         * m4/strftime.m4: Remove test for %f.
80519
80520 1999-03-29  Jim Meyering  <meyering@ascend.com>
80521
80522         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
80523         superset of the AC_TYPE_* checks in the textutils, fileutils,
80524         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
80525         AC_TYPE_PID_T.
80526
80527 1999-03-28  Jim Meyering  <meyering@ascend.com>
80528
80529         * m4/jm-macros.m4: Define GNU_PACKAGE here.
80530         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
80531         replaced e.g., in the *.sh files of the sh-utils.
80532
80533 1999-03-20  Jim Meyering  <meyering@ascend.com>
80534
80535         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
80536         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
80537         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
80538
80539 1999-03-19  Jim Meyering  <meyering@ascend.com>
80540
80541         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
80542
80543 1999-03-12  Jim Meyering  <meyering@ascend.com>
80544
80545         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
80546
80547 1999-03-07  Jim Meyering  <meyering@ascend.com>
80548
80549         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
80550         declared.
80551
80552 1999-02-17  Jim Meyering  <meyering@ascend.com>
80553
80554         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
80555         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
80556
80557 1999-02-07  Jim Meyering  <meyering@ascend.com>
80558
80559         * m4/group-member.m4: New file -- extracted from sh-utils'
80560         configure.in.
80561
80562         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
80563         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
80564
80565 1999-02-06  Jim Meyering  <meyering@ascend.com>
80566
80567         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
80568         * m4/fnmatch.m4: Likewise.
80569         * m4/getgroups.m4: Likewise.
80570         * m4/lstat.m4: Likewise.
80571         * m4/malloc.m4: Likewise.
80572         * m4/putenv.m4: Likewise.
80573         * m4/realloc.m4: Likewise.
80574         * m4/regex.m4: Likewise.
80575         * m4/stat.m4: Likewise.
80576         * m4/strftime.m4: Likewise.
80577         Suggestion from Alain Magloire.
80578
80579         * m4/chown.m4: Use `.$ac_objext', not `.o'.
80580         * m4/fnmatch.m4: Likewise.
80581         * m4/getgroups.m4: Likewise.
80582         * m4/getline.m4: Likewise.
80583         * m4/lstat.m4: Likewise.
80584         * m4/malloc.m4: Likewise.
80585         * m4/memcmp.m4: Likewise.
80586         * m4/putenv.m4: Likewise.
80587         * m4/realloc.m4: Likewise.
80588         * m4/regex.m4: Likewise.
80589         * m4/stat.m4: Likewise.
80590         * m4/strftime.m4: Likewise.
80591         Suggestion from Alain Magloire.
80592
80593         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
80594         an argument.
80595
80596         * m4/regex.m4: Add a run-time Test for proper operation of
80597         re_compile_pattern.
80598
80599 1999-01-31  Jim Meyering  <meyering@ascend.com>
80600
80601         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
80602
80603 1999-01-30  Jim Meyering  <meyering@ascend.com>
80604
80605         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
80606
80607         * m4/jm-mktime.m4: Make this a wrapper around the official
80608         AM_FUNC_MKTIME rather than my private copy, now that the official one
80609         is up to date.
80610         * m4/mktime.m4: Remove file.
80611
80612         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
80613         * m4/uptime.m4: Likewise.
80614         * m4/uintmax_t.m4: Likewise.
80615
80616 1999-01-28  Jim Meyering  <meyering@ascend.com>
80617
80618         * m4/jm-macros.m4: Use jm_AFS.
80619         * m4/afs.m4: New file (from fileutils' configure.in).
80620
80621         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
80622         * m4/chown.m4: Likewise.
80623         * m4/d-ino.m4: Likewise.
80624         * m4/d-type.m4: Likewise.
80625         * m4/fnmatch.m4: Likewise.
80626         * m4/getgroups.m4: Likewise.
80627         * m4/gettext.m4: Likewise.
80628         * m4/jm-mktime.m4: Likewise.
80629         * m4/jm-winsz2.m4: Likewise.
80630         * m4/lcmessage.m4: Likewise.
80631         * m4/ls-mntd-fs.m4: Likewise.
80632         * m4/malloc.m4: Likewise.
80633         * m4/memcmp.m4: Likewise.
80634         * m4/putenv.m4: Likewise.
80635         * m4/realloc.m4: Likewise.
80636         * m4/st_mtim.m4: Likewise.
80637         * m4/strftime.m4: Likewise.
80638
80639 1999-01-16  Jim Meyering  <meyering@ascend.com>
80640
80641         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
80642         (ARGMATCH_DIE_DECL): Define.
80643
80644 1999-01-12  Jim Meyering  <meyering@ascend.com>
80645
80646         * m4/Makefile.am.in: Rewrite to avoid using fmt.
80647         Reported by Lars Hecking.
80648
80649 1999-01-10  Jim Meyering  <meyering@ascend.com>
80650
80651         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
80652         gross kludge.
80653         * m4/inttypes_h.m4: Likewise.
80654         * m4/lstat.m4: Likewise.
80655         * m4/malloc.m4: Likewise.
80656         * m4/readdir.m4: Likewise.
80657         * m4/realloc.m4: Likewise.
80658         * m4/st_dm_mode.m4: Likewise.
80659         * m4/stat.m4: Likewise.
80660         * m4/utimbuf.m4: Likewise.
80661         * m4/utimes.m4: Likewise.
80662
80663         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
80664         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
80665         comments in config.h.in are meaningful.
80666
80667         * m4/jm-macros.m4: Require autoconf-2.13 here.
80668
80669         * m4/regex.m4: By default, don't use the included regex.c on systems
80670         with glibc 2.  Suggestion from Uli Drepper.
80671
80672 1999-01-02  Jim Meyering  <meyering@ascend.com>
80673
80674         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
80675
80676 1998-12-18  Jim Meyering  <meyering@ascend.com>
80677
80678         * m4/Makefile.am.in (Makefile.am): Simplify rule.
80679         Based on a suggestion from Lars Hecking.
80680
80681 1998-11-16  Paul Eggert  <eggert@twinsun.com>
80682
80683         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
80684
80685 1998-11-16  Jim Meyering  <meyering@ascend.com>
80686
80687         * m4/lfs.m4: Double-quote the `uname...` expression.
80688
80689 1998-11-14  Jim Meyering  <meyering@ascend.com>
80690
80691         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
80692         * m4/stat.m4: Likewise.
80693
80694 1998-11-03  Jim Meyering  <meyering@ascend.com>
80695
80696         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
80697         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
80698
80699 1998-10-18  Jim Meyering  <meyering@ascend.com>
80700
80701         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
80702
80703 1998-10-17  Jim Meyering  <meyering@ascend.com>
80704
80705         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
80706         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
80707         calls for those previously hard-coded headers.  Instead, take a new
80708         parameter.
80709         (jm_CHECK_DECLARATIONS): Reflect interface change.
80710         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
80711         (jm_CHECK_DECL_LOCALTIME_R): New macro.
80712
80713         * m4/mktime.m4: Test for spring-forward gap before long-running test.
80714
80715 1998-10-14  Jim Meyering  <meyering@ascend.com>
80716
80717         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
80718         instead of "TZ=America/Vancouver".  From Paul Eggert.
80719
80720 1998-10-11  Jim Meyering  <meyering@ascend.com>
80721
80722         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
80723         This adds a test for a recently added compatibility fix for mktime.c.
80724         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
80725
80726 1998-09-27  Jim Meyering  <meyering@ascend.com>
80727
80728         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
80729
80730         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
80731         ../configure.in, including a change from Gordon Matzigkeit to allow
80732         cross-compiling for the Hurd.
80733
80734         * m4/glibc.m4: New file/macro to test for the GNU C Library
80735         versions 1 and 2.  From Gordon Matzigkeit.
80736         Indent.
80737
80738 1998-09-21  Jim Meyering  <meyering@ascend.com>
80739
80740         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
80741
80742 1998-08-18  Paul Eggert  <eggert@twinsun.com>
80743
80744         Port nanosecond-resolution times to UnixWare 2.1.2 and
80745         pedantic Solaris 2.6.
80746
80747         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
80748         AC_STRUCT_ST_MTIM.
80749         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
80750         Generate name of ns member, instead of just 1 or undef.
80751         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
80752
80753 1998-08-15  Jim Meyering  <meyering@ascend.com>
80754
80755         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
80756         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
80757         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
80758         instead of jm_TYPE_SSIZE_T.
80759
80760 1998-08-12  Jim Meyering  <meyering@ascend.com>
80761
80762         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
80763
80764 1998-08-02  Jim Meyering  <meyering@ascend.com>
80765
80766         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
80767         in acconfig.h manually.
80768
80769 1998-07-31  Paul Eggert  <eggert@twinsun.com>
80770
80771         * m4/st_mtim.m4: New file.
80772
80773 1998-07-28  Jim Meyering  <meyering@ascend.com>
80774
80775         * m4/utimes.m4: Undef stat.
80776
80777 1998-07-25  Jim Meyering  <meyering@ascend.com>
80778
80779         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
80780         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
80781
80782 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
80783
80784         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
80785         uid and gid actually remain unchanged.
80786
80787 1998-07-07  Jim Meyering  <meyering@ascend.com>
80788
80789         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
80790
80791 1998-07-04  Jim Meyering  <meyering@ascend.com>
80792
80793         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
80794         to prove that this macro can be used in packages without regex.c.
80795
80796 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
80797
80798         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
80799         is to be used.
80800
80801 1998-07-03  Jim Meyering  <meyering@ascend.com>
80802
80803         * m4/gettext.m4: Add -lintl if it's found to be necessary.
80804
80805         * m4/gettext.m4: New file -- from gettext-0.10.35.
80806         * m4/lcmessage.m4: Likewise.
80807         * m4/progtest.m4: Likewise.
80808
80809         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
80810         * m4/jm-macros.m4: Require the new macro.
80811
80812 1998-06-29  Jim Meyering  <meyering@ascend.com>
80813
80814         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
80815         for the definition of NGROUPS (used in a system header included
80816         by sys/mount.h).
80817
80818 1998-06-28  Jim Meyering  <meyering@ascend.com>
80819
80820         * m4/ls-mntd-fs.m4: New file.
80821         * m4/fstypename.m4: New file.
80822
80823         * m4/jm-macros.m4: Require the new macro.
80824         * m4/jm-glibc-io.m4: New file.
80825
80826 1998-05-19  Jim Meyering  <meyering@ascend.com>
80827
80828         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
80829         * m4/lchown.m4: New file.
80830
80831         * m4/Makefile.am.in: New file.
80832         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
80833
80834 1998-05-14  Jim Meyering  <meyering@ascend.com>
80835
80836         * m4/Makefile.am (EXTRA_DIST): Add them.
80837         * m4/jm-macros.m4: New file.
80838         * m4/utimbuf.m4: New file.
80839
80840 1998-05-12  Jim Meyering  <meyering@ascend.com>
80841
80842         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
80843
80844 1998-05-11  Jim Meyering  <meyering@ascend.com>
80845
80846         * m4/isc-posix.m4: New file.
80847
80848 1998-05-10  Jim Meyering  <meyering@ascend.com>
80849
80850         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
80851
80852 1998-05-09  Jim Meyering  <meyering@ascend.com>
80853
80854         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
80855         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
80856         with automake.
80857
80858         * m4/ssize_t.m4: New file.
80859         * m4/mktime.m4: Remove file -- the new automake has this now.
80860
80861 1998-04-26  Jim Meyering  <meyering@ascend.com>
80862
80863         * m4/assert.m4: New file.
80864         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
80865
80866 1998-04-05  Jim Meyering  <meyering@ascend.com>
80867
80868         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
80869         (jm_PREREQ): Use it here.
80870
80871 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
80872
80873         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
80874         in acconfig.h.
80875
80876 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
80877
80878         * m4/prereq.m4: New file.
80879         * m4/error.m4: New file.
80880         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
80881
80882 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
80883
80884         * m4/getline.m4: Don't set am_cv_func_working_getline before the
80885         cache-check for the same variable -- that defeated the purpose of
80886         the test; the test program was never run.  This was a problem only
80887         on systems with losing getline functions -- HP-UX 10.20 is one.
80888         Reported by Bjorn Helgaas.
80889
80890 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
80891
80892         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
80893
80894 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
80895
80896         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
80897
80898         * m4/const.m4: New file.  Use an initializer in this declaration
80899         typedef int charset[2]; const charset x;
80900         Reported by Bob Glickstein.
80901
80902 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
80903
80904         * m4/chown.m4: Fix reversed types on -1 args to chown.
80905         From Kaveh Ghazi.
80906
80907 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
80908
80909         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
80910         Add lseek and memchr.
80911
80912         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
80913         T.E.Dickey <dickey@clark.net> said that some older preprocessors
80914         have a 20-character limit on names.
80915
80916 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
80917
80918         * m4/inttypes_h.m4: New file.
80919         * m4/uintmax_t.m4: New file.
80920         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
80921
80922
80923         -----
80924
80925         Local Variables:
80926         coding: utf-8
80927         End:
80928
80929         Copyright (C) 1997-2011 Free Software Foundation, Inc.
80930
80931         Copying and distribution of this file, with or without
80932         modification, are permitted provided the copyright notice
80933         and this notice are preserved.