0beb305c97c84653fe71ad4075d28dd82a37908b
[gnulib.git] / ChangeLog
1 2008-11-16  Bruno Haible  <bruno@clisp.org>
2
3         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
4
5 2008-11-16  Bruno Haible  <bruno@clisp.org>
6
7         Avoid test failure on Haiku.
8         * tests/test-fsync.c: Include <errno.h>.
9         (main): Don't require that fsync (0) fails.
10
11 2008-11-15  Bruno Haible  <bruno@clisp.org>
12
13         New module 'hostent'.
14         * modules/hostent: New file.
15         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
16
17 2008-11-15  Bruno Haible  <bruno@clisp.org>
18
19         New module 'servent'.
20         * modules/servent: New file.
21         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
22
23 2008-11-15  Bruno Haible  <bruno@clisp.org>
24
25         Avoid generating same test program with two different rules.
26         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
27         test-frexp to test-frexp-nolibm.
28         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
29         test-frexpl to test-frexpl-nolibm.
30
31 2008-11-15  Bruno Haible  <bruno@clisp.org>
32
33         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
34         $(FREXPL_LIBM).
35
36 2008-11-15  Bruno Haible  <bruno@clisp.org>
37
38         * lib/netdb.in.h: Activate the definitions also when the system's
39         <netdb.h> has 'struct addrinfo'.
40         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
41         EAI_OVERFLOW or AI_NUMERICSERV.
42         * doc/posix-headers/netdb.texi: Document the problem.
43
44 2008-11-15  Bruno Haible  <bruno@clisp.org>
45
46         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
47
48         Make the 'sched' module work on platforms where <sched.h> exists but
49         is incomplete (such as Haiku).
50         * lib/sched.in.h; Include the system's <sched.h> if it exists.
51         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
52         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
53         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
54         HAVE_STRUCT_SCHED_PARAM.
55         * modules/sched (Depends-on): Add include_next.
56         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
57         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
58         * doc/posix-headers/sched.texi: Document the issue.
59
60 2008-11-13  Jim Meyering  <meyering@redhat.com>
61
62         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
63         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
64         test would fail due to the difference in the Report bugs to ...
65         line.  The expected address is empty, "<>", while the actual
66         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
67
68 2008-11-12  Bruno Haible  <bruno@clisp.org>
69
70         lstat: don't compile lstat.c on systems lacking lstat
71         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
72         which don't have lstat; this is handled by lib/sys_stat.in.h already.
73         Reported by Daniel P. Berrange via Jim Meyering.
74
75 2008-11-12  Jim Meyering  <meyering@redhat.com>
76
77         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
78
79 2008-11-12  Simon Josefsson  <simon@josefsson.org>
80
81         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
82         instead.
83
84 2008-11-12  Bruno Haible  <bruno@clisp.org>
85
86         * lib/unicodeio.c: Include unistr.h.
87         (utf8_wctomb): Remove function.
88         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
89
90 2008-11-12  Simon Josefsson  <simon@josefsson.org>
91
92         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
93         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
94         <bruno@clisp.org>.
95         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
96
97 2008-11-12  Simon Josefsson  <simon@josefsson.org>
98
99         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
100         * doc/gnulib.texi: Add section for warnings.
101
102 2008-11-11  Bruno Haible  <bruno@clisp.org>
103
104         * lib/sockets.h: Add a comment.
105
106 2008-11-11  Karl Berry  <karl@gnu.org>
107
108         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
109
110 2008-11-11  Eric Blake  <ebb9@byu.net>
111
112         fdl.texi: avoid git symlinks
113         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
114
115 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
116
117         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
118
119 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
120
121         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
122         (gl_WARN_ADD): Substitute $2 if literal.
123
124 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
125
126         * m4/warning.m4: Remove.
127
128 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
129
130         * m4/warnings.m4: Almost complete rewrite. :-)
131
132 2008-11-10  Simon Josefsson  <simon@josefsson.org>
133
134         * modules/warnings: New module.
135         * m4/warnings.m4: New file.
136         * MODULES.html.sh: Mention warnings module.
137         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
138         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
139
140 2008-11-10  Eric Blake  <ebb9@byu.net>
141
142         fdl.texi: make a symlink to the latest version
143         * doc/standards.texi: Revert today's earlier change.
144         * doc/fdl-1.2.texi: Rename from old fdl.texi...
145         * doc/fdl.texi: ...and replace this with a symlink to the newer
146         fdl-1.3.texi.
147
148 2008-11-10  Bruno Haible  <bruno@clisp.org>
149
150         * tests/test-select-fd.c (main): Accept the result file name as fourth
151         argument.
152         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
153         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
154
155 2008-11-10  Bruno Haible  <bruno@clisp.org>
156
157         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
158         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
159         as autoconf-substituted macros.
160         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
161         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
162         gl_NETDB_H_DEFAULTS. Set these variables.
163         * modules/netdb (Makefile.am): Substitute these variables.
164
165 2008-11-10  Eric Blake  <ebb9@byu.net>
166
167         standards.texi: include correct file for FDL 1.3
168         * doc/standards.texi (GNU Free Documentation License): Change
169         include file to pull in FDL 1.3, not 1.2.
170
171         fdl.texi: revert accidental change to license
172         * doc/fdl.texi: This is FDL 1.2, not 1.3.
173
174 2008-11-10  Bruno Haible  <bruno@clisp.org>
175
176         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
177         cross-compiling guesses also when the native compile gives no result.
178
179 2008-11-10  Bruno Haible  <bruno@clisp.org>
180
181         * lib/spawni.c (__spawni): Force variable into the stack.
182
183 2008-11-10  Bruno Haible  <bruno@clisp.org>
184
185         Add support for Haiku.
186         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
187         glibc and BeOS, but also on Haiku.
188         * lib/fpurge.c (fpurge): Likewise.
189         * lib/freadable.c (freadable): Likewise.
190         * lib/freadahead.c (freadahead): Likewise.
191         * lib/freading.c (freading): Likewise.
192         * lib/freadptr.c (freadptr): Likewise.
193         * lib/freadseek.c (freadptrinc): Likewise.
194         * lib/fseeko.c (rpl_fseeko): Likewise.
195         * lib/fseterr.c (fseterr): Likewise.
196         * lib/fwritable.c (fwritable): Likewise.
197         * lib/fwriting.c (fwriting): Likewise.
198         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
199
200 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
201
202         * lib/config.charset: Treat Haiku like BeOS.
203
204 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
205
206         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
207         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
208
209 2008-11-08  Bruno Haible  <bruno@clisp.org>
210
211         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
212         AC_CACHE_CHECK.
213
214 2008-11-08  Bruno Haible  <bruno@clisp.org>
215
216         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
217
218 2008-11-08  Bruno Haible  <bruno@clisp.org>
219
220         * tests/test-select-fd.c: New file.
221         * tests/test-select-in.sh: New file.
222         * tests/test-select-out.sh: New file.
223         * tests/test-select-stdin.c: New file.
224         * modules/select-tests (Files): Add the new files.
225         (Depends-on): Add gettimeofday.
226         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
227         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
228         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
229
230 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
231             Bruno Haible  <bruno@clisp.org>
232
233         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
234
235 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
236
237         * build-aux/pmccabe2html: Added support for C++ source files.
238
239 2008-11-05  Ben Pfaff  <blp@gnu.org>
240
241         Fix lib/close.c build on Windows.
242         * modules/close (Files): Add lib/w32sock.h.
243
244 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
245
246         Accept Bison's NEWS format.
247         * build-aux/announce-gen (print_news_deltas): Tweak
248         $re_prefix.
249
250 2008-11-04  Bruno Haible  <bruno@clisp.org>
251
252         * modules/random_r (Maintainer): Add glibc.
253
254 2008-11-04  Simon Josefsson  <simon@josefsson.org>
255
256         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
257         by karl@freefriends.org (Karl Berry).
258         * doc/alloca.texi: Likewise.
259         * doc/c-ctype.texi: Likewise.
260         * doc/c-strcase.texi: Likewise.
261         * doc/c-strcaseeq.texi: Likewise.
262         * doc/c-strcasestr.texi: Likewise.
263         * doc/c-strstr.texi: Likewise.
264         * doc/c-strtod.texi: Likewise.
265         * doc/c-strtold.texi: Likewise.
266         * doc/ctime.texi: Likewise.
267         * doc/error.texi: Likewise.
268         * doc/fdl.texi: Likewise.
269         * doc/gcd.texi: Likewise.
270         * doc/getdate.texi: Likewise.
271         * doc/gnulib-intro.texi: Likewise.
272         * doc/gnulib-tool.texi: Likewise.
273         * doc/gnulib.texi: Likewise.
274         * doc/inet_ntoa.texi: Likewise.
275         * doc/maintain.texi: Likewise.
276         * doc/make-stds.texi: Likewise.
277         * doc/quote.texi: Likewise.
278         * doc/regexprops-generic.texi: Likewise.
279         * doc/standards.texi: Likewise.
280         * doc/verify.texi: Likewise.
281         * doc/visibility.texi: Likewise.
282         * doc/gnulib.texi (GNU Free Documentation License): Include
283         fdl-1.3.texi instead of fdl.texi.
284
285 2008-11-04  Simon Josefsson  <simon@josefsson.org>
286
287         * doc/fdl-1.3.texi: New file, from
288         <http://www.gnu.org/licenses/fdl-1.3.texi>.
289         * modules/fdl-1.3: Add.
290         * MODULES.html.sh: Add fdl-1.3.
291
292 2008-11-03  Bruno Haible  <bruno@clisp.org>
293
294         Make determination of absolute name of header file work with AIX xlc.
295         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
296         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
297         preprocessing.
298         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
299         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
300
301 2008-11-03  Simon Josefsson  <simon@josefsson.org>
302
303         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
304         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
305         <ludo@gnu.org>.
306
307 2008-11-02  Bruno Haible  <bruno@clisp.org>
308
309         Mark 'strpbrk' obsolete.
310         * modules/strpbrk (Status, Notice): New sections.
311         * modules/strtok_r (Depends-on): Add strpbrk.
312
313 2008-11-02  Bruno Haible  <bruno@clisp.org>
314
315         Mark 'strdup' obsolete.
316         * modules/strdup (Status, Notice): New sections.
317         * modules/findprog (Depends-on): Add strdup.
318         * modules/getaddrinfo (Depends-on): Likewise.
319         * modules/localename (Depends-on): Likewise.
320         * modules/relocatable-lib (Depends-on): Likewise.
321         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
322         * modules/relocatable-prog (Depends-on): Likewise.
323         * modules/trim (Depends-on): Likewise.
324         * modules/unictype/gen-ctype (Depends-on): Likewise.
325         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
326
327 2008-11-02  Bruno Haible  <bruno@clisp.org>
328
329         Mark 'strcspn' obsolete.
330         * modules/strcspn (Status, Notice): New sections.
331
332 2008-11-02  Bruno Haible  <bruno@clisp.org>
333
334         Mark 'rmdir' obsolete.
335         * modules/rmdir (Status, Notice): New sections.
336         * modules/clean-temp (Depends-on): Add rmdir.
337         * modules/openat (Depends-on): Likewise.
338
339 2008-11-02  Bruno Haible  <bruno@clisp.org>
340
341         Mark 'raise' obsolete.
342         * modules/raise (Status, Notice): New sections.
343         (Include): Specify <signal.h>.
344         * modules/stdio (Depends-on): Add raise.
345         * modules/write (Depends-on): Likewise.
346
347 2008-11-02  Bruno Haible  <bruno@clisp.org>
348
349         Mark 'memset' obsolete.
350         * modules/memset (Status, Notice): New sections.
351
352 2008-11-02  Bruno Haible  <bruno@clisp.org>
353
354         Mark 'memmove' obsolete.
355         * modules/memmove (Status, Notice): New sections.
356         * modules/argp (Depends-on): Add memmove.
357         * modules/argz (Depends-on): Likewise.
358         * modules/canonicalize (Depends-on): Likewise.
359         * modules/canonicalize-lgpl (Depends-on): Likewise.
360         * modules/fts (Depends-on): Likewise.
361         * modules/getcwd (Depends-on): Likewise.
362         * modules/human (Depends-on): Likewise.
363         * modules/regex (Depends-on): Likewise.
364         * modules/striconveh (Depends-on): Likewise.
365         * modules/trim (Depends-on): Likewise.
366         * modules/unistr/u8-move (Depends-on): Likewise.
367         * modules/unistr/u16-move (Depends-on): Likewise.
368         * modules/unistr/u32-move (Depends-on): Likewise.
369
370 2008-11-02  Bruno Haible  <bruno@clisp.org>
371
372         Mark 'memcpy' obsolete.
373         * modules/memcpy (Status, Notice): New sections.
374
375 2008-11-02  Bruno Haible  <bruno@clisp.org>
376
377         Mark 'memcmp' obsolete.
378         * modules/memcmp (Status, Notice): New sections.
379         * modules/argmatch (Depends-on): Add memchr.
380         * modules/backupfile (Depends-on): Likewise.
381         * modules/c-strcasestr (Depends-on): Likewise.
382         * modules/crypto/des (Depends-on): Likewise.
383         * modules/csharpcomp (Depends-on): Likewise.
384         * modules/fnmatch (Depends-on): Likewise.
385         * modules/git-merge-changelog (Depends-on): Likewise.
386         * modules/isnand (Depends-on): Likewise.
387         * modules/isnand-nolibm (Depends-on): Likewise.
388         * modules/isnanf (Depends-on): Likewise.
389         * modules/isnanf-nolibm (Depends-on): Likewise.
390         * modules/isnanl (Depends-on): Likewise.
391         * modules/isnanl-nolibm (Depends-on): Likewise.
392         * modules/mbchar (Depends-on): Likewise.
393         * modules/memcoll (Depends-on): Likewise.
394         * modules/quotearg (Depends-on): Likewise.
395         * modules/regex (Depends-on): Likewise.
396         * modules/relocatable-prog (Depends-on): Likewise.
397         * modules/same (Depends-on): Likewise.
398         * modules/signbit (Depends-on): Likewise.
399         * modules/strcasestr-simple (Depends-on): Likewise.
400         * modules/unictype/gen-ctype (Depends-on): Likewise.
401         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
402         * modules/uniname/uniname (Depends-on): Likewise.
403         * modules/unistr/u8-cmp (Depends-on): Likewise.
404
405 2008-11-02  Bruno Haible  <bruno@clisp.org>
406
407         Mark 'memchr' obsolete.
408         * modules/memchr (Status, Notice): New sections.
409         * modules/argp (Depends-on): Add memchr.
410         * modules/base64 (Depends-on): Likewise.
411         * modules/c-strcasestr (Depends-on): Likewise.
412         * modules/chdir-long (Depends-on): Likewise.
413         * modules/fnmatch (Depends-on): Likewise.
414         * modules/getsubopt (Depends-on): Likewise.
415         * modules/git-merge-changelog (Depends-on): Likewise.
416         * modules/glob (Depends-on): Likewise.
417         * modules/strcasestr-simple (Depends-on): Likewise.
418         * modules/strnlen (Depends-on): Likewise.
419
420 2008-11-02  Bruno Haible  <bruno@clisp.org>
421
422         Mark 'atexit' obsolete.
423         * modules/atexit (Status, Notice): New sections.
424         * modules/chdir-long (Depends-on): Add atexit.
425         * modules/wait-process (Depends-on): Likewise.
426
427 2008-11-02  Bruno Haible  <bruno@clisp.org>
428
429         * gnulib-tool: New option --with-obsolete.
430         (func_usage): Document it.
431         (func_modules_transitive_closure): Drop obsolete dependencies if
432         incobsolete is not true.
433         (func_import): Read and save the incobsolete variable to the cache.
434
435 2008-11-02  Bruno Haible  <bruno@clisp.org>
436
437         * modules/TEMPLATE-EXTENDED: New field 'Status'.
438         * gnulib-tool: New option --extract-status.
439         (func_usage): Document it.
440         (sed_extract_prog): Recognize it.
441         (func_get_status): New function.
442
443 2008-10-30  Simon Josefsson  <simon@josefsson.org>
444
445         * modules/sockets (License): Change from LGPL to LGPLv2+.
446
447 2008-10-28  Simon Josefsson  <simon@josefsson.org>
448
449         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
450
451 2008-10-28  Simon Josefsson  <simon@josefsson.org>
452
453         * MODULES.html.sh (Support for systems lacking POSIX:2001):
454         Mention times and sys_times.
455         * modules/sys_times, modules/sys_times-tests: New modules.
456         * modules/times, modules/times-tests: Likewise
457         * m4/sys_times_h.m4: New file.
458         * lib/sys_times.in.h: Likewise
459         * lib/times.c: Likewise.
460         * tests/test-sys_times.c: Likewise.
461         * tests/test-times.c: Likewise.
462         * doc/posix-headers/sys_times.texi: Update.
463         * doc/posix-functions/times.texi: Update.
464
465 2008-10-28  Jim Meyering  <meyering@redhat.com>
466
467         * modules/tempname (Depends-on): Add lstat.
468
469         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
470
471 2008-10-28  Simon Josefsson  <simon@josefsson.org>
472
473         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
474         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
475         using idiom used elsewhere in gnulib.
476
477 2008-10-27  Jim Meyering  <meyering@redhat.com>
478
479         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
480
481 2008-10-27  Simon Josefsson  <simon@josefsson.org>
482
483         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
484         TESTS_ENVIRONMENT, for shell scripts that needs to call built
485         programs.
486         * tests/test-argp-2.sh: Use $EXEEXT when needed.
487
488 2008-10-27  Simon Josefsson  <simon@josefsson.org>
489
490         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
491
492 2008-10-27  Bruno Haible  <bruno@clisp.org>
493
494         * tests/test-lstat.c: Include <stdio.h>.
495
496 2008-10-27  Simon Josefsson  <simon@josefsson.org>
497
498         * modules/lstat-tests: New module.
499         * tests/test-lstat.c: New file.
500
501 2008-10-26  Jim Meyering  <meyering@redhat.com>
502
503         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
504
505 2008-10-26  Simon Josefsson  <simon@josefsson.org>
506             Bruno Haible  <bruno@clisp.org>
507
508         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
509         * modules/configmake (Include): Add a note that the include must come
510         after all system headers.
511         * lib/javaversion.c: Include configmake.h after all other includes.
512
513 2008-10-26  Bruno Haible  <bruno@clisp.org>
514
515         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
516         HAVE_STRUCT_RANDOM_DATA to 1.
517         (gl_STDLIB_H): Simplify.
518
519 2008-10-26  Simon Josefsson  <simon@josefsson.org>
520
521         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
522         substitute HAVE_STRUCT_RANDOM_DATA.
523         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
524         random_data.
525         * modules/stdlib (Makefile.am): Substitute
526         HAVE_STRUCT_RANDOM_DATA.
527
528 2008-10-26  Simon Josefsson  <simon@josefsson.org>
529
530         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
531         * doc/gnulib-intro.texi (Copyright): Likewise.
532
533 2008-10-26  Simon Josefsson  <simon@josefsson.org>
534
535         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
536         findings.
537
538 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
539             Bruno Haible  <bruno@clisp.org>
540
541         * lib/unistd.in.h: Include <winsock2.h>.
542         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
543         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
544         Provide dummy declarations.
545         (gethostname): Override.
546         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
547         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
548         gl_PREREQ_SYS_H_WINSOCK2.
549         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
550         * doc/posix-functions/gethostname.texi: More details.
551
552 2008-10-25  Bruno Haible  <bruno@clisp.org>
553
554         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
555         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
556         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
557
558         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
559         here ...
560         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
561         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
562         gl_UNISTD_H_DEFAULTS.
563
564 2008-10-25  Eric Blake  <ebb9@byu.net>
565
566         signbit: avoid spurious compiler failure
567         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
568         declarations inside function.
569
570 2008-10-24  Simon Josefsson  <simon@josefsson.org>
571             Bruno Haible  <bruno@clisp.org>
572
573         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
574         * modules/random_r (Depends-on): Add stdint.
575
576 2008-10-24  Bruno Haible  <bruno@clisp.org>
577
578         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
579         Eggert.
580         * modules/strerror (License): Likewise.
581
582 2008-10-24  Jim Meyering  <meyering@redhat.com>
583
584         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
585         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
586
587 2008-10-24  Eric Blake  <ebb9@byu.net>
588
589         getgroups: fix compilation when getgroups is available
590         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
591         but with <config.h> override of getgroups disabled.
592
593 2008-10-24  Simon Josefsson  <simon@josefsson.org>
594
595         * doc/gnulib.texi (Header files): Add note about C++ problems.
596         Explained by Bruno Haible <bruno@clisp.org>.
597
598 2008-10-23  Bruno Haible  <bruno@clisp.org>
599
600         Define a dummy SA_NODEFER macro on Interix.
601         * lib/signal.in.h (SA_NODEFER): Define fallback.
602         Reported by Aleksey Cheusov <cheusov@tut.by> via
603         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
604
605 2008-10-23  Bruno Haible  <bruno@clisp.org>
606
607         * modules/freadahead (License): Change to LGPLv2+.
608         Suggested by Simon Josefsson.
609
610 2008-10-23  Jim Meyering  <meyering@redhat.com>
611
612         random_r: new module
613         * modules/random_r: New file.
614         * m4/random_r.m4: New file.
615         * lib/random_r.c: New file, from glibc.
616         * modules/random_r-tests: New file.
617         * tests/test-random_r.c: New file.
618         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
619          Declare.
620         (RAND_MAX): Define.
621         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
622         * modules/stdlib: Substitute them, too.
623         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
624         * doc/glibc-functions/initstate_r.texi: Mention the new module.
625         * doc/glibc-functions/random_r.texi: Likewise.
626         * doc/glibc-functions/setstate_r.texi: Likewise.
627         * doc/glibc-functions/srandom_r.texi: Likewise.
628         * config/srclist.txt: Mention it.
629
630 2008-10-23  David Lutterkort  <lutter@redhat.com>
631
632         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
633         link requirement
634
635 2008-10-23  Jim Meyering  <meyering@redhat.com>
636
637         selinux-h: mark parameters of stub functions as intentionally unused
638         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
639         * lib/se-context.in.h: Likewise.
640
641 2008-10-22  Simon Josefsson  <simon@josefsson.org>
642
643         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
644
645 2008-10-22  Simon Josefsson  <simon@josefsson.org>
646
647         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
648
649 2008-10-22  Eric Blake  <ebb9@byu.net>
650
651         glthread/thread: avoid compiler warning
652         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
653         Add unreachable abort to silence compiler.
654
655 2008-10-22  Eric Blake  <ebb9@byu.net>
656
657         netdb: also supply struct addrinfo for cygwin 1.5.x
658         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
659         older cygwin.
660         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
661         cygwin.
662         * doc/posix-headers/netdb.texi (netdb.h): Document this.
663
664 2008-10-22  Bruno Haible  <bruno@clisp.org>
665
666         * users.txt: Update entry about pspp.
667
668 2008-10-21  Bruno Haible  <bruno@clisp.org>
669
670         Simplification.
671         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
672         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
673
674         Simplification.
675         * lib/ioctl.c (ioctl): Don't undefine.
676         * lib/socket.c (socket): Don't undefine.
677
678         Remove unused module indicator macros.
679         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
680         GNULIB_$1 as a C macro.
681
682         * doc/posix-functions/close.texi: Undo last change.
683         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
684         Windows platforms.
685
686 2008-10-21  Bruno Haible  <bruno@clisp.org>
687
688         Add gethostname() declaration to <unistd.h>.
689         * lib/unistd.in.h (gethostname): New declaration.
690         * lib/gethostname.c: Include <unistd.h>.
691         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
692         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
693         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
694         and HAVE_GETHOSTNAME.
695         * modules/gethostname (Depends-on): Add unistd.
696         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
697         (Include): Specify <unistd.h>.
698         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
699         HAVE_GETHOSTNAME.
700         * tests/test-gethostname.c: Include <unistd.h> first.
701
702 2008-10-21  Bruno Haible  <bruno@clisp.org>
703
704         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
705         * modules/select-tests (Depends-on): Likewise.
706         Reported by Simon Josefsson.
707
708 2008-10-21  Simon Josefsson  <simon@josefsson.org>
709
710         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
711         * lib/accept.c: New file, based on winsock.c.
712         * lib/bind.c: New file, based on winsock.c.
713         * lib/connect.c: New file, based on winsock.c.
714         * lib/getpeername.c: New file, based on winsock.c.
715         * lib/getsockname.c: New file, based on winsock.c.
716         * lib/getsockopt.c: New file, based on winsock.c.
717         * lib/ioctl.c: New file, based on winsock.c.
718         * lib/listen.c: New file, based on winsock.c.
719         * lib/recv.c: New file, based on winsock.c.
720         * lib/recvfrom.c: New file, based on winsock.c.
721         * lib/send.c: New file, based on winsock.c.
722         * lib/sendto.c: New file, based on winsock.c.
723         * lib/setsockopt.c: New file, based on winsock.c.
724         * lib/shutdown.c: New file, based on winsock.c.
725         * lib/socket.c: New file, based on winsock.c.
726         * lib/w32sock.h: New file, based on winsock.c.
727         * lib/winsock.c: Remove file.
728         * modules/accept: Likewise.
729         * modules/bind: Likewise.
730         * modules/connect: Likewise.
731         * modules/getpeername: Likewise.
732         * modules/getsockname: Likewise.
733         * modules/getsockopt: Likewise.
734         * modules/ioctl: Likewise.
735         * modules/listen: Likewise.
736         * modules/recv: Likewise.
737         * modules/recvfrom: Likewise.
738         * modules/send: Likewise.
739         * modules/sendto: Likewise.
740         * modules/setsockopt: Likewise.
741         * modules/shutdown: Likewise.
742         * modules/socket: Use socket.c instead of winsock.c.
743         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
744         * doc/posix-functions/accept.texi: Doc fix.
745         * doc/posix-functions/bind.texi: Doc fix.
746         * doc/posix-functions/close.texi: Doc fix.
747         * doc/posix-functions/connect.texi: Doc fix.
748         * doc/posix-functions/getpeername.texi: Doc fix.
749         * doc/posix-functions/getsockname.texi: Doc fix.
750         * doc/posix-functions/getsockopt.texi: Doc fix.
751         * doc/posix-functions/ioctl.texi: Doc fix.
752         * doc/posix-functions/listen.texi: Doc fix.
753         * doc/posix-functions/recv.texi: Doc fix.
754         * doc/posix-functions/recvfrom.texi: Doc fix.
755         * doc/posix-functions/send.texi: Doc fix.
756         * doc/posix-functions/sendto.texi: Doc fix.
757         * doc/posix-functions/setsockopt.texi: Doc fix.
758         * doc/posix-functions/shutdown.texi: Doc fix.
759         * doc/posix-functions/socket.texi: Doc fix.
760
761 2008-10-20  Bruno Haible  <bruno@clisp.org>
762
763         Take into account the role of SIGABRT_COMPAT on Windows 2008.
764         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
765         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
766         as an alias for SIGABRT.
767         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
768         (sigaction): Map it to SIGABRT.
769         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
770
771 2008-10-20  Bruno Haible  <bruno@clisp.org>
772
773         * lib/fts.c: Don't include lstat.h.
774         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
775
776         Move the lstat() declaration to <sys/stat.h>.
777         * lib/lstat.h: Remove file.
778         * lib/sys_stat.in.h: Add special invocation convention.
779         (lstat): New declaration.
780         * lib/lstat.c (orig_lstat): New function.
781         (rpl_lstat): Use orig_lstat instead of lstat.
782         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
783         AC_C_INLINE. Set REPLACE_LSTAT.
784         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
785         and REPLACE_LSTAT.
786         * modules/lstat (Files): Remove lib/lstat.h.
787         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
788         (Include): Specify <sys/stat.h> instead of lstat.h.
789         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
790         REPLACE_LSTAT.
791         * NEWS: Mention the change.
792
793 2008-10-20  Bruno Haible  <bruno@clisp.org>
794
795         * modules/posix_spawn-tests: New file.
796         * tests/test-posix_spawn3.c: New file.
797
798 2008-10-20  Bruno Haible  <bruno@clisp.org>
799
800         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
801         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
802         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
803         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
804         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
805
806 2008-10-20  Bruno Haible  <bruno@clisp.org>
807
808         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
809         of posix_spawn on AIX 5.3.
810
811 2008-10-20  Bruno Haible  <bruno@clisp.org>
812
813         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
814
815 2008-10-20  Bruno Haible  <bruno@clisp.org>
816
817         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
818         of AC_LANG_PROGRAM.
819
820 2008-10-20  Simon Josefsson  <simon@josefsson.org>
821
822         * lib/netdb.in.h: Don't define GNU specific constants until they
823         are supported or needed.  Reported by Bruno Haible
824         <bruno@clisp.org>.
825
826 2008-10-20  Simon Josefsson  <simon@josefsson.org>
827
828         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
829
830 2008-10-20  Simon Josefsson  <simon@josefsson.org>
831
832         * lib/getaddrinfo.h: Remove file.
833         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
834         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
835         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
836         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
837         * modules/netdb: Substitute GNULIB_GETADDRINFO.
838         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
839         * tests/test-getaddrinfo.c: Likewise.
840         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
841         * NEWS: Mention change.
842
843 2008-10-19  Bruno Haible  <bruno@clisp.org>
844
845         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
846
847 2008-10-19  Bruno Haible  <bruno@clisp.org>
848
849         * lib/wait-process.c: Include simply <sys/wait.h>.
850         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
851         WIFSTOPPED): Remove fallback definitions.
852         * modules/wait-process (Depends-on): Add sys_wait.
853
854         New module 'sys_wait'.
855         * modules/sys_wait: New file.
856         * lib/sys_wait.in.h: New file, partially copied from
857         lib/wait-process.c.
858         * m4/sys_wait_h.m4: New file.
859         * doc/posix-headers/sys_wait.texi: Mention the new module.
860
861 2008-10-19  Bruno Haible  <bruno@clisp.org>
862
863         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
864
865 2008-10-19  Bruno Haible  <bruno@clisp.org>
866
867         Assume that waitpid() fills an 'int' status, not a 'union wait'.
868         * lib/wait-process.c (WAIT_T): Remove type.
869         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
870         (wait_subprocess): Update.
871
872 2008-10-19  Bruno Haible  <bruno@clisp.org>
873
874         New module 'atoll'.
875         * modules/atoll: New file.
876         * lib/stdlib.in.h (atoll): New declaration.
877         * lib/atoll.c: New file, from glibc with modifications.
878         * m4/atoll.m4: New file.
879         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
880         HAVE_ATOLL.
881         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
882         * doc/posix-functions/atoll.texi: Mention the new module.
883
884 2008-10-19  Bruno Haible  <bruno@clisp.org>
885
886         Add strtoull() declaration to <stdlib.h>.
887         * lib/stdlib.in.h (strtoull): New declaration.
888         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
889         Set HAVE_STRTOULL.
890         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
891         HAVE_STRTOULL.
892         * modules/strtoull (Depends-on): Add stdlib.
893         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
894         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
895         HAVE_STRTOULL.
896
897 2008-10-19  Bruno Haible  <bruno@clisp.org>
898
899         Add strtoll() declaration to <stdlib.h>.
900         * lib/stdlib.in.h (strtoll): New declaration.
901         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
902         Set HAVE_STRTOLL.
903         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
904         HAVE_STRTOLL.
905         * modules/strtoll (Depends-on): Add stdlib.
906         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
907         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
908
909 2008-10-19  Bruno Haible  <bruno@clisp.org>
910
911         * modules/bcopy (Depends-on): Add strings.
912         (Include): Specify <strings.h>.
913
914 2008-10-19  Bruno Haible  <bruno@clisp.org>
915
916         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
917
918 2008-10-19  Bruno Haible  <bruno@clisp.org>
919
920         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
921         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
922         mingw.
923
924 2008-10-19  Bruno Haible  <bruno@clisp.org>
925
926         * lib/atanl.c: Don't include isnanl.h.
927         * lib/cosl.c: Likewise.
928         * lib/ldexpl.c: Likewise.
929         * lib/logl.c: Likewise.
930         * lib/sinl.c: Likewise.
931         * lib/sqrtl.c: Likewise.
932         * lib/tanl.c: Likewise.
933
934         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
935         * lib/isnanf.h: Remove file.
936         * lib/isnand.h: Remove file.
937         * lib/isnanl.h: Remove file.
938         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
939         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
940         macros.
941         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
942         HAVE_ISNANF, don't define it as a C macro.
943         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
944         HAVE_ISNAND, don't define it as a C macro.
945         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
946         HAVE_ISNANL, don't define it as a C macro.
947         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
948         HAVE_ISNAN[FDL].
949         * modules/isnanf (Files): Remove lib/isnanf.h.
950         (Depends-on): Add math.
951         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
952         (Include): Specify <math.h> instead of isnanf.h.
953         * modules/isnand (Files): Remove lib/isnand.h.
954         (Depends-on): Add math.
955         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
956         (Include): Specify <math.h> instead of isnand.h.
957         * modules/isnanl (Files): Remove lib/isnanl.h.
958         (Depends-on): Add math.
959         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
960         (Include): Specify <math.h> instead of isnanl.h.
961         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
962         HAVE_ISNAN[FDL].
963         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
964         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
965         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
966         * NEWS: Mention the change.
967
968 2008-10-18  Bruno Haible  <bruno@clisp.org>
969
970         Add getusershell(), setusershell(), endusershell() declarations to
971         <unistd.h>.
972         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
973         declarations.
974         * lib/getusershell.c: Include unistd.h.
975         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
976         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
977         HAVE_GETUSERSHELL.
978         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
979         and HAVE_GETUSERSHELL.
980         * modules/getusershell (Depends-on): Add unistd, extensions.
981         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
982         (Include): Specify <unistd.h>.
983         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
984         HAVE_GETUSERSHELL.
985
986 2008-10-18  Bruno Haible  <bruno@clisp.org>
987
988         Add a getloadavg() declaration to <stdlib.h>.
989         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
990         getloadavg declaration.
991         (getloadavg): New declaration.
992         * lib/getloadavg.c: Include <stdlib.h> first.
993         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
994         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
995         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
996         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
997         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
998         * modules/getloadavg (Depends-on): Add stdlib, extensions.
999         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
1000         (Include): Specify <stdlib.h>.
1001         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
1002         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
1003
1004 2008-10-18  Bruno Haible  <bruno@clisp.org>
1005
1006         * lib/dirchownmod.c: Don't include lchmod.h.
1007
1008         Move the lchmod() declaration to <sys/stat.h>.
1009         * lib/lchmod.h: Remove file.
1010         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
1011         (lchmod): New declaration, moved here from lib/lchown.h.
1012         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
1013         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
1014         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
1015         and HAVE_LCHMOD.
1016         * modules/lchmod (Files): Remove lib/lchmod.h.
1017         (Depends-on): Add sys_stat, extensions.
1018         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
1019         (Include): Specify <sys/stat.h> instead of lchmod.h.
1020         * modules/sys_stat (Depends-on): Add link-warning.
1021         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
1022         definition of GL_LINK_WARNING.
1023         * NEWS: Mention the change.
1024
1025 2008-10-18  Bruno Haible  <bruno@clisp.org>
1026
1027         * lib/fchdir.c: Don't include dirfd.h.
1028         * lib/fts.c: Likewise.
1029         * lib/getcwd.c: Likewise.
1030         * lib/glob.c: Likewise.
1031
1032         Move the dirfd() declaration to <dirent.h>.
1033         * lib/dirfd.h: Remove file.
1034         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
1035         (dirfd): New declaration.
1036         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
1037         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
1038         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
1039         HAVE_DECL_DIRFD.
1040         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
1041         HAVE_DECL_DIRFD.
1042         * modules/dirfd (Files): Remove lib/dirfd.h.
1043         (Depends-on): Add dirent, extensions.
1044         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
1045         (Include): Specify <dirent.h> instead of dirfd.h.
1046         * modules/dirent (Depends-on): Add link-warning.
1047         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
1048         definition of GL_LINK_WARNING.
1049         * NEWS: Mention the change.
1050
1051 2008-10-18  Bruno Haible  <bruno@clisp.org>
1052
1053         Move the euidaccess() declaration to <unistd.h>.
1054         * lib/euidaccess.h: Remove file.
1055         * lib/unistd.in.h (euidaccess): New declaration.
1056         * lib/euidaccess.c: Don't include euidaccess.h.
1057         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
1058         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
1059         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
1060         and HAVE_EUIDACCESS.
1061         * modules/euidaccess (Files): Remove lib/euidaccess.h.
1062         (Depends-on): Add unistd.
1063         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
1064         (Include): Specify <unistd.h> instead of euidaccess.h.
1065         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
1066         HAVE_EUIDACCESS.
1067         * NEWS: Mention the change.
1068
1069 2008-10-18  Bruno Haible  <bruno@clisp.org>
1070
1071         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
1072
1073         Move the getdomainname() declaration to <unistd.h>.
1074         * lib/getdomainname.h: Remove file.
1075         * lib/unistd.in.h (getdomainname): New declaration.
1076         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
1077         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
1078         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
1079         HAVE_GETDOMAINNAME.
1080         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
1081         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
1082         * modules/getdomainname (Files): Remove lib/getdomainname.h.
1083         (Depends-on): Add unistd, extensions.
1084         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
1085         (Includes): Specify <unistd.h> instead of getdomainname.h.
1086         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
1087         HAVE_GETDOMAINNAME.
1088         * NEWS: Mention the change.
1089
1090 2008-10-18  Bruno Haible  <bruno@clisp.org>
1091
1092         * modules/dirent: New file.
1093         * m4/dirent_h.m4: New file.
1094         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
1095         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
1096         * modules/fchdir (Files): Remove lib/dirent.in.h.
1097         (Depends-on): Add dirent.
1098         (Makefile.am): Move rules to modules/dirent.
1099         * doc/posix-headers/dirent.texi: Mention the new module.
1100
1101 2008-10-18  Bruno Haible  <bruno@clisp.org>
1102
1103         Avoid -Wunused-parameter warnings in public gnulib header files.
1104         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
1105         macro.
1106         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
1107
1108 2008-10-18  Bruno Haible  <bruno@clisp.org>
1109
1110         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
1111         * doc/glibc-functions/error.texi: Mention the module 'error'.
1112         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
1113         * doc/glibc-functions/getdomainname.texi: Mention the module
1114         'getdomainname'.
1115         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
1116         * doc/glibc-functions/getpagesize.texi: Mention the module
1117         'getpagesize'.
1118         * doc/glibc-functions/getusershell.texi: Mention the module
1119         'getusershell'.
1120         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
1121         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
1122         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
1123         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
1124         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
1125         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
1126         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
1127         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
1128         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
1129         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
1130         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
1131         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
1132         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
1133         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
1134
1135 2008-10-17  Bruno Haible  <bruno@clisp.org>
1136
1137         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
1138         HP-UX and IRIX, use -0.0L.
1139         * tests/test-ceill.c (minus_zero): Likewise.
1140         * tests/test-floorl.c (minus_zero): Likewise.
1141         * tests/test-frexpl.c (minus_zero): Likewise.
1142         * tests/test-isnan.c (minus_zerol): Likewise.
1143         * tests/test-isnanl.h (minus_zero): Likewise.
1144         * tests/test-ldexpl.c (minus_zero): Likewise.
1145         * tests/test-roundl.c (minus_zero): Likewise.
1146         * tests/test-signbit.c (minus_zerol): Likewise.
1147         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
1148         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
1149         * tests/test-truncl.c (minus_zero): Likewise.
1150         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
1151         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
1152         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
1153         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
1154
1155 2008-10-17  Bruno Haible  <bruno@clisp.org>
1156
1157         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
1158         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
1159         that it gets activated only for gcc >= 3.0.
1160         * lib/dirent.in.h: Likewise.
1161         * lib/errno.in.h: Likewise.
1162         * lib/fcntl.in.h: Likewise.
1163         * lib/float.in.h: Likewise.
1164         * lib/iconv.in.h: Likewise.
1165         * lib/inttypes.in.h: Likewise.
1166         * lib/locale.in.h: Likewise.
1167         * lib/math.in.h: Likewise.
1168         * lib/netdb.in.h: Likewise.
1169         * lib/netinet_in.in.h: Likewise.
1170         * lib/search.in.h: Likewise.
1171         * lib/signal.in.h: Likewise.
1172         * lib/spawn.in.h: Likewise.
1173         * lib/stdarg.in.h: Likewise.
1174         * lib/stdint.in.h: Likewise.
1175         * lib/stdio.in.h: Likewise.
1176         * lib/stdlib.in.h: Likewise.
1177         * lib/string.in.h: Likewise.
1178         * lib/strings.in.h: Likewise.
1179         * lib/sys_file.in.h: Likewise.
1180         * lib/sys_ioctl.in.h: Likewise.
1181         * lib/sys_select.in.h: Likewise.
1182         * lib/sys_socket.in.h: Likewise.
1183         * lib/sys_stat.in.h: Likewise.
1184         * lib/sys_time.in.h: Likewise.
1185         * lib/sysexits.in.h: Likewise.
1186         * lib/time.in.h: Likewise.
1187         * lib/unistd.in.h: Likewise.
1188         * lib/wchar.in.h: Likewise.
1189         * lib/wctype.in.h: Likewise.
1190         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
1191
1192 2008-10-17  Jim Meyering  <meyering@redhat.com>
1193
1194         ignore-value: don't depend on inline module
1195         * modules/ignore-value (Depends-on): Remove 'inline'.
1196         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
1197         Suggestion from Bruno Haible.
1198
1199 2008-10-17  Bruno Haible  <bruno@clisp.org>
1200
1201         New implementation of condition variables for Win32.
1202         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
1203         (gl_linked_waitqueue_t): New type.
1204         (gl_cond_t): Use it.
1205         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
1206         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
1207         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
1208         (glthread_cond_init_func, glthread_cond_wait_func,
1209         glthread_cond_timedwait_func, glthread_cond_signal_func,
1210         glthread_cond_broadcast_func, glthread_cond_destroy_func):
1211         Reimplemented on the basis of gl_linked_waitqueue_t.
1212         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
1213         gl_waitqueue_t.
1214         (gl_rwlock_t): Update.
1215         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
1216
1217 2008-10-17  Simon Josefsson  <simon@josefsson.org>
1218
1219         * modules/recvfrom (Depends-on): Add dependency on getpeername.
1220         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
1221
1222 2008-10-17  Jim Meyering  <meyering@redhat.com>
1223
1224         ignore-value: new module
1225         * modules/ignore-value: New file.
1226         * lib/ignore-value.h: New file.
1227         * MODULES.html.sh (Compiler warning management): New section,
1228         just for this module.  More to come.
1229
1230 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
1231
1232         open-safer.c: avoid 'signed and unsigned in conditional...' warning
1233         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
1234         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
1235
1236 2008-10-16  Jim Meyering  <meyering@redhat.com>
1237
1238         openat-die.c: avoid 'no previous prototype' warning
1239         * lib/openat-die.c: Include "openat.h".
1240         Reported by Reuben Thomas <rrt@sc3d.org>.
1241
1242 2008-10-16  Simon Josefsson  <simon@josefsson.org>
1243
1244         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
1245         * lib/netdb.in.h: Fix typo.
1246         Reported by Bruno Haible  <bruno@clisp.org>
1247
1248         * lib/netdb.in.h: Include sys/socket.h for platforms without
1249         netdb.h, to get structures like hostent on MinGW.
1250         * modules/netdb (Depends-on): Add sys_socket.
1251
1252 2008-10-15  Simon Josefsson  <simon@josefsson.org>
1253
1254         * modules/netdb, modules/netdb-tests: New file.
1255         * m4/netdb_h.m4: New file.
1256         * lib/netdb.in.h: Add, currently just an empty file pending
1257         definitions.
1258         * tests/test-netdb.c: New file.
1259         * doc/posix-headers/netdb.texi: Mention that we replace it if
1260         needed.
1261         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
1262         netdb.
1263
1264 2008-10-15  Simon Josefsson  <simon@josefsson.org>
1265
1266         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
1267         with code.
1268
1269 2008-10-13  Bruno Haible  <bruno@clisp.org>
1270
1271         * lib/glthread/cond.c (glthread_cond_wait_func,
1272         glthread_cond_timedwait_func): Add a comment.
1273
1274 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
1275
1276         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
1277         * tests/test-select.c: Likewise,
1278
1279 2008-10-13  Bruno Haible  <bruno@clisp.org>
1280
1281         * lib/glthread/cond.c (glthread_cond_wait_func,
1282         glthread_cond_timedwait_func): Fix variable name.
1283         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
1284
1285 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
1286
1287         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
1288         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
1289         struct sockaddr.sa_len.
1290         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
1291
1292 2008-10-13  Simon Josefsson  <simon@josefsson.org>
1293
1294         * build-aux/pmccabe2html: Add css and css_url parameters.
1295
1296 2008-10-12  Bruno Haible  <bruno@clisp.org>
1297
1298         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
1299         calling aclx_get.
1300         Reported by Rainer Tammer <tammer@tammer.net>.
1301
1302 2008-10-12  Bruno Haible  <bruno@clisp.org>
1303
1304         Use msvcrt aware primitives for creation/termination of Win32 threads.
1305         * lib/glthread/thread.c: Include <process.h>.
1306         (glthread_create_func): Use _beginthreadex instead of CreateThread.
1307         (wrapper_func): Update signature.
1308         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
1309
1310 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
1311             Bruno Haible  <bruno@clisp.org>
1312
1313         Provide a Win32 implementation of the 'cond' module.
1314         * lib/glthread/cond.h [USE_WIN32]: New implementation.
1315         * lib/glthread/cond.c (glthread_cond_init_func,
1316         glthread_cond_wait_func, glthread_cond_timedwait_func,
1317         glthread_cond_signal_func, glthread_cond_broadcast_func,
1318         glthread_cond_destroy_func) [USE_WIN32]: New functions.
1319         * modules/cond (Dependencies): Add gettimeofday.
1320
1321 2008-10-11  Bruno Haible  <bruno@clisp.org>
1322
1323         Make sleep work on older versions of mingw.
1324         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
1325         only whether it exists.
1326         * doc/posix-functions/sleep.texi: Mention the problem with older
1327         versions of mingw.
1328
1329 2008-10-11  Bruno Haible  <bruno@clisp.org>
1330
1331         New module 'shutdown'.
1332         * modules/shutdown: New file.
1333         * lib/sys_socket.in.h (shutdown): New declaration.
1334         * lib/winsock.c (shutdown): New function.
1335         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
1336         GNULIB_SHUTDOWN.
1337         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
1338         * doc/posix-functions/shutdown.texi: Document the new module.
1339
1340 2008-10-11  Jim Meyering  <meyering@redhat.com>
1341
1342         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
1343
1344 2008-10-11  Bruno Haible  <bruno@clisp.org>
1345
1346         New module 'fclose'.
1347         * modules/fclose: New file.
1348         * lib/stdio.in.h (fclose): New declaration.
1349         * lib/fclose.c: New file.
1350         * m4/fclose.m4: New file.
1351         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
1352         REPLACE_FCLOSE.
1353         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
1354         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
1355         REPLACE_FCLOSE.
1356         * modules/close (Depends-on): fclose.
1357         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
1358
1359 2008-10-11  Bruno Haible  <bruno@clisp.org>
1360
1361         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
1362         set errno and don't call _close.
1363
1364 2008-10-10  Bruno Haible  <bruno@clisp.org>
1365
1366         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
1367         ACL, not afterwards. Fixes test failure on Cygwin.
1368
1369 2008-10-09  Ben Pfaff  <blp@gnu.org>
1370
1371         * build-aux/announce-gen: Fix gnulib version related part of usage
1372         message.  Die with a useful error message if no tarballs are
1373         found.
1374
1375 2008-10-10  Jim Meyering  <meyering@redhat.com>
1376
1377         bootstrap: use git's --depth=N option only if it's supported
1378         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
1379         recognize the --depth option.  Reported by Pádraig Brady.
1380
1381 2008-10-09  Bruno Haible  <bruno@clisp.org>
1382
1383         New module 'ioctl'.
1384         * modules/ioctl: New file.
1385         * lib/sys_socket.in.h (ioctl): Remove declaration.
1386         * lib/winsock.c: Include <sys/ioctl.h>.
1387         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
1388         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
1389         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
1390         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
1391         * doc/posix-functions/ioctl.texi: Mention the new module.
1392
1393 2008-10-09  Bruno Haible  <bruno@clisp.org>
1394
1395         New module 'sys_ioctl'.
1396         * lib/sys_ioctl.in.h: New file.
1397         * m4/sys_ioctl_h.m4: New file.
1398         * modules/sys_ioctl: New file.
1399         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
1400
1401 2008-10-09  Bruno Haible  <bruno@clisp.org>
1402
1403         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
1404         * lib/winsock.c: Include <stdarg.h>.
1405         (rpl_ioctl): Change to second argument 'int' and then varargs.
1406
1407 2008-10-09  Bruno Haible  <bruno@clisp.org>
1408
1409         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
1410         when the sys_socket module is present and the system has <winsock2.h>.
1411
1412 2008-10-09  Bruno Haible  <bruno@clisp.org>
1413
1414         * doc/posix-functions/close.texi: Mention module 'close' instead of
1415         module 'sys_socket'.
1416
1417 2008-10-09  Bruno Haible  <bruno@clisp.org>
1418
1419         * doc/glibc-headers/sys_ioctl.texi: New file.
1420         * doc/gnulib.texi: Include it.
1421
1422 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
1423             Bruno Haible  <bruno@clisp.org>
1424
1425         Combine the two replacements of 'close'.
1426         * lib/sys_socket.in.h (close): Define to a reminder to include
1427         <unistd.h>.
1428         (_gl_close_fd_maybe_socket): New declaration.
1429         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
1430         * lib/winsock.c (close): Remove undefinition.
1431         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
1432         needed for the gnulib module 'close'.
1433         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
1434         define to an error symbol or to a warning, if suitable.
1435         * lib/close.c: Include <sys/socket.h>.
1436         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
1437         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
1438         UNISTD_H_HAVE_WINSOCK2_H.
1439         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
1440         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
1441         UNISTD_H_HAVE_WINSOCK2_H.
1442         * modules/sys_socket (Files): Add m4/unistd_h.m4.
1443         (configure.ac): Set a module indicator.
1444         (Makefile.am): Substitute GNULIB_CLOSE.
1445         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
1446         * modules/poll-tests (Depends-on): Add close.
1447         * modules/select-tests (Depends-on): Likewise.
1448
1449 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
1450             Bruno Haible  <bruno@clisp.org>
1451
1452         New module 'close'.
1453         * modules/close: New file.
1454         * lib/unistd.in.h (close): Move declaration out of the
1455         FCHDIR_REPLACEMENT scope.
1456         (_gl_unregister_fd): New declaration.
1457         * lib/close.c: New file.
1458         * lib/fchdir.c (rpl_close): Remove function.
1459         * m4/close.m4: New file.
1460         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
1461         close.
1462         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
1463         REPLACE_CLOSE.
1464         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
1465         REPLACE_CLOSE.
1466         * modules/fchdir (Depends-on): Add close.
1467
1468 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
1469             Bruno Haible  <bruno@clisp.org>
1470
1471         * lib/fcntl.in.h (open): Simplify conditionals.
1472         (_gl_register_fd): New declaration.
1473         * lib/fchdir.c (rpl_open): Remove function.
1474         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
1475         also.
1476         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
1477         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
1478         open.
1479
1480 2008-10-09  Jim Meyering  <meyering@redhat.com>
1481
1482         GNUmakefile: use the more name-space-friendly "_version"
1483         * top/GNUmakefile (_dummy): Update.
1484         (_version): Rename from "version".
1485
1486 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
1487             Bruno Haible  <bruno@clisp.org>
1488
1489         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
1490         rpl_close.
1491         (_gl_register_fd): New function, extracted from rpl_open.
1492         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
1493         (rpl_open, rpl_opendir): Use _gl_register_fd.
1494
1495 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
1496
1497         Fix organization of 'open' replacement.
1498         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
1499         (gl_FUNC_OPEN): Use it.
1500         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
1501
1502 2008-10-08  Bruno Haible  <bruno@clisp.org>
1503
1504         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
1505
1506 2008-10-08  Simon Josefsson  <simon@josefsson.org>
1507
1508         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
1509         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
1510         listen).
1511
1512 2008-10-08  Eric Blake  <ebb9@byu.net>
1513
1514         GNUmakefile: add 'make version' target
1515         * top/GNUmakefile (_curr-ver): Split version update rules...
1516         (version): ...into a target.
1517
1518 2008-10-07  Bruno Haible  <bruno@clisp.org>
1519
1520         Use a more portable replacement expression for -0.0L.
1521         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
1522         instead of -0.0L. Fix m4 quotation.
1523
1524         * tests/test-signbit.c: Include <float.h>.
1525         (minus_zero): New variable.
1526         (test_signbitl): Use minus_zero instead of -zero.
1527         * modules/signbit-tests (Depends-on): Add float.
1528
1529         * tests/test-ceill.c: Include <float.h>.
1530         (zero): Remove variable.
1531         (minus_zero): New variable.
1532         (main): Use minus_zero instead of -zero.
1533         * modules/ceill-tests (Depends-on): Add float.
1534
1535         * tests/test-floorl.c: Include <float.h>.
1536         (zero): Remove variable.
1537         (minus_zero): New variable.
1538         (main): Use minus_zero instead of -zero.
1539         * modules/floorl-tests (Depends-on): Add float.
1540
1541         * tests/test-roundl.c: Include <float.h>.
1542         (zero): Remove variable.
1543         (minus_zero): New variable.
1544         (main): Use minus_zero instead of -zero.
1545         * modules/roundl-tests (Depends-on): Add float.
1546
1547         * tests/test-truncl.c: Include <float.h>.
1548         (zero): Remove variable.
1549         (minus_zero): New variable.
1550         (main): Use minus_zero instead of -zero.
1551         * modules/truncl-tests (Depends-on): Add float.
1552
1553         * tests/test-frexpl.c (zero): Remove variable.
1554         (minus_zero): New variable.
1555         (main): Use minus_zero instead of -zero.
1556         * modules/frexpl-tests (Depends-on): Add float.
1557
1558         * tests/test-isnan.c (zerol): Remove variable.
1559         (minus_zerol): New variable.
1560         (test_long_double): Use minus_zerol instead of -zerol.
1561         * modules/isnan-tests (Depends-on): Add float.
1562
1563         * tests/test-isnanl.h (zero): Remove variable.
1564         (minus_zero): New variable.
1565         (main): Use minus_zero instead of -zero.
1566         * modules/isnanl-nolibm-tests (Depends-on): Add float.
1567         * modules/isnanl-tests (Depends-on): Add float.
1568
1569         * tests/test-ldexpl.c (zero): Remove variable.
1570         (minus_zero): New variable.
1571         (main): Use minus_zero instead of -zero.
1572         * modules/ldexpl-tests (Depends-on): Add float.
1573
1574         * tests/test-snprintf-posix.h (zerol): Remove variable.
1575         (minus_zerol): New variable.
1576         (test_function): Use minus_zerol instead of -zerol.
1577         * modules/snprintf-posix-tests (Depends-on): Add float.
1578         * modules/vsnprintf-posix-tests (Depends-on): Add float.
1579
1580         * tests/test-sprintf-posix.h (zerol): Remove variable.
1581         (minus_zerol): New variable.
1582         (test_function): Use minus_zerol instead of -zerol.
1583         * modules/sprintf-posix-tests (Depends-on): Add float.
1584         * modules/vsprintf-posix-tests (Depends-on): Add float.
1585
1586         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
1587         (minus_zerol): New variable.
1588         (test_function): Use minus_zerol instead of -zerol.
1589         * modules/vasnprintf-posix-tests (Depends-on): Add float.
1590
1591         * tests/test-vasprintf-posix.c (zerol): Remove variable.
1592         (minus_zerol): New variable.
1593         (test_function): Use minus_zerol instead of -zerol.
1594         * modules/vasprintf-posix-tests (Depends-on): Add float.
1595
1596 2008-10-07  Simon Josefsson  <simon@josefsson.org>
1597
1598         * MODULES.html.sh (Support for building documentation): Mention
1599         pmccabe2html.  Sort entries.
1600
1601         Add pmccabe2html module, from gnupdf.
1602         * build-aux/pmccabe.css: New file.
1603         * build-aux/pmccabe2html: New file.
1604         * m4/pmccabe2html.m4: New file.
1605         * modules/pmccabe2html: New file.
1606
1607 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
1608
1609         flock: new module
1610         * MODULES.html.sh: Add to list of modules.
1611         * lib/flock.c: flock implementation for Windows and Unix systems
1612         which have fcntl.
1613         * doc/glibc-functions/flock.texi: Update documentation.
1614         * lib/sys_file.in.h: <sys/file.h> header file.
1615         * m4/flock.m4: M4 macros.
1616         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
1617         * modules/flock: flock module.
1618         * modules/flock-tests: flock tests module.
1619         * modules/sys_file: sys/file.h module.
1620         * tests/test-flock.c: test suite for flock.
1621
1622 2008-10-06  Jim Meyering  <meyering@redhat.com>
1623
1624         bootstrap: check for LT_INIT more portably still ;-)
1625         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
1626         Spotted by Bruno Haible.
1627
1628 2008-10-06  Eric Blake  <ebb9@byu.net>
1629
1630         test-signbit: avoid tripping Irix cc bug on -0.0L
1631         * tests/test-signbit.c (minus_zerol): Delete, and replace with
1632         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
1633         entire testsuite consistent and avoids an Irix 6.2 bug.
1634
1635 2008-10-05  Bruno Haible  <bruno@clisp.org>
1636             Jim Meyering  <jim@meyering.net>
1637
1638         Add an option for ignoring EPIPE during close_stdout.
1639         * lib/closeout.h: Include <stdbool.h>.
1640         (close_stdout_set_ignore_EPIPE): New declaration.
1641         * lib/closeout.c: Include <stdbool.h>.
1642         (ignore_EPIPE): New variable.
1643         (close_stdout_set_ignore_EPIPE): New function.
1644         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
1645         * lib/close-stream.c (close_stream): Mention the possible EPIPE
1646         failure.
1647         * modules/closeout (Depends-on): Add stdbool.
1648
1649 2008-10-05  Bruno Haible  <bruno@clisp.org>
1650
1651         * modules/accept: New file.
1652         * modules/bind: New file.
1653         * modules/connect: New file.
1654         * modules/getpeername: New file.
1655         * modules/getsockname: New file.
1656         * modules/getsockopt: New file.
1657         * modules/listen: New file.
1658         * modules/recv: New file.
1659         * modules/recvfrom: New file.
1660         * modules/send: New file.
1661         * modules/sendto: New file.
1662         * modules/setsockopt: New file.
1663         * modules/socket: New file.
1664         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
1665         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
1666         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
1667         the particular module is requested. Add a link warning when the
1668         particular module is not requested.
1669         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
1670         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
1671         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
1672         the particular module is requested.
1673         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
1674         gl_SYS_SOCKET_H_DEFAULTS): New macros.
1675         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
1676         * modules/sys_socket (Depends-on): Add link-warning.
1677         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
1678         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
1679         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
1680         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
1681         GL_LINK_WARNING.
1682         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
1683         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
1684         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
1685         * doc/posix-functions/getpeername.texi: Mention the new module
1686         'getpeername'.
1687         * doc/posix-functions/getsockname.texi: Mention the new module
1688         'getsockname'.
1689         * doc/posix-functions/getsockopt.texi: Mention the new module
1690         'getsockopt'.
1691         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
1692         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
1693         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
1694         * doc/posix-functions/send.texi: Mention the new module 'send'.
1695         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
1696         * doc/posix-functions/setsockopt.texi: Mention the new module
1697         'setsockopt'.
1698         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
1699         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
1700         listen, connect, accept.
1701         * modules/select-tests (Depends-on): Likewise.
1702
1703 2008-10-05  Bruno Haible  <bruno@clisp.org>
1704
1705         * lib/winsock.c (strerror): Remove unused #undef.
1706         (rpl_close): Remove unused local variable.
1707
1708         * modules/sys_socket (Depends-on); Add errno.
1709
1710 2008-10-05  Bruno Haible  <bruno@clisp.org>
1711
1712         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
1713         (select): Add a link warning when the 'select' module is not used.
1714         * modules/sys_select (Depends-on): Add link-warning.
1715         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
1716         Suggested by Paolo Bonzini.
1717
1718 2008-10-05  Jim Meyering  <meyering@redhat.com>
1719
1720         bootstrap: check for LT_INIT more portably
1721         * build-aux/bootstrap: Avoid using grep -E, since it's not
1722         portable enough.  Suggestion from Bruno Haible.
1723
1724 2008-10-05  Bruno Haible  <bruno@clisp.org>
1725
1726         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
1727         as being fixed by gnulib.
1728
1729 2008-10-05  Bruno Haible  <bruno@clisp.org>
1730
1731         * modules/select-tests: New file, mostly copied from
1732         modules/sys_select-tests.
1733         * tests/test-select.c: New file, mostly copied from
1734         tests/test-sys_select.c.
1735         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
1736         * modules/sys_select-tests (Depends-on): Remove all dependencies.
1737         (Makefile.am): Remove test_sys_select_LDADD.
1738
1739         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
1740         to an undefined symbol, for an error message.
1741         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
1742         (gl_SYS_SELECT_H_DEFAULTS): New macro.
1743         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
1744         winsock-select.c here.
1745         * modules/sys_select (Files): Remove lib/winsock-select.c.
1746         (Depends-on): Remove alloca.
1747         (Makefile.am): Substitute GNULIB_SELECT.
1748         * modules/select: New file.
1749         * doc/posix-functions/select.texi: Update.
1750
1751 2008-10-05  Bruno Haible  <bruno@clisp.org>
1752
1753         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
1754         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
1755         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
1756         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
1757         getdtablesize.
1758         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
1759         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
1760
1761 2008-10-05  Bruno Haible  <bruno@clisp.org>
1762
1763         * modules/getdtablesize-tests: New file.
1764         * tests/test-getdtablesize.c: New file.
1765
1766         New module 'getdtablesize'.
1767         * lib/unistd.in.h (getdtablesize): New declaration.
1768         * lib/getdtablesize.c: New file.
1769         * m4/getdtablesize.m4: New file.
1770         * modules/getdtablesize: New file.
1771         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
1772         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
1773         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
1774         HAVE_GETDTABLESIZE.
1775         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
1776
1777 2008-10-05  Bruno Haible  <bruno@clisp.org>
1778
1779         * modules/sched (Makefile.am): Fix typo.
1780         Reported by Simon Josefsson.
1781
1782 2008-10-05  Jim Meyering  <meyering@redhat.com>
1783
1784         bootstrap: check for LT_INIT, too
1785         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
1786         are deprecated.  Suggestion from Ralf Wildenhues.
1787
1788 2008-10-05  Bruno Haible  <bruno@clisp.org>
1789
1790         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
1791         overriding them by ours.
1792         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
1793
1794 2008-10-05  Jim Meyering  <meyering@redhat.com>
1795
1796         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
1797         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
1798         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
1799
1800 2008-10-04  Bruno Haible  <bruno@clisp.org>
1801
1802         * modules/dup2 (License): Change to LGPLv2+.
1803         * modules/sleep (License): Likewise.
1804         * modules/perror (License): Likewise.
1805         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
1806         Blake.
1807         * modules/signal (License): Likewise.
1808         * modules/sigprocmask (License): Likewise.
1809         * modules/raise (License): Change to LGPLv2+, with approval by Jim
1810         Meyering.
1811
1812 2008-10-04  Bruno Haible  <bruno@clisp.org>
1813
1814         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
1815         Reported by Rainer Tammer <tammer@tammer.net>.
1816
1817 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
1818             Bruno Haible  <bruno@clisp.org>
1819
1820         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
1821         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
1822         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
1823
1824 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
1825
1826         filevercmp: new module
1827         * lib/filevercmp.h: New function filevercmp comparing version strings.
1828         * lib/filevercmp.c: Implementation of filevercmp function.
1829         * modules/filevercmp: Module metadata.
1830         * tests/test-filevercmp.c: Unit test for new module.
1831         * modules/filevercmp-tests: Unit test metadata.
1832         * MODULES.html.sh: Add filevercmp module.
1833
1834 2008-10-03  Bruno Haible  <bruno@clisp.org>
1835
1836         * lib/c-ctype.h: Add comment.
1837         Reported by Jim Meyering.
1838
1839 2008-10-02  Bruno Haible  <bruno@clisp.org>
1840
1841         * modules/posix_spawn-internal (Depends-on): Add 'open'.
1842
1843 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
1844
1845         * build-aux/bootstrap: Allow renaming bootstrap, and change the
1846         name of bootstrap.conf accordingly.
1847
1848 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
1849
1850         * build-aux/bootstrap: Install git-merge-changelog configuration
1851         items into .gitconfig if needed.
1852
1853 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
1854
1855         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
1856         git repository, and initialize/update it accordingly.
1857
1858 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
1859
1860         * modules/fsync-tests: New file.
1861         * tests/test-fsync.c: New file.
1862
1863         New module 'fsync'.
1864         * lib/fsync.c: New file.
1865         * m4/fsync.m4: New file.
1866         * modules/fsync: New file.
1867         * lib/unistd.in.h (fsync): New declaration.
1868         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
1869         GNULIB_FSYNC and HAVE_FSYNC.
1870         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
1871         * MODULES.html.sh (posix_functions): Add fsync.
1872         * doc/posix-functions/fsync.texi: Mention the new module.
1873
1874 2008-10-02  Jim Meyering  <meyering@redhat.com>
1875
1876         fts.c: sync with similar code from coreutils' remove.c
1877         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
1878         Guard also with "#if defined __linux__", since for now at least,
1879         this code is Linux-kernel-specific.
1880
1881 2008-10-02  Jim Meyering  <meyering@redhat.com>
1882
1883         fts: bug fixes
1884         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
1885         Include <sys/vfs.h>, not <sys/statfs.h>.
1886
1887         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
1888         Include <sys/vfs.h>, not <sys/statfs.h>.
1889
1890 2008-10-01  Bruno Haible  <bruno@clisp.org>
1891
1892         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
1893         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
1894         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
1895         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
1896         * doc/posix-functions/posix_spawnp.texi: Likewise.
1897         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
1898         whether posix_spawn actually works.
1899         * m4/pipe.m4 (gl_PIPE): Likewise.
1900         * modules/execute (Files): Add m4/posix_spawn.m4.
1901         * modules/pipe (Files): Add m4/posix_spawn.m4.
1902         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
1903
1904 2008-10-01  Jim Meyering  <meyering@redhat.com>
1905
1906         remove trailing spaces
1907         * NEWS: Likewise.
1908         * lib/poll.c (poll): Likewise.
1909         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
1910         * lib/winsock.c (rpl_close): Likewise.
1911         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
1912         * modules/yield: Likewise.
1913         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
1914         * tests/test-sys_select.c (connect_to_socket): Likewise.
1915
1916         fts.c: adjust a new interface to be more generally useful
1917         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
1918         (fts_build): Adjust caller.
1919
1920 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
1921
1922         * modules/cond-tests: New file.
1923         * tests/test-cond.c: New file.
1924
1925 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
1926             Bruno Haible  <bruno@clisp.org>
1927
1928         * modules/cond (Dependencies): Add errno, time.
1929         * lib/glthread/cond.h: Include <time.h>.
1930         (gl_cond_define, gl_cond_define_initialized): Use the same definition
1931         across platforms.
1932
1933 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
1934             Bruno Haible  <bruno@clisp.org>
1935
1936         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
1937
1938 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
1939             Bruno Haible  <bruno@clisp.org>
1940
1941         * modules/tls-tests (Depends-on): Add thread, yield.
1942         (configure.ac): Remove all checks.
1943         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
1944         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
1945         gl_thread_self): Remove definitions. Include glthread/thread.h and
1946         glthread/yield.h instead.
1947         (test_tls): Pass an additional NULL argument to gl_thread_join.
1948
1949 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
1950             Bruno Haible  <bruno@clisp.org>
1951
1952         * modules/lock-tests (Depends-on): Add thread, yield.
1953         (configure.ac): Remove all checks.
1954         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
1955         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
1956         gl_thread_self): Remove definitions. Include glthread/thread.h and
1957         glthread/yield.h instead.
1958         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
1959         additional NULL argument to gl_thread_join.
1960
1961 2008-09-30  Bruno Haible  <bruno@clisp.org>
1962
1963         Fix the Win32 implementation of the 'thread' module.
1964         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
1965         pointer type.
1966         (gl_thread_self): Invoke gl_thread_self_func.
1967         (gl_thread_self_func): New declaration.
1968         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
1969         (do_init_self_key, init_self_key): New functions.
1970         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
1971         Remove some fields.
1972         (running_threads, running_lock): Remove variables.
1973         (get_current_thread_handle): New function.
1974         (gl_thread_self_func, wrapper_func, glthread_create_func,
1975         glthread_join_func, gl_thread_exit_func): Largely rewritten and
1976         simplified.
1977
1978 2008-09-30  Bruno Haible  <bruno@clisp.org>
1979
1980         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
1981         files.
1982
1983 2008-09-30  Jim Meyering  <meyering@redhat.com>
1984
1985         fts.m4: correct the test for statfs.f_type
1986         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
1987         when checking for statfs.f_type.
1988
1989 2008-09-15  Simon Josefsson  <simon@josefsson.org>
1990
1991         tests: avoid some compiler warnings
1992         * tests/test-memchr.c (main): Pass NULL indirectly.
1993         * tests/test-getdate.c (main): Remove unused variable 'ret'.
1994
1995 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
1996
1997         getdate.y: disallow countable dayshifts like "4 yesterday ago"
1998         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
1999         exactly specified dayshifts.
2000         (dayshift): New rule.
2001         (rel): Add dayshift.
2002         (relative_time_table) [tomorrow, yesterday, today, now]:
2003         Use tDAY_SHIFT in place of tDAY_UNIT.
2004         * tests/test-getdate.c: Add tests for now-disallowed countable
2005         dayshifts, e.g., "4 yesterday ago".
2006
2007 2008-09-29  Bruno Haible  <bruno@clisp.org>
2008
2009         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
2010         * tests/test-posix_spawn1.in.sh: Renamed from
2011         tests/test-posix_spawn.in.sh.
2012         * tests/test-posix_spawn2.c: New file.
2013         * tests/test-posix_spawn2.in.sh: New file.
2014         * modules/posix_spawnp-tests (Files): Update.
2015         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
2016
2017 2008-09-29  Bruno Haible  <bruno@clisp.org>
2018
2019         Propagate effects of putenv/setenv/unsetenv to child processes.
2020         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
2021         * lib/pipe.c (create_pipe): Likewise.
2022
2023 2008-09-29  Bruno Haible  <bruno@clisp.org>
2024
2025         Enable use of shell scripts as executables in mingw.
2026         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
2027         run the program as a shell script.
2028         * lib/pipe.c (create_pipe): Likewise.
2029         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
2030         resulting array.
2031
2032 2008-09-29  Eric Blake  <ebb9@byu.net>
2033
2034         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
2035
2036 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
2037
2038         * doc/posix-functions/accept.texi: Update mingw problems.
2039         * doc/posix-functions/bind.texi: Update mingw problems.
2040         * doc/posix-functions/close.texi: Update mingw problems.
2041         * doc/posix-functions/connect.texi: Update mingw problems.
2042         * doc/posix-functions/getpeername.texi: Update mingw problems.
2043         * doc/posix-functions/getsockname.texi: Update mingw problems.
2044         * doc/posix-functions/getsockopt.texi: Update mingw problems.
2045         * doc/posix-functions/ioctl.texi: Update mingw problems.
2046         * doc/posix-functions/listen.texi: Update mingw problems.
2047         * doc/posix-functions/recv.texi: Update mingw problems.
2048         * doc/posix-functions/recvfrom.texi: Update mingw problems.
2049         * doc/posix-functions/select.texi: Update mingw problems.
2050         * doc/posix-functions/send.texi: Update mingw problems.
2051         * doc/posix-functions/sendto.texi: Update mingw problems.
2052         * doc/posix-functions/setsockopt.texi: Update mingw problems.
2053         * doc/posix-functions/socket.texi: Update mingw problems.
2054
2055 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
2056             Bruno Haible  <bruno@clisp.org>
2057
2058         * lib/sys_select.in.h: Include sys/time.h.
2059         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
2060         * modules/sys_select: Depend on sys_time.
2061         * tests/test-sys_select.c: Test that sys/select.h defines struct
2062         timeval fully.
2063
2064 2008-09-29  Bruno Haible  <bruno@clisp.org>
2065
2066         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
2067         * lib/sys_select.in.h: Likewise.
2068
2069 2008-09-29  Bruno Haible  <bruno@clisp.org>
2070
2071         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
2072
2073 2008-09-29  Bruno Haible  <bruno@clisp.org>
2074
2075         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
2076         Set LIBSOCKET instead of augmenting LIBS.
2077         * modules/sockets (Link): New section.
2078         * modules/sockets-tests (test_sockets_LDADD): New variable.
2079         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
2080         * modules/poll-tests (test_poll_LDADD): New variable.
2081         * NEWS: Document the change.
2082
2083 2008-09-29  Bruno Haible  <bruno@clisp.org>
2084
2085         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
2086         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
2087         ARPA_INET_H directly.
2088         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
2089
2090 2008-09-28  Bruno Haible  <bruno@clisp.org>
2091
2092         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
2093         from gl_HEADER_SYS_SOCKET.
2094         (gl_HEADER_SYS_SOCKET): Invoke it.
2095         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
2096
2097 2008-09-28  Bruno Haible  <bruno@clisp.org>
2098
2099         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
2100         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
2101         Needed on OSF/1 4.0.
2102
2103 2008-09-28  Bruno Haible  <bruno@clisp.org>
2104
2105         Override open more carefully.
2106         * lib/open.c (orig_open): New function.
2107         (rpl_open): Use orig_open instead of open.
2108         * lib/fcntl.in.h: Add special invocation convention.
2109         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
2110         (gl_FUNC_OPEN): Invoke it.
2111
2112         Override freopen more carefully.
2113         * lib/freopen.c (orig_freopen): New function.
2114         (rpl_freopen): Use orig_freopen instead of freopen.
2115         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
2116         (gl_FUNC_FREOPEN): Invoke it.
2117
2118         Override fopen more carefully.
2119         * lib/fopen.c (orig_fopen): New function.
2120         (rpl_fopen): Use orig_fopen instead of fopen.
2121         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
2122         (gl_FUNC_FOPEN): Invoke it.
2123         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
2124
2125 2008-09-28  Bruno Haible  <bruno@clisp.org>
2126
2127         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
2128         SIGPIPE.
2129
2130 2008-09-28  Bruno Haible  <bruno@clisp.org>
2131
2132         * tests/test-sigaction.c (handler, main): Disable the check whether
2133         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
2134         glibc systems with LinuxThreads.
2135
2136 2008-09-28  Bruno Haible  <bruno@clisp.org>
2137
2138         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
2139
2140         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
2141         with AIX xlc.
2142         * lib/fcntl.in.h (open): Likewise.
2143         Reported by Rainer Tammer <tammer@tammer.net>.
2144
2145 2008-09-28  Bruno Haible  <bruno@clisp.org>
2146
2147         * modules/posix_spawnp-tests: New file.
2148         * tests/test-posix_spawn.c: New file.
2149         * tests/test-posix_spawn.in.sh: New file.
2150
2151         New module 'posix_spawnp'.
2152         * modules/posix_spawnp: New file.
2153         * lib/spawnp.c: New file, from GNU libc with modifications.
2154         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
2155
2156         New module 'posix_spawn'.
2157         * modules/posix_spawn: New file.
2158         * lib/spawn.c: New file, from GNU libc with modifications.
2159         * doc/posix-functions/posix_spawn.texi: Mention the new module.
2160
2161         New module 'posix_spawnattr_destroy'.
2162         * modules/posix_spawnattr_destroy: New file.
2163         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
2164         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
2165         module.
2166
2167         New module 'posix_spawnattr_setsigmask'.
2168         * modules/posix_spawnattr_setsigmask: New file.
2169         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
2170         modifications.
2171         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
2172         new module.
2173
2174         New module 'posix_spawnattr_getsigmask'.
2175         * modules/posix_spawnattr_getsigmask: New file.
2176         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
2177         modifications.
2178         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
2179         new module.
2180
2181         New module 'posix_spawnattr_setsigdefault'.
2182         * modules/posix_spawnattr_setsigdefault: New file.
2183         * lib/spawnattr_setdefault.c: New file, from GNU libc with
2184         modifications.
2185         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
2186         new module.
2187
2188         New module 'posix_spawnattr_getsigdefault'.
2189         * modules/posix_spawnattr_getsigdefault: New file.
2190         * lib/spawnattr_getdefault.c: New file, from GNU libc with
2191         modifications.
2192         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
2193         new module.
2194
2195         New module 'posix_spawnattr_setschedpolicy'.
2196         * modules/posix_spawnattr_setschedpolicy: New file.
2197         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
2198         modifications.
2199         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
2200         new module.
2201
2202         New module 'posix_spawnattr_getschedpolicy'.
2203         * modules/posix_spawnattr_getschedpolicy: New file.
2204         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
2205         modifications.
2206         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
2207         new module.
2208
2209         New module 'posix_spawnattr_setschedparam'.
2210         * modules/posix_spawnattr_setschedparam: New file.
2211         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
2212         modifications.
2213         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
2214         new module.
2215
2216         New module 'posix_spawnattr_getschedparam'.
2217         * modules/posix_spawnattr_getschedparam: New file.
2218         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
2219         modifications.
2220         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
2221         new module.
2222
2223         New module 'posix_spawnattr_setpgroup'.
2224         * modules/posix_spawnattr_setpgroup: New file.
2225         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
2226         modifications.
2227         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
2228         module.
2229
2230         New module 'posix_spawnattr_getpgroup'.
2231         * modules/posix_spawnattr_getpgroup: New file.
2232         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
2233         modifications.
2234         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
2235         module.
2236
2237         New module 'posix_spawnattr_setflags'.
2238         * modules/posix_spawnattr_setflags: New file.
2239         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
2240         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
2241         module.
2242
2243         New module 'posix_spawnattr_getflags'.
2244         * modules/posix_spawnattr_getflags: New file.
2245         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
2246         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
2247         module.
2248
2249         New module 'posix_spawnattr_init'.
2250         * modules/posix_spawnattr_init: New file.
2251         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
2252         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
2253         module.
2254
2255         New module 'posix_spawn_file_actions_destroy'.
2256         * modules/posix_spawn_file_actions_destroy: New file.
2257         * lib/spawn_faction_destroy.c: New file, from GNU libc with
2258         modifications.
2259         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
2260         the new module.
2261
2262         New module 'posix_spawn_file_actions_addopen'.
2263         * modules/posix_spawn_file_actions_addopen: New file.
2264         * lib/spawn_faction_addopen.c: New file, from GNU libc with
2265         modifications.
2266         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
2267         the new module.
2268
2269         New module 'posix_spawn_file_actions_adddup2'.
2270         * modules/posix_spawn_file_actions_adddup2: New file.
2271         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
2272         modifications.
2273         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
2274         the new module.
2275
2276         New module 'posix_spawn_file_actions_addclose'.
2277         * modules/posix_spawn_file_actions_addclose: New file.
2278         * lib/spawn_faction_addclose.c: New file, from GNU libc with
2279         modifications.
2280         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
2281         the new module.
2282
2283         New module 'posix_spawn_file_actions_init'.
2284         * modules/posix_spawn_file_actions_init: New file.
2285         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
2286         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
2287         new module.
2288
2289         New module 'posix_spawn-internal'.
2290         * modules/posix_spawn-internal: New file.
2291         * lib/spawn_int.h: New file, from GNU libc with modifications.
2292         * lib/spawni.c: New file, from GNU libc with modifications.
2293         * m4/posix_spawn.m4: New file.
2294
2295         New module 'spawn'.
2296         * modules/spawn: New file.
2297         * lib/spawn.in.h: New file, from GNU libc with modifications.
2298         * m4/spawn_h.m4: New file.
2299         * doc/posix-headers/spawn.texi: Mention the new module.
2300
2301 2008-09-28  Bruno Haible  <bruno@clisp.org>
2302
2303         * modules/sched-tests: New file.
2304         * tests/test-sched.c: New file.
2305
2306         New module 'sched'.
2307         * modules/sched: New file.
2308         * lib/sched.in.h: New file.
2309         * m4/sched_h.m4: New file.
2310         * doc/posix-headers/sched.texi: Mention the new module.
2311
2312 2008-09-27  Eric Blake  <ebb9@byu.net>
2313
2314         Fix previous patch, and tweak references to $0.
2315         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
2316         (func_version, func_gnulib_dir): Don't call this program
2317         gnulib-tool.
2318         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
2319         with using $0 in function.
2320         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
2321         (func_fatal_error): Reuse the name the user invoked us with.
2322
2323 2008-09-27  Bruno Haible  <bruno@clisp.org>
2324
2325         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
2326         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
2327         (gl_ICONV_H): Not here.
2328         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
2329         instead of assigning ICONV_H directly.
2330
2331         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
2332         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
2333         WCHAR_H directly.
2334
2335 2008-09-27  Bruno Haible  <bruno@clisp.org>
2336
2337         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
2338         * modules/arpa_inet (Depends-on): Add link-warning.
2339         (Makefile.am): Insert the definition of GL_LINK-WARNING.
2340         * modules/unistd (Makefile.am): Likewise.
2341
2342 2008-09-26  Bruno Haible  <bruno@clisp.org>
2343
2344         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
2345         variables.
2346         (func_version): Essentially copied from gnulib-tool.
2347         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
2348         func_readlink): Copied from gnulib-tool.
2349
2350 2008-09-26  Bruno Haible  <bruno@clisp.org>
2351
2352         * gnulib-tool (func_version): Change directory to $gnulib_dir before
2353         invoking git-version-gen.
2354
2355 2008-09-26  Bruno Haible  <bruno@clisp.org>
2356
2357         * posix-modules: Update to directory names changed on 2008-01-19.
2358         Remove commas in output before splitting into words. No more need to
2359         avoid 'ftruncate' since 2007-02-19.
2360
2361 2008-09-26  Bruno Haible  <bruno@clisp.org>
2362
2363         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
2364
2365 2008-09-26  Bruno Haible  <bruno@clisp.org>
2366
2367         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
2368         * modules/fwriteerror (Depends-on): Add errno.
2369
2370 2008-09-26  Bruno Haible  <bruno@clisp.org>
2371
2372         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
2373         * tests/test-vc-list-files-cvs.sh: Likewise.
2374
2375 2008-09-26  Bruno Haible  <bruno@clisp.org>
2376
2377         * doc/posix-headers/sys_resource.texi: Reorder items.
2378
2379 2008-09-26  Jim Meyering  <meyering@redhat.com>
2380
2381         fts: tweak inode comparison function
2382         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
2383         inode numbers, as documented.
2384
2385         fts: sort dirent entries on inode number before traversing
2386         This avoids a quadratic, seek-related performance penalty when
2387         operating on a directory containing many entries (measurable at 10k;
2388         3.5 hours at 2 million entries with a cold cache) on certain types
2389         of file systems, including ext3 and ext4, but not tmpfs.
2390         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
2391         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
2392         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
2393         (fs_handles_readdir_ordered_dirents_efficiently): New function.
2394         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
2395         (fts_build): Set the stat.st_ino member from D_INO.
2396         If it is likely to be useful, sort dirent entries on inode number.
2397
2398         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
2399         and the struct statfs.f_type member.
2400         * modules/fts (Depends-on): Add d-ino.
2401
2402 2008-09-26  Bruno Haible  <bruno@clisp.org>
2403
2404         * modules/sigpipe-die (Depends-on): Add sigpipe.
2405
2406         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
2407         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
2408         and GNULIB_STDIO_H_SIGPIPE are set.
2409         * lib/stdio-write.c: New file.
2410         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
2411         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
2412         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
2413         REPLACE_STDIO_WRITE_FUNCS.
2414         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
2415         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
2416         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
2417         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
2418         * modules/stdio (Files): Add lib/stdio-write.c.
2419         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
2420         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
2421         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
2422         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
2423         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
2424         REPLACE_FPRINTF_POSIX.
2425         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
2426         REPLACE_PRINTF_POSIX.
2427         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
2428         REPLACE_VFPRINTF_POSIX.
2429         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
2430         REPLACE_VPRINTF_POSIX.
2431         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
2432         SIGPIPE issue.
2433         * doc/posix-functions/fputc.texi: Likewise.
2434         * doc/posix-functions/fputs.texi: Likewise.
2435         * doc/posix-functions/fwrite.texi: Likewise.
2436         * doc/posix-functions/printf.texi: Likewise.
2437         * doc/posix-functions/putc.texi: Likewise.
2438         * doc/posix-functions/putchar.texi: Likewise.
2439         * doc/posix-functions/puts.texi: Likewise.
2440         * doc/posix-functions/vfprintf.texi: Likewise.
2441         * doc/posix-functions/vprintf.texi: Likewise.
2442
2443         * modules/safe-write (Depends-on): Add write.
2444
2445         * modules/sigpipe-tests: New file.
2446         * tests/test-sigpipe.c: New file.
2447         * tests/test-sigpipe.sh: New file.
2448
2449         * modules/write: New file.
2450         * lib/unistd.in.h: Include <sys/types.h>.
2451         (write): New declaration.
2452         * lib/write.c: New file.
2453         * m4/write.m4: New file.
2454         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
2455         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
2456         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
2457         GNULIB_WRITE, REPLACE_WRITE.
2458         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
2459         and the SIGPIPE issue.
2460
2461         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
2462         (raise): New declaration.
2463         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
2464         (ext_signal): New function.
2465         (rpl_raise): New function.
2466         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
2467         GNULIB_SIGNAL_H_SIGPIPE.
2468         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
2469         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
2470
2471         * modules/sigpipe: New file.
2472         * m4/sigpipe.m4: New file.
2473
2474 2008-09-25  Derek Price  <derek@ximbiot.com>
2475             Bruno Haible  <bruno@clisp.org>
2476
2477         * gnulib-tool (func_import): Report all license incompatibilities, not
2478         just the first one.
2479
2480 2008-09-25  Bruno Haible  <bruno@clisp.org>
2481
2482         * gnulib-tool (func_import): When computing the edits, consider not
2483         only the Makefile.ams that exist but also those that will be generated.
2484
2485 2008-09-25  Simon Josefsson  <simon@josefsson.org>
2486
2487         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
2488         fixes gnulib-tool --test warning about duplicate dependency.
2489
2490 2008-09-25  Bruno Haible  <bruno@clisp.org>
2491
2492         * gnulib-tool: Don't ask the user to perform edits in the generated
2493         Makefile.ams.
2494         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
2495         apply to the Makefile.am being generated.
2496         (func_emit_tests_Makefile_am): Execute edits that apply to the
2497         Makefile.am being generated.
2498         (func_import): Setup list of Makefile.am edits before emitting the
2499         Makefile.ams, not at the end.
2500         (func_create_testdir): Update.
2501         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
2502
2503 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
2504
2505         * gnulib-tool (func_import): Store the --tests-base option in the
2506         comment in gnulib-cache.m4.
2507
2508 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
2509
2510         * NEWS: Document increased portability that sys_select now provides.
2511
2512         * lib/sys_select.in.h: Install select wrapper.
2513         * lib/sys_socket.in.h: Use more descriptive name when there is no
2514         select wrapper.
2515         * lib/winsock-select.c: New.
2516         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
2517         Require gl_HEADER_SYS_SOCKET.
2518         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
2519         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
2520         * tests/test-sys_select.c: Add functional tests.
2521
2522 2008-09-24  Eric Blake  <ebb9@byu.net>
2523
2524         open, fopen: close fd leak in last patch
2525         * lib/open.c (rpl_open): Close fd before returning error.
2526         * lib/fopen.c (rpl_fopen): Close fd before returning error.
2527         * doc/posix-functions/open.texi (open): Document that Irix also
2528         has the bug.
2529         * doc/posix-functions/fopen.texi (fopen): Likewise.
2530         Reported by Paolo Bonzini.
2531
2532 2008-09-24  Bruno Haible  <bruno@clisp.org>
2533
2534         Ensure that a filename ending in a slash cannot be used to access a
2535         non-directory.
2536         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
2537         to check whether it's really a directory.
2538         * lib/fopen.c: Include fcntl.h, unistd.h.
2539         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
2540         and fdopen().
2541         * modules/fopen (Depends-on): Add unistd.
2542         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
2543         * tests/test-fopen.c (main): Likewise.
2544         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
2545         * doc/posix-functions/fopen.texi: Likewise.
2546         Reported by Eric Blake.
2547
2548 2008-09-23  Eric Blake  <ebb9@byu.net>
2549
2550         c-stack: avoid compiler optimizations when provoking overflow
2551         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
2552         recursion harder to optimize, to ensure a stack overflow occurs.
2553         * tests/test-c-stack.c (recurse): Likewise.
2554         Borrowed from libsigsegv.
2555
2556         c-stack: work around Irix sigaltstack bug
2557         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
2558         whether sigaltstack uses wrong end of stack_t (copied in part from
2559         libsigsegv).
2560         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
2561         Irix bug, without requiring an over-allocation.
2562         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
2563         bug.
2564
2565         fopen: document mingw bug on directories
2566         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
2567         not allowing a stream visiting a directory, even though reading
2568         from such a stream is not portable.
2569
2570 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
2571
2572         * lib/poll.c: Rewrite.
2573         * modules/poll: Depend on alloca.
2574
2575 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
2576
2577         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
2578         instead define prototypes for a full set of wrappers.  Ensure
2579         that Cygwin does not use the compatibility code, which is only
2580         for MinGW.
2581         * lib/winsock.c: New.
2582         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
2583         * modules/sys_socket: Add lib/winsock.c.
2584
2585         * modules/poll-tests: Add errno and perror.
2586         * tests/test-poll.c: Use ioctl, not ioctlsocket.
2587
2588 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
2589
2590         * tests/test-poll.c: Downgrade minimum needed Winsock version.
2591
2592 2008-09-23  Bruno Haible  <bruno@clisp.org>
2593
2594         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
2595         * doc/glibc-functions/*: Likewise.
2596
2597 2008-09-23  Simon Josefsson  <simon@josefsson.org>
2598
2599         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
2600         success.
2601
2602 2008-09-22  Eric Blake  <ebb9@byu.net>
2603             Bruno Haible  <bruno@clisp.org>
2604
2605         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
2606         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
2607         supply %A but mishandle pseudo-NaN.
2608         Reported by Simon Josefsson.
2609
2610 2008-09-21  Bruno Haible  <bruno@clisp.org>
2611
2612         * tests/test-lock.c (main): Tweak skip message.
2613         * tests/test-tls.c (main): Likewise.
2614
2615 2008-09-21  Bruno Haible  <bruno@clisp.org>
2616
2617         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
2618         whether 'struct sigaction' has sa_sigaction here...
2619         (gl_PREREQ_SIG_HANDLER_H): ... not here.
2620         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
2621
2622 2008-09-21  Bruno Haible  <bruno@clisp.org>
2623
2624         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
2625         section.
2626         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
2627         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
2628         the new section.
2629         (Support for obsolete systems lacking POSIX:2001): New section.
2630         (String handling <string.h>): Move strdup to the new section.
2631         Suggested by Simon Josefsson and Paolo Bonzini.
2632
2633 2008-09-21  Bruno Haible  <bruno@clisp.org>
2634
2635         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
2636         exponents in %e and %g results on 'long double'. Needed for mingw's
2637         improved *printf functions.
2638         * tests/test-vasprintf-posix.c (test_function): Likewise.
2639         * tests/test-snprintf-posix.h (test_function): Likewise.
2640         * tests/test-sprintf-posix.h (test_function): Likewise.
2641         Reported by Eric Blake.
2642
2643 2008-09-21  Bruno Haible  <bruno@clisp.org>
2644
2645         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
2646         * tests/test-sprintf-posix.h (test_function): Likewise.
2647
2648 2008-09-21  Bruno Haible  <bruno@clisp.org>
2649
2650         * modules/getpass (Depends-on): Add strdup-posix.
2651
2652         New module 'strdup-posix'.
2653         * modules/strdup-posix: New file.
2654         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
2655         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
2656         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
2657         REPLACE_STRDUP.
2658         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
2659         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
2660         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
2661         strdup-posix.
2662
2663         * modules/strdup (Depends-on): Remove malloc-posix.
2664
2665 2008-09-20  Bruno Haible  <bruno@clisp.org>
2666
2667         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
2668         Wildenhues.
2669
2670 2008-09-20  Bruno Haible  <bruno@clisp.org>
2671
2672         Ensure that wint_t gets defined on IRIX 5.3.
2673         * lib/wchar.in.h (wint_t): Define if not defined by the system.
2674         * lib/wctype.in.h (wint_t): Likewise.
2675         (__wctype_wint_t): Remove type.
2676         (isw*): Use wint_t instead of __wctype_wint_t.
2677         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
2678         * modules/wchar (Files): Add m4/wint_t.m4.
2679         (Makefile.am): Substitute HAVE_WINT_T.
2680         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
2681         * tests/test-wctype.c: Check that wint_t is defined.
2682         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
2683         * doc/posix-headers/wctype.texi: Likewise.
2684         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
2685
2686 2008-09-18  Bruno Haible  <bruno@clisp.org>
2687
2688         * gnulib-tool (func_exit): Update comment.
2689
2690 2008-09-18  Simon Josefsson  <simon@josefsson.org>
2691
2692         * modules/getaddrinfo (Depends-on): Remove strdup, this module
2693         assumes strdup exists and does not depend on strdup to return
2694         ENOMEM on out of memory conditions.
2695
2696 2008-09-18  Bruno Haible  <bruno@clisp.org>
2697
2698         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
2699         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
2700         digits for the exponent.
2701
2702 2008-09-18  Jim Meyering  <meyering@redhat.com>
2703             Bruno Haible  <bruno@clisp.org>
2704
2705         * lib/vasnprintf.c (decimal_point_char): Define also if
2706         NEED_PRINTF_INFINITE_LONG_DOUBLE.
2707
2708 2008-09-16  Bruno Haible  <bruno@clisp.org>
2709         and Eric Blake  <ebb9@byu.net>
2710
2711         vasnprintf: support Irix 5.3
2712         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
2713         that mishandle long double infinity.
2714         Reported by Tom G. Christensen.
2715
2716 2008-09-16  Bruno Haible  <bruno@clisp.org>
2717
2718         * doc/glibc-functions/scandir.texi: Mention the function is missing on
2719         Solaris 9.
2720         * doc/glibc-functions/alphasort.texi: Likewise.
2721         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
2722
2723 2008-09-16  Jim Meyering  <meyering@redhat.com>
2724
2725         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
2726         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
2727         a umask modification leak out of a subshell.  Otherwise, the
2728         opensolaris /bin/sh would be accepted and thus cause unwarranted
2729         failures in the coreutils test suite.
2730
2731 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
2732
2733         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
2734         to succeed.
2735
2736 2008-09-16  Jim Meyering  <meyering@redhat.com>
2737
2738         avoid spurious test failure when library is built without ACL support
2739         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
2740         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
2741         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
2742         * tests/test-copy-acl.sh: Likewise.
2743
2744 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2745
2746         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
2747         based on character occurrence counts.
2748
2749 2008-09-15  Eric Blake  <ebb9@byu.net>
2750
2751         tests: avoid some compiler warnings
2752         * tests/test-memchr.c (main): Pass NULL indirectly.
2753         * tests/test-closein.c (main): Avoid unused variable.
2754
2755 2008-09-15  Bruno Haible  <bruno@clisp.org>
2756
2757         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
2758         are missing on OpenBSD 4.0 individually.
2759         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
2760
2761 2008-09-15  Bruno Haible  <bruno@clisp.org>
2762
2763         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
2764         * doc/posix-functions/strerror.texi: Mention also Cygwin.
2765         * doc/posix-functions/perror.texi: Likewise.
2766         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
2767         is missing.
2768         Reported by Eric Blake.
2769
2770         * lib/errno.in.h: Use replacement values >= 2000.
2771         Reported by Eric Blake.
2772
2773 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2774
2775         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
2776         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
2777         limit.
2778         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
2779         compareseq was aborted.
2780
2781 2008-09-14  Bruno Haible  <bruno@clisp.org>
2782
2783         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
2784         yvec_edit_count.
2785         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
2786         (fstrcmp_bounded): Simplify result computation accordingly.
2787
2788 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2789
2790         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
2791         (fstrcmp): Define in terms of fstrcmp_bounded.
2792         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
2793         lower_bound argument.
2794         Return quickly if the result is certainly < lower_bound.
2795         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
2796
2797 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2798
2799         * lib/diffseq.h (EARLY_ABORT): New macro.
2800         (compareseq): Change return type to bool. Return true when EARLY_ABORT
2801         evaluates to true.
2802
2803 2008-09-14  Bruno Haible  <bruno@clisp.org>
2804
2805         * modules/perror-tests: New file.
2806         * tests/test-perror.sh: New file.
2807         * tests/test-perror.c: New file.
2808
2809         New module 'perror'.
2810         * lib/stdio.in.h (perror): New declaration.
2811         * lib/perror.c: New file.
2812         * m4/perror.m4: New file.
2813         * modules/perror: New file.
2814         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
2815         * doc/posix-functions/perror.texi: Mention the perror module.
2816         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
2817         REPLACE_PERROR.
2818         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
2819         REPLACE_PERROR.
2820
2821 2008-09-14  Bruno Haible  <bruno@clisp.org>
2822
2823         * modules/stdio (Makefile.am): Reorder to match the order in
2824         lib/stdio.in.h.
2825         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
2826
2827 2008-09-13  Bruno Haible  <bruno@clisp.org>
2828
2829         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
2830
2831 2008-09-13  Bruno Haible  <bruno@clisp.org>
2832
2833         Extend strerror to cover the added errno values.
2834         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
2835         (rpl_strerror): Provide error messages for the added errno values and
2836         for the WSA* values.
2837         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
2838         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
2839         strerror.
2840         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
2841         * modules/strerror (Depends-on): Add errno.
2842         * doc/posix-functions/strerror.texi: Document the change.
2843         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
2844         and EOVERFLOW.
2845
2846 2008-09-13  Bruno Haible  <bruno@clisp.org>
2847
2848         * modules/EOVERFLOW: Remove file.
2849         * m4/eoverflow.m4: Remove file.
2850         * modules/EOVERFLOW-tests: Remove file.
2851         * tests/test-EOVERFLOW.c: Remove file.
2852         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
2853         * modules/ftell (Depends-on): Likewise.
2854         * modules/getdelim (Depends-on): Likewise.
2855         * modules/getugroups (Depends-on): Likewise.
2856         * modules/poll (Depends-on): Likewise.
2857         * modules/snprintf (Depends-on): Likewise.
2858         * modules/sprintf-posix (Depends-on): Likewise.
2859         * modules/vasnprintf (Depends-on): Likewise.
2860         * modules/vasprintf (Depends-on): Likewise.
2861         * modules/vfprintf-posix (Depends-on): Likewise.
2862         * modules/vsnprintf (Depends-on): Likewise.
2863         * modules/vsprintf-posix (Depends-on): Likewise.
2864         * modules/xvasprintf (Depends-on): Likewise.
2865         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
2866         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
2867         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
2868         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
2869         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
2870         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
2871         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
2872         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
2873         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
2874         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
2875         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
2876         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
2877         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
2878         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
2879         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
2880         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
2881         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
2882         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
2883         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
2884         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
2885         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
2886         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
2887         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
2888         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
2889         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
2890         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
2891         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
2892         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
2893         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
2894         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
2895         * MODULES.html.sh: Remove EOVERFLOW.
2896         * NEWS: Mention the change.
2897
2898 2008-09-13  Bruno Haible  <bruno@clisp.org>
2899
2900         * modules/errno-tests: New file.
2901         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
2902
2903         * lib/errno.in.h: New file.
2904         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
2905         * modules/errno: New file.
2906         * doc/posix-headers/errno.texi: Update documentation.
2907         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
2908
2909 2008-09-13  Bruno Haible  <bruno@clisp.org>
2910
2911         * tests/test-poll.c: Use #if for native Windows, rather than testing
2912         __MSVCRT__.
2913
2914 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
2915             Bruno Haible  <bruno@clisp.org>
2916
2917         * lib/glob.c: Don't include <pwd.h> on native Windows.
2918         (WINDOWS32): New macro.
2919         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
2920
2921 2008-09-13  Bruno Haible  <bruno@clisp.org>
2922
2923         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
2924         (ETIMEDOUT): Remove macro.
2925         (glthread_cond_timedwait_multithreaded): New declaration.
2926         (glthread_cond_timedwait): Use it.
2927         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
2928         (glthread_cond_timedwait_multithreaded): New function.
2929
2930 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
2931
2932         * modules/poll-tests: Do not check for io.h.
2933         * tests/test-poll.c: Check for __MSVCRT__ instead.
2934
2935 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
2936
2937         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
2938         * modules/poll-tests: Add inet_pton, stdbool, sockets.
2939         * tests/test-poll.c: Use them.  Use _pipe on Windows.
2940
2941 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
2942
2943         * modules/poll-tests: New.
2944         * tests/test-poll.c: New.
2945
2946 2008-09-12  Eric Blake  <ebb9@byu.net>
2947
2948         frexp: test for NetBSD failure on -0.0
2949         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
2950         not all, bugs from NetBSD 3.0 have been fixed.
2951         * doc/posix-functions/frexp.texi (frexp): Document bug.
2952         Reported by Thomas Klausner.
2953
2954         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
2955         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
2956         literal -0.0.
2957         Reported by Jonathan C. Patschke <jp@centtech.com>.
2958
2959 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
2960
2961         * lib/glthread/cond.h: Use dummy implementation also if
2962         USE_WIN32_THREADS.
2963
2964 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
2965
2966         * modules/fnmatch-posix (License): Change to LGPLv2+.
2967         * modules/fnmatch-gnu (License): Likewise.
2968
2969 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
2970
2971         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
2972
2973 2008-09-11  Jim Meyering  <meyering@redhat.com>
2974
2975         * users.txt: Add gtk-vnc.
2976
2977 2008-09-08  Simon Josefsson  <simon@josefsson.org>
2978
2979         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
2980         rotate amounts.
2981
2982         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
2983         required for 16-bit and 8-bit rotates.
2984         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
2985         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
2986         UINT8_MAX instead of hard-coded constants.
2987         Suggested by Paul Eggert.
2988
2989 2008-09-07  Bruno Haible  <bruno@clisp.org>
2990
2991         * tests/test-striconveh.c (main): Check behaviour when converting from
2992         UTF-7.
2993
2994         Make striconveh work better with stateful encodings.
2995         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
2996         that iconv does not increment the inptr when returning -1/EINVAL.
2997
2998 2008-09-07  Bruno Haible  <bruno@clisp.org>
2999
3000         * build-aux/config.rpath: Update according to libtool-2.2.6.
3001         * build-aux/config.libpath: Likewise.
3002
3003 2008-09-06  Bruno Haible  <bruno@clisp.org>
3004
3005         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
3006         * lib/freadptr.c (freadptr): Likewise.
3007         * lib/freadseek.c (freadptrinc): Likewise.
3008         Reported by Simon Josefsson.
3009
3010 2008-09-06  Bruno Haible  <bruno@clisp.org>
3011
3012         * modules/freadptr (License): Change to LGPLv2+.
3013         * modules/freadseek (License): Likewise.
3014         Suggested by Eric Blake.
3015
3016         * modules/memchr2 (License): Change to LGPLv2+.
3017         Approved by Eric Blake.
3018
3019 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3020             Bruno Haible  <bruno@clisp.org>
3021
3022         Make gnulib-tool work with native 'sed' on AIX.
3023         * gnulib-tool (sed_noop): New variable.
3024         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
3025         func_add_or_update, func_create_testdir): Use it to initialize sed
3026         script variables.
3027         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
3028
3029 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
3030             Bruno Haible  <bruno@clisp.org>
3031
3032         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
3033         also works after #include directives.
3034
3035 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
3036
3037         getdate.y: reject an out-of-range timezone value
3038         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
3039         the range [-24...+24].  When specified with only one or two digits,
3040         * tests/test-getdate.c: Tests for the fix.
3041         * doc/getdate.texi: Document this change.
3042
3043 2008-09-03  Bruno Haible  <bruno@clisp.org>
3044
3045         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
3046
3047 2008-09-02  Simon Josefsson  <simon@josefsson.org>
3048
3049         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
3050         <bruce.korb@gmail.com> with ideas from Ben Pfaff
3051         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
3052         Blake <ebb9@byu.net>.
3053
3054         * tests/test-bitrotate.c: Add more test vectors.
3055
3056 2008-09-02  Eric Blake  <ebb9@byu.net>
3057
3058         vasnprintf-posix: handle large precision via %.*d
3059         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
3060         when handling it ourselves.
3061         * tests/test-vasnprintf-posix.c (test_function): Add test.
3062         * tests/test-snprintf-posix.h (test_function): Likewise.
3063         * tests/test-sprintf-posix.h (test_function): Likewise.
3064         * tests/test-vasprintf-posix.c (test_function): Likewise.
3065         Reported by Alain Guibert.
3066
3067 2008-09-01  Eric Blake  <ebb9@byu.net>
3068
3069         c-stack: make configure-time check more robust
3070         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
3071         successful sigaction call.
3072         Reported by Tom G. Christensen.
3073
3074 2008-09-01  Bruno Haible  <bruno@clisp.org>
3075
3076         New module 'findprog-lgpl'.
3077         * modules/findprog-lgpl: New file.
3078         * lib/findprog-lgpl.c: New file.
3079         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
3080         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
3081         to decide whether to use strdup or xstrdup, concatenated_filename or
3082         xconcatenated_filename.
3083
3084 2008-09-01  Bruno Haible  <bruno@clisp.org>
3085
3086         Split module 'concat-filename' into 'concat-filename' (LGPL) and
3087         'xconcat-filename' (GPL).
3088         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
3089         (License): Change to LGPLv2+.
3090         * modules/xconcat-filename: New file.
3091         * lib/concat-filename.h (concatenated_filename): Change specification.
3092         (xconcatenated_filename): New declaration.
3093         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
3094         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
3095         memory situations.
3096         * lib/xconcat-filename.c: New file.
3097         * NEWS: Mention the change.
3098         * lib/findprog.c: Include concat-filename.h, not filename.h.
3099         (find_in_path): Use xconcatenated_filename instead of
3100         concatenated_filename.
3101         * lib/javacomp.c: Include concat-filename.h, not filename.h.
3102         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
3103         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
3104         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
3105         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
3106         instead of concatenated_filename.
3107         * lib/javaexec.c: Include concat-filename.h, not filename.h.
3108         (execute_java_class): Use xconcatenated_filename instead of
3109         concatenated_filename.
3110         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
3111         * modules/javacomp (Depends-on): Likewise.
3112         * modules/javaexec (Depends-on): Likewise.
3113
3114 2008-09-01  Bruno Haible  <bruno@clisp.org>
3115
3116         Split module 'filename' into 'filename' and 'concat-filename'.
3117         * modules/filename: Keep only lib/filename.h.
3118         (License): Change to LGPLv2+.
3119         * modules/concat-filename: New file, extracted from modules/filename.
3120         * lib/filename.h (concatenated_filename): Remove declaration.
3121         * lib/concat-filename.h: New file, extracted from lib/filename.h.
3122         * lib/concat-filename.c: Include concat-filename.h.
3123         * NEWS: Mention the change.
3124
3125 2008-09-01  Simon Josefsson  <simon@josefsson.org>
3126
3127         * lib/bitrotate.h (rotl8, rotr8): Add.
3128
3129         * modules/bitrotate (configure.ac): Need
3130         AC_REQUIRE([AC_C_INLINE]).
3131         (Description): Mention stdint.h.  Reported by Bruno Haible
3132         <bruno@clisp.org>.
3133
3134         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
3135         Paolo Bonzini <bonzini@gnu.org>.
3136
3137 2008-08-31  Bruno Haible  <bruno@clisp.org>
3138
3139         Assume Solaris specific bi-arch conventions on Solaris systems.
3140         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
3141         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
3142         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
3143         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
3144         like acl_libdirstem.
3145         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
3146         acl_libdirstem.
3147         * NEWS: Mention the change.
3148         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
3149
3150 2008-08-31  Jim Meyering  <meyering@redhat.com>
3151
3152         * lib/strftime.h: Add comments describing the two added arguments.
3153
3154         remove duplicate #include directives
3155         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
3156         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
3157
3158 2008-08-31  Bruno Haible  <bruno@clisp.org>
3159
3160         New module 'sigpipe-die'.
3161         * modules/sigpipe-die: New file.
3162         * lib/sigpipe-die.h: New file.
3163         * lib/sigpipe-die.c: New file.
3164         * MODULES.html.sh (Signal handling): Add sigpipe-die.
3165
3166 2008-08-31  Bruno Haible  <bruno@clisp.org>
3167
3168         Don't override previously installed signal handlers.
3169         * lib/fatal-signal.c (saved_sigactions): New variable.
3170         (uninstall_handlers): Reset the signal to the saved handler, not
3171         to SIG_DFL (except when ignored).
3172         (install_handlers): Save the previous handlers.
3173
3174 2008-08-30  Bruno Haible  <bruno@clisp.org>
3175
3176         * gnulib-tool (func_reset_sigpipe): New function.
3177         (func_get_automake_snippet, func_modules_transitive_closure,
3178         func_import): Invoke it before a join command that reads from stdin,
3179         to avoid "echo: write error: Broken pipe" error messages on stderr.
3180         Reported by Sam Steingold <sds@gnu.org>.
3181
3182 2008-08-30  Bruno Haible  <bruno@clisp.org>
3183
3184         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
3185         Code copied from m4/open.m4.
3186         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
3187         access and the filename ends in a slash. Code copied from lib/open.c.
3188         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
3189         * tests/test-fopen.c (main): Check against bug with trailing slash.
3190
3191 2008-08-29  Bruno Haible  <bruno@clisp.org>
3192
3193         Avoid some "gcc -pedantic" warnings.
3194         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
3195         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
3196         * lib/dirent.in.h: Likewise.
3197         * lib/fcntl.in.h: Likewise.
3198         * lib/float.in.h: Likewise.
3199         * lib/iconv.in.h: Likewise.
3200         * lib/inttypes.in.h: Likewise.
3201         * lib/locale.in.h: Likewise.
3202         * lib/math.in.h: Likewise.
3203         * lib/netinet_in.in.h: Likewise.
3204         * lib/search.in.h: Likewise.
3205         * lib/signal.in.h: Likewise.
3206         * lib/stdarg.in.h: Likewise.
3207         * lib/stdint.in.h: Likewise.
3208         * lib/stdio.in.h: Likewise.
3209         * lib/stdlib.in.h: Likewise.
3210         * lib/string.in.h: Likewise.
3211         * lib/strings.in.h: Likewise.
3212         * lib/sys_select.in.h: Likewise.
3213         * lib/sys_socket.in.h: Likewise.
3214         * lib/sys_stat.in.h: Likewise.
3215         * lib/sys_time.in.h: Likewise.
3216         * lib/sysexits.in.h: Likewise.
3217         * lib/time.in.h: Likewise.
3218         * lib/unistd.in.h: Likewise.
3219         * lib/wchar.in.h: Likewise.
3220         * lib/wctype.in.h: Likewise.
3221         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
3222         * modules/fchdir (Makefile.am): Likewise.
3223         * modules/fcntl (Makefile.am): Likewise.
3224         * modules/float (Makefile.am): Likewise.
3225         * modules/iconv_open (Makefile.am): Likewise.
3226         * modules/inttypes (Makefile.am): Likewise.
3227         * modules/locale (Makefile.am): Likewise.
3228         * modules/math (Makefile.am): Likewise.
3229         * modules/netinet_in (Makefile.am): Likewise.
3230         * modules/search (Makefile.am): Likewise.
3231         * modules/signal (Makefile.am): Likewise.
3232         * modules/stdarg (Makefile.am): Likewise.
3233         * modules/stdint (Makefile.am): Likewise.
3234         * modules/stdio (Makefile.am): Likewise.
3235         * modules/stdlib (Makefile.am): Likewise.
3236         * modules/string (Makefile.am): Likewise.
3237         * modules/strings (Makefile.am): Likewise.
3238         * modules/sys_select (Makefile.am): Likewise.
3239         * modules/sys_socket (Makefile.am): Likewise.
3240         * modules/sys_stat (Makefile.am): Likewise.
3241         * modules/sys_time (Makefile.am): Likewise.
3242         * modules/sysexits (Makefile.am): Likewise.
3243         * modules/time (Makefile.am): Likewise.
3244         * modules/unistd (Makefile.am): Likewise.
3245         * modules/wchar (Makefile.am): Likewise.
3246         * modules/wctype (Makefile.am): Likewise.
3247         Reported by Reuben Thomas <rrt@sc3d.org>.
3248
3249 2008-08-29  Bruno Haible  <bruno@clisp.org>
3250
3251         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
3252         any more.
3253
3254 2008-08-29  Simon Josefsson  <simon@josefsson.org>
3255
3256         * MODULES.html.sh (Misc): Add bitrotate.
3257
3258         * modules/bitrotate: New file.
3259
3260         * lib/bitrotate.h: New file.
3261
3262         * modules/bitrotate-tests: New file.
3263
3264         * tests/test-bitrotate.c: New file.
3265
3266         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
3267         on the bitrotate module.
3268
3269         * lib/arctwo.c: Use new bitrotate module.
3270
3271 2008-08-29  Jim Meyering  <meyering@redhat.com>
3272
3273         bootstrap: merge changes from coreutils
3274         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
3275         of copied files.  Remove a kludge, now that this is fixed.
3276         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
3277         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
3278         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
3279
3280 2008-08-29  Bruno Haible  <bruno@clisp.org>
3281
3282         * MODULES.html.sh: Remove --cvs-urls option.
3283
3284 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
3285
3286         maint.mk: adjust to file name change
3287         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
3288
3289 2008-08-28  Jim Meyering  <meyering@redhat.com>
3290
3291         * modules/getndelim2 (License): Relicense to LGPLv2+.
3292         Approved by Richard Stallman for the version of 1995, and by
3293         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
3294
3295 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
3296
3297         * lib/getdelim.c (flockfile, funlockfile): Make all of them
3298         dummy if one is not available.  Do not touch them if
3299         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
3300         (getc_maybe_unlocked): New.
3301         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
3302
3303 2008-08-26  Eric Blake  <ebb9@byu.net>
3304
3305         doc/INSTALL: resync from autoconf
3306         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
3307         (INSTALL_PRELUDE): Delete; this is done more efficiently by
3308         moving...
3309         * install.texi [!autoconf]: ...here.  Resync from autoconf.
3310         * INSTALL: Regenerate.
3311         * INSTALL.ISO: New file.
3312         * INSTALL.UTF-8: Likewise.
3313
3314 2008-08-26  Jim Meyering  <meyering@redhat.com>
3315
3316         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
3317         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
3318         these definitions conditional, so that they may be overridden, too.
3319
3320 2008-08-26  Bruno Haible  <bruno@clisp.org>
3321
3322         Generate INSTALL file variants with prettier quotes.
3323         * doc/Makefile (INSTALL_PRELUDE): New macro.
3324         (INSTALL): Use it.
3325         (INSTALL.ISO, INSTALL.UTF-8): New rules.
3326
3327 2008-08-26  Bruno Haible  <bruno@clisp.org>
3328
3329         Run makeinfo in an English locale.
3330         * doc/Makefile (MAKEINFO): New variable.
3331
3332 2008-08-26  Bruno Haible  <bruno@clisp.org>
3333
3334         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
3335         Suggested by Eric Blake.
3336
3337 2008-08-25  Bruno Haible  <bruno@clisp.org>
3338
3339         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
3340
3341 2008-08-25  Eric Blake  <ebb9@byu.net>
3342
3343         c-stack: test that stack overflow can be caught
3344         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
3345         that platform allows handling stack overflow; at least OS/2 EMX
3346         has sigaltstack, but crashes before transferring control to
3347         handler on stack overflow.
3348         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
3349         check for HAVE_STACK_OVERFLOW_HANDLING.
3350         Reported by Elbert Pol.
3351
3352 2008-08-25  Bruno Haible  <bruno@clisp.org>
3353
3354         * doc/posix-functions/strftime.texi: Fix description of strftime
3355         module.
3356
3357 2008-08-24  Bruno Haible  <bruno@clisp.org>
3358
3359         * tests/uniwidth/test-uc_width2.c: New file.
3360         * tests/uniwidth/test-uc_width2.sh: New file.
3361         * modules/uniwidth/width-tests (Files): Add the new files.
3362         (TESTS): Add uniwidth/test-uc_width2.sh.
3363         (TESTS_ENVIRONMENT): New variable.
3364         (check_PROGRAMS): Add test-uc_width2.
3365         (test_uc_width2_SOURCES): New variable.
3366
3367         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
3368         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
3369         not 0x00AB.
3370         Reported by Alexander V. Lukyanov <lav@netis.ru>.
3371
3372 2008-08-22  Eric Blake  <ebb9@byu.net>
3373
3374         test-lock, test-tls: mention why a test is skipped
3375         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
3376         skipped.
3377         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
3378
3379         count-one-bits: relax license
3380         * modules/count-one-bits (License): Relicense to LGPLv2+.
3381         Suggested by Ludovic Courtès, approved by Ben Pfaff.
3382
3383 2008-08-22  Andreas Schwab  <schwab@suse.de>
3384
3385         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
3386         Remove spurious space in assignment.
3387
3388 2008-08-21  Simon Josefsson  <simon@josefsson.org>
3389
3390         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
3391         Paul Eggert <eggert@CS.UCLA.EDU>.
3392
3393 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
3394
3395         * modules/gettext: Add m4/threadlib.m4.
3396
3397 2008-08-19  Eric Blake  <ebb9@byu.net>
3398
3399         test-c-stack: fix compilation failure on FreeBSD 5.0
3400         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
3401         headers before <sys/resource.h>.
3402         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
3403         the bug.
3404         Reported by Nelson H. F. Beebe.
3405
3406         strverscmp: migrate from "strverscmp.h" to <string.h>
3407         * modules/string (Makefile.am): Add new hooks.
3408         * modules/strverscmp (Files): Remove strverscmp.h.
3409         (Depends-on): Add string.
3410         (configure.ac): Add indicator.
3411         (Include): Mention new header.
3412         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
3413         defaults.
3414         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
3415         results.
3416         * lib/strverscmp.h: Delete.
3417         * lib/string.in.h (strverscmp): Provide declaration, when needed.
3418         * tests/test-strverscmp.c (includes): Adjust client.
3419         * lib/check-version.c (includes): Likewise.
3420         * NEWS: Document the change.
3421
3422         strverscmp: add unit test
3423         * modules/strverscmp-tests: New file.
3424         * tests/test-strverscmp.c: Likewise.
3425
3426 2008-08-19  Simon Josefsson  <simon@josefsson.org>
3427
3428         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
3429         regarding Windows crypto stuff, from Mono.
3430
3431 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
3432
3433         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
3434         if present, for intel RND.  Return error on failures.
3435
3436 2008-08-18  Ben Pfaff  <blp@gnu.org>
3437
3438         gitlog-to-changelog: give better diagnostic for failed pipe-open
3439         * build-aux/gitlog-to-changelog: Improve error message: suggest
3440         that the version of Git may be too old.
3441
3442 2008-08-18  Simon Josefsson  <simon@josefsson.org>
3443
3444         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
3445         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
3446
3447 2008-08-18  Bruno Haible  <bruno@clisp.org>
3448
3449         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
3450         pthread_in_use().
3451
3452 2008-08-18  Bruno Haible  <bruno@clisp.org>
3453
3454         * lib/glthread/threadlib.c: Include <pthread.h>.
3455
3456 2008-08-18  Bruno Haible  <bruno@clisp.org>
3457
3458         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
3459         glthread_recursive_lock_* macros.
3460         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
3461         Fix syntax error.
3462
3463 2008-08-18  Bruno Haible  <bruno@clisp.org>
3464
3465         * lib/glthread/thread.c: Avoid forcing a context switch right after
3466         thread creation.
3467
3468 2008-08-17  Bruno Haible  <bruno@clisp.org>
3469
3470         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
3471         * lib/glthread/thread.h: Provide Win32 specific implementation.
3472         * modules/thread (Files): Add lib/glthread/thread.c.
3473         (Depends-on): Add lock.
3474         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
3475
3476 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
3477
3478         New module 'yield'.
3479         * modules/yield: New file.
3480         * lib/glthread/yield.h: New file.
3481         * m4/yield.m4: New file.
3482         * MODULES.html.sh (Multithreading): Add yield.
3483
3484 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
3485
3486         New module 'thread'.
3487         * modules/thread: New file.
3488         * lib/glthread/thread.h: New file.
3489         * m4/thread.m4: New file.
3490         * MODULES.html.sh (Multithreading): Add thread.
3491
3492 2008-08-17  Bruno Haible  <bruno@clisp.org>
3493
3494         * lib/glthread/lock.h: Include <stdlib.h> always.
3495         * lib/glthread/tls.h: Likewise.
3496         * lib/glthread/cond.h: Likewise.
3497
3498 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
3499
3500         New module 'cond'.
3501         * modules/cond: New file.
3502         * lib/glthread/cond.h: New file.
3503         * lib/glthread/cond.c: New file.
3504         * m4/cond.m4: New file.
3505         * MODULES.html.sh (Multithreading): Add cond.
3506
3507 2008-08-16  Eric Blake  <ebb9@byu.net>
3508
3509         c-stack: fix regression on Irix 5.3 from 2008-06-21
3510         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
3511         sa_sigaction...
3512         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
3513         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
3514         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
3515         * modules/signal (Makefile.am): Use the value.
3516         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
3517         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
3518         * doc/posix-headers/signal.texi (signal.h): Document this
3519         portability issue.
3520         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
3521         Reported by Tom G. Christensen.
3522
3523 2008-08-17  Bruno Haible  <bruno@clisp.org>
3524
3525         New module 'threadlib'.
3526         * modules/threadlib: New file.
3527         * lib/glthread/threadlib.c: New file, extracted from
3528         lib/glthread/lock.c.
3529         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
3530         functions.
3531         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
3532         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
3533         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
3534         macros.
3535         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
3536         (gl_DISABLE_THREADS): Remove macro.
3537         * modules/lock (Files): Remove build-aux/config.rpath.
3538         (Depends-on): Remove havelib. Add threadlib.
3539         (configure.ac-early): Remove section.
3540         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
3541         * modules/tls (Depends-on): Remove lock. Add threadlib.
3542         (Link): New section, copied from threadlib.
3543         * MODULES.html.sh (Multithreading): Add threadlib.
3544
3545 2008-08-14  Bruno Haible  <bruno@clisp.org>
3546
3547         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
3548         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
3549         glthread_rwlock_unlock, glthread_rwlock_destroy,
3550         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
3551         glthread_recursive_lock_destroy): Define as macros always.
3552         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
3553         glthread_lock_lock.
3554         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
3555         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
3556         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
3557         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
3558         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
3559         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
3560         (glthread_recursive_lock_lock_func): Renamed from
3561         glthread_recursive_lock_lock.
3562         (glthread_recursive_lock_unlock_func): Renamed from
3563         glthread_recursive_lock_unlock.
3564         (glthread_recursive_lock_destroy_func): Renamed from
3565         glthread_recursive_lock_destroy.
3566
3567 2008-08-14  Bruno Haible  <bruno@clisp.org>
3568
3569         * lib/glthread/lock.h: Renamed from lib/lock.h.
3570         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
3571         * lib/glthread/tls.h: Renamed from lib/tls.h.
3572         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
3573         * lib/fstrcmp.c: Update includes.
3574         * lib/strsignal.c: Update includes.
3575         * modules/lock (Files, Makefile.am): Update.
3576         (Include): Change to "glthread/lock.h".
3577         * modules/tls (Files, Makefile.am): Update.
3578         (Include): Change to "glthread/tls.h".
3579         * tests/test-lock.c: Update includes.
3580         * tests/test-tls.c: Update includes.
3581         * NEWS: Mention the renamed header files.
3582
3583 2008-08-11  Jim Meyering  <meyering@redhat.com>
3584
3585         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
3586
3587 2008-08-11  Eric Blake  <ebb9@byu.net>
3588
3589         test-c-stack: avoid C99-ism
3590         * tests/test-c-stack.c (main): Fix whitespace, move declaration
3591         before statement.
3592         Reported by Alain Guibert.
3593
3594 2008-08-10  Jim Meyering  <meyering@redhat.com>
3595
3596         ensure that return value of uinttostr et al are not ignored
3597         * lib/inttostr.h (__GNUC_PREREQ): Define.
3598         (__attribute_warn_unused_result__): Define.
3599         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
3600
3601 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
3602
3603         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
3604         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
3605
3606 2008-08-07  Jim Meyering  <meyering@redhat.com>
3607
3608         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
3609
3610         * modules/mkstemp (License): Relicense under LGPLv2+.
3611         * modules/tempname (License): Likewise.
3612
3613 2008-08-06  Bruno Haible  <bruno@clisp.org>
3614
3615         * lib/poll.c (poll): Further micro-optimization.
3616
3617 2008-08-06  Jim Meyering  <meyering@redhat.com>
3618
3619         inet_pton.c: use locale-independent tolower
3620         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
3621         (inet_pton6): Use c_tolower rather than tolower.
3622         * modules/inet_pton (Depends-on): Add c-ctype.
3623
3624 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
3625
3626         * lib/poll.c (poll): Avoid division when timeout is 0, cache
3627         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
3628
3629 2008-08-06  Jim Meyering  <meyering@redhat.com>
3630
3631         * modules/inet_pton (License): Relicense under LGPLv2+.
3632
3633 2008-08-03  Bruno Haible  <bruno@clisp.org>
3634
3635         Additional non-aborting API for lock and tls.
3636         * lib/lock.h: Include <errno.h>.
3637         (glthread_lock_init): New macro/function.
3638         (gl_lock_init): Define as wrapper around glthread_lock_init.
3639         (glthread_lock_lock): New macro/function.
3640         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
3641         (glthread_lock_unlock): New macro/function.
3642         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
3643         (glthread_lock_destroy): New macro/function.
3644         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
3645         (glthread_rwlock_init): New macro/function.
3646         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
3647         (glthread_rwlock_rdlock): New macro/function.
3648         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
3649         (glthread_rwlock_wrlock): New macro/function.
3650         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
3651         (glthread_rwlock_unlock): New macro/function.
3652         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
3653         (glthread_rwlock_destroy): New macro/function.
3654         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
3655         (glthread_recursive_lock_init): New macro/function.
3656         (gl_recursive_lock_init): Define as wrapper around
3657         glthread_recursive_lock_init.
3658         (glthread_recursive_lock_lock): New macro/function.
3659         (gl_recursive_lock_lock): Define as wrapper around
3660         glthread_recursive_lock_lock.
3661         (glthread_recursive_lock_unlock): New macro/function.
3662         (gl_recursive_lock_unlock): Define as wrapper around
3663         glthread_recursive_lock_unlock.
3664         (glthread_recursive_lock_destroy): New macro/function.
3665         (gl_recursive_lock_destroy): Define as wrapper around
3666         glthread_recursive_lock_destroy.
3667         (glthread_once): New macro/function.
3668         (gl_once): Define as wrapper around glthread_once.
3669         Update function declarations.
3670         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
3671         glthread_rwlock_init. Return error code.
3672         (glthread_rwlock_rdlock_multithreaded): Renamed from
3673         glthread_rwlock_rdlock. Return error code.
3674         (glthread_rwlock_wrlock_multithreaded): Renamed from
3675         glthread_rwlock_wrlock. Return error code.
3676         (glthread_rwlock_unlock_multithreaded): Renamed from
3677         glthread_rwlock_unlock. Return error code.
3678         (glthread_rwlock_destroy_multithreaded): Renamed from
3679         glthread_rwlock_destroy. Return error code.
3680         (glthread_recursive_lock_init_multithreaded): Renamed from
3681         glthread_recursive_lock_init. Return error code.
3682         (glthread_recursive_lock_lock_multithreaded): Renamed from
3683         glthread_recursive_lock_lock. Return error code.
3684         (glthread_recursive_lock_unlock_multithreaded): Renamed from
3685         glthread_recursive_lock_unlock. Return error code.
3686         (glthread_recursive_lock_destroy_multithreaded): Renamed from
3687         glthread_recursive_lock_destroy. Return error code.
3688         (glthread_once_call): Make static.
3689         (glthread_once_multithreaded): Renamed from glthread_once.
3690         * lib/tls.h: Include <errno.h>.
3691         (glthread_tls_key_init): New macro/function.
3692         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
3693         (glthread_tls_set): New macro/function.
3694         (gl_tls_set): Define as wrapper around glthread_tls_set.
3695         (glthread_tls_key_destroy): New macro/function.
3696         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
3697         Update function declarations.
3698         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
3699         glthread_tls_get.
3700         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
3701
3702 2008-08-04  Eric Blake  <ebb9@byu.net>
3703
3704         gnumakefile: use space, not TAB, outside of targets
3705         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
3706
3707 2008-08-02  Jim Meyering  <meyering@redhat.com>
3708
3709         getdate.y: avoid locale-dependent date parsing failure
3710         In Turkish locales, getdate would fail to recognize keywords
3711         containing a lowercase "i".  The solution is not to rely on
3712         locale-sensitive case-conversion.
3713         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
3714         (lookup_word): Use c_toupper in place of toupper.
3715         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
3716         Reported by Vefa Bicakci <bicave@superonline.com> in
3717         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
3718         * modules/getdate (Depends-on): Add c-ctype.
3719
3720 2008-08-02  Bruno Haible  <bruno@clisp.org>
3721
3722         * gnulib-tool (func_import): When updating or creating a .gitignore
3723         file, prepend each added line with a slash, and ignore leading slashes
3724         from the existing lines.
3725         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
3726
3727 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3728
3729         Portability fix for GNU make 3.79.1.
3730         * top/GNUmakefile: Avoid 'else COND', which older GNU make
3731         versions do not understand.
3732
3733 2008-08-01  Bruno Haible  <bruno@clisp.org>
3734
3735         Work around bug of HP-UX 10.20 cc with -0.0 literal.
3736         * tests/test-isnanf.h (zero): New variable.
3737         (main): Avoid literal -0.0f.
3738         * tests/test-isnand.h (zero): New variable.
3739         (main): Avoid literal -0.0.
3740         * tests/test-isnanl.h (zero): New variable.
3741         (main): Avoid literal -0.0L.
3742         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
3743         (test_float, test_double, test_long_double): Avoid literals -0.0f,
3744         -0.0, -0.0L.
3745         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
3746         (test_signbitd): Avoid literal -0.0.
3747         (test_signbitl): Avoid literal -0.0L.
3748         * tests/test-ceilf1.c (zero): New variable.
3749         (main): Avoid literal -0.0f.
3750         * tests/test-ceill.c (zero): New variable.
3751         (main): Avoid literal -0.0L.
3752         * tests/test-floorf1.c (zero): New variable.
3753         (main): Avoid literal -0.0f.
3754         * tests/test-floorl.c (zero): New variable.
3755         (main): Avoid literal -0.0L.
3756         * tests/test-roundf1.c (zero): New variable.
3757         (main): Avoid literal -0.0f.
3758         * tests/test-round1.c (zero): New variable.
3759         (main): Avoid literal -0.0.
3760         * tests/test-roundl.c (zero): New variable.
3761         (main): Avoid literal -0.0L.
3762         * tests/test-truncf1.c (zero): New variable.
3763         (main): Avoid literal -0.0f.
3764         * tests/test-trunc1.c (zero): New variable.
3765         (main): Avoid literal -0.0.
3766         * tests/test-truncl.c (zero): New variable.
3767         (main): Avoid literal -0.0L.
3768         * tests/test-frexp.c (zero): New variable.
3769         (main): Avoid literal -0.0.
3770         * tests/test-frexpl.c (zero): New variable.
3771         (main): Avoid literal -0.0L.
3772         * tests/test-ldexpl.c (zero): New variable.
3773         (main): Avoid literal -0.0L.
3774         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
3775         (zerod, zerol): New variables.
3776         (test_function): Avoid literals -0.0, -0.0L.
3777         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
3778         (zerod, zerol): New variables.
3779         (test_function): Avoid literals -0.0, -0.0L.
3780         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
3781         (zerod, zerol): New variables.
3782         (test_function): Avoid literals -0.0, -0.0L.
3783         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
3784         (zerod, zerol): New variables.
3785         (test_function): Avoid literals -0.0, -0.0L.
3786         * tests/test-strtod.c (zero): New variable.
3787         (main): Avoid literal -0.0.
3788         Reported by Jonathan C. Patschke <jp@centtech.com>.
3789
3790 2008-07-31  Jim Meyering  <meyering@redhat.com>
3791
3792         sha256.h: correct definition of SHA224_DIGEST_SIZE
3793         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
3794         Reported by Paulie Pena IV <paulie4@gmail.com>.
3795         Define as 224 / 8, rather than as a literal.
3796         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
3797         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
3798         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
3799
3800 2008-07-31  Bruno Haible  <bruno@clisp.org>
3801
3802         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
3803         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
3804         Reported by Jonathan Patschke <jp@centtech.com>.
3805
3806 2008-07-31  Bruno Haible  <bruno@clisp.org>
3807
3808         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
3809         Reported by Paolo Bonzini <bonzini@gnu.org>.
3810
3811 2008-07-30  Eric Blake  <ebb9@byu.net>
3812
3813         test-strtod: allow compilation without -lm
3814         * tests/test-strtod.c (main): Avoid link dependence on fabs.
3815         Reported by Dennis Clarke <blastwave@gmail.com>.
3816
3817 2008-07-28  Jim Meyering  <meyering@redhat.com>
3818
3819         bootstrap: work also when there are no .po files in po/
3820         * build-aux/bootstrap (update_po_files): Complete the change
3821         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
3822
3823 2008-07-27  Jim Meyering  <meyering@redhat.com>
3824
3825         * users.txt: Add zile.
3826
3827 2008-07-26  Ben Pfaff  <blp@gnu.org>
3828
3829         Add missing dependencies on new m4/exponent[fdl].m4 files.
3830         * modules/isnanf-nolibm: Add m4/exponentf.m4.
3831         * modules/isnand-nolibm: Add m4/exponentd.m4.
3832         * modules/isnanl-nolibm: Add m4/exponentl.m4.
3833         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
3834         m4/isnan[fdl].m4, because the macros actually used moved.
3835         Reported by Jim Meyering.
3836
3837 2008-07-14  Ben Pfaff  <blp@gnu.org>
3838
3839         Add isinf module.
3840         * lib/isinf.c: New file.
3841         * lib/math.in.h: Define isinf macro if we have decided to replace
3842         it.
3843         * m4/isinf.m4: New file.
3844         * m4/math_h.m4: Initialize and substitute variables for isinf
3845         module.
3846         * modules/isinf: New file.
3847         * modules/isinf-tests: New file.
3848         * modules/math: Add substitutions for new module.
3849         * tests/test-isinf.c: New file.
3850         * doc/posix-functions/isinf.texi: Mention new module.
3851         * MODULES.html.sh: Mention new module.
3852
3853 2008-07-14  Ben Pfaff  <blp@gnu.org>
3854
3855         Factor out some macros for use by additional modules.
3856         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
3857         exponentf.m4.
3858         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
3859         exponentd.m4.
3860         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
3861         file exponentl.m4.
3862         * m4/exponentf.m4: New file.
3863         * m4/exponentd.m4: New file.
3864         * m4/exponentl.m4: New file.
3865         * modules/isnanf: Use new file m4/exponentf.m4.
3866         * modules/isnand: Use new file m4/exponentd.m4.
3867         * modules/isnanl: Use new file m4/exponentl.m4.
3868
3869 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
3870
3871         mktime.c: normalize tp->tm_isdst value to -1/0/1.
3872         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
3873         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
3874         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
3875
3876         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
3877         readlink on platforms without PATH_MAX.
3878
3879 2008-07-21  Eric Blake  <ebb9@byu.net>
3880
3881         Warn, not fail, on stale version.
3882         * top/GNUmakefile (_curr-ver): Tone down previous patch.
3883
3884         Don't allow installation with stale devel version number.
3885         * top/GNUmakefile (_is-install-target): New macro.
3886         (_curr-ver): Forbid installation with stale version number.
3887
3888 2008-07-20  Bruno Haible  <bruno@clisp.org>
3889
3890         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
3891         TESTS_ENVIRONMENT.
3892         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
3893
3894 2008-07-20  Bruno Haible  <bruno@clisp.org>
3895
3896         * lib/c-stack.h (c_stack_action): Add documentation.
3897         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
3898
3899 2008-07-20  Bruno Haible  <bruno@clisp.org>
3900
3901         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
3902         * modules/readlink (License): Likewise.
3903
3904 2008-07-17  Eric Blake  <ebb9@byu.net>
3905
3906         * modules/c-stack (Link): Fix typo.
3907
3908         Make c-stack use libsigsegv, when available.
3909         * modules/c-stack (Depends-on): Add libsigsegv.
3910         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
3911         needed.
3912         * lib/c-stack.c (SIGSTKSZ): Define fallback.
3913         (segv_handler, overflow_handler, c_stack_action)
3914         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
3915         implementation when libsigsegv is available, but only when using
3916         the library is necessary.
3917         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
3918         comment, explaining why XSI check fails on Linux.
3919         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
3920         * tests/test-c-stack2.sh: Tweak skip message.
3921         * NEWS: Document new link-time requirements.
3922
3923 2008-07-16  Eric Blake  <ebb9@byu.net>
3924
3925         c-stack: Expose false positives when not using libsigsegv.
3926         * modules/c-stack-tests (Files): Expand test.
3927         * tests/test-c-stack.c (main): Add means to conditionally trigger
3928         non-overflow SIGSEGV.
3929         * tests/test-c-stack2.sh: New file.
3930
3931 2008-07-14  Bruno Haible  <bruno@clisp.org>
3932
3933         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
3934         Reported by Eric Blake.
3935
3936 2008-07-14  Sam Steingold  <sds@gnu.org>
3937             Bruno Haible  <bruno@clisp.org>
3938
3939         New module libsigsegv.
3940         * modules/libsigsegv: New file.
3941         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
3942         modifications.
3943         * MODULES.html.sh (Signal handling): New section.
3944
3945 2008-07-14  Bruno Haible  <bruno@clisp.org>
3946
3947         * modules/unictype/ctype-* (Description): Add the word "function".
3948         Improves the resulting doc in MODULES.html.
3949
3950 2008-07-12  Ben Pfaff  <blp@gnu.org>
3951
3952         Add longlong module.
3953         * modules/longlong: New file.
3954
3955 2008-07-12  Bruno Haible  <bruno@clisp.org>
3956
3957         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
3958         to empty.
3959
3960 2008-07-10  Ben Pfaff  <blp@gnu.org>
3961
3962         Add isnan module.
3963         * doc/posix-functions/isnan.texi: Mention new module.
3964         * lib/math.in.h: Define isnan macro if we have decided to replace
3965         it.
3966         * m4/isnan.m4: New file.
3967         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
3968         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
3969         also.
3970         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
3971         redundancy.
3972         * m4/math_h.m4: Initialize and substitute variables for isnan
3973         module.
3974         * modules/isnan: New file.
3975         * modules/isnan-tests: New file.
3976         * modules/math: Add substitutions for new module.
3977         * tests/test-isnan.c: New file.
3978         * MODULES.html.sh: Mention new module.
3979
3980 2008-07-10  Ben Pfaff  <blp@gnu.org>
3981
3982         Add isnanf module.
3983         * lib/isnanf.m4: New file.
3984         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
3985         (gl_HAVE_ISNANF_IN_LIBM): New macro.
3986         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
3987         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
3988         * modules/isnanf: New file.
3989         * modules/isnanf-tests: New file.
3990         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
3991         files.
3992         * tests/test-isnanf-nolibm.c: factored most of its contents into
3993         new file tests/test-isnanf.h.
3994         * tests/test-isnanf.h: New file.
3995         * tests/test-isnanf.c: New file.
3996         * MODULES.html.sh: Mention new module.
3997         * doc/glibc-functions/isnanf.texi: Mention new module.
3998
3999 2008-07-10  Ben Pfaff  <blp@gnu.org>
4000
4001         Add isnand module.
4002         * lib/isnand.h: New file.
4003         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
4004         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
4005         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
4006         functionality also.
4007         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
4008         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
4009         (gl_HAVE_ISNAND_IN_LIBM): New macro.
4010         * modules/isnand: New file.
4011         * modules/isnand-tests: New file.
4012         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
4013         files.
4014         * tests/test-isnand-nolibm.c: factored most of its contents into
4015         new file tests/test-isnand.h.
4016         * tests/test-isnand.h: New file.
4017         * tests/test-isnand.c: New file.
4018         * MODULES.html.sh: Mention new module.
4019
4020 2008-07-10  Ben Pfaff  <blp@gnu.org>
4021
4022         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
4023         * lib/isnand.h: Rename lib/isnand-nolibm.h.
4024         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
4025         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
4026         * modules/isnanf-nolibm: Update references to renamed files.
4027         * modules/isnand-nolibm: Likewise.
4028         * modules/isnanf-nolibm-tests: Likewise.
4029         * modules/isnand-nolibm-tests: Likewise.
4030         * lib/frexp.c: Likewise.
4031         * lib/isfinite.c: Likewise.
4032         * lib/signbitd.c: Likewise.
4033         * lib/signbitf.c: Likewise.
4034         * lib/vasnprintf.c: Likewise.
4035         * tests/test-ceilf1.c: Likewise.
4036         * tests/test-ceilf2.c: Likewise.
4037         * tests/test-floorf1.c: Likewise.
4038         * tests/test-floorf2.c: Likewise.
4039         * tests/test-frexp.c: Likewise.
4040         * tests/test-round1.c: Likewise.
4041         * tests/test-round2.c: Likewise.
4042         * tests/test-roundf1.c: Likewise.
4043         * tests/test-strtod.c: Likewise.
4044         * tests/test-trunc1.c: Likewise.
4045         * tests/test-trunc2.c: Likewise.
4046         * tests/test-truncf1.c: Likewise.
4047         * tests/test-truncf2.c: Likewise.
4048         * NEWS: Mention the renamed header files.
4049
4050 2008-07-11  Jim Meyering  <meyering@redhat.com>
4051
4052         vc-list-files: make the last-resort awk code more portable
4053         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
4054         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
4055         does not support it.
4056
4057 2008-07-10  Eric Blake  <ebb9@byu.net>
4058
4059         Work with tar's bootstrap.
4060         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
4061         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
4062         an m4 comment.
4063
4064 2008-07-09  Jim Meyering  <meyering@redhat.com>
4065
4066         posix-shell.m4: fix typo that made this test malfunction
4067         * m4/posix-shell.m4: Remove capitalization in variable name.
4068
4069 2008-07-08  Bruno Haible  <bruno@clisp.org>
4070
4071         * m4/onceonly.m4: Update comments.
4072         Reported by Ben Pfaff <blp@cs.stanford.edu>.
4073
4074 2008-07-04  Jim Meyering  <meyering@redhat.com>
4075
4076         * users.txt: Add vc-dwim.
4077         (bison, coreutils): Use the gitweb URL.
4078
4079 2008-07-03  Jim Meyering  <meyering@redhat.com>
4080
4081         * users.txt: Add libffcall.  From Sam Steingold.
4082
4083 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
4084
4085         getdate.y: do not ignore TZ with relative day, month or year offset
4086         * lib/getdate.y (get_date): Move the tz-handling block to follow the
4087         relative-date-handling, since otherwise, the latter would clobber the
4088         sole output (an updated Start value) of the tz-handling block.
4089         * tests/test-getdate.c: Tests for the fix
4090
4091 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4092
4093         Recognize 'foo_LIBRARIES += libgnu.a'.
4094         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
4095         makefile snippet has already specified an installation location,
4096         also using '+='.
4097
4098 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
4099
4100         getdate.y: factor out common actions
4101         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
4102         Use them in place of open-coded actions.
4103
4104 2008-07-01  Simon Josefsson  <simon@josefsson.org>
4105
4106         Add self-test for getdate module.
4107         * modules/getdate-tests: New file.
4108         * tests/test-getdate.c: New file.
4109
4110 2008-06-29  Bruno Haible  <bruno@clisp.org>
4111
4112         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
4113         .gitignore.
4114         Reported by Sylvain Beucler <beuc@beuc.net>.
4115
4116 2008-06-29  Bruno Haible  <bruno@clisp.org>
4117
4118         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
4119         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
4120
4121 2008-06-29  Bruno Haible  <bruno@clisp.org>
4122
4123         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
4124         EXTRA_DIST.
4125         Reported by Sylvain Beucler <beuc@beuc.net>.
4126
4127 2008-06-26  Jim Meyering  <meyering@redhat.com>
4128
4129         make several modules depend on the "open" module
4130         This provides slightly increased consistency when opening-for-write
4131         the name of a non-directory spelled with a trailing slash.
4132         * modules/chdir-safer: Likewise.
4133         * modules/chown: Likewise.
4134         * modules/clean-temp: Likewise.
4135         * modules/copy-file: Likewise.
4136         * modules/fchdir: Likewise.
4137         * modules/fcntl-safer: Likewise.
4138         * modules/pipe: Likewise.
4139         * modules/utime: Likewise.
4140         Prompted by Eric Blake and Bruno Haible.
4141
4142 2008-06-24  Andreas Schwab  <schwab@suse.de>
4143
4144         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
4145         literals can be used as initializers for global variables.
4146
4147 2008-06-23  Eric Blake  <ebb9@byu.net>
4148
4149         Make gnulib-cache.m4 easier to diff.
4150         * gnulib-tool (func_import): Allow newlines when reading cached
4151         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
4152
4153 2008-06-23  Bruno Haible  <bruno@clisp.org>
4154
4155         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
4156         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
4157         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
4158         m4/signalblocking.m4.
4159         (gl_PREREQ_SIGACTION): Don't invoke it.
4160         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
4161         gl_PREREQ_SIG_HANDLER_H.
4162         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
4163         Don't check for sigaction here.
4164
4165 2008-06-23  Bruno Haible  <bruno@clisp.org>
4166
4167         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
4168         (install_handlers): Don't set the SA_RESETHAND flag.
4169
4170 2008-06-23  Bruno Haible  <bruno@clisp.org>
4171
4172         * m4/sigaction.m4: Comment fixes.
4173         * lib/signal.in.h: Likewise.
4174
4175 2008-06-23  Eric Blake  <ebb9@byu.net>
4176
4177         Fix typo.
4178         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
4179
4180         Avoid SA_ namespace.
4181         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
4182         Reported by Ralf Wildenhues.
4183
4184         Avoid test failure due to SA_RESTORER.
4185         * tests/test-sigaction.c (SA_MASK): New macro.
4186         (main): Avoid failing due to extension flags being set.
4187         Reported by Jim Meyering.
4188
4189         Revert use of sig-handler.h in sigprocmask.c.
4190         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
4191         it requires the existence of struct sigaction.
4192         * lib/sigprocmask.c (handler_t): Restore typedef.
4193         (rpl_signal, old_handlers): Use local type.
4194
4195 2008-06-22  Bruno Haible  <bruno@clisp.org>
4196
4197         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
4198         conditionally.
4199         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
4200
4201 2008-06-22  Bruno Haible  <bruno@clisp.org>
4202
4203         * doc/posix-functions/siginterrupt.texi: Move note.
4204
4205         * lib/signal.in.h (SA_RESTART): New macro.
4206         * lib/sigaction.c: Update comment.
4207
4208         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
4209
4210         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
4211         (gl_PREREQ_SIGPROCMASK): Invoke it.
4212         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
4213
4214         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
4215
4216         * lib/sigprocmask.c: Update a comment.
4217
4218 2008-06-21  Eric Blake  <ebb9@byu.net>
4219
4220         Use sigaction module rather than signal().
4221         * modules/c-stack (Depends-on): Add sigaction.
4222         * modules/fatal-signal (Depends-on): Likewise.
4223         * modules/nanosleep (Depends-on): Likewise.
4224         * modules/sigprocmask (Files): Add sig-handler.h.
4225         * modules/sigaction (Files): Likewise.
4226         * lib/sig-handler.h (get_handler): New file, suggested by Paul
4227         Eggert.
4228         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
4229         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
4230         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
4231         (init_fatal_signals): Likewise.
4232         * lib/nanosleep.c (rpl_nanosleep): Likewise.
4233         (siginterrupt): Delete fallback.
4234         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
4235         instead.
4236         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
4237         siginterrupt.
4238
4239         New module sigaction, for mingw.
4240         * modules/sigaction: New module...
4241         * modules/sigaction-tests: ...and its test.
4242         * m4/sigaction.m4: New file.
4243         * lib/sigaction.c: Likewise.
4244         * tests/test-sigaction.c: Likewise.
4245         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
4246         * modules/signal (Makefile.am): Likewise.
4247         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
4248         needed.
4249         * doc/posix-headers/signal.texi (signal.h): Mention provided
4250         types.
4251         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
4252         that sigaction is preferable.
4253         * doc/posix-functions/sigaction.texi (sigaction): Mention new
4254         module.
4255         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
4256         sigaction.
4257
4258         Improve robustness of sigprocmask by overriding signal.
4259         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
4260         is in use.
4261         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
4262         (SIGKILL, SIGSTOP): Provide fallbacks.
4263         (rpl_signal): Implement.
4264         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
4265         signal can be called inside handlers.
4266
4267         Fix nanosleep module on mingw.
4268         * modules/nanosleep (Depends-on): Add sys_select.
4269         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
4270
4271         Fix licensing of sigprocmask.
4272         * modules/raise (License): Relicense as LGPL.
4273
4274 2008-06-21  Bruno Haible  <bruno@clisp.org>
4275
4276         * lib/propername.c (proper_name_utf8): Don't use the transliterated
4277         result if it contains question marks.
4278         Reported by Michael Geng <linux@michaelgeng.de>.
4279
4280 2008-06-19  Bruno Haible  <bruno@clisp.org>
4281
4282         Fix CVS-ism.
4283         * doc/gnulib.texi: Include updated-stamp.texi.
4284         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
4285         (updated-stamp.texi): New rule.
4286         (gnulib.info): Depend on it.
4287         * doc/.gitignore: Add updated-stamp.texi.
4288         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
4289
4290 2008-06-19  Bruno Haible  <bruno@clisp.org>
4291
4292         * doc/Makefile (gnulib.info): Update and simplify dependencies.
4293         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
4294
4295 2008-06-19  Eric Blake  <ebb9@byu.net>
4296
4297         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
4298         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
4299         Reported by Stepan Kasal.
4300
4301 2008-06-18  Bruno Haible  <bruno@clisp.org>
4302
4303         * lib/fatal-signal.c (init_fatal_signals): Add comment.
4304         Reported by Eric Blake.
4305
4306 2008-06-18  Eric Blake  <ebb9@byu.net>
4307
4308         Work around cygwin 1.5.25 strsignal bug.
4309         * tests/test-strsignal.c: Allow for const char *.
4310         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
4311
4312 2008-06-18  Simon Josefsson  <simon@josefsson.org>
4313
4314         * users.txt: Update URL to article and add author/date
4315         information.
4316
4317 2008-06-17  Bruno Haible  <bruno@clisp.org>
4318
4319         New macro gl_DISABLE_THREADS.
4320         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
4321         if the user did not pass --enable-threads or --disable-threads option.
4322         (gl_DISABLE_THREADS): New macro.
4323         Reported by Eric Blake <ebb9@byu.net>.
4324
4325 2008-06-17  Bruno Haible  <bruno@clisp.org>
4326
4327         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
4328         when the macro ignores it.
4329         Based on a patch by Eric Blake <ebb9@byu.net>.
4330
4331 2008-06-17  Bruno Haible  <bruno@clisp.org>
4332
4333         * modules/tls (License): Change to LGPLv2+.
4334         Reported by Eric Blake.
4335
4336 2008-06-17  Eric Blake  <ebb9@byu.net>
4337
4338         Simplify c-stack prerequisites.
4339         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
4340         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
4341         no longer requires <ucontext.h> to exist.  Optimize setrlimit
4342         check.
4343         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
4344         <sys/resource.h>.
4345
4346         Move c-stack test into testsuite.
4347         * modules/c-stack-tests: New file.
4348         * lib/c-stack.c [DEBUG]: Move test program...
4349         * tests/test-c-stack.c: ...into this new file.  Skip rather than
4350         fail test if sigaltstack is lacking.
4351         * tests/test-c-stack.sh: New driver file.
4352
4353 2008-06-16  Eric Blake  <ebb9@byu.net>
4354
4355         Use raise module consistently.
4356         * modules/fatal-signal (Depends-on): Add raise.
4357         * modules/sigprocmask (Depends-on): Likewise.
4358         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
4359         * lib/sigprocmask.c (sigprocmask): Likewise.
4360         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
4361         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
4362
4363         Fix compliance bug in sigpending.
4364         * lib/sigprocmask.c (sigpending): Return pending array via
4365         parameter, not return value.
4366
4367 2008-06-14  Eric Blake  <ebb9@byu.net>
4368
4369         Improve obstack-printf test code.
4370         * tests/test-obstack-printf.c (test_function): Fix comment, and
4371         simplify usage of obstack_* in macros.  Add a test for coverage.
4372         Reported by Bruno Haible.
4373
4374 2008-06-14  Bruno Haible  <bruno@clisp.org>
4375
4376         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
4377         array size as a constant, not as a const variable.
4378         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
4379         AC_USE_SYSTEM_EXTENSIONS.
4380         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
4381         Test whether the obstack_printf function actually exists.
4382         * modules/obstack-printf (Depends-on): Add extensions.
4383         (Include): Remove obstack.h.
4384         * modules/obstack-printf-posix (Depends-on): Add extensions.
4385         (Include): Remove obstack.h.
4386
4387 2008-06-13  Eric Blake  <ebb9@byu.net>
4388
4389         Add obstack-printf and obstack-printf-posix modules.
4390         * modules/obstack-printf: New file.
4391         * modules/obstack-printf-posix: Likewise.
4392         * MODULES.html.sh (Misc): Mention them.
4393         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
4394         Likewise.
4395         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
4396         Likewise.
4397         * modules/stdio (Makefile.am): Accomodate new modules.
4398         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
4399         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
4400         Declare.
4401         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
4402         functions.
4403         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
4404         (gl_REPLACE_OBSTACK_PRINTF): New macros
4405         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
4406         * tests/test-obstack-printf.c: New file.
4407         * modules/obstack-printf-tests: Likewise.
4408         * modules/obstack-printf-posix-tests: Likewise.
4409
4410 2008-06-11  Bruno Haible  <bruno@clisp.org>
4411
4412         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
4413         * lib/open.c: Include errno.h.
4414         (open): Fail when attempting to write to a file that has a trailing
4415         slash.
4416         * tests/test-open.c (main): Test against trailing slash bug.
4417         * doc/posix-functions/open.texi: Mention the trailing slash bug.
4418
4419 2008-06-10  Bruno Haible  <bruno@clisp.org>
4420
4421         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
4422         for $? to work inside the trap command, with various /bin/sh-s.
4423         * tests/test-vc-list-files-cvs.sh: Likewise.
4424
4425 2008-06-10  Bruno Haible  <bruno@clisp.org>
4426
4427         * lib/acl-internal.h: Don't include gettext.h here.
4428         * lib/set-mode-acl.c: Include gettext.h here.
4429         * lib/copy-acl.c: Likewise.
4430
4431 2008-06-10  Bruno Haible  <bruno@clisp.org>
4432
4433         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
4434         * lib/wait-process.c (wait_subprocess): Likewise.
4435         * lib/execute.h (execute): Add termsigp argument.
4436         * lib/execute.c (execute): Likewise.
4437         * lib/csharpcomp.c (compile_csharp_using_pnet,
4438         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
4439         * lib/csharpexec.c (execute_csharp_using_pnet,
4440         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
4441         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
4442         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
4443         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
4444         is_jikes_present): Update.
4445         * lib/javaexec.c (execute_java_class): Update.
4446         * lib/javaversion.c (execute_and_read_line): Update.
4447         * NEWS: Document the changes.
4448         Reported by Eric Blake.
4449
4450 2008-06-10  Eric Blake  <ebb9@byu.net>
4451
4452         Add missing include.
4453         * tests/test-strstr.c (includes): Add <signal.h>.
4454         * tests/test-strcasestr.c (includes): Likewise.
4455         * tests/test-memmem.c (includes): Likewise.
4456
4457 2008-06-10  Bruno Haible  <bruno@clisp.org>
4458
4459         * lib/wait-process.c (wait_subprocess): Add an assertion.
4460
4461 2008-06-10  Bruno Haible  <bruno@clisp.org>
4462
4463         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
4464
4465 2008-06-10  Bruno Haible  <bruno@clisp.org>
4466
4467         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
4468         using alarm().
4469         * tests/test-strcasestr.c (main): Likewise.
4470         * tests/test-strstr.c (main): Likewise.
4471
4472 2008-06-09  Bruno Haible  <bruno@clisp.org>
4473
4474         Work around the Solaris 10 ACE ACLs ABI change.
4475         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
4476         declare if ACL_NO_TRIVIAL is present.
4477         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
4478         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
4479         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
4480         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
4481         define if ACL_NO_TRIVIAL is present.
4482         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
4483         and use the current ABI.
4484         (file_has_acl): Use same #if condition as elsewhere.
4485         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
4486         in use, and use the current ABI.
4487         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
4488         Reported by Jim Meyering.
4489
4490 2008-06-09  Eric Blake  <ebb9@byu.net>
4491
4492         Work around environments that (stupidly) ignore SIGALRM.
4493         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
4494         before using alarm().
4495         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
4496         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
4497         Reported by Ian Beckwith <ianb@erislabs.net>.
4498
4499         Produce autobuild blurb earlier in log.
4500         * modules/autobuild (configure.ac-early): Move AB_INIT here.
4501
4502 2008-06-09  Jim Meyering  <meyering@redhat.com>
4503         and OndÅ™ej Vašík  <ovasik@redhat.com>
4504
4505         utimens.c: correct kernel bug work-around
4506         OndÅ™ej Vašík found that the invalid return value of 280 indicates
4507         failure, not success, and the kernel bug we're trying to work
4508         around affects not just the utimensat call, but also the fallback
4509         futimens call.
4510         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
4511         not success.
4512         [HAVE_FUTIMENS]: Use the same work-around, here.
4513
4514 2008-06-09  Jim Meyering  <meyering@redhat.com>
4515
4516         add more guards around definition of ACE_-related code
4517         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
4518         ALLOW and ACE_OWNER are also defined.
4519
4520 2008-06-08  Bruno Haible  <bruno@clisp.org>
4521
4522         * lib/acl-internal.h: Add me as co-author.
4523         * lib/file-has-acl.c: Likewise.
4524         * lib/set-mode-acl.c: Likewise.
4525         * lib/copy-acl.c: Likewise.
4526
4527 2008-06-08  Bruno Haible  <bruno@clisp.org>
4528
4529         Add support for AIX ACLs.
4530         * lib/acl-internal.h (acl_nontrivial): New declaration.
4531         * lib/file-has-acl.c (acl_nontrivial): New function.
4532         (file_has_acl): Add implementation using AIX 4 ACL API.
4533         * lib/set-mode-acl.c (qset_acl): Likewise.
4534         * lib/copy-acl.c (qcopy_acl): Likewise.
4535
4536 2008-06-08  Bruno Haible  <bruno@clisp.org>
4537
4538         Add support for HP-UX ACLs.
4539         * lib/acl-internal.h (acl_nontrivial): New declaration.
4540         * lib/file-has-acl.c (acl_nontrivial): New function.
4541         (file_has_acl): Add implementation using HP-UX 11 ACL API.
4542         * lib/set-mode-acl.c (qset_acl): Likewise.
4543         * lib/copy-acl.c (qcopy_acl): Likewise.
4544
4545 2008-06-08  Bruno Haible  <bruno@clisp.org>
4546
4547         Add support for Cygwin ACLs.
4548         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
4549         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
4550         the chmod_or_fchmod call.
4551         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
4552
4553 2008-06-08  Bruno Haible  <bruno@clisp.org>
4554
4555         Fix bug with setuid modes in Solaris 10+ code.
4556         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
4557         succeeded, when the mode contains some special bits.
4558
4559 2008-06-08  Bruno Haible  <bruno@clisp.org>
4560
4561         Add support for Solaris 7..10 ACLs.
4562         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
4563         declarations.
4564         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
4565         functions.
4566         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
4567         * lib/set-mode-acl.c (qset_acl): Likewise.
4568         * lib/copy-acl.c (qcopy_acl): Likewise.
4569
4570 2008-06-08  Bruno Haible  <bruno@clisp.org>
4571
4572         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
4573         declaration.
4574         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
4575         (acl_access_nontrivial): Remove MacOS X case.
4576         (file_has_acl): Use acl_extended_nontrivial.
4577         * lib/copy-acl.c (qcopy_acl): Likewise.
4578
4579 2008-06-08  Bruno Haible  <bruno@clisp.org>
4580
4581         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
4582
4583 2008-06-08  Jim Meyering  <meyering@redhat.com>
4584
4585         * modules/acl (Maintainer): Add Bruno Haible.
4586
4587 2008-06-07  Bruno Haible  <bruno@clisp.org>
4588
4589         Improve support for Tru64 ACLs.
4590         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
4591         ACL on OSF/1.
4592
4593 2008-06-07  Bruno Haible  <bruno@clisp.org>
4594
4595         Add support for MacOS X ACLs.
4596         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
4597         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
4598         * lib/set-mode-acl.c (qset_acl): Likewise.
4599         * lib/copy-acl.c (qcopy_acl): Likewise.
4600
4601 2008-06-07  Bruno Haible  <bruno@clisp.org>
4602
4603         Fix memory leak introduced on 2008-05-22.
4604         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
4605         use.
4606
4607 2008-06-07  Bruno Haible  <bruno@clisp.org>
4608
4609         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
4610         to construct an empty ACL.
4611
4612 2008-06-07  Bruno Haible  <bruno@clisp.org>
4613
4614         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
4615         precisely.
4616         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
4617
4618 2008-06-07  Bruno Haible  <bruno@clisp.org>
4619
4620         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
4621         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
4622
4623 2008-06-07  Bruno Haible  <bruno@clisp.org>
4624
4625         * doc/posix-functions/_setjmp.texi: Explain the use of this function
4626         regardless of POSIX.
4627         * doc/posix-functions/_longjmp.texi: Likewise.
4628         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
4629         SystemV platform in this case.
4630
4631 2008-06-06  Eric Blake  <ebb9@byu.net>
4632
4633         Document abort() bugs.
4634         * doc/posix-functions/abort.texi (abort): Mention anomalies.
4635
4636         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
4637         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
4638         sigsetjmp.
4639         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
4640         siglongjmp, but only as a macro.
4641         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
4642         is obsolete.
4643         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
4644
4645         Tweak documentation to cover cygwin argz bugs.
4646         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
4647         argz bug fix; no code change needed since no cygwin releases
4648         occurred between the last fix and the bug being tested.
4649         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
4650         module and recently fixed cygwin bugs.
4651         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
4652         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
4653         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
4654         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
4655         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
4656         Likewise.
4657         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
4658         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
4659         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
4660         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
4661         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
4662         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
4663         Likewise.
4664
4665         Avoid gcc warning on cygwin.
4666         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
4667         !ACL_NO_TRIVIAL]: Avoid unused variable.
4668
4669 2008-06-05  Eric Blake  <ebb9@byu.net>
4670
4671         Be tolerant of UNKNOWN version in gnulib-tool test dir.
4672         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
4673         git-version-gen fails to come up with a version.
4674         Reported by Simon Josefsson.
4675
4676 2008-06-05  Jim Meyering  <meyering@redhat.com>
4677             Paul Eggert  <eggert@cs.ucla.edu>
4678
4679         utimens.c: work around a probable Linux kernel bug
4680         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
4681         appears to be a kernel bug that causes utimensat to return 280
4682         instead of 0, indicating success.
4683
4684 2008-06-04  Bruno Haible  <bruno@clisp.org>
4685
4686         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
4687         2008-06-01 commit.
4688
4689 2008-06-04  Bruno Haible  <bruno@clisp.org>
4690
4691         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
4692         * lib/file-has-acl.c (acl_access_nontrivial): New function.
4693         (file_has_acl): Use it. Save errno afterwards.
4694         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
4695
4696 2008-06-03  Bruno Haible  <bruno@clisp.org>
4697
4698         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
4699         draft code. Simplify #ifs.
4700         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
4701         Put Solaris code after POSIX-draft code. Fix comments regarding
4702         Solaris 10, HP-UX. Mention Cygwin.
4703         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
4704
4705 2008-06-03  Eric Blake  <ebb9@byu.net>
4706
4707         Provide fallback for older kernels.
4708         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
4709         Provide runtime fallback if kernel lacks support.
4710         Reported by Mike Frysinger.
4711
4712 2008-06-02  Bruno Haible  <bruno@clisp.org>
4713
4714         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
4715         it exists.
4716
4717 2008-06-02  Bruno Haible  <bruno@clisp.org>
4718
4719         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
4720         * lib/copy-acl.c (qcopy_acl): Update comment.
4721
4722 2008-06-02  Bruno Haible  <bruno@clisp.org>
4723
4724         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
4725         like ACL APIs.
4726
4727 2008-06-02  Bruno Haible  <bruno@clisp.org>
4728
4729         * tests/test-file-has-acl.sh: Use different code for Cygwin.
4730         * tests/test-set-mode-acl.sh: Likewise.
4731         * tests/test-copy-acl.sh: Likewise.
4732         * tests/test-copy-file.sh: Likewise.
4733
4734 2008-06-02  Bruno Haible  <bruno@clisp.org>
4735
4736         * tests/test-file-has-acl.sh: Remove unused code.
4737
4738 2008-06-01  Bruno Haible  <bruno@clisp.org>
4739
4740         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
4741         (copy_acl): Just a wrapper around qcopy_acl that emits the error
4742         messages.
4743         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
4744
4745 2008-06-01  Bruno Haible  <bruno@clisp.org>
4746
4747         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
4748         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
4749         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
4750         APIs.
4751         * modules/acl-tests (configure.ac): Remove tests now contained in
4752         m4/acl.m4.
4753
4754 2008-06-02  Jim Meyering  <meyering@redhat.com>
4755
4756         announce-gen: use a better key-server host name
4757         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
4758         it may be more consistently reliable.  Suggested by Werner Koch
4759         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
4760
4761 2008-06-01  Bruno Haible  <bruno@clisp.org>
4762
4763         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
4764         Reported by Voroskoi Andras <voroskoi@gmail.com>.
4765
4766 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
4767
4768         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
4769
4770 2008-06-01  Bruno Haible  <bruno@clisp.org>
4771
4772         New ACL tests.
4773         * tests/test-file-has-acl.sh: New file.
4774         * tests/test-file-has-acl.c: New file.
4775         * tests/test-set-mode-acl.sh: New file.
4776         * tests/test-set-mode-acl.c: New file.
4777         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
4778         * tests/test-copy-acl.c: New file.
4779         * modules/acl-tests: New file, based on modules/copy-file-tests.
4780         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
4781         (Depends-on): Add acl-tests.
4782         (configure.ac): Remove checks.
4783         (Makefile.am): Don't create test-sameacls program here any more.
4784
4785 2008-06-01  Bruno Haible  <bruno@clisp.org>
4786
4787         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
4788         * tests/test-sameacls.c: Include progname.h.
4789         (main): Invoke set_program_name. Portability fixes for MacOS X,
4790         Solaris, HP-UX.
4791
4792 2008-06-01  Bruno Haible  <bruno@clisp.org>
4793
4794         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
4795         function.
4796         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
4797
4798 2008-06-01  Bruno Haible  <bruno@clisp.org>
4799
4800         * modules/rpmatch (Depends-on): Add strdup.
4801
4802 2008-06-01  Bruno Haible  <bruno@clisp.org>
4803
4804         * lib/pipe.c: Include unistd-safer.h.
4805         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
4806         * modules/pipe (Depends-on): Add unistd-safer.
4807
4808 2008-05-30  Simon Josefsson  <simon@josefsson.org>
4809
4810         * modules/autobuild (configure.ac): Call AB_INIT.
4811
4812 2008-05-30  Simon Josefsson  <simon@josefsson.org>
4813
4814         * tests/test-getaddrinfo.c: Don't print debug messages by default.
4815         Suggested by Bruno Haible <bruno@clisp.org>.
4816
4817 2008-05-30  Simon Josefsson  <simon@josefsson.org>
4818
4819         * tests/test-base64.c: Cast size_t to unsigned long when invoking
4820         printf.  Use %lu instead of %d.  Reported by Bruno Haible
4821         <bruno@clisp.org>.
4822
4823 2008-05-29  Eric Blake  <ebb9@byu.net>
4824
4825         Prefer new POSIX 200x interfaces over futimesat.
4826         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
4827         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
4828         when available.
4829         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
4830
4831 2008-05-28  Bruno Haible  <bruno@clisp.org>
4832
4833         * modules/stpcpy (License): Change to LGPLv2+.
4834         Requested by David Lutterkort <dlutter@redhat.com>.
4835
4836 2008-05-27  Bruno Haible  <bruno@clisp.org>
4837
4838         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
4839         current mingw.
4840         Reported by Jose E. Marchesi <jemarch@gnu.org>.
4841
4842 2008-05-27  Bruno Haible  <bruno@clisp.org>
4843
4844         * modules/iconv_open (Link): New section, from module 'iconv'.
4845         * modules/striconv (Link): Likewise.
4846         * modules/striconveh (Link): Likewise.
4847         * modules/xstriconv (Link): Likewise.
4848         * modules/unicodeio (Link): Likewise.
4849         * modules/propername (Link): Likewise.
4850         Reported by Jim Meyering.
4851
4852 2008-05-26  Jim Meyering  <meyering@redhat.com>
4853
4854         sha256: do not artificially restrict buffer length to be < 2^32
4855         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
4856         uint32_t to size_t.
4857         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
4858         to match.
4859
4860         avoid unaligned access errors, e.g., on sparc
4861         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
4862         direct access through a possibly-unaligned uint64* pointer.
4863         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
4864         direct access through a possibly-unaligned uint32* pointer.
4865         Prompted by this patch from Tom "spot" Callaway:
4866         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
4867
4868         sha512.c: fix typo in comment
4869         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
4870
4871 2008-05-25  Bruno Haible  <bruno@clisp.org>
4872
4873         * lib/set-mode-acl.c: Renamed from lib/acl.c.
4874         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
4875         (Makefile.am): Update lib_SOURCES.
4876
4877 2008-05-25  Bruno Haible  <bruno@clisp.org>
4878
4879         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
4880
4881 2008-05-25  Jim Meyering  <meyering@redhat.com>
4882
4883         useless-if-before-free: freed expr may have white-space differences
4884         * build-aux/useless-if-before-free: Recognize cases in which the
4885         freed expression differs from the tested one in embedded white
4886         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
4887         $1 was used, so we can't make any regexp shy.  Improved tests now
4888         detect this.
4889
4890         useless-if-before-free: accept white space in the expression.
4891         * build-aux/useless-if-before-free: For now, any white space
4892         in the expression must be identical in the free argument.
4893
4894         useless-if-before-free: efficiency tweak
4895         * build-aux/useless-if-before-free: Make the expression-matching
4896         regexp "shy".
4897         Make the *outer* regexp shy, not the expr-matching one.
4898
4899         update code-in-comment to accept cast of free arg
4900         * build-aux/useless-if-before-free: Update regexp.
4901
4902 2008-05-25  Bruno Haible  <bruno@clisp.org>
4903
4904         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
4905         * modules/copy-file-tests (Files, Makefile.am): Update.
4906         * tests/test-copy-file.c (func_test_copy): Update.
4907
4908 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
4909
4910         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
4911
4912 2008-05-23  Bruno Haible  <bruno@clisp.org>
4913
4914         Improve support for ACLs on OSF/1.
4915         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
4916         Remove fallback for unknown flavors of ACLs.
4917
4918 2008-05-22  Bruno Haible  <bruno@clisp.org>
4919
4920         Add support for ACLs on OSF/1.
4921         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
4922         replacements.
4923         (acl_free_text): New macro fallback.
4924         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
4925         acl_free.
4926         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
4927         acl_free_text function. Require AC_C_INLINE.
4928
4929 2008-05-22  Bruno Haible  <bruno@clisp.org>
4930
4931         Make copy_acl work on MacOS X 10.5.
4932         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
4933         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
4934         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
4935         If MODE_INSIDE_ACL, don't assume that every system has the same text
4936         representation for ACLs as FreeBSD.
4937         * lib/copy-acl.c (copy_acl): Add support for platforms with
4938         !MODE_INSIDE_ACL.
4939         * lib/file-has-acl.c (file_has_acl): Likewise.
4940         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
4941         FreeBSD, MacOS X, or IRIX, respectively.
4942
4943 2008-05-22  Bruno Haible  <bruno@clisp.org>
4944
4945         * lib/acl.h: Don't include <sys/acl.h>.
4946         (GETACLCNT): Move fallback to lib/acl-internal.h.
4947         * lib/acl-internal.h: Include <sys/acl.h> here.
4948         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
4949
4950 2008-05-22  Bruno Haible  <bruno@clisp.org>
4951
4952         Split off copy_acl function to separate file.
4953         * lib/copy-acl.c: New file, extracted from lib/acl.c.
4954         * lib/acl.c (copy_acl): Moved function to separate file.
4955         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
4956         * modules/acl (Files): Add lib/copy-acl.c.
4957         (Makefiles.am): Augment lib_SOURCES.
4958
4959 2008-05-22  Bruno Haible  <bruno@clisp.org>
4960
4961         * modules/copy-file-tests: New file.
4962         * tests/test-copy-file.sh: New file.
4963         * tests/test-copy-file.c: New file.
4964         * tests/test-copy-file-sameacls.c: New file.
4965
4966 2008-05-22  Eric Blake  <ebb9@byu.net>
4967
4968         Avoid gcc warning.
4969         * tests/test-memcmp.c (main): Pass NULL indirectly.
4970
4971 2008-05-21  Bruno Haible  <bruno@clisp.org>
4972
4973         Add reference doc about ACLs.
4974         * doc/acl-resources.txt: New file.
4975         * doc/acl-cygwin.txt: New file.
4976
4977 2008-05-21  Bruno Haible  <bruno@clisp.org>
4978
4979         Avoid one more warning from gcc.
4980         * lib/vasnprintf.c (IF_LINT): Update comments.
4981         (VASNPRINTF): Use it also for the 'prefix' array initializer.
4982
4983 2008-05-21  Jim Meyering  <meyering@redhat.com>
4984
4985         avoid a warning from gcc
4986         * lib/vasnprintf.c (IF_LINT): Define.
4987         (scale10_round_decimal_long_double):
4988         Use it to avoid a "may be used uninitialized" warning.
4989         (scale10_round_decimal_double): Likewise.
4990
4991 2008-05-21  Simon Josefsson  <simon@josefsson.org>
4992
4993         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
4994         declared.
4995
4996 2008-05-20  Bruno Haible  <bruno@clisp.org>
4997
4998         * tests/test-memcmp.c (main): Test also the sign of the result. Test
4999         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
5000
5001 2008-05-20  Simon Josefsson  <simon@josefsson.org>
5002
5003         * modules/memcmp-tests: New file.
5004         * tests/test-memcmp.c: New file.
5005
5006 2008-05-19  Bruno Haible  <bruno@clisp.org>
5007
5008         * modules/propername (Notice, configure.ac): Put quoted "..." into
5009         --keyword option.
5010         * lib/propername.h: Update comments accordingly.
5011         Reported by Eric Blake.
5012
5013 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
5014
5015         * modules/getpass-gnu (Depends-on): Add fseeko.
5016
5017 2008-05-19  Simon Josefsson  <simon@josefsson.org>
5018
5019         * modules/base64-tests: New file.
5020
5021 2008-05-19  Bo Borgerson <gigabo@gmail.com>
5022
5023         * lib/base64.c (base64_decode_ctx): If a decode context structure
5024         was passed in use it to ignore newlines.  If a context structure
5025         was _not_ passed in, continue to treat newlines as garbage (this
5026         is the historical behavior).  Formerly base64_decode.
5027         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
5028         takes a decode context structure.
5029         * lib/base64.h (base64_decode): Macro for four-argument calls.
5030         (base64_decode_alloc): Likewise.
5031         * lib/base64.c (base64_decode_ctx): If a decode context structure
5032         was passed in use it to ignore newlines.  If a context structure
5033         was _not_ passed in, continue to treat newlines as garbage (this
5034         is the historical behavior).  Formerly base64_decode.
5035         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
5036         takes a decode context structure.
5037         * lib/base64.h (base64_decode): Macro for four-argument calls.
5038         (base64_decode_alloc): Likewise.
5039
5040 2008-05-19  Jim Meyering  <meyering@redhat.com>
5041
5042         avoid a warning from gcc
5043         * lib/trim.c (IF_LINT): Define.
5044         (trim2): Use it to avoid a "may be used uninitialized" warning.
5045
5046         Fix doc typo.
5047         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
5048
5049 2008-05-19  Bruno Haible  <bruno@clisp.org>
5050
5051         * doc/glibc-functions/getpass.texi: Document limits of other
5052         implementations.
5053
5054 2008-05-19  Simon Josefsson  <simon@josefsson.org>
5055             Bruno Haible <bruno@clisp.org>
5056
5057         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
5058
5059 2008-05-18  Bruno Haible  <bruno@clisp.org>
5060
5061         * modules/propername: New file, from GNU gettext.
5062         * lib/propername.h: New file, from GNU gettext.
5063         * lib/propername.c: New file, from GNU gettext.
5064         * MODULES.html.sh (Internationalization functions): Add propername.
5065
5066 2008-05-16  Jim Meyering  <meyering@redhat.com>
5067             Bruno Haible  <bruno@clisp.org>
5068
5069         Avoid some warnings from "gcc -Wshadow".
5070         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
5071
5072 2008-05-15  Eric Blake  <ebb9@byu.net>
5073
5074         Extend previous patch to cygwin 1.7.0.
5075         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
5076         fast implementation in cygwin >= 1.7.0.
5077         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
5078         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
5079
5080 2008-05-15  Bruno Haible  <bruno@clisp.org>
5081
5082         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
5083         implementation in glibc >= 2.9.
5084         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
5085         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
5086
5087 2008-05-15  Bruno Haible  <bruno@clisp.org>
5088
5089         * MODULES.html.sh (Internationalization functions): Remove linebreak.
5090         (Unicode string functions): Add unilbrk/*.
5091         Reported by Karl Berry.
5092
5093 2008-05-15  Eric Blake  <ebb9@byu.net>
5094
5095         Fix violation of <stdbool.h> replacement in regex.
5096         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
5097         * lib/regexec.c (re_search_internal): Likewise.
5098         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
5099
5100 2008-05-15  Jim Meyering  <meyering@redhat.com>
5101
5102         avoid distracting test output when git or cvs is not found
5103         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
5104         * tests/test-vc-list-files-git.sh: Likewise.
5105
5106 2008-05-15  Eric Blake  <ebb9@byu.net>
5107
5108         Glibc finally accepted the memmem speedup code, bugzilla #5514.
5109         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
5110         glibc version.
5111         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
5112         * doc/posix-functions/strstr.texi (strstr): Likewise.
5113         * lib/str-two-way.h (MAX): Sychronize with glibc.
5114
5115 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
5116
5117         * lib/regcomp.c (optimize_utf8): Add a note on why we test
5118         opr.ctx_type.
5119         (calc_first): Initialize constraint field.
5120         (duplicate_node_closure): Use it instead of special casing ANCHORS.
5121         Fix grammar.
5122         (duplicate_node): Merge constraint field for all node types.
5123         (calc_eclosure_iter): Look at constraint field for all node types.
5124         * lib/regex_internal.c (create_cd_newstate): Don't look at
5125         opr.ctx_type.
5126
5127 2008-05-14  Bruno Haible  <bruno@clisp.org>
5128
5129         Help GCC to do better code generation.
5130         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
5131         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
5132         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
5133         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
5134         Declare with attribute 'malloc' if supported.
5135
5136 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
5137
5138         use "echo STR|wc -c" rather than unportable "expr length STR"
5139         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
5140         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
5141
5142 2008-05-14  Jim Meyering  <meyering@redhat.com>
5143
5144         use dd ibs=$n count=1 ... rather than less-portable head -c$n
5145         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
5146         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
5147         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
5148         via Collin Lasse.
5149
5150 2008-05-14  Eric Blake  <ebb9@byu.net>
5151
5152         Avoid quadratic growth in gl_LIBSOURCES.
5153         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
5154         Suggested by Bruno Haible.
5155
5156         Test xmemdup0.
5157         * modules/xmemdup0-tests: New file.
5158         * tests/test-xmemdup0.c: Likewise.
5159
5160 2008-05-13  Eric Blake  <ebb9@byu.net>
5161
5162         Split xmemdup0 into its own module.
5163         * modules/xmemdup0: New file.
5164         * lib/xmemdup0.h: Likewise.
5165         * lib/xmemdup0.c: Likewise.
5166         * MODULES.html.sh (Memory management functions): Add xmemdup0.
5167         * lib/xalloc.h (xmemdup0): Remove.
5168         * lib/xmalloc.c (xmemdup0): Likewise.
5169
5170 2008-05-13  Eric Blake  <ebb9@byu.net>
5171             Bruno Haible  <bruno@clisp.org>
5172
5173         Reduce number of forks required during autoconf.
5174         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
5175         and gl_LIBSOURCES_DIR.
5176         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
5177         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
5178         m4_syscmd per file.
5179         <m4_foreach_w>: Move...
5180         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
5181
5182 2008-05-13  Eric Blake  <ebb9@byu.net>
5183
5184         * gnulib-tool: Fix various comment typos.
5185
5186 2008-05-12  Bruno Haible  <bruno@clisp.org>
5187
5188         Tailor the linebreaking algorithm.
5189         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
5190
5191 2008-05-12  Bruno Haible  <bruno@clisp.org>
5192
5193         Update to Unicode 5.0.0.
5194         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
5195         LBP_JV, LBP_JT. Redistribute values.
5196         (unilbrk_table): Change size.
5197         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
5198         Unicode TR#14 rev. 22.
5199         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
5200         LBP_JV, LBP_JT. Redistribute values.
5201         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
5202         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
5203         Update.
5204         * lib/unilbrk/lbrkprop1.h: Regenerated.
5205         * lib/unilbrk/lbrkprop2.h: Regenerated.
5206         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
5207         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
5208         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
5209         Likewise.
5210         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
5211         Likewise.
5212         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
5213         result.
5214         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
5215         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
5216         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
5217         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
5218         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
5219         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
5220
5221 2008-05-11  Bruno Haible  <bruno@clisp.org>
5222
5223         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
5224
5225 2008-05-11  Bruno Haible  <bruno@clisp.org>
5226
5227         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
5228         * modules/unilbrk/gen-lbrk: New file.
5229
5230 2008-05-11  Bruno Haible  <bruno@clisp.org>
5231
5232         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
5233         * m4/sha512.m4 (gl_SHA512): Likewise.
5234
5235 2008-05-11  Jim Meyering  <meyering@redhat.com>
5236
5237         New modules: crypto/sha256, crypto/sha512 (from coreutils)
5238         * modules/crypto/sha256: New file.
5239         * modules/crypto/sha512: Likewise.
5240         * lib/sha256.c: Likewise.
5241         * lib/sha256.h: Likewise.
5242         * lib/sha512.c: Likewise.
5243         * lib/sha512.h: Likewise.
5244         * lib/u64.h: Likewise.
5245         * m4/sha256.m4: Likewise.
5246         * m4/sha512.m4: Likewise.
5247         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
5248
5249 2008-05-10  Bruno Haible  <bruno@clisp.org>
5250
5251         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
5252         (Input/Output <stdio.h>): Add xprintf.
5253         (Signal handling <signal.h>): Add strsignal.
5254         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
5255         (Core language properties): Add func.
5256         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
5257         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
5258         strings.
5259         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
5260         (Input/output): New section.
5261         (File system functions): Add openat-die, stat-macros.
5262         (Networking functions): Add sockets.
5263         (Unicode string functions): Add unictype/*.
5264         (Support for building libraries and executables): Add gperf.
5265         (Support for building documentation): Add agpl-3.0.
5266         (Misc): Add nocrash.
5267
5268 2008-05-10  Bruno Haible  <bruno@clisp.org>
5269
5270         * modules/unictype/gen-ctype: New file.
5271
5272 2008-05-10  Jim Meyering  <meyering@redhat.com>
5273
5274         Make chdir-safer.c more efficient on a system with no symlinks.
5275         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
5276         also if ELOOP is zero.  Suggested by Bruno Haible.
5277
5278         Make chdir-safer.c slightly safer.
5279         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
5280         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
5281
5282         Avoid compile failure on systems without ELOOP (like mingw).
5283         * lib/chdir-safer.c (ELOOP): Define if not already defined.
5284         Reported by Bruno Haible.
5285
5286 2008-05-10  Bruno Haible  <bruno@clisp.org>
5287
5288         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
5289         (is_utf8_encoding): Use a case-insensitive comparison.
5290         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
5291         streq.
5292
5293 2008-05-10  Bruno Haible  <bruno@clisp.org>
5294
5295         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
5296         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
5297         * lib/unilbrk/ulc-common.h (iconv_string_length,
5298         iconv_string_keeping_offsets): Remove declarations.
5299         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
5300         Don't include <iconv.h>, streq.h, xsize.h.
5301         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
5302         conversion.
5303         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
5304         <iconv.h>, streq.h, xsize.h.
5305         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
5306         conversion.
5307         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
5308         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
5309         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
5310         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
5311
5312 2008-05-10  Bruno Haible  <bruno@clisp.org>
5313
5314         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
5315         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
5316
5317         * modules/unilbrk/u32-width-linebreaks-tests: New file.
5318         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
5319
5320         * modules/unilbrk/u16-width-linebreaks-tests: New file.
5321         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
5322
5323         * modules/unilbrk/u8-width-linebreaks-tests: New file.
5324         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
5325
5326         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
5327         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
5328
5329         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
5330         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
5331
5332         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
5333         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
5334
5335         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
5336         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
5337
5338 2008-05-10  Bruno Haible  <bruno@clisp.org>
5339
5340         Split up 'linebreak' module.
5341         * lib/unilbrk.h: New file, based on lib/linebreak.h.
5342         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
5343         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
5344         modifications.
5345         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
5346         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
5347         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
5348         lib/linebreak.c.
5349         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
5350         lib/linebreak.c.
5351         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
5352         lib/linebreak.c.
5353         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
5354         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
5355         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
5356         lib/linebreak.c.
5357         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
5358         lib/linebreak.c.
5359         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
5360         lib/linebreak.c.
5361         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
5362         lib/linebreak.c.
5363         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
5364         lib/linebreak.c.
5365         * modules/unilbrk/base: New file.
5366         * modules/unilbrk/tables: New file.
5367         * modules/unilbrk/u8-possible-linebreaks: New file.
5368         * modules/unilbrk/u16-possible-linebreaks: New file.
5369         * modules/unilbrk/u32-possible-linebreaks: New file.
5370         * modules/unilbrk/ulc-common: New file.
5371         * modules/unilbrk/ulc-possible-linebreaks: New file.
5372         * modules/unilbrk/u8-width-linebreaks: New file.
5373         * modules/unilbrk/u16-width-linebreaks: New file.
5374         * modules/unilbrk/u32-width-linebreaks: New file.
5375         * modules/unilbrk/ulc-width-linebreaks: New file.
5376         * lib/linebreak.h: Remove file.
5377         * lib/linebreak.c: Remove file.
5378         * m4/linebreak.m4: Remove file.
5379         * modules/linebreak: Remove file.
5380         * NEWS: Mention the changes.
5381
5382 2008-05-09  Eric Blake  <ebb9@byu.net>
5383
5384         Add xmemdup0.
5385         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
5386         implementation.
5387         * lib/xmalloc.c (xmemdup0): New C implementation.
5388
5389 2008-05-08  Bruno Haible  <bruno@clisp.org>
5390
5391         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
5392
5393 2008-05-07  Eric Blake  <ebb9@byu.net>
5394
5395         Support cross-compilation of <wctype.h>.
5396         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
5397         AC_CACHE_CHECK.
5398
5399 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
5400
5401         * build-aux/vc-list-files: Add support for bzr.
5402
5403 2008-05-03  Jim Meyering  <meyering@redhat.com>
5404
5405         avoid failed assertion with tight malloc
5406         * tests/test-getndelim2.c: Correct an off-by-one assertion.
5407
5408 2008-05-03  Simon Josefsson  <simon@josefsson.org>
5409
5410         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
5411         are needed from arpa/inet.h.
5412         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
5413         Reported by Bruno Haible.
5414
5415 2008-05-02  Jim Meyering  <meyering@redhat.com>
5416
5417         avoid compilation error on FreeBSD 6
5418         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
5419
5420 2008-05-01  Jim Meyering  <meyering@redhat.com>
5421
5422         useless-if-before-free: correct --help's exit status description
5423         * build-aux/useless-if-before-free (usage): Like grep, exit 0
5424         for one or more matches, etc.  Reported by Bruno Haible.
5425
5426         vc-list-files: make the stand-alone gnulib test work
5427         * modules/vc-list-files-tests (configure.ac):
5428         Define and AC_SUBST abs_aux_dir.
5429         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
5430         $(abs_top_srcdir) to each script and having each of them
5431         duplicate the work of setting PATH, set PATH here, using
5432         the new variable, abs_aux_dir instead.
5433         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
5434         * tests/test-vc-list-files-git.sh: Likewise.
5435         Reported by Bruno Haible.
5436
5437 2008-05-01  Bruno Haible  <bruno@clisp.org>
5438
5439         * lib/getndelim2.c (getndelim2): Fix newsize computation during
5440         reallocation. Rename 'done' to 'found_delimiter'.
5441
5442 2008-05-01  Jim Meyering  <meyering@redhat.com>
5443
5444         vc-list-files: accommodate /bin/sh like the one from Solaris 10
5445         * build-aux/vc-list-files: Use `...`, not $(...).
5446
5447 2008-04-30  Jim Meyering  <meyering@redhat.com>
5448
5449         add tests for vc-list-files
5450         * modules/vc-list-files-tests: New module.
5451         * tests/test-vc-list-files-cvs.sh: New file.
5452         * tests/test-vc-list-files-git.sh: New file.
5453
5454         avoid a warning from gcc
5455         * lib/getndelim2.c (IF_LINT): Define.
5456         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
5457
5458         vc-list-files: work properly with build-aux/cvsu, too
5459         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
5460         to all cvs-based clauses.
5461
5462         vc-list-files: work properly in the CVS+awk case, too
5463         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
5464
5465         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
5466         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
5467         take more than one file argument, so .  Add quotes, just in case $dir
5468         ever contains a shell meta-character.  Prompted by Soren Hansen in
5469         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
5470
5471 2008-04-29  Eric Blake  <ebb9@byu.net>
5472
5473         Optimize getndelim2 to use block operations when possible.
5474         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
5475         freadseek, and memchr2.
5476         * lib/getndelim2.c (getndelim2): Use them for block reads.
5477
5478 2008-04-29  Bruno Haible  <bruno@clisp.org>
5479
5480         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
5481         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
5482         * modules/inet_ntop (Depends-on): Add extensions.
5483         * modules/inet_pton (Depends-on): Likewise.
5484         Reported by Simon Josefsson.
5485
5486 2008-04-29  Jim Meyering  <meyering@redhat.com>
5487
5488         When the is more than one match in a block, match all of them.
5489         * build-aux/useless-if-before-free: Iterate through each block
5490         until there are no more matches.
5491
5492         Fix broken useless-if-before-free script.
5493         * build-aux/useless-if-before-free: Fix typo: missing "?" after
5494         the expression to match cast of argument to free-like function.
5495
5496 2008-04-29  Eric Blake  <ebb9@byu.net>
5497
5498         Use new header.
5499         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
5500
5501 2008-04-29  Jim Meyering  <meyering@redhat.com>
5502
5503         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
5504         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
5505         by gnulib to exist and to declare e.g., inet_ntop.
5506         Don't include "inet_ntop.h", now removed.
5507
5508         * m4/arpa_inet_h.m4: Remove trailing blanks.
5509
5510 2008-04-29  Eric Blake  <ebb9@byu.net>
5511
5512         Silence valgrind on safe reads beyond potential array bounds.
5513         * lib/rawmemchr.valgrind: New file.
5514         * lib/strchrnul.valgrind: Likewise.
5515         * modules/rawmemchr (Files): Distribute new file.
5516         * modules/strchrnul (Files): Likewise.
5517         Suggested by Bruno Haible.
5518
5519 2008-04-29  Bruno Haible  <bruno@clisp.org>
5520
5521         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
5522         (inet_ntop, inet_pton): Change portability warning's wording.
5523         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
5524         Invoke gl_CHECK_NEXT_HEADERS.
5525         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
5526         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
5527         set ARPA_INET_H.
5528         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
5529         * modules/arpa_inet (Description): No longer only for systems that
5530         lack it.
5531         (Depends-on): Add include_next.
5532         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
5533         HAVE_ARPA_INET_H.
5534
5535 2008-04-29  Jim Meyering  <meyering@redhat.com>
5536
5537         * modules/mkdir (License): Re-license as LGPLv2+.
5538
5539 2008-04-29  Bruno Haible  <bruno@clisp.org>
5540
5541         * modules/rawmemchr (Maintainer): Set to Eric.
5542         * modules/strchrnul (Maintainer): Likewise.
5543
5544 2008-04-29  Simon Josefsson  <simon@josefsson.org>
5545
5546         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
5547         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
5548
5549         * modules/arpa_inet (arpa/inet.h): Use them.
5550
5551 2008-04-28  Eric Blake  <ebb9@byu.net>
5552
5553         Test getndelim2.
5554         * modules/getndelim2-tests: New file.
5555         * tests/test-getndelim2.c: Likewise.
5556         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
5557         stream.
5558         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
5559
5560         * MODULES.html.sh: Document new module.
5561
5562 2008-04-20  Bruno Haible  <bruno@clisp.org>
5563
5564         * lib/c-stack.c (die): Use raise.
5565         * modules/c-stack (Depends-on): Add raise.
5566
5567 2008-04-28  Bruno Haible  <bruno@clisp.org>
5568
5569         Expect rpmatch to be declared.
5570         * lib/yesno.c (rpmatch): Remove declaration.
5571
5572         Declare rpmatch.
5573         * lib/stdlib.in.h (rpmatch): New declaration.
5574         * lib/rpmatch.c: Include <stdlib.h> first.
5575         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
5576         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
5577         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
5578         HAVE_RPMATCH.
5579         * modules/rpmatch (Depends-on): Add stdlib, extensions.
5580         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
5581         (Include): Set to <stdlib.h>.
5582         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
5583         HAVE_RPMATCH.
5584         * NEWS: Document the change.
5585
5586 2008-04-28  Bruno Haible  <bruno@clisp.org>
5587
5588         Change rpmatch to use nl_langinfo when appropriate.
5589         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
5590         (N_): New macro.
5591         (localized_pattern): New function/macro.
5592         (try): Remove match, nomatch arguments. Copy the pattern into safe
5593         memory before caching it.
5594         (rpmatch): Use localized_pattern. Add translator comments.
5595         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
5596         Suggested by Eric Blake.
5597         * modules/rpmatch (Depends-on): Add stdbool.
5598
5599 2008-04-28  Eric Blake  <ebb9@byu.net>
5600
5601         Add rawmemchr module, matching glibc.
5602         * modules/string (Makefile.am): New indicator.
5603         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
5604         * lib/string.in.h (rawmemchr): Declare when appropriate.
5605         * modules/rawmemchr: New file.
5606         * m4/rawmemchr.m4: Likewise.
5607         * lib/rawmemchr.c: Likewise.
5608         * modules/rawmemchr-tests: Likewise.
5609         * tests/test-rawmemchr.c: Likewise.
5610         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
5611         module.
5612         * modules/strchrnul (Depends-on): Add rawmemchr.
5613         * lib/strchrnul.c (strchrnul): Optimize a corner case.
5614
5615         Whitespace cleanup.
5616         * tests/test-strchrnul.c: Reindent.
5617         * lib/strchrnul.c: Likewise.
5618
5619         Optimize and test strchrnul.
5620         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
5621         * modules/strchrnul-tests: New file.
5622         * tests/test-strchrnul.c: Likewise.
5623
5624         Remove intprops dependency.
5625         * modules/memchr (Depends-on): Remove intprops.
5626         * modules/memrchr (Depends-on): Likewise.
5627         * modules/memchr2 (Depends-on): Likewise.
5628         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
5629         * lib/memrchr.c (__memrchr): Likewise.
5630         * lib/memrchr2.c (memchr2): Likewise.
5631         Reported by Simon Josefsson.
5632
5633 2008-04-28  Simon Josefsson  <simon@josefsson.org>
5634
5635         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
5636         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
5637
5638 2008-04-28  Simon Josefsson  <simon@josefsson.org>
5639
5640         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
5641
5642         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
5643
5644         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
5645
5646         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
5647         declarations.
5648         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
5649
5650         * m4/inet_pton.m4: Don't check for header files.
5651
5652         * m4/inet_ntop.m4: Don't check for header files.
5653
5654 2008-04-28  Simon Josefsson  <simon@josefsson.org>
5655
5656         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
5657         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
5658         trigger for cygwin).
5659         Reported by Bruno Haible  <bruno@clisp.org>.
5660
5661 2008-04-28  Bruno Haible  <bruno@clisp.org>
5662
5663         * doc/posix-functions/strdup.texi: Mention mingw problem.
5664
5665 2008-04-27  Bruno Haible  <bruno@clisp.org>
5666
5667         * modules/stat-time-tests (Depends-on): Add sleep.
5668         * tests/test-stat-time.c (force_unlink): New function.
5669         (cleanup): Use it.
5670         (test_mtime): Remove the ctime related tests.
5671         (test_ctime): New function, containing the ctime related tests.
5672         (main): Call test_ctime, except on native Windows platforms.
5673
5674 2008-04-27  Bruno Haible  <bruno@clisp.org>
5675
5676         * lib/rpmatch.c (rpmatch): Add some comments.
5677         Reported by James Youngman <jay@gnu.org>.
5678
5679 2008-04-27  Bruno Haible  <bruno@clisp.org>
5680
5681         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
5682         quiet NaNs.
5683
5684 2008-04-27  Bruno Haible  <bruno@clisp.org>
5685
5686         Make test-yesno.sh work on mingw.
5687         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
5688         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
5689         (main): Set stdin to binary mode.
5690         * modules/yesno-tests (Depends-on): Add binary-io.
5691
5692 2008-04-27  Bruno Haible  <bruno@clisp.org>
5693
5694         Fix 'isfinite' on x86, x86_64, ia64 platforms.
5695         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
5696         argument that lie outside the IEEE 854 domain.
5697         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
5698         (gl_ISFINITE): Use it.
5699         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
5700
5701 2008-04-27  Bruno Haible  <bruno@clisp.org>
5702
5703         Allow local renaming in config.h.
5704         * lib/memrchr.c (memrchr): Don't undefine outside libc.
5705
5706 2008-04-27  Bruno Haible  <bruno@clisp.org>
5707
5708         * lib/memchr.c (__memchr): Change type of 'i'.
5709         * lib/memchr2.c (memchr2): Likewise.
5710
5711 2008-04-26  Eric Blake  <ebb9@byu.net>
5712         and Bruno Haible  <bruno@clisp.org>
5713
5714         Optimize and test memrchr.
5715         * modules/memrchr (Depends-on): Add intprops.
5716         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
5717         * modules/memrchr-tests: New file.
5718         * tests/test-memrchr.c: New file.
5719
5720 2008-04-26  Bruno Haible  <bruno@clisp.org>
5721
5722         Add tentative support for DragonFly BSD.
5723         * lib/stdio-impl.h: Add macros for DragonFly BSD.
5724         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
5725         fp.
5726         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
5727         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
5728         * lib/fpurge.c (fpurge): Likewise.
5729         * lib/freadable.c (freaadable): Likewise.
5730         * lib/freadahead.c (freadahead): Likewise.
5731         * lib/freading.c (freading): Likewise.
5732         * lib/freadptr.c (freadptr): Likewise.
5733         * lib/freadseek.c (freadptrinc): Likewise.
5734         * lib/fseeko.c (fseeko): Likewise.
5735         * lib/fseterr.c (fseterr): Likewise.
5736         * lib/fwritable.c (fwritable): Likewise.
5737         * lib/fwriting.c (fwriting): Likewise.
5738
5739 2008-04-26  Bruno Haible  <bruno@clisp.org>
5740
5741         * lib/stdio-impl.h: New file.
5742         * lib/fbufmode.c: Include stdio-impl.h.
5743         (fbufmode): Use fp_, remove redundant #defines.
5744         * lib/fflush.c: Include stdio-impl.h.
5745         (clear_ungetc_buffer): Remove redundant #defines.
5746         * lib/fpurge.c: Include stdio-impl.h.
5747         (fpurge): Remove redundant #defines.
5748         * lib/freadable.c: Include stdio-impl.h.
5749         (freadable): Remove redundant #defines.
5750         * lib/freadahead.c: Include stdio-impl.h.
5751         (freadahead): Remove redundant #defines.
5752         * lib/freading.c: Include stdio-impl.h.
5753         (freading): Remove redundant #defines.
5754         * lib/freadptr.c: Include stdio-impl.h.
5755         (freadptr): Remove redundant #defines.
5756         * lib/freadseek.c: Include stdio-impl.h.
5757         (freadptrinc): Remove redundant #defines.
5758         * lib/fseeko.c: Include stdio-impl.h.
5759         (rpl_fseeko): Remove redundant #defines.
5760         * lib/fseterr.c: Include stdio-impl.h.
5761         (fseterr): Remove redundant #defines.
5762         * lib/fwritable.c: Include stdio-impl.h.
5763         (fwritable: Remove redundant #defines.
5764         * lib/fwriting.c: Include stdio-impl.h.
5765         (fwriting): Remove redundant #defines.
5766         * modules/fbufmode (Files): Add lib/stdio-impl.h.
5767         * modules/fflush (Files): Likewise.
5768         * modules/fpurge (Files): Likewise.
5769         * modules/freadable (Files): Likewise.
5770         * modules/freadahead (Files): Likewise.
5771         * modules/freading (Files): Likewise.
5772         * modules/freadptr (Files): Likewise.
5773         * modules/freadseek (Files): Likewise.
5774         * modules/fseeko (Files): Likewise.
5775         * modules/fseterr (Files): Likewise.
5776         * modules/fwritable (Files): Likewise.
5777         * modules/fwriting (Files): Likewise.
5778
5779 2008-04-26  Bruno Haible  <bruno@clisp.org>
5780
5781         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
5782         restore_seek_optimization, update_fpos_cache): New functions, extracted
5783         from rpl_fflush.
5784         (rpl_fflush): Use them.
5785         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
5786         (gl_REPLACE_FFLUSH): Use it.
5787
5788 2008-04-26  Bruno Haible  <bruno@clisp.org>
5789
5790         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
5791         on Solaris.
5792         * tests/test-xstrtoimax.sh: Likewise.
5793         * tests/test-xstrtoumax.sh: Likewise.
5794         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
5795
5796 2008-04-26  Bruno Haible  <bruno@clisp.org>
5797
5798         * modules/memchr-tests: New file.
5799         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
5800
5801 2008-04-26  Eric Blake  <ebb9@byu.net>
5802             Bruno Haible  <bruno@clisp.org>
5803
5804         * lib/memchr.c: Include intprops.h.
5805         (__memchr): Optimize parallel detection of matching bytes. Rename local
5806         variables. Add explanatory comments.
5807
5808 2008-04-26  Bruno Haible  <bruno@clisp.org>
5809
5810         Fix module 'memchr', broken since 2000-10-28.
5811         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
5812
5813 2008-04-26  Bruno Haible  <bruno@clisp.org>
5814
5815         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
5816         comments.
5817
5818 2008-04-25  Eric Blake  <ebb9@byu.net>
5819
5820         Use native fstatat on cygwin 1.7.0.
5821         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
5822         first.
5823
5824 2008-04-23  Eric Blake  <ebb9@byu.net>
5825
5826         Improve memchr2 performance.
5827         * lib/memchr2.c (memchr2): Further optimize parallel detection of
5828         NUL bytes.
5829         * modules/memchr2 (Depends-on): Use intprops.h.
5830
5831 2008-04-23  Simon Josefsson  <simon@josefsson.org>
5832
5833         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
5834         an inline function instead of a CPP macro.  Patch by Ben Pfaff
5835         <blp@cs.stanford.edu>.
5836
5837 2008-04-23  Simon Josefsson  <simon@josefsson.org>
5838
5839         * lib/arpa_inet.in.h: New file.
5840
5841         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
5842         (Makefile.am): Sed in substitute header file.
5843
5844         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
5845         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
5846
5847         * modules/inet_ntop (configure.ac): Use
5848         gl_ARPA_INET_MODULE_INDICATOR.
5849
5850         * modules/inet_pton (configure.ac): Use
5851         gl_ARPA_INET_MODULE_INDICATOR.
5852
5853 2008-04-22  Jim Meyering  <meyering@redhat.com>
5854
5855         * modules/verify (License): Re-license as LGPLv2+.
5856
5857 2008-04-22  Simon Josefsson  <simon@josefsson.org>
5858
5859         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
5860         parameter to void* as per POSIX standard (MinGW uses char*).
5861
5862 2008-04-21  Bruno Haible  <bruno@clisp.org>
5863
5864         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
5865         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
5866         Define to replacements if REPLACE_ISWCNTRL is 1.
5867         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
5868         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
5869         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
5870         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
5871         what it fixes.
5872         * doc/posix-functions/iswalpha.texi: Likewise.
5873         * doc/posix-functions/iswblank.texi: Likewise.
5874         * doc/posix-functions/iswcntrl.texi: Likewise.
5875         * doc/posix-functions/iswdigit.texi: Likewise.
5876         * doc/posix-functions/iswgraph.texi: Likewise.
5877         * doc/posix-functions/iswlower.texi: Likewise.
5878         * doc/posix-functions/iswprint.texi: Likewise.
5879         * doc/posix-functions/iswpunct.texi: Likewise.
5880         * doc/posix-functions/iswspace.texi: Likewise.
5881         * doc/posix-functions/iswupper.texi: Likewise.
5882         * doc/posix-functions/iswxdigit.texi: Likewise.
5883         Reported by Alain Guibert.
5884
5885 2008-04-21  Bruno Haible  <bruno@clisp.org>
5886
5887         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
5888         Patch by Alain Guibert.
5889
5890 2008-04-21  Bruno Haible  <bruno@clisp.org>
5891
5892         Fix test failures on mingw.
5893         * tests/test-xstrtol.c (print_no_progname): New function.
5894         (main): Install it in error_print_progname hook.
5895         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
5896         * tests/test-xstrtoimax.sh: Likewise.
5897         * tests/test-xstrtoumax.sh: Likewise.
5898
5899 2008-04-21  Bruno Haible  <bruno@clisp.org>
5900
5901         Fix test failure on mingw.
5902         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
5903
5904 2008-04-21  Bruno Haible  <bruno@clisp.org>
5905
5906         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
5907         Actually assign a value.
5908
5909 2008-04-20  Bruno Haible  <bruno@clisp.org>
5910
5911         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
5912         take 2.
5913         * lib/canonicalize.c (canonicalize_file_name): Elide if the
5914         'canonicalize-lgpl' module is also used.
5915         * lib/canonicalize-lgpl.c: Undo last change.
5916         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
5917
5918 2008-04-20  Bruno Haible  <bruno@clisp.org>
5919
5920         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
5921         config.h. Provide _mkdir based fallback for mingw.
5922         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
5923         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
5924         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
5925         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
5926         rather than defining mkdir in config.h.
5927         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
5928         (gl_SYS_STAT_H_DEFAULTS): New macro.
5929         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
5930         HAVE_IO_H any more.
5931         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
5932         HAVE_DECL_MKDIR and HAVE_IO_H.
5933
5934 2008-04-20  Bruno Haible  <bruno@clisp.org>
5935
5936         * lib/isapipe.c: Port to native Windows platforms.
5937
5938 2008-04-20  Bruno Haible  <bruno@clisp.org>
5939
5940         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
5941
5942 2008-04-21  Eric Blake  <ebb9@byu.net>
5943
5944         Work around preprocessors that don't handle UINTMAX_MAX.
5945         * lib/memchr2.c (memchr2): Avoid embedded #if.
5946         Reported by Alain Guibert, fix suggested by Bruno Haible.
5947
5948 2008-04-21  Simon Josefsson  <simon@josefsson.org>
5949
5950         * doc/posix-functions/strftime.texi (strftime): Explain better
5951         Windows incompatibility.  Suggested by Micah Cowan
5952         <micah@cowan.name>.
5953
5954 2008-04-20  Bruno Haible  <bruno@clisp.org>
5955
5956         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
5957         unistr/u8-mblen.
5958
5959 2008-04-20  Bruno Haible  <bruno@clisp.org>
5960
5961         Fix test failure on platforms with non-GNU iconv.
5962         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
5963         (U_TO_U8): Use it, rather than u16_to_u8.
5964         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
5965         units at the end of the input string.
5966         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
5967
5968 2008-04-20  Bruno Haible  <bruno@clisp.org>
5969
5970         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
5971         when the resulting length is 0.
5972         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
5973
5974 2008-04-20  Bruno Haible  <bruno@clisp.org>
5975
5976         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
5977         works.
5978         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
5979
5980 2008-04-20  Bruno Haible  <bruno@clisp.org>
5981
5982         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
5983         * modules/tsearch-tests (configure.ac): Test for initstate function.
5984
5985 2008-04-20  Bruno Haible  <bruno@clisp.org>
5986
5987         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
5988         for nlink_t if missing.
5989         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
5990
5991 2008-04-19  Bruno Haible  <bruno@clisp.org>
5992
5993         Work around snprintf bug on Linux libc5.
5994         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
5995         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
5996         gl_SNPRINTF_SIZE1.
5997         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
5998         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
5999         that test failed.
6000         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
6001         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
6002         * modules/snprintf (Files): Add m4/printf.m4.
6003         * modules/vsnprintf (Files): Likewise.
6004         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
6005         * doc/posix-functions/vsnprintf.texi: Likewise.
6006
6007 2008-04-19  Bruno Haible  <bruno@clisp.org>
6008
6009         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
6010         from 0.0058 to less than 10^-7.
6011
6012 2008-04-19  Bruno Haible  <bruno@clisp.org>
6013
6014         Fix rounding when a precision is given.
6015         * lib/vasnprintf.c (is_borderline): New function.
6016         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
6017         9...9x.
6018         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
6019         %e, %g.
6020         * tests/test-vasprintf-posix.c (test_function): Likewise.
6021         * tests/test-snprintf-posix.h (test_function): Likewise.
6022         * tests/test-sprintf-posix.h (test_function): Likewise.
6023         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
6024         * tests/test-printf-posix.h (test_function): Likewise.
6025         * tests/test-printf-posix.output: Update.
6026         Reported by John Darrington <john@darrington.wattle.id.au> via
6027         Ben Pfaff <blp@cs.stanford.edu>.
6028
6029 2008-04-18  Simon Josefsson  <simon@josefsson.org>
6030
6031         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
6032         Suggested by Bruno Haible <bruno@clisp.org>.
6033
6034 2008-04-17  Bruno Haible  <bruno@clisp.org>
6035
6036         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
6037         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
6038         implementation.
6039         Patch by Bruce Merry <bmerry@gmail.com>.
6040
6041 2008-04-17  Simon Josefsson  <simon@josefsson.org>
6042
6043         * doc/posix-functions/strftime.texi (strftime): Mention that %e
6044         doesn't work under Windows.
6045
6046 2008-04-16  Bruno Haible  <bruno@clisp.org>
6047
6048         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
6049         New macros.
6050         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
6051         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
6052         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
6053         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
6054         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
6055         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
6056         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
6057         macros.
6058         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
6059         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
6060         Northern Sotho, Uighur.
6061
6062 2008-04-16  Bruno Haible  <bruno@clisp.org>
6063
6064         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
6065         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
6066         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
6067         Reported by Daniel Bergström <daniel@octocode.com>.
6068
6069 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
6070             Bruno Haible  <bruno@clisp.org>
6071
6072         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
6073         function.
6074         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
6075         New functions, mostly extracted from gl_locale_name_default.
6076         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
6077
6078 2008-04-16  Eric Blake  <ebb9@byu.net>
6079
6080         Adjust strtod detection to catch glibc 2.7 bug.
6081         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
6082         Reported by John Gatewood Ham.
6083
6084 2008-04-16  Bruno Haible  <bruno@clisp.org>
6085
6086         Add tentative support for Linux libc5.
6087         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
6088         * lib/fpurge.c (fpurge): Likewise.
6089         * lib/freadable.c (freadable): Likewise.
6090         * lib/freadahead.c (freadahead): Likewise.
6091         * lib/freading.c (freading): Likewise.
6092         * lib/freadptr.c (freadptr): Likewise.
6093         * lib/freadseek.c (freadptrinc): Likewise.
6094         * lib/fseeko.c (rpl_fseeko): Likewise.
6095         * lib/fseterr.c (fseterr): Likewise.
6096         * lib/fwritable.c (fwritable): Likewise.
6097         * lib/fwriting.c (fwriting): Likewise.
6098         Reported by Alain Guibert <alguibert+bts@free.fr>.
6099
6100 2008-04-15  Bruno Haible  <bruno@clisp.org>
6101
6102         * modules/mathl (configure.ac): Define module indicator.
6103
6104 2008-04-15  Bruno Haible  <bruno@clisp.org>
6105
6106         * lib/logl.c (logl): Remove unused variables.
6107
6108 2008-04-15  Bruno Haible  <bruno@clisp.org>
6109
6110         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
6111         fails.
6112
6113 2008-04-15  Bruno Haible  <bruno@clisp.org>
6114
6115         * lib/trim.c (trim2): Fix argument of isspace() macro.
6116
6117 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
6118
6119         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
6120         to 0.
6121         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
6122
6123 2008-04-14  Bruno Haible  <bruno@clisp.org>
6124
6125         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
6126         AC_LANG_PROGRAM argument.
6127         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
6128         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
6129         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
6130         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
6131         * m4/math_h.m4 (gl_MATH_H): Likewise.
6132         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
6133         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
6134         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
6135         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
6136         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
6137         * m4/regex.m4 (gl_REGEX): Likewise.
6138         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
6139         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
6140         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
6141         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
6142         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
6143         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
6144         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
6145         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
6146
6147 2008-04-14  Jim Meyering  <meyering@redhat.com>
6148
6149         test-strtod: fix typos: s/abs/fabs/
6150         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
6151
6152 2008-04-13  Bruno Haible  <bruno@clisp.org>
6153
6154         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
6155         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
6156         module is also used and while not building the reloc-wrapper.
6157
6158 2008-04-13  Bruno Haible  <bruno@clisp.org>
6159
6160         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
6161
6162 2008-04-13  Bruno Haible  <bruno@clisp.org>
6163
6164         Fix AIX compilation failure introduced on 2008-04-02.
6165         * tests/test-frexp.c (exp): Undefine before redefining.
6166         * tests/test-frexpl.c (exp): Likewise.
6167
6168 2008-04-13  Bruno Haible  <bruno@clisp.org>
6169
6170         Work around a HP-UX stdio bug.
6171         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
6172         * tests/test-ftello.c (main): Likewise.
6173         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
6174         * doc/posix-functions/ftello.texi: Likewise.
6175
6176 2008-04-13  Bruno Haible  <bruno@clisp.org>
6177
6178         Make test-signbit pass on HP-UX/hppa.
6179         * tests/test-signbit.c (minus_zerol): New variable.
6180         (test_signbitl): Use it.
6181
6182 2008-04-13  Bruno Haible  <bruno@clisp.org>
6183
6184         Make truncl work on OSF/1 4.0.
6185         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
6186         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
6187         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
6188         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
6189         HAVE_DECL_TRUNCL.
6190         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
6191         HAVE_DECL_TRUNCL.
6192         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
6193
6194 2008-04-13  Bruno Haible  <bruno@clisp.org>
6195
6196         * lib/unictype.h: Remove trailing comma from enumeration definitions.
6197
6198 2008-04-13  Bruno Haible  <bruno@clisp.org>
6199
6200         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
6201         expression, so as to avoid HP-UX 11 cc compiler bug.
6202
6203 2008-04-13  Bruno Haible  <bruno@clisp.org>
6204
6205         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
6206
6207 2008-04-13  Bruno Haible  <bruno@clisp.org>
6208
6209         * lib/git-merge-changelog.c: Remove empty declaration outside of
6210         functions.
6211
6212 2008-04-13  Bruno Haible  <bruno@clisp.org>
6213
6214         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
6215
6216 2008-04-13  Bruno Haible  <bruno@clisp.org>
6217
6218         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
6219         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
6220         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
6221         also if it exists but lacks definitions of the SHUT_* macros.
6222         * modules/sys_socket (Description): Update.
6223         Reported by Elbert Pol <e.pol@chello.nl>.
6224
6225 2008-04-13  Bruno Haible  <bruno@clisp.org>
6226
6227         * lib/localcharset.c (OS2): Don't redefine if already defined.
6228         Reported by Elbert Pol <e.pol@chello.nl>.
6229
6230 2008-04-13  Bruno Haible  <bruno@clisp.org>
6231
6232         * lib/binary-io.h [__EMX__]: Include <io.h>.
6233         Reported by Elbert Pol <e.pol@chello.nl>.
6234
6235 2008-04-12  Bruno Haible  <bruno@clisp.org>
6236
6237         * lib/fpucw.h: Enable the definitions also for x86_64.
6238         Needed for NetBSD/x86_64.
6239         Reported by Thomas Klausner <tk@giga.or.at>.
6240
6241 2008-04-12  Bruno Haible  <bruno@clisp.org>
6242
6243         * tests/test-strtod.c: Include isnand.h.
6244         (main): Use isnand instead of isnan.
6245         Reported by Jim Meyering.
6246
6247 2008-04-12  Bruno Haible  <bruno@clisp.org>
6248
6249         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
6250         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
6251
6252 2008-04-12  Jim Meyering  <meyering@redhat.com>
6253
6254         * m4/math_h.m4 (gl_MATH_H): Fix typos.
6255
6256 2008-04-12  Bruno Haible  <bruno@clisp.org>
6257
6258         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
6259         Reported by Elbert Pol <e.pol@chello.nl>.
6260
6261 2008-04-12  Eric Blake  <ebb9@byu.net>
6262
6263         Work around Solaris 10 math.h bug.
6264         * m4/math_h.m4 (gl_MATH_H): Check for bug.
6265         (gl_MATH_H_DEFAULTS): Set up default.
6266         * modules/math (Makefile.am): Replace new indicators.
6267         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
6268         * tests/test-math.c (main): Test this.
6269         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
6270         * doc/posix-headers/math.texi (math.h): Mention bug.
6271         Reported by Nelson H. F. Beebe and Jim Meyering.
6272
6273 2008-04-11  Bruno Haible  <bruno@clisp.org>
6274
6275         Adapt to future versions of Apple GCC.
6276         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
6277         Reported by Peter O'Gorman <peter@pogma.com>.
6278
6279 2008-04-11  Bruno Haible  <bruno@clisp.org>
6280
6281         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
6282
6283 2008-04-11  Bruno Haible  <bruno@clisp.org>
6284
6285         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
6286
6287         * modules/getaddrinfo-tests (Makefile.am): Define
6288         test_getaddrinfo_LDADD.
6289
6290 2008-04-11  Bruno Haible  <bruno@clisp.org>
6291
6292         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
6293         (init): Fix syntax error.
6294         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
6295         is declared.
6296
6297 2008-04-11  Bruno Haible  <bruno@clisp.org>
6298
6299         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
6300         * modules/glob (Depends-on): Add stdbool.
6301
6302 2008-04-11  Bruno Haible  <bruno@clisp.org>
6303
6304         * lib/trim.c: Include <string.h>.
6305
6306 2008-04-11  Eric Blake  <ebb9@byu.net>
6307
6308         Avoid compile failure on OS/2.
6309         * lib/regex_internal.h (internal_function): Disable optimization
6310         on OS/2 (__EMX__), where it caused compiler error.
6311         Reported by Elbert Pol.
6312
6313 2008-04-11  Bruno Haible  <bruno@clisp.org>
6314
6315         Flush the standard error stream before aborting. Needed on mingw.
6316         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
6317         * tests/test-array_list.c (ASSERT): Likewise.
6318         * tests/test-array_oset.c (ASSERT): Likewise.
6319         * tests/test-avltree_list.c (ASSERT): Likewise.
6320         * tests/test-avltree_oset.c (ASSERT): Likewise.
6321         * tests/test-avltreehash_list.c (ASSERT): Likewise.
6322         * tests/test-binary-io.c (ASSERT): Likewise.
6323         * tests/test-byteswap.c (ASSERT): Likewise.
6324         * tests/test-c-ctype.c (ASSERT): Likewise.
6325         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
6326         * tests/test-c-strcasestr.c (ASSERT): Likewise.
6327         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
6328         * tests/test-c-strstr.c (ASSERT): Likewise.
6329         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
6330         * tests/test-canonicalize.c (ASSERT): Likewise.
6331         * tests/test-carray_list.c (ASSERT): Likewise.
6332         * tests/test-ceilf1.c (ASSERT): Likewise.
6333         * tests/test-ceilf2.c (ASSERT): Likewise.
6334         * tests/test-ceill.c (ASSERT): Likewise.
6335         * tests/test-count-one-bits.c (ASSERT): Likewise.
6336         * tests/test-fbufmode.c (ASSERT): Likewise.
6337         * tests/test-fflush2.c (ASSERT): Likewise.
6338         * tests/test-floorf1.c (ASSERT): Likewise.
6339         * tests/test-floorf2.c (ASSERT): Likewise.
6340         * tests/test-floorl.c (ASSERT): Likewise.
6341         * tests/test-fopen.c (ASSERT): Likewise.
6342         * tests/test-fpending.c (ASSERT): Likewise.
6343         * tests/test-fprintf-posix.c (ASSERT): Likewise.
6344         * tests/test-fpurge.c (ASSERT): Likewise.
6345         * tests/test-freadable.c (ASSERT): Likewise.
6346         * tests/test-freadahead.c (ASSERT): Likewise.
6347         * tests/test-freading.c (ASSERT): Likewise.
6348         * tests/test-freadptr.c (ASSERT): Likewise.
6349         * tests/test-freadptr2.c (ASSERT): Likewise.
6350         * tests/test-freadseek.c (ASSERT): Likewise.
6351         * tests/test-freopen.c (ASSERT): Likewise.
6352         * tests/test-frexp.c (ASSERT): Likewise.
6353         * tests/test-frexpl.c (ASSERT): Likewise.
6354         * tests/test-fseek.c (ASSERT): Likewise.
6355         * tests/test-fseeko.c (ASSERT): Likewise.
6356         * tests/test-fstrcmp.c (ASSERT): Likewise.
6357         * tests/test-ftell.c (ASSERT): Likewise.
6358         * tests/test-ftello.c (ASSERT): Likewise.
6359         * tests/test-func.c (ASSERT): Likewise.
6360         * tests/test-fwritable.c (ASSERT): Likewise.
6361         * tests/test-fwriting.c (ASSERT): Likewise.
6362         * tests/test-getdelim.c (ASSERT): Likewise.
6363         * tests/test-getline.c (ASSERT): Likewise.
6364         * tests/test-i-ring.c (ASSERT): Likewise.
6365         * tests/test-iconv-utf.c (ASSERT): Likewise.
6366         * tests/test-iconv.c (ASSERT): Likewise.
6367         * tests/test-isfinite.c (ASSERT): Likewise.
6368         * tests/test-isnand.c (ASSERT): Likewise.
6369         * tests/test-isnanf.c (ASSERT): Likewise.
6370         * tests/test-isnanl.h (ASSERT): Likewise.
6371         * tests/test-ldexpl.c (ASSERT): Likewise.
6372         * tests/test-linked_list.c (ASSERT): Likewise.
6373         * tests/test-linkedhash_list.c (ASSERT): Likewise.
6374         * tests/test-localename.c (ASSERT): Likewise.
6375         * tests/test-lseek.c (ASSERT): Likewise.
6376         * tests/test-mbscasecmp.c (ASSERT): Likewise.
6377         * tests/test-mbscasestr1.c (ASSERT): Likewise.
6378         * tests/test-mbscasestr2.c (ASSERT): Likewise.
6379         * tests/test-mbscasestr3.c (ASSERT): Likewise.
6380         * tests/test-mbscasestr4.c (ASSERT): Likewise.
6381         * tests/test-mbschr.c (ASSERT): Likewise.
6382         * tests/test-mbscspn.c (ASSERT): Likewise.
6383         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
6384         * tests/test-mbspbrk.c (ASSERT): Likewise.
6385         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
6386         * tests/test-mbsrchr.c (ASSERT): Likewise.
6387         * tests/test-mbsspn.c (ASSERT): Likewise.
6388         * tests/test-mbsstr1.c (ASSERT): Likewise.
6389         * tests/test-mbsstr2.c (ASSERT): Likewise.
6390         * tests/test-mbsstr3.c (ASSERT): Likewise.
6391         * tests/test-memchr2.c (ASSERT): Likewise.
6392         * tests/test-memmem.c (ASSERT): Likewise.
6393         * tests/test-open.c (ASSERT): Likewise.
6394         * tests/test-printf-frexp.c (ASSERT): Likewise.
6395         * tests/test-printf-frexpl.c (ASSERT): Likewise.
6396         * tests/test-printf-posix.c (ASSERT): Likewise.
6397         * tests/test-quotearg.c (ASSERT): Likewise.
6398         * tests/test-rbtree_list.c (ASSERT): Likewise.
6399         * tests/test-rbtree_oset.c (ASSERT): Likewise.
6400         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
6401         * tests/test-round1.c (ASSERT): Likewise.
6402         * tests/test-roundf1.c (ASSERT): Likewise.
6403         * tests/test-roundl.c (ASSERT): Likewise.
6404         * tests/test-signbit.c (ASSERT): Likewise.
6405         * tests/test-sleep.c (ASSERT): Likewise.
6406         * tests/test-snprintf-posix.c (ASSERT): Likewise.
6407         * tests/test-snprintf.c (ASSERT): Likewise.
6408         * tests/test-sprintf-posix.c (ASSERT): Likewise.
6409         * tests/test-stat-time.c (ASSERT): Likewise.
6410         * tests/test-strcasestr.c (ASSERT): Likewise.
6411         * tests/test-strerror.c (ASSERT): Likewise.
6412         * tests/test-striconv.c (ASSERT): Likewise.
6413         * tests/test-striconveh.c (ASSERT): Likewise.
6414         * tests/test-striconveha.c (ASSERT): Likewise.
6415         * tests/test-strsignal.c (ASSERT): Likewise.
6416         * tests/test-strstr.c (ASSERT): Likewise.
6417         * tests/test-strtod.c (ASSERT): Likewise.
6418         * tests/test-trunc1.c (ASSERT): Likewise.
6419         * tests/test-trunc2.c (ASSERT): Likewise.
6420         * tests/test-truncf1.c (ASSERT): Likewise.
6421         * tests/test-truncf2.c (ASSERT): Likewise.
6422         * tests/test-truncl.c (ASSERT): Likewise.
6423         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
6424         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
6425         * tests/test-vasnprintf.c (ASSERT): Likewise.
6426         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
6427         * tests/test-vasprintf.c (ASSERT): Likewise.
6428         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
6429         * tests/test-vprintf-posix.c (ASSERT): Likewise.
6430         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
6431         * tests/test-vsnprintf.c (ASSERT): Likewise.
6432         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
6433         * tests/test-wcwidth.c (ASSERT): Likewise.
6434         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
6435         * tests/test-xprintf-posix.c (ASSERT): Likewise.
6436         * tests/test-xvasprintf.c (ASSERT): Likewise.
6437         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
6438         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
6439         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
6440         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
6441         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
6442         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
6443         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
6444         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
6445         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
6446         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
6447         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
6448         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
6449         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
6450         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
6451         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
6452         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
6453         * tests/unictype/test-block_list.c (ASSERT): Likewise.
6454         * tests/unictype/test-block_of.c (ASSERT): Likewise.
6455         * tests/unictype/test-block_test.c (ASSERT): Likewise.
6456         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
6457         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
6458         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
6459         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
6460         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
6461         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
6462         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
6463         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
6464         * tests/unictype/test-combining.c (ASSERT): Likewise.
6465         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
6466         * tests/unictype/test-digit.c (ASSERT): Likewise.
6467         * tests/unictype/test-mirror.c (ASSERT): Likewise.
6468         * tests/unictype/test-numeric.c (ASSERT): Likewise.
6469         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
6470         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
6471         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
6472         * tests/unictype/test-scripts.c (ASSERT): Likewise.
6473         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
6474         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
6475         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
6476         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
6477         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
6478         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
6479         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
6480         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
6481         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
6482         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
6483         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
6484         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
6485         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
6486         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
6487         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
6488         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
6489         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
6490         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
6491         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
6492         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
6493         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
6494         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
6495         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
6496         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
6497         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
6498         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
6499         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
6500         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
6501         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
6502         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
6503         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
6504         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
6505         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
6506         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
6507         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
6508         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
6509         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
6510         Reported by Eric Blake.
6511
6512 2008-04-11  Bruno Haible  <bruno@clisp.org>
6513
6514         * lib/wchar.in.h: Tweak comment.
6515
6516 2008-04-11  Bruno Haible  <bruno@clisp.org>
6517
6518         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
6519         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
6520         gl_COMMON.
6521         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
6522
6523 2008-04-11  Bruno Haible  <bruno@clisp.org>
6524
6525         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
6526
6527 2008-04-11  Simon Josefsson  <simon@josefsson.org>
6528
6529         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
6530         of attempting to use non-existing /dev/*random.  Based on patch
6531         from Adam Strzelecki <ono@java.pl> in
6532         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
6533
6534 2008-04-08  Bruno Haible  <bruno@clisp.org>
6535
6536         Add tentative support for emx+gcc.
6537         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
6538         * lib/fpurge.c (fpurge): Likewise.
6539         * lib/freadable.c (freadable): Likewise.
6540         * lib/freadahead.c (freadahead): Likewise.
6541         * lib/freading.c (freading): Likewise.
6542         * lib/freadptr.c (freadptr): Likewise.
6543         * lib/freadseek.c (freadptrinc): Likewise.
6544         * lib/fseeko.c (rpl_fseeko): Likewise.
6545         * lib/fseterr.c (fseterr): Likewise.
6546         * lib/fwritable.c (fwritable): Likewise.
6547         * lib/fwriting.c (fwriting): Likewise.
6548         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
6549
6550 2008-04-09  Eric Blake  <ebb9@byu.net>
6551
6552         Avoid some autoconf warnings.
6553         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
6554         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
6555         * m4/afs.m4 (gl_AFS): Likewise.
6556         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
6557         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
6558         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
6559         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
6560         (gl_INTEGER_TYPE_SUFFIX): Likewise.
6561         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
6562         (AC_CHECK_DECLS_ONCE): Likewise.
6563         Rename file...
6564         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
6565         gnulib-tool requires autoconf 2.59 or better.
6566         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
6567
6568 2008-04-08  Eric Blake  <ebb9@byu.net>
6569
6570         Use 'git describe --match' if present (added in git 1.5.5).
6571         * build-aux/git-version-gen: Limit result to tags that match 'v*'
6572         if possible.
6573
6574 2008-04-08  Bruno Haible  <bruno@clisp.org>
6575
6576         Add tentative support for OpenServer.
6577         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
6578         _ptr, _cnt.
6579         * lib/fpurge.c (fpurge): Likewise.
6580         * lib/freadable.c (freadable): Likewise.
6581         * lib/freadahead.c (freadahead): Likewise.
6582         * lib/freading.c (freading): Likewise.
6583         * lib/freadptr.c (freadptr): Likewise.
6584         * lib/freadseek.c (freadptrinc): Likewise.
6585         * lib/fseeko.c (rpl_fseeko): Likewise.
6586         * lib/fseterr.c (fseterr): Likewise.
6587         * lib/fwritable.c (fwritable): Likewise.
6588         * lib/fwriting.c (fwriting): Likewise.
6589         Reported by Roger Cornelius <rac@tenzing.org> and
6590         Brian K. White <brian@aljex.com>.
6591
6592 2008-04-06  Jim Meyering  <meyering@redhat.com>
6593
6594         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
6595
6596 2008-04-06  Bruno Haible  <bruno@clisp.org>
6597
6598         Avoid possible error with non-ASCII bytes in UTF-8 locales.
6599         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
6600         * tests/test-printf-posix.sh: Likewise.
6601         * tests/test-vfprintf-posix.sh: Likewise.
6602         * tests/test-vprintf-posix.sh: Likewise.
6603         * tests/test-xprintf-posix.sh: Likewise.
6604
6605 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6606
6607         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
6608         hide error from 'ls', needed on OS/2.
6609         Report by Elbert Pol <elbert.pol@gmail.com>.
6610
6611 2008-04-04  Eric Blake  <ebb9@byu.net>
6612
6613         Make test-fseeko.c failures meaningful.
6614         * tests/test-fseeko.c: Print line number on failure.
6615         * tests/test-fseek.c: Likewise.
6616         Reported by Nelson H. F. Beebe.
6617
6618         Improve strtod bug detection check.
6619         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
6620         required for Solaris 10.
6621         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
6622
6623 2008-04-04  Bruno Haible  <bruno@clisp.org>
6624
6625         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
6626         by m4/setenv.m4.
6627
6628 2008-04-03  Eric Blake  <ebb9@byu.net>
6629
6630         Ensure sane .version contents.
6631         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
6632         version string.
6633         * build-aux/git-version-gen: Improve documentation.
6634
6635         Make GNU make output nicer.
6636         * top/GNUmakefile [!_have-Makefile]: Add dependency on
6637         MAKECMDGOALS to enforce message for all command line targets.  Set
6638         srcdir for use in maint.mk.
6639
6640         Another maintainer tweak.
6641         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
6642         a target that regenerates version.
6643
6644 2008-04-03  Jim Meyering  <meyering@redhat.com>
6645
6646         vc-list-files: don't cause coreutils "make po-check" failure
6647         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
6648
6649 2008-04-03  Eric Blake  <ebb9@byu.net>
6650
6651         Allow VPATH usage of vc-list-files.
6652         * build-aux/vc-list-files (scriptversion): Add timestamp.
6653         (options): Add --help, --version, -C.
6654         (CVS): Support installed cvsu.
6655
6656 2008-04-02  Bruno Haible  <bruno@clisp.org>
6657
6658         Avoid some "statement with no effect" warnings from gcc.
6659         * tests/test-wctype.c (main): Explicitly ignore unused values.
6660         Reported by Jim Meyering.
6661
6662 2008-04-02  Jim Meyering  <meyering@redhat.com>
6663
6664         Avoid some warnings from "gcc -Wshadow".
6665         * tests/test-frexp.c (exp): Define to a different identifier.
6666         * tests/test-frexpl.c (exp): Likewise.
6667
6668 2008-04-03  Jim Meyering  <meyering@redhat.com>
6669
6670         bootstrap: remove dangling *.[ch] symlinks from lib
6671         * build-aux/bootstrap [dangling symlink removal]: Move find's
6672         -depth option to precede all others, to avoid a warning.
6673         Remove *.[ch] files too, and from "$source_base" (usually lib/).
6674
6675 2008-04-02  Bruno Haible  <bruno@clisp.org>
6676
6677         Avoid some warnings from "gcc -Wshadow".
6678         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
6679         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
6680         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
6681         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
6682         Reported by Jim Meyering.
6683
6684 2008-04-01  Bruno Haible  <bruno@clisp.org>
6685
6686         Fix test to work on IRIX 6.5 with cc.
6687         * tests/test-math.c (numeric_equal): New function.
6688         (main): Use it.
6689
6690 2008-04-01  Bruno Haible  <bruno@clisp.org>
6691
6692         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
6693
6694 2008-04-01  Bruno Haible  <bruno@clisp.org>
6695
6696         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
6697         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
6698         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
6699         (Depends-on): Remove math.
6700
6701         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
6702         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
6703         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
6704         (Depends-on): Remove math.
6705
6706         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
6707         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
6708         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
6709         (Depends-on): Remove math.
6710         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
6711         (Depends-on): Remove math.
6712
6713         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
6714         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
6715         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
6716         (Depends-on): Remove math.
6717         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
6718         (Depends-on): Remove math.
6719
6720         * tests/test-round1.c: Include nan.h.
6721         (main): Use NaNd instead of NAN.
6722         * modules/round-tests (Files): Add tests/nan.h.
6723
6724         * tests/test-trunc1.c: Include nan.h.
6725         (main): Use NaNd instead of NAN.
6726         * modules/trunc-tests (Files): Add tests/nan.h.
6727
6728         * tests/test-roundf1.c: Include nan.h.
6729         (main): Use NaNf instead of NAN.
6730         * modules/roundf-tests (Files): Add tests/nan.h.
6731
6732         * tests/test-truncf1.c: Include nan.h.
6733         (main): Use NaNf instead of NAN.
6734         * modules/truncf-tests (Files): Add tests/nan.h.
6735
6736         * tests/test-ceilf1.c: Include nan.h.
6737         (main): Use NaNf instead of NAN.
6738         * modules/ceilf-tests (Files): Add tests/nan.h.
6739
6740         * tests/test-floorf1.c: Include nan.h.
6741         (main): Use NaNf instead of NAN.
6742         * modules/floorf-tests (Files): Add tests/nan.h.
6743
6744         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
6745         (main): Use NaNf instead of NAN.
6746         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
6747
6748         * tests/test-isnand.c: Include nan.h instead of <math.h>.
6749         (main): Use NaNd instead of NAN.
6750         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
6751
6752         * tests/test-frexp.c: Include nan.h.
6753         (main): Use NaNd instead of NAN.
6754         * modules/frexp-tests (Files): Add tests/nan.h.
6755
6756         * lib/isnan.c: Don't include <math.h>.
6757         (FUNC): Don't use NAN macro.
6758         * modules/isnand-nolibm (Depends-on): Remove math.
6759         * modules/isnanf-nolibm (Depends-on): Remove math.
6760         * modules/isnanl (Depends-on): Remove math.
6761         * modules/isnanl-nolibm (Depends-on): Remove math.
6762
6763         * tests/nan.h: New file.
6764
6765 2008-04-01  Eric Blake  <ebb9@byu.net>
6766
6767         Fix typos.
6768         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
6769         values to be the right type.
6770
6771         For now, cater to gnulib strtod inaccuracies.
6772         * tests/test-strtod.c (main): Allow 1-ulp error on expected
6773         fractional results.  While not as nice from a QoI perspective, it
6774         is a quicker patch than correctly implementing decimal to binary
6775         rounding.
6776
6777 2008-03-31  Eric Blake  <ebb9@byu.net>
6778
6779         Guarantee a definition of NAN.
6780         * lib/math.in.h (NAN): Define if missing.
6781         * tests/test-math.c (main): Test it.
6782         * doc/posix-headers/math.texi (math.h): Document this.
6783         * lib/isnan.c (rpl_isnand): Use it.
6784         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
6785         * tests/test-floorf1.c (NaN): Likewise.
6786         * tests/test-frexp.c (NaN): Likewise.
6787         * tests/test-isnand.c (NaN): Likewise.
6788         * tests/test-isnanf.c (NaN): Likewise.
6789         * tests/test-round1.c (NaN): Likewise.
6790         * tests/test-roundf1.c (NaN): Likewise.
6791         * tests/test-snprintf-posix.h (NaN): Likewise.
6792         * tests/test-sprintf-posix.h (NaN): Likewise.
6793         * tests/test-trunc1.c (NaN): Likewise.
6794         * tests/test-truncf1.c (NaN): Likewise.
6795         * tests/test-vasnprintf-posix.c (NaN): Likewise.
6796         * tests/test-vasprintf-posix.c (NaN): Likewise.
6797         * modules/isnand-nolibm (Depends-on): Add math.
6798         * modules/isnanf-nolibm (Depends-on): Likewise.
6799         * modules/isnanl (Depends-on): Likewise.
6800         * modules/isnanl-nolibm (Depends-on): Likewise.
6801         * modules/snprintf-posix-tests (Depends-on): Likewise.
6802         * modules/sprintf-posix-tests (Depends-on): Likewise.
6803         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
6804         * modules/vsprintf-posix-tests (Depends-on): Likewise.
6805         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
6806         * modules/vasprintf-posix-tests (Depends-on): Likewise.
6807
6808 2008-03-31  Bruno Haible  <bruno@clisp.org>
6809
6810         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
6811         * doc/posix-functions/strtod.texi: Likewise.
6812
6813 2008-03-31  Bruno Haible  <bruno@clisp.org>
6814
6815         * tests/test-strtod.c (main): Don't use C99 syntax.
6816
6817 2008-03-31  Bruno Haible  <bruno@clisp.org>
6818
6819         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
6820         Reported by Eric Blake.
6821
6822 2008-03-31  Jim Meyering  <meyering@redhat.com>
6823
6824         Don't compare actual signbit return values.
6825         * tests/test-strtod.c (main): Rather, compare only their
6826         zero/non-zero nature.
6827
6828 2008-03-31  Eric Blake  <ebb9@byu.net>
6829
6830         More strtod documentation.
6831         * doc/posix-functions/strtod.texi (strtod): Interpret more test
6832         failures as distinct bugs.
6833
6834 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
6835
6836         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
6837         Problem reported by Erik Benada in
6838         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
6839
6840 2008-03-30  Bruno Haible  <bruno@clisp.org>
6841
6842         * tests/test-strtod.c: Add comments about which assertion fails on which
6843         platform.
6844         * doc/posix-functions/strtod.texi: Add info about many more platforms.
6845
6846 2008-03-30  Eric Blake  <ebb9@byu.net>
6847
6848         Test signbit behavior on zeros.
6849         * tests/test-signbit.c (test_signbitf): Add tests for zero.
6850         (test_signbitd, test_signbitl): Likewise.
6851
6852         More strtod touchups.
6853         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
6854         sign of negative underflow, for now.  Use .5, not .1.
6855         * doc/posix-functions/strtod.texi (strtod): Mention these
6856         limitations.
6857         Reported by Jim Meyering.
6858
6859 2008-03-30  Bruno Haible  <bruno@clisp.org>
6860
6861         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
6862         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
6863
6864 2008-03-30  Bruno Haible  <bruno@clisp.org>
6865
6866         Avoid failure when attempting to return empty iconv results on some
6867         platforms.
6868         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
6869         allocation, don't report ENOMEM when the resulting string is empty.
6870
6871 2008-03-30  Bruno Haible  <bruno@clisp.org>
6872
6873         Fix buffer overrun.
6874         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
6875         Don't consider the width for tmp_length. Check count against tmp_length
6876         before doing the padding. Ensure enough allocation during padding.
6877
6878 2008-03-30  Eric Blake  <ebb9@byu.net>
6879
6880         strtod touchups.
6881         * lib/strtod.c (strtod): Avoid compiler warnings.
6882         Reported by Jim Meyering.
6883
6884 2008-03-30  Bruno Haible  <bruno@clisp.org>
6885
6886         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
6887         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
6888         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
6889         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
6890         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
6891         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
6892         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
6893         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
6894
6895         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
6896         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
6897         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
6898         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
6899         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
6900         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
6901         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
6902         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
6903
6904         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
6905         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
6906         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
6907         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
6908         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
6909         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
6910         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
6911         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
6912
6913         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
6914         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
6915
6916         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
6917         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
6918
6919         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
6920         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
6921
6922         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
6923         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
6924         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
6925
6926         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
6927         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
6928         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
6929
6930         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
6931         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
6932         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
6933
6934         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
6935         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
6936         * modules/vasprintf (Depends-on): Add EOVERFLOW.
6937
6938         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
6939         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
6940         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
6941         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
6942         (Depends-on): Add EOVERFLOW.
6943         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
6944         (Depends-on): Add EOVERFLOW.
6945         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
6946         (Depends-on): Add EOVERFLOW.
6947         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
6948         (Depends-on): Add EOVERFLOW.
6949         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
6950         (Depends-on): Add EOVERFLOW.
6951         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
6952         (Depends-on): Add EOVERFLOW.
6953         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
6954         (Depends-on): Add EOVERFLOW.
6955         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
6956         (Depends-on): Add EOVERFLOW.
6957
6958         * lib/sprintf.c (EOVERFLOW): Remove fallback.
6959         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
6960         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
6961
6962         * lib/snprintf.c (EOVERFLOW): Remove fallback.
6963         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
6964         * modules/snprintf (Depends-on): Add EOVERFLOW.
6965
6966         * lib/poll.c (EOVERFLOW): Remove fallback.
6967         * modules/poll (Depends-on): Add EOVERFLOW.
6968
6969         * lib/getugroups.c (EOVERFLOW): Remove fallback.
6970         * modules/getugroups (Depends-on): Add EOVERFLOW.
6971
6972         * lib/getdelim.c (EOVERFLOW): Remove fallback.
6973         * modules/getdelim (Depends-on): Add EOVERFLOW.
6974
6975         * lib/ftell.c (EOVERFLOW): Remove fallback.
6976         * modules/ftell (Depends-on): Add EOVERFLOW.
6977
6978         * lib/fprintf.c (EOVERFLOW): Remove fallback.
6979         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
6980         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
6981
6982         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
6983
6984         * modules/EOVERFLOW-tests: New file.
6985         * tests/test-EOVERFLOW.c: New file.
6986
6987         * modules/EOVERFLOW: New file.
6988         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
6989
6990 2008-03-30  Bruno Haible  <bruno@clisp.org>
6991
6992         Fix bug introduced on 2007-06-10.
6993         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
6994         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
6995
6996 2008-03-30  Bruno Haible  <bruno@clisp.org>
6997
6998         Improve freadseek's efficiency after ungetc.
6999         * lib/freadseek.c: Include freadahead.h.
7000         (freadptrinc): New function, extracted from freadseek.
7001         (freadseek): Use it in a loop. Use freadahead to determine the number
7002         of loop iterations.
7003         * modules/freadseek (Depends-on): Add freadahead.
7004         (configure.ac): Require AC_C_INLINE.
7005
7006 2008-03-30  Bruno Haible  <bruno@clisp.org>
7007
7008         * lib/freadseek.c (freadseek): Don't ignore the return value of
7009         freadptr.
7010
7011 2008-03-29  Eric Blake  <ebb9@byu.net>
7012
7013         Add hex float support.
7014         * modules/strtod (Depends-on): Add c-ctype.
7015         (Link): Mention POW_LIB.
7016         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
7017         whitespace between 'e' and exponent.
7018         * tests/test-strtod.c (main): Enable hex float tests.
7019         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
7020         now provides.
7021
7022         Document various strtod bugs, with some fixes.
7023         * doc/posix-functions/strtod.texi (strtod): Document bugs with
7024         "-0x", "inf", "nan", and hex constants.
7025         * doc/posix-functions/atof.texi (atof): Likewise.
7026         * modules/stdlib (Makefile.am): Support strtod.
7027         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
7028         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
7029         detect additional strtod bugs.
7030         * lib/stdlib.in.h (rpl_strtod): Add declarations.
7031         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
7032         bool where appropriate.  Parse 'inf' and 'nan'.
7033         * tests/test-strtod.c: New file.
7034         * modules/strtod (Depends-on): Add stdbool, stdlib.
7035         (configure.ac): Turn on module indicator.
7036         * modules/strtod-tests: New module.
7037
7038 2008-03-29  Eric Blake  <ebb9@byu.net>
7039
7040         Fix ftell on mingw.
7041         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
7042         * modules/ftell-tests (Depends-on): Add binary-io.
7043         * modules/ftello-tests (Depends-on): Likewise.
7044         * tests/test-ftell.c (main): Enhance test to cover behavior after
7045         ungetc.  Enforce binary mode.
7046         * tests/test-ftello.c (main): Likewise.
7047
7048         Pass test-freadseek on cygwin.
7049         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
7050         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
7051         ungetc buffer.
7052
7053         * tests/test-fflush2.c (main): Fix typo.
7054
7055 2008-03-29  Bruno Haible  <bruno@clisp.org>
7056
7057         * tests/test-fflush2.c (main): Temporarily disable the contents of
7058         this test.
7059         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
7060         Reported by Eric Blake.
7061
7062 2008-03-28  Simon Josefsson  <simon@josefsson.org>
7063
7064         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
7065         (GC_SHA224_DIGEST_SIZE): Add.
7066
7067         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
7068         (gc_hash_digest_length): Likewise.
7069         (gc_hash_buffer): Likewise.
7070
7071 2008-03-25  Bruno Haible  <bruno@clisp.org>
7072
7073         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
7074         detail which gettext release to use.
7075         Reported by Simon Josefsson.
7076
7077 2008-03-26  Jim Meyering  <meyering@redhat.com>
7078
7079         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
7080         * modules/gnumakefile (clean-GNUmakefile): Also, use
7081         test ... && ... || : syntax rather than if-then ... fi.
7082
7083         gnumakefile: Don't double-quote-expand $(VPATH) value.
7084         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
7085
7086 2008-03-24  Eric Blake  <ebb9@byu.net>
7087
7088         Alter GNUmakefile to install into top directory.
7089         * modules/maintainer-makefile: Split, and add dependency...
7090         * modules/gnumakefile: to this new module.
7091         * build-aux/GNUmakefile: Move...
7092         * top/GNUmakefile: ...here.
7093         * build-aux/maint.mk: Move...
7094         * top/maint.mk: ...here.
7095         * MODULES.html.sh (Support for maintaining...): Document new
7096         module.
7097
7098 2008-03-23  Bruno Haible  <bruno@clisp.org>
7099
7100         * gnulib-tool: New options --vc-files, --no-vc-files.
7101         (func_usage): Document them.
7102         (vc_files): New variable.
7103         (func_import): Consider vc_files.
7104         (func_create_testdir): Set vc_files to empty.
7105         Suggested by Jim Meyering and Karl Berry.
7106
7107 2008-03-23  Bruno Haible  <bruno@clisp.org>
7108
7109         Fix regex compilation error on HP-UX 11.
7110         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
7111         * modules/regex (Files): Add m4/mbstate_t.m4.
7112         Reported by Ton Voon <ton.voon@altinity.com>.
7113
7114 2008-03-23  Bruno Haible  <bruno@clisp.org>
7115
7116         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
7117
7118 2008-03-23  Eric Blake  <ebb9@byu.net>
7119             Bruno Haible  <bruno@clisp.org>
7120
7121         Install files from top/ in the destination directory.
7122         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
7123         augmentation also for the files from top/.
7124         (func_import, func_create_testdir): Rewrite file names:
7125         top/filename -> filename.
7126
7127 2008-03-23  Bruno Haible  <bruno@clisp.org>
7128
7129         Tweak "gnulib --version" output.
7130         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
7131
7132 2008-03-23  Bruno Haible  <bruno@clisp.org>
7133
7134         Tweak "gnulib --version" output.
7135         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
7136         rather than contents of ChangeLog, when possible.
7137
7138 2008-03-21  Eric Blake  <ebb9@byu.net>
7139
7140         More --version tweaks.
7141         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
7142         date of last ChangeLog entry.
7143
7144 2008-03-21  Jim Meyering  <meyering@redhat.com>
7145
7146         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
7147
7148 2008-03-20  Eric Blake  <ebb9@byu.net>
7149
7150         VPATH fix.
7151         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
7152
7153 2008-03-20  Simon Josefsson  <simon@josefsson.org>
7154
7155         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
7156         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
7157
7158 2008-03-20  Eric Blake  <ebb9@byu.net>
7159
7160         Sync GNUmakefile with coreutils.
7161         * build-aux/GNUmakefile (have-Makefile): Rename...
7162         (_have-Makefile): ...to this, for namespace consideration.
7163         (GNUmakefile.cfg): Include, if present.
7164         (_autoreconf): Define a default.
7165         (_is-dist-target): New rule for rebuilds to pick up intra-release
7166         version.
7167         (maint-cfg.mk): Rename...
7168         (cfg.mk): ...to this.
7169
7170 2008-03-18  Jim Meyering  <meyering@redhat.com>
7171
7172         New script and module: mktempd
7173         * MODULES.html.sh (maint+release support): Add mktempd.
7174         * build-aux/mktempd: New file.
7175         * modules/mktempd: New file.
7176
7177 2008-03-15  Jim Meyering  <meyering@redhat.com>
7178
7179         Undo last change.
7180         * lib/sha1.c, lib/md5.c: 63 != ~63.
7181         Reported by Andreas Schwab.
7182
7183         sha1.c, md5.c: Hoist a redundant expression.
7184         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
7185         "ctx->buflen" only once, before calling *_process_block.
7186         * lib/md5.c (md5_process_bytes): Likewise.
7187
7188 2008-03-14  Eric Blake  <ebb9@byu.net>
7189
7190         Bump copyright year in files generated by gnulib-tool.
7191         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
7192         gnulib-tool, rather than hard-coding it.
7193
7194         Fix 'gnulib-tool --version' output to work with git.
7195         * gnulib-tool (func_gnulib_dir): New function, extracted from...
7196         (startup): ...here.
7197         (func_version): Use it to invoke git-version-gen, rather than
7198         relying on CVS keyword expansion.  Modernize wording.
7199         (cvsdatestamp, last_checkin_date, version): Kill unused
7200         variables.
7201
7202 2008-03-12  Jim Meyering  <meyering@redhat.com>
7203
7204         Recognize optional cast of the argument to free.
7205         * build-aux/useless-if-before-free: Update regexps.
7206
7207         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
7208
7209 2008-03-11  Bruno Haible  <bruno@clisp.org>
7210
7211         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
7212         by a single package.
7213         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
7214         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
7215         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
7216         Reported by Sam Steingold <sds@gnu.org>.
7217
7218 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
7219
7220         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
7221         repositories.
7222
7223 2008-03-11  Bruno Haible  <bruno@clisp.org>
7224
7225         Avoid conflicts between local macro definitions.
7226         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
7227         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
7228
7229 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
7230             Bruno Haible  <bruno@clisp.org>
7231
7232         Make va_copy work with some version of xlc on AIX 5.1.
7233         * lib/stdarg.in.h: New file.
7234         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
7235         On AIX, use a <stdarg.h> file substitute.
7236         * modules/stdarg (Files): Add lib/stdarg.in.h.
7237         (Depends-on): Add include_next.
7238         (Makefile.am): Build a stdarg.h substitute if requested.
7239         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
7240
7241 2008-03-10  Bruno Haible  <bruno@clisp.org>
7242
7243         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
7244         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
7245         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
7246
7247 2008-03-10  Bruno Haible  <bruno@clisp.org>
7248
7249         * modules/stdlib (Depends-on): Add include_next, remove
7250         absolute-header.
7251
7252 2008-03-09  Bruno Haible  <bruno@clisp.org>
7253
7254         * lib/freadahead.h (freadahead): Document more precisely.
7255         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
7256         the sum of both buffer sizes.
7257         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
7258         * NEWS: Document the change.
7259
7260 2008-03-09  Bruno Haible  <bruno@clisp.org>
7261
7262         Extend freadptr to return also the buffer size.
7263         * lib/freadptr.h (freadptr): Add sizep argument.
7264         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
7265         (freadptr): Add sizep argument. Determine buffer size like freadahead
7266         does.
7267         * tests/test-freadptr.c: Don't include freadahead.h.
7268         (main): Adapt for new calling convention of freadptr.
7269         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
7270         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
7271         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
7272         tests/test-freadptr2.sh.
7273         (Depends): Remove freadahead.
7274         (TESTS): Add test-freadptr2.sh.
7275         (check_PROGRAMS): Add test-freadptr2.
7276
7277 2008-03-09  Bruno Haible  <bruno@clisp.org>
7278
7279         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
7280         Report and solution by Simon Josefsson.
7281
7282 2008-03-06  Bruno Haible  <bruno@clisp.org>
7283
7284         Make fflush after ungetc work on BSD platforms.
7285         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
7286         * tests/test-fflush2.c: New file.
7287         * tests/test-fflush2.sh: New file.
7288         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
7289         tests/test-fflush2.c.
7290         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
7291         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
7292
7293 2008-03-06  Eric Blake  <ebb9@byu.net>
7294
7295         Likewise for ftello.
7296         * modules/ftello (Dependencies): Add extensions.
7297         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
7298
7299 2008-03-06  Bruno Haible  <bruno@clisp.org>
7300
7301         * modules/fseeko (Dependencies): Add extensions.
7302         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
7303         Needed on glibc systems.
7304
7305 2008-03-06  Bruno Haible  <bruno@clisp.org>
7306
7307         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
7308         email address.
7309         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
7310
7311 2008-03-06  Bruno Haible  <bruno@clisp.org>
7312
7313         * users.txt: Add libgnupdf.
7314
7315 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
7316
7317         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
7318         (Header File Substitutes, Function Substitutes,
7319         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
7320         (Build robot for gnulib): Fix typo.
7321
7322 2008-03-06  Bruno Haible  <bruno@clisp.org>
7323
7324         * doc/gnulib-tool.texi (VCS Issues): Small updates.
7325         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
7326
7327 2008-03-06  Bruno Haible  <bruno@clisp.org>
7328
7329         * doc/func.texi: New file, extracted from doc/gnulib.texi.
7330         * doc/gnulib.texi: Include it.
7331
7332 2008-03-06  Simon Josefsson  <simon@josefsson.org>
7333
7334         * modules/func (License): Change license to unlimited; there was
7335         no LGPL parts in the module anyway.
7336
7337 2008-03-06  Simon Josefsson  <simon@josefsson.org>
7338
7339         * modules/__func__: Renamed to modules/func.
7340         * modules/__func__-tests: Renamed to modules/func-tests.
7341         * tests/test-__func__.c: Renamed to tests/test-func.c.
7342         * m4/__func__.m4: Renamed to m4/func.m4.
7343         * doc/gnulib.texi (__func__): Section renamed to func.
7344         Suggested by Eric Blake <ebb9@byu.net>.
7345
7346 2008-03-06  Simon Josefsson  <simon@josefsson.org>
7347
7348         * doc/gnulib.texi (__func__): Use C99 terminology when talking
7349         about __func__.  Make example self-contained.  Suggested by Eric
7350         Blake <ebb9@byu.net>.
7351
7352         * tests/test-__func__.c (main): Avoid extraneous () around __func.
7353         Suggested by Eric Blake <ebb9@byu.net>.
7354
7355 2008-03-06  Simon Josefsson  <simon@josefsson.org>
7356
7357         * modules/__func__: New file.
7358         * modules/__func__-tests: New file.
7359         * tests/test-__func__.c: New file.
7360         * m4/__func__.m4: New file.
7361         * doc/gnulib.texi (__func__): Document __func__ module.
7362
7363 2008-03-05  Simon Josefsson  <simon@josefsson.org>
7364
7365         * modules/byteswap (License): Re-license as LGPLv2+.
7366
7367 2008-03-05  Simon Josefsson  <simon@josefsson.org>
7368
7369         * doc/Makefile: Add pdf target.
7370
7371 2008-03-05  Simon Josefsson  <simon@josefsson.org>
7372
7373         * modules/inline (License): Use 'unlimited', since there are only
7374         *.m4 files in this module.
7375
7376 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
7377             Bruno Haible  <bruno@clisp.org>
7378
7379         Add support for HP C 7.1 on OpenVMS 8.3.
7380         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
7381
7382 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
7383
7384         Update VMS specifics.
7385         * lib/getopt.c [VMS]: Remove include of unixlib.h.
7386
7387 2008-03-02  Jim Meyering  <meyering@redhat.com>
7388
7389         Remove the last dependency on the "free" module.
7390         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
7391         Reported by Bob Proulx.
7392
7393         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
7394
7395         Remove useless "if" tests before free.  Deprecate "free" module.
7396         * doc/posix-functions/free.texi: Mention that this
7397         module is no longer useful.
7398         * modules/free (Notice): Say this module is obsolete.
7399         * modules/readutmp (Depends-on): Remove free.
7400         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
7401         * lib/putenv.c (putenv): Likewise.
7402         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
7403         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
7404         * tests/test-c-strcasestr.c (main): Likewise.
7405         * tests/test-c-strstr.c (main): Likewise.
7406         * tests/test-mbscasestr1.c (main): Likewise.
7407         * tests/test-mbscasestr2.c (main): Likewise.
7408         * tests/test-mbsstr1.c (main): Likewise.
7409         * tests/test-mbsstr2.c (main): Likewise.
7410         * tests/test-memmem.c (main): Likewise.
7411         * tests/test-strcasestr.c (main): Likewise.
7412         * tests/test-striconv.c (main): Likewise.
7413         * tests/test-striconveh.c (main): Likewise.
7414         * tests/test-striconveha.c (main): Likewise.
7415         * tests/test-strstr.c (main): Likewise.
7416
7417         * build-aux/git-version-gen: Adjust a comment and the Usage string.
7418
7419         bootstrap: sync from coreutils again
7420         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
7421
7422 2008-03-01  Jim Meyering  <meyering@redhat.com>
7423
7424         bootstrap: sync from coreutils
7425         * build-aux/bootstrap (update_po_files): Copy a .po file into place
7426         also when the target doesn't exist.
7427
7428 2008-03-01  Eric Blake  <ebb9@byu.net>
7429
7430         Fix bugs in last patch.
7431         * lib/memchr2.c (memchr2): Fix typo.
7432         * tests/test-memchr2.c: Test previous bug, and don't use GNU
7433         extension.
7434         Reported by Bruce Korb.
7435
7436         New module 'memchr2'.
7437         * modules/memchr2: New file.
7438         * modules/memchr2-tests: Likewise.
7439         * lib/memchr2.h: Likewise.
7440         * lib/memchr2.c: Likewise, based on memchr.c.
7441         * tests/test-memchr2.c: New test.
7442         * MODULES.html.sh (String handling): Add memchr2.
7443
7444 2008-02-29  Bruno Haible  <bruno@clisp.org>
7445
7446         * modules/freadseek-tests: New file.
7447         * tests/test-freadseek.sh: New file.
7448         * tests/test-freadseek.c: New file.
7449
7450         New module 'freadseek'.
7451         * modules/freadseek: New file.
7452         * lib/freadseek.h: New file.
7453         * lib/freadseek.c: New file.
7454         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
7455
7456 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
7457
7458         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
7459         wydawca.
7460
7461         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
7462         program_invocation_name and program_invocation_short_name are
7463         present.
7464
7465 2008-02-28  Bruno Haible  <bruno@clisp.org>
7466
7467         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
7468         * tests/test-freadptr.sh: Also test non-seekable stdin.
7469
7470 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
7471
7472         * build-aux/bootstrap (source_base, m4_base)
7473         (doc_base, tests_base): New variables.
7474         (gnulib_tool_options): Do not hardcode base directories, use
7475         the above variables instead.
7476
7477 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
7478
7479         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
7480
7481 2008-02-28  Bruno Haible  <bruno@clisp.org>
7482
7483         * modules/freadptr-tests: New file.
7484         * tests/test-freadptr.sh: New file.
7485         * tests/test-freadptr.c: New file.
7486
7487         New module 'freadptr'.
7488         * modules/freadptr: New file.
7489         * lib/freadptr.h: New file.
7490         * lib/freadptr.c: New file.
7491         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
7492
7493 2008-02-26  Karl Berry  <karl@freefriends.org>
7494
7495         Sync from Libtool:
7496         * libltdl/argz.c (argz_add, argz_count): New functions.
7497         * libltdl/argz.in.h: Declare them.
7498         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
7499
7500 2008-02-22  Bruno Haible  <bruno@clisp.org>
7501
7502         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
7503         is a pointer type.  Needed for HP-UX 10.
7504         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
7505         * doc/posix-functions/gmtime_r.texi: Likewise.
7506         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
7507
7508 2008-02-24  Bruno Haible  <bruno@clisp.org>
7509
7510         * modules/environ-tests: New file.
7511         * tests/test-environ.c: New file.
7512
7513         New module 'environ'.
7514         * modules/environ: New file.
7515         * lib/unistd.in.h (environ): New declaration.
7516         * m4/environ.m4: New file.
7517         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
7518         after use.
7519         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
7520         HAVE_DECL_ENVIRON.
7521         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
7522         HAVE_DECL_ENVIRON.
7523         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
7524         wrong claim that 'environ' is missing on some systems.
7525         * modules/execute (Depends-on): Add environ.
7526         * lib/execute.c (environ): Remove fallback declaration.
7527         * modules/pipe (Depends-on): Add environ.
7528         * lib/pipe.c (environ): Remove fallback declaration.
7529         * modules/setenv (Depends-on): Add environ.
7530         * lib/setenv.c (environ): Remove fallback declaration.
7531         * modules/unsetenv (Depends-on): Add environ.
7532         * lib/unsetenv.c (environ): Remove fallback declaration.
7533         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
7534         m4/environ.m4.
7535         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
7536         (gl_PREREQ_UNSETENV): Likewise.
7537
7538 2008-02-24  Bruno Haible  <bruno@clisp.org>
7539
7540         * doc/posix-functions/environ.texi: Document the MacOS X problem.
7541
7542 2008-02-20  Bob Proulx  <bob@proulx.com>
7543
7544         Enable use of older two part flavor 'git describe'.
7545         * build-aux/git-version-gen: If using the older two part flavor of
7546         git version then recreate the third part now present in the
7547         newer three part flavor of git describe.
7548
7549 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
7550
7551         * lib/fts.c (fts_build): Typo correction to comment.
7552
7553 2008-02-17  Bruno Haible  <bruno@clisp.org>
7554
7555         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
7556         generating no-op conflicts.
7557
7558 2008-02-17  Bruno Haible  <bruno@clisp.org>
7559
7560         Speed up by 10%.
7561         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
7562         result_entries, rather than an index-based loop.
7563
7564 2008-02-17  Bruno Haible  <bruno@clisp.org>
7565
7566         Speed up by 25%.
7567         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
7568         'hashcode_cached'.
7569         (entry_create): New function.
7570         (entry_hashcode): Use the cached hashcode if possible.
7571         (read_changelog_file, try_split_merged_entry): Use entry_create.
7572
7573 2008-02-17  Bruno Haible  <bruno@clisp.org>
7574
7575         Speed up from O(n^2) to O(n) for long ChangeLog files.
7576         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
7577         (read_changelog_file): Change implementation of entries_reversed list
7578         to rbtreehash.
7579         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
7580
7581 2008-02-17  Bruno Haible  <bruno@clisp.org>
7582
7583         New option --split-merged-entry.
7584         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
7585         (find_paragraph_end, try_split_merged_entry): New functions.
7586         (long_options): Add option --split-merged-entry.
7587         (usage): Document option --split-merged-entry.
7588         (main): Implement option --split-merged-entry.
7589         Reported by Eric Blake.
7590
7591 2008-02-17  Bruno Haible  <bruno@clisp.org>
7592
7593         * lib/git-merge-changelog.c: Include c-strstr.h.
7594         (main): Support the "git pull --rebase" situation.
7595         * modules/git-merge-changelog (Depends-on): Add c-strstr.
7596         Reported by Eric Blake.
7597
7598 2008-02-16  Eric Blake  <ebb9@byu.net>
7599
7600         Avoid doubling \ in common case of "c-maybe" quoting style.
7601         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
7602         eliding outer quotes.
7603         * lib/quotearg.h: Document this.
7604         * tests/test-quotearg.c (result_strings, inputs, results_g)
7605         (flag_results, locale_results): Test it by adding a new string to
7606         each test group.
7607         (compare_strings): Test new string.
7608
7609 2008-02-13  Eric Blake  <ebb9@byu.net>
7610
7611         Avoid trigraph quoting in default output.
7612         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
7613         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
7614         unless explicitly requested.
7615         * tests/test-quotearg.c (flag_results, main): Add additional tests.
7616
7617 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
7618
7619         Don't rely on signed integer overflowing to negative value.
7620         * lib/getugroups.c (getugroups): Include <limits.h>.
7621         Instead, compare against INT_MAX, and increment only if the test passes.
7622
7623 2008-02-13  Jim Meyering  <meyering@redhat.com>
7624         and Eric Blake  <ebb9@byu.net>
7625
7626         Avoid shadowing warning and compile errors on Linux.
7627         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
7628         forwarding macros on Linux.
7629         (dcgettext): Define a stub, for Linux.
7630         (results_g, main): Avoid warnings.
7631
7632 2008-02-12  Eric Blake  <ebb9@byu.net>
7633
7634         Silence warning in last patch.
7635         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
7636
7637         Quotearg part 4: add tests, fix c-maybe colon quoting.
7638         * lib/quotearg.h: Improve documentation.
7639         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
7640         escapes when adding outer quotes.  When quoting trigraphs, use
7641         valid C notation.  When quoting NUL, omit extra characters if next
7642         character is not digit.  Alter prototype.
7643         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
7644         callers.
7645         * modules/quotearg-tests: New module.
7646         * tests/test-quotearg.c: New test.
7647
7648 2008-02-07  Eric Blake  <ebb9@byu.net>
7649
7650         Quotearg part 3: add flag to control outer quote elision.
7651         * lib/quotearg.h (c_maybe_quoting_style): New style.
7652         (enum quoting_flags): Better documentation of flags.
7653         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
7654         c-maybe style.
7655         (quotearg_buffer_restyled): Handle new flag to elide outer
7656         quotes.
7657
7658         Quotearg part 2: add flag that can control NUL elision.
7659         * lib/quotearg.h (set_quoting_flags): New prototype.
7660         * lib/quotearg.c (struct quoting_options): Add flag field.
7661         (set_quoting_flags): New function.
7662         (quotearg_buffer_restyled): Add flags parameter.
7663         (quotearg_alloc_mem): Set the flag if length cannot be returned.
7664         (quotearg_n_options): Set the flag, since length cannot be
7665         returned.
7666         (quoting_options_from_style): Default flags correctly.
7667
7668         Quotearg part 1: more wrappers, restore quotearg_char state.
7669         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
7670         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
7671         (quotearg_colon_mem): New wrappers.
7672         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
7673         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
7674         functions.
7675         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
7676         (quotearg_colon_mem): New functions.
7677
7678 2008-02-11  Bruno Haible  <bruno@clisp.org>
7679
7680         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
7681         library in the current directory: it does not work with parallel make.
7682         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
7683
7684 2008-02-11  Bruno Haible  <bruno@clisp.org>
7685
7686         * .gitattributes: New file.
7687
7688 2008-02-11  Jim Meyering  <meyering@redhat.com>
7689
7690         useless-if-before-free: Fix reversed exit values.
7691         * build-aux/useless-if-before-free: Use correct values
7692         for EXIT_MATCH and EXIT_NO_MATCH.
7693
7694         * build-aux/useless-if-before-free: Close stdout carefully.
7695
7696 2008-02-10  Bruno Haible  <bruno@clisp.org>
7697
7698         New module 'git-merge-changelog'.
7699         * modules/git-merge-changelog: New file.
7700         * lib/git-merge-changelog.c: New file.
7701
7702 2008-02-10  Jim Meyering  <meyering@redhat.com>
7703
7704         useless-if-before-free: New option: --list (-l).
7705
7706         useless-if-before-free: Don't exit immediately upon open failure.
7707         * build-aux/useless-if-before-free: Exit 2 for errors.
7708         Upon failure to open a file, don't exit immediately.
7709         Rather, just warn and continue with any remaining files.
7710
7711 2008-02-10  Bruno Haible  <bruno@clisp.org>
7712
7713         New abstract list operation 'node_set_value'.
7714         * lib/gl_list.h (gl_list_node_set_value): New function.
7715         (struct gl_list_implementation): New field node_set_value.
7716         * lib/gl_list.c (gl_list_node_set_value): New function.
7717         * lib/gl_array_list.c (gl_array_node_set_value): New function.
7718         (gl_array_list_implementation): Update.
7719         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
7720         (gl_carray_list_implementation): Update.
7721         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
7722         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
7723         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
7724         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
7725         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
7726         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
7727         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
7728         Update.
7729         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
7730         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
7731         (gl_sublist_list_implementation): Update.
7732
7733 2008-02-10  Bruno Haible  <bruno@clisp.org>
7734
7735         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
7736         Needed when ELEMENT is #defined to 'some_type *'.
7737
7738 2008-02-10  Jim Meyering  <meyering@redhat.com>
7739
7740         New script and module: useless-if-before-free
7741         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
7742         * build-aux/useless-if-before-free: New file.
7743         * modules/useless-if-before-free: New file.
7744
7745         * build-aux/gitlog-to-changelog: Use committer date, not author date.
7746
7747         xstrtol_error: Fix typo.
7748         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
7749         s/exit_failure/exit_status/.
7750
7751 2008-02-09  Jim Meyering  <meyering@redhat.com>
7752
7753         New script and module: gitlog-to-changelog
7754         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
7755         * modules/gitlog-to-changelog: New file.
7756         * build-aux/gitlog-to-changelog: New file.
7757
7758 2008-02-08  Jim Meyering  <meyering@redhat.com>
7759
7760         Avoid two "parameter unused" warnings.
7761         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
7762         Mark "st" as used.
7763
7764         Use "git COMMAND", not "git-COMMAND".
7765         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
7766         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
7767         * build-aux/git-version-gen: Use "git status", not "git-status".
7768
7769 2008-02-07  Bruno Haible  <bruno@clisp.org>
7770
7771         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
7772         Avoids a crash on Windows Vista.
7773         Reported by Adam Strzelecki <ono@java.pl> via
7774         Simon Josefsson <simon@josefsson.org>.
7775
7776 2008-02-06  Bruno Haible  <bruno@clisp.org>
7777
7778         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
7779         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
7780         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
7781         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
7782         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
7783         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
7784         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
7785         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
7786         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
7787         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
7788         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
7789         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
7790         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
7791         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
7792         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
7793         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
7794         left-adjust flag.
7795         * tests/test-snprintf-posix.h (test_function): Likewise.
7796         * tests/test-sprintf-posix.h (test_function): Likewise.
7797         * tests/test-vasprintf-posix.c (test_function): Likewise.
7798         * doc/posix-functions/fprintf.texi: Update.
7799         * doc/posix-functions/printf.texi: Update.
7800         * doc/posix-functions/snprintf.texi: Update.
7801         * doc/posix-functions/sprintf.texi: Update.
7802         * doc/posix-functions/vfprintf.texi: Update.
7803         * doc/posix-functions/vprintf.texi: Update.
7804         * doc/posix-functions/vsnprintf.texi: Update.
7805         * doc/posix-functions/vsprintf.texi: Update.
7806         Reported by Peter Fales <psfales@alcatel-lucent.com>.
7807
7808 2008-02-06  Bruno Haible  <bruno@clisp.org>
7809
7810         Fix bug introduced on 2008-01-26.
7811         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
7812
7813 2008-02-06  Bruno Haible  <bruno@clisp.org>
7814
7815         Fix bug introduced on 2007-06-10.
7816         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
7817         !NEED_PRINTF_FLAG_ZERO.
7818
7819 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
7820
7821         getloadavg: use libperfstat on AIX5
7822         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
7823
7824 2008-02-03  Bruno Haible  <bruno@clisp.org>
7825
7826         * lib/diffseq.h: Add comments about required #includes.
7827         Reported by Michael Biggs <gnulib@doubleplum.net>.
7828
7829 2008-02-01  Bruno Haible  <bruno@clisp.org>
7830
7831         * users.txt: Add gnuit.
7832
7833 2008-01-31  Bruno Haible  <bruno@clisp.org>
7834
7835         * lib/md4.c (set_uint32): Mark as inline.
7836         * lib/md5.c (set_uint32): Likewise.
7837         * lib/sha1.c (set_uint32): Likewise.
7838         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
7839         * m4/md5.m4 (gl_MD5): Likewise.
7840         * m4/sha1.m4 (gl_SHA1): Likewise.
7841
7842 2008-01-31  Jim Meyering  <meyering@redhat.com>
7843
7844         Use "sizeof VAR", rather than a literal "4".
7845         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
7846         * lib/md4.c (md4_read_ctx): Likewise.
7847         * lib/sha1.c (sha1_read_ctx): Likewise.
7848
7849 2008-01-31  Simon Josefsson  <simon@josefsson.org>
7850
7851         * tests/test-sha1.c: New file, based on test-md5.c.
7852
7853         * modules/crypto/sha1-tests: New file.
7854
7855 2008-01-31  Simon Josefsson  <simon@josefsson.org>
7856
7857         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
7858
7859 2008-01-31  Jim Meyering  <meyering@redhat.com>
7860
7861         Prefer "sizeof v" over the equivalent "4".
7862         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
7863         * lib/md5.c (set_uint32): Likewise.
7864         * lib/sha1.c (set_uint32): Likewise.
7865
7866 2008-01-31  Simon Josefsson  <simon@josefsson.org>
7867
7868         * lib/sha1.c (set_uint32): Mark function as static.
7869
7870 2008-01-31  Simon Josefsson  <simon@josefsson.org>
7871
7872         md2: clarify comments to say that alignment is not required.
7873         * lib/md2.h: Remove warning about alignment in comment.
7874         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
7875         never been required.
7876
7877 2008-01-31  Simon Josefsson  <simon@josefsson.org>
7878
7879         md4: adapt alignment constraint fix from sha1.
7880         * lib/md4.c (set_uint32): New function, from sha1.c
7881         (md4_read_ctx): Use it.
7882         (md4_finish_ctx): Doc fix.
7883         * lib/md4.h: Doc fix.
7884
7885 2008-01-31  Simon Josefsson  <simon@josefsson.org>
7886
7887         md5: adapt alignment constraint fix from sha1.
7888         * lib/md5.c (set_uint32): New function, from sha1.c
7889         (md5_read_ctx): Use it.
7890         (md5_finish_ctx): Doc fix.
7891         * lib/md5.h: Doc fix.
7892
7893 2008-01-30  Peter Palfrader  <weasel@debian.org>
7894
7895         sha1: remove the result buffer alignment constraint
7896         * lib/sha1.c (set_uint32): New function.
7897         (sha1_read_ctx): Rewrite to remove the result buffer alignment
7898         constraint.
7899         (sha1_finish_ctx): Remove comment warning about alignment constraint.
7900         * lib/sha1.h: Likewise.
7901
7902 2008-01-30  Andreas Schwab  <schwab@suse.de>
7903             Bruno Haible  <bruno@clisp.org>
7904
7905         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
7906         correct definition of LDBL_MIN_EXP.
7907
7908 2008-01-30  Karl Berry  <karl@gnu.org>
7909
7910         * config/srclist-update: try to preserve x bit on updates.
7911         * config/srclistvars.sh: update for karl.
7912
7913 2008-01-29  Jim Meyering  <meyering@redhat.com>
7914
7915         vasnprintf.c: Avoid warning about unused label
7916         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
7917         "overflow" label definition and associated code with the
7918         same cpp condition that guards the sole use of that label.
7919
7920 2008-01-26  Bruno Haible  <bruno@clisp.org>
7921
7922         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
7923         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
7924         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
7925         * lib/isnanl-nolibm.h (isnanl): Likewise.
7926         Reported by Paul Eggert <eggert@cs.ucla.edu>.
7927
7928 2008-01-26  Bruno Haible  <bruno@clisp.org>
7929
7930         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
7931         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
7932
7933 2008-01-26  Bruno Haible  <bruno@clisp.org>
7934
7935         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
7936         GCC >= 4.0 built-in.
7937         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
7938
7939 2008-01-26  Bruno Haible  <bruno@clisp.org>
7940
7941         Rename isnan, applicable to 'double' only, to isnand.
7942         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
7943         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
7944         (configure.ac): Update.
7945         (Include): Replace "isnan.h" with "isnand.h".
7946         * m4/isnand.m4: Renamed from m4/isnan.m4.
7947         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
7948         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
7949         instead of isnan.c.
7950         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
7951         instead of HAVE_ISNAN_IN_LIBC.
7952         (isnand): Renamed from isnan.
7953         * lib/isnand.c: New file.
7954         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
7955         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
7956         (Makefile.am): Update.
7957         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
7958         Include isnand.h instead of isnan.h.
7959         (main): Test isnand instead of isnan.
7960         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
7961         isnan-nolibm.
7962         * modules/frexp (Depends-on): Likewise.
7963         * modules/frexp-tests (Depends-on): Likewise.
7964         * modules/frexp-nolibm (Depends-on): Likewise.
7965         * modules/frexp-nolibm-tests (Depends-on): Likewise.
7966         * modules/isfinite (Depends-on): Likewise.
7967         * modules/round-tests (Depends-on): Likewise.
7968         * modules/signbit (Depends-on): Likewise.
7969         * modules/signbit-tests (Depends-on): Likewise.
7970         * modules/snprintf-posix (Depends-on): Likewise.
7971         * modules/sprintf-posix (Depends-on): Likewise.
7972         * modules/trunc-tests (Depends-on): Likewise.
7973         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
7974         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
7975         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
7976         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
7977         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
7978         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
7979         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
7980         * modules/vasnprintf-posix (Depends-on): Likewise.
7981         * modules/vasprintf-posix (Depends-on): Likewise.
7982         * modules/vfprintf-posix (Depends-on): Likewise.
7983         * modules/vsnprintf-posix (Depends-on): Likewise.
7984         * modules/vsprintf-posix (Depends-on): Likewise.
7985         * lib/frexp.c: Include isnand.h instead of isnan.h.
7986         (ISNAN): Set to isnand instead of isnan.
7987         * lib/isfinite.c: Include isnand.h instead of isnan.h.
7988         (gl_isfinited): Use isnand instead of isnan.
7989         * lib/signbitd.c: Include isnand.h instead of isnan.h.
7990         (gl_signbitd): Use isnand instead of isnan.
7991         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
7992         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
7993         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
7994         (main): Use isnand instead of isnan.
7995         * tests/test-round1.c: Include isnand.h.
7996         (main): Use isnand instead of isnan.
7997         * tests/test-round2.c: Include isnand.h instead of isnan.h.
7998         (ISNAN): Set to isnand instead of isnan.
7999         * tests/test-trunc1.c: Include isnand.h.
8000         (main): Use isnand instead of isnan.
8001         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
8002         (equal): Use isnand instead of isnan.
8003         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
8004         isnand-nolibm.
8005         * NEWS: Mention the change.
8006
8007 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
8008             Bruno Haible  <bruno@clisp.org>
8009
8010         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
8011         the GCC builtins for signbits are present and set
8012         REPLACE_SIGNBIT_USING_GCC if so.
8013         * lib/math.in.h (signbit): Define using GCC builtins if
8014         REPLACE_SIGNBIT_USING_GCC is set.
8015         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
8016         REPLACE_SIGNBIT_USING_GCC.
8017         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
8018
8019 2008-01-25  Jim Meyering  <meyering@redhat.com>
8020
8021         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
8022         * lib/poll.c: Include <config.h>, not "config.h".
8023         * tests/test-getaddrinfo.c: Likewise.
8024
8025 2008-01-25  Simon Josefsson  <simon@josefsson.org>
8026
8027         * modules/sockets-tests: New file.
8028
8029 2008-01-24  Simon Josefsson  <simon@josefsson.org>
8030
8031         * modules/sockets: New module, can be used to call WSA_Startup and
8032         WSA_Cleanup when needed.
8033
8034         * lib/sockets.h, lib/sockets.c: New files.
8035
8036         * m4/sockets.m4: New file.
8037
8038         * tests/test-sockets.c: New file.
8039
8040 2008-01-19  Bruno Haible  <bruno@clisp.org>
8041
8042         * doc/posix-headers: Renamed from doc/headers.
8043         * doc/posix-functions: Renamed from doc/functions.
8044         * doc/gnulib.texi: Update.
8045
8046 2008-01-19  Bruno Haible  <bruno@clisp.org>
8047
8048         * doc/glibc-functions/strcasestr.texi: Include contents of
8049         doc/functions/strcasestr.texi, fixing the list of platforms.
8050         * doc/functions/strcasestr.texi: Remove file.
8051
8052 2008-01-19  Bruno Haible  <bruno@clisp.org>
8053
8054         * doc/glibc-functions/memmem.texi: Include contents of
8055         doc/functions/memmem.texi.
8056         * doc/functions/memmem.texi: Remove file.
8057
8058 2008-01-18  Bruno Haible  <bruno@clisp.org>
8059
8060         * doc/glibc-functions/*.texi: New files.
8061         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
8062         to use the new files.
8063
8064 2008-01-17  Bruno Haible  <bruno@clisp.org>
8065
8066         * tests/test-gethostname.c (main): Fix printf statement.
8067
8068 2008-01-17  Simon Josefsson  <simon@josefsson.org>
8069
8070         * modules/gethostname-tests: New file.
8071
8072         * tests/test-gethostname.c: New file.
8073
8074 2008-01-17  Simon Josefsson  <simon@josefsson.org>
8075
8076         * lib/gethostname.c: Include string.h unconditionally, strncpy is
8077         used by the UNAME case.  Reported by Bruno Haible
8078         <bruno@clisp.org>.
8079
8080 2008-01-17  Eric Blake  <ebb9@byu.net>
8081
8082         Convert c-strcasestr to be more efficient.
8083         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
8084         (Depends-on): Add c-strcase, remove malloca, strnlen.
8085         * tests/test-c-strcasestr.c (main): Enhance test.
8086         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
8087
8088 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
8089
8090         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
8091         Use it in creating po/Makevars.
8092
8093 2008-01-15  Simon Josefsson  <simon@josefsson.org>
8094
8095         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
8096         Applications that requires it should initialize libgcrypt
8097         manually.
8098
8099 2008-01-16  Simon Josefsson  <simon@josefsson.org>
8100
8101         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
8102
8103 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
8104
8105         Fix problem with getdate on mingw32 reported by Simon Josefsson
8106         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
8107         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
8108         tzname", when deciding whether to declare tzname.
8109         * lib/strftime.c (tzname): Likewise.
8110
8111 2008-01-15  Bruno Haible  <bruno@clisp.org>
8112
8113         Work around a MacOS X 10.5 bug in frexpl().
8114         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
8115         * doc/functions/frexpl.texi: Document the bug.
8116         Reported by Elias Pipping <pipping@gentoo.org>.
8117
8118 2008-01-14  Eric Blake  <ebb9@byu.net>
8119
8120         Touch up previous patch.
8121         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
8122         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
8123
8124         Convert strcasestr module to use Two-Way algorithm.
8125         * modules/strcasestr-simple: New module, based on the old
8126         strcasestr, but with Two-Way rather than KMP.
8127         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
8128         * lib/string.in.h (rpl_strcasestr): Declare.
8129         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
8130         performance.
8131         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
8132         * modules/string (Makefile.am): Support strcasestr.
8133         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
8134         * modules/strcasestr-tests (Depends-on): Check for alarm.
8135         * tests/test-strcasestr.c: Augment test.
8136         * lib/str-two-way.h: Clean up stray macro.
8137         * NEWS: Document new module.
8138         * MODULES.html.sh (string handling): Likewise.
8139         * doc/functions/strcasestr.texi: New file.
8140         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
8141         here, since it is not a POSIX function.
8142
8143 2008-01-14  Colin Watson  <cjwatson@debian.org>
8144             Bruno Haible  <bruno@clisp.org>
8145
8146         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
8147         works fine; if not, set REPLACE_STRSIGNAL.
8148         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
8149         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
8150         REPLACE_STRSIGNAL.
8151         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
8152         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
8153         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
8154
8155 2008-01-14  Bruno Haible  <bruno@clisp.org>
8156
8157         * modules/strsignal (Include): Change to <string.h>.
8158
8159 2008-01-14  Colin Watson  <cjwatson@debian.org>
8160
8161         * modules/argp (Notice): Add a notice recommending to change
8162         XGETTEXT_OPTIONS.
8163         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
8164
8165 2008-01-13  Colin Watson  <cjwatson@debian.org>
8166
8167         * modules/strsignal-tests: New file.
8168         * tests/test-strsignal.c: New file.
8169
8170         * lib/strsignal.c: New file, from glibc with modifications.
8171         * lib/siglist.h: New file, from glibc with modifications.
8172         * lib/string.in.h (strsignal): New declaration.
8173         * m4/strsignal.m4: New file.
8174         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
8175         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
8176         * modules/strsignal: New file.
8177         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
8178         HAVE_DECL_STRSIGNAL.
8179
8180 2008-01-13  Bruno Haible  <bruno@clisp.org>
8181
8182         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
8183         locale encoding is not ASCII. Needed for OpenBSD 4.0.
8184         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
8185         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
8186
8187 2008-01-13  Bruno Haible  <bruno@clisp.org>
8188
8189         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
8190         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
8191         * lib/argp.h (__attribute__): Likewise.
8192         * lib/c-stack.c (__attribute__): Likewise.
8193         * lib/error.h (__attribute__): Likewise.
8194         * lib/fts.c (__attribute__): Likewise.
8195         * lib/openat.h (__attribute__): Likewise.
8196         * lib/stdio.in.h (__attribute__): Likewise.
8197         * lib/string.in.h (__attribute__): Likewise.
8198         * lib/utimens.c (__attribute__): Likewise.
8199         * lib/vasnprintf.h (__attribute__): Likewise.
8200         * lib/xalloc.h (__attribute__): Likewise.
8201         * lib/xprintf.h (__attribute__): Likewise.
8202         * lib/xstrtol.h (__attribute__): Likewise.
8203         * lib/xvasprintf.h (__attribute__): Likewise.
8204
8205 2008-01-12  Bruno Haible  <bruno@clisp.org>
8206
8207         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
8208         * doc/glibc-headers/a.out.texi: New file.
8209         * doc/glibc-headers/aliases.texi: New file.
8210         * doc/glibc-headers/alloca.texi: New file.
8211         * doc/glibc-headers/ar.texi: New file.
8212         * doc/glibc-headers/argp.texi: New file.
8213         * doc/glibc-headers/argz.texi: New file.
8214         * doc/glibc-headers/byteswap.texi: New file.
8215         * doc/glibc-headers/crypt.texi: New file.
8216         * doc/glibc-headers/endian.texi: New file.
8217         * doc/glibc-headers/envz.texi: New file.
8218         * doc/glibc-headers/err.texi: New file.
8219         * doc/glibc-headers/error.texi: New file.
8220         * doc/glibc-headers/execinfo.texi: New file.
8221         * doc/glibc-headers/fpu_control.texi: New file.
8222         * doc/glibc-headers/fstab.texi: New file.
8223         * doc/glibc-headers/fts.texi: New file.
8224         * doc/glibc-headers/getopt.texi: New file.
8225         * doc/glibc-headers/ieee754.texi: New file.
8226         * doc/glibc-headers/ifaddrs.texi: New file.
8227         * doc/glibc-headers/libintl.texi: New file.
8228         * doc/glibc-headers/mcheck.texi: New file.
8229         * doc/glibc-headers/mntent.texi: New file.
8230         * doc/glibc-headers/obstack.texi: New file.
8231         * doc/glibc-headers/paths.texi: New file.
8232         * doc/glibc-headers/printf.texi: New file.
8233         * doc/glibc-headers/pty.texi: New file.
8234         * doc/glibc-headers/resolv.texi: New file.
8235         * doc/glibc-headers/shadow.texi: New file.
8236         * doc/glibc-headers/sysexits.texi: New file.
8237         * doc/glibc-headers/ttyent.texi: New file.
8238
8239 2008-01-12  Jim Meyering  <meyering@redhat.com>
8240
8241         announce-gen: emit Gnulib's git-based version string.
8242         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
8243         New option --gnulib-version=V, where V is expected to be
8244         the output of running git describe in the gnulib directory.
8245         (get_tool_versions): Request feedback on xdelta.  I suspect it's
8246         not useful, and plan to stop publishing an xdelta file with each
8247         coreutils release.
8248
8249         * build-aux/announce-gen: Also check for lzma-compressed files.
8250
8251 2008-01-11  Bruno Haible  <bruno@clisp.org>
8252
8253         * tests/test-memmem.c (main): Increase maximum allowed time.
8254         * tests/test-strstr.c (main): Likewise.
8255
8256 2008-01-11  Bruno Haible  <bruno@clisp.org>
8257
8258         * doc/functions/memmem.texi: Add more precisions about platforms.
8259         * doc/functions/strstr.texi: Likewise.
8260
8261 2008-01-10  Eric Blake  <ebb9@byu.net>
8262
8263         * m4/strstr.m4: Delete cruft from copy-n-paste.
8264         Reported by Bruno Haible.
8265
8266 2008-01-10  Bruno Haible  <bruno@clisp.org>
8267
8268         Make c-strstr rely on strstr.
8269         * lib/c-strstr.c: Don't include str-kmp.h.
8270         (c_strstr): Define in terms of strstr.
8271         * modules/c-strstr (Files): Remove lib/str-kmp.h.
8272         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
8273
8274 2008-01-10  Bruno Haible  <bruno@clisp.org>
8275
8276         * doc/gnulib.texi (String Functions in C Locale): New section.
8277         * doc/c-ctype.texi: New file.
8278         * doc/c-strcase.texi: New file.
8279         * doc/c-strcaseeq.texi: New file.
8280         * doc/c-strcasestr.texi: New file.
8281         * doc/c-strstr.texi: New file.
8282         * doc/c-strtod.texi: New file.
8283         * doc/c-strtold.texi: New file.
8284
8285 2008-01-10  Eric Blake  <ebb9@byu.net>
8286
8287         * lib/relocatable.h: Fix a comment.
8288
8289 2008-01-10  Eric Blake  <ebb9@byu.net>
8290
8291         Share two-way algorithm.
8292         * lib/str-two-way.h: New file, merged from...
8293         * lib/memmem.c: ...here...
8294         * lib/strstr.c: ...and here.
8295         * modules/memmem (Files): Use it.
8296         * modules/strstr (Files): Likewise.
8297
8298         Avoid quadratic strstr implementations.
8299         * lib/strstr.c: New file.
8300         * m4/strstr.m4: Likewise.
8301         * modules/strstr: Likewise.
8302         * modules/strstr-tests: Likewise.
8303         * tests/test-strstr.c: Likewise.
8304         * lib/string.in.h (rpl_strstr): Declare.
8305         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
8306         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
8307         * modules/string (Makefile.am): Likewise.
8308         * MODULES.html.sh (string handling): Mention new module.
8309         * doc/functions/strstr.texi (strstr): Document the bug.
8310
8311 2008-01-10  Bruno Haible  <bruno@clisp.org>
8312
8313         * lib/relocatable.h (relocate): State whether result is freshly
8314         allocated or not.
8315         * lib/relocatable.c (relocate): Return a freshly allocated string
8316         instead of a pointer to a privately held string.
8317         Reported by Sylvain Beucler <beuc@gnu.org>.
8318
8319 2008-01-10  Colin Watson  <cjwatson@debian.org>
8320
8321         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
8322         s/S_ISNLK/S_ISLNK/.
8323
8324 2008-01-09  Bruno Haible  <bruno@clisp.org>
8325
8326         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
8327         and other files.
8328         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
8329         if it's only a guess.
8330         * modules/memmem: Simplify by depending on memmem-simple.
8331
8332 2008-01-09  Bruno Haible  <bruno@clisp.org>
8333
8334         Work around OpenBSD 4.0 tdelete() bug.
8335         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
8336         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
8337         macros and don't redefine the enum values.
8338         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
8339         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
8340         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
8341
8342 2008-01-09  Bruno Haible  <bruno@clisp.org>
8343
8344         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
8345         (main): Don't perform the tests if setlocale did not install a UTF-8
8346         locale. Needed on OpenBSD 4.0.
8347         * modules/wcwidth-tests (Depends-on): Add localcharset.
8348
8349 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
8350
8351         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
8352         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
8353         * NEWS: announce this.
8354         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
8355
8356 2008-01-09  Simon Josefsson  <simon@josefsson.org>
8357         and Eric Blake  <ebb9@byu.net>
8358
8359         Add memmem-simple module.
8360         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
8361         (gl_FUNC_MEMMEM): Separate performance from presence checks.
8362         * modules/memmem-simple: New file.
8363         * modules/memmem (Description): Tweak.
8364         * MODULES.html.sh (string handling): Mention new module.
8365         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
8366         addressed by memmem-simple.
8367         * NEWS: Document the difference.
8368
8369 2008-01-09  Eric Blake  <ebb9@byu.net>
8370
8371         Give gcc some memmem optimization hints.
8372         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
8373         (strcasestr): Declare as pure.
8374         * modules/memmem (Maintainer): Claim my implementation.
8375
8376 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8377
8378         Support AIX 6.1 and higher.
8379         * build-aux/config.libpath: Likewise.
8380         * build-aux/config.rpath: Likewise.
8381
8382 2008-01-08  Jim Meyering  <meyering@redhat.com>
8383             Bruno Haible  <bruno@clisp.org>
8384
8385         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
8386         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
8387         Reported by Peter Fales in
8388         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
8389
8390 2008-01-08  Bruno Haible  <bruno@clisp.org>
8391
8392         * modules/unictype/category-of (Depends-on): Add
8393         unictype/category-none.
8394         * modules/unictype/category-and-tests (Depends-on): Add
8395         unictype/category-{L,N,Lu,Nd}.
8396         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
8397         * modules/unictype/category-or-tests (Depends-on): Add
8398         unictype/category-{L,N}.
8399         * modules/unictype/category-name-tests (Depends-on): Add
8400         unictype/category-{Z,Nl}.
8401         Reported by Simon Josefsson.
8402
8403 2008-01-08  Bruno Haible  <bruno@clisp.org>
8404
8405         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
8406         convention better.
8407         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
8408         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
8409         Reported by Peter Miller <millerp@canb.auug.org.au>.
8410
8411 2008-01-08  Eric Blake  <ebb9@byu.net>
8412
8413         Rewrite memmem to guarantee linear complexity without malloc.
8414         * lib/memmem.c (memmem): Use Two-Way rather than
8415         Knuth-Morris-Pratt, to allow O(1) space usage.
8416         (critical_factorization, two_way_short_needle)
8417         (two_way_long_needle): New functions.
8418         (knuth_morris_pratt): Delete.
8419         * modules/memmem (Depends-on): No longer need malloca or stdbool.
8420         Add stdint.
8421         * tests/test-memmem.c (main): Add tests for periodic needle and
8422         sublinear performance.
8423         * doc/functions/memmem.texi (memmem): Document other deficiencies
8424         in cygwin and older glibc.
8425
8426 2008-01-08  Bruno Haible  <bruno@clisp.org>
8427
8428         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
8429         augmentation.
8430
8431 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
8432
8433         Add a configure time option: --disable-acl.
8434         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
8435         AC_ARG_ENABLE(acl).
8436
8437 2008-01-06  Simon Josefsson  <simon@josefsson.org>
8438
8439         * tests/test-localename.c: Don't include obsolete "setenv.h".
8440
8441         * modules/localename-tests (Depends-on): Need unsetenv.
8442
8443 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8444
8445         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
8446
8447 2008-01-06  Colin Watson  <cjwatson@debian.org>
8448
8449         * users.txt: Add man-db.
8450
8451 2008-01-07  Bruno Haible  <bruno@clisp.org>
8452
8453         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
8454         previous section name.
8455
8456 2008-01-07  Bruno Haible  <bruno@clisp.org>
8457
8458         * lib/progname.c (set_program_name): Don't strip off a leading
8459         "lt-" prefix outside a .libs directory.
8460         Suggested by Paul Eggert.
8461
8462 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
8463             Bruno Haible  <bruno@clisp.org>
8464
8465         Improve memory cleanup in 'relocatable' module.
8466         * lib/relocatable.h (compute_curr_prefix): Change return type to
8467         'char *'.
8468         * lib/relocatable.c (compute_curr_prefix): Change return type to
8469         'char *'. Free curr_installdir after use.
8470         (relocate): Free curr_prefix_better after use.
8471         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
8472
8473 2008-01-01  Bruno Haible  <bruno@clisp.org>
8474
8475         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
8476         failure on older glibc systems.
8477         Reported by Peter Fales <psfales@alcatel-lucent.com>.
8478
8479 2008-01-05  Eric Blake  <ebb9@byu.net>
8480
8481         Avoid quadratic system memmem.
8482         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
8483         Reported by Ralf Wildenhues.
8484
8485         Fix memmem test for mingw.
8486         * modules/memmem-tests (configure.ac): Check for alarm.
8487         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
8488         it.
8489         * doc/functions/memmem.texi: New file.
8490         * doc/gnulib.texi (Function Substitutes): Add memmem.
8491         Reported by Bruno Haible.
8492
8493 2008-01-04  Bruno Haible  <bruno@clisp.org>
8494
8495         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
8496         Require gl_HEADER_STRINGS_H_DEFAULTS, not
8497         gl_HEADER_STRING_H_DEFAULTS.
8498
8499 2008-01-04  Eric Blake  <ebb9@byu.net>
8500
8501         Shorten duration of memmem test.
8502         * tests/test-memmem.c (main): Use alarm to declare failure if test
8503         is taking too long.
8504         Reported by Ralf Wildenhues.
8505
8506 2007-12-21  Simon Josefsson  <simon@josefsson.org>
8507
8508         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
8509         string, needed by strerror.
8510
8511 2008-01-03  Colin Watson  <cjwatson@debian.org>
8512             Bruno Haible  <bruno@clisp.org>
8513
8514         * doc/gnulib-tool.texi (Localization): New section.
8515
8516 2008-01-02  Bruno Haible  <bruno@clisp.org>
8517
8518         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
8519         variables to 'unsigned char *' type.
8520         Reported by Paul Eggert.
8521
8522 2008-01-02  Jim Meyering  <jim@meyering.net>
8523
8524         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
8525
8526 2007-12-31  Jim Meyering  <jim@meyering.net>
8527
8528         Avoid use of private FTS type name.
8529         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
8530
8531 2007-12-30  Karl Berry  <karl@gnu.org>
8532
8533         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
8534         work around defect in Texinfo and/or the standalone Info browser.
8535
8536 2007-12-30  Bruno Haible  <bruno@clisp.org>
8537
8538         Unify 5 copies of the KMP code.
8539         * lib/str-kmp.h: New file.
8540         * lib/c-strcasestr.c: Include str-kmp.h.
8541         (knuth_morris_pratt): Remove function.
8542         (c_strcasestr): Update.
8543         * lib/c-strstr.c: Include str-kmp.h.
8544         (knuth_morris_pratt): Remove function.
8545         (c_strcasestr): Update.
8546         * lib/mbscasestr.c: Include str-kmp.h.
8547         (knuth_morris_pratt_unibyte): Remove function.
8548         * lib/mbsstr.c: Include str-kmp.h.
8549         (knuth_morris_pratt_unibyte): Remove function.
8550         * lib/strcasestr.c: Include str-kmp.h.
8551         (knuth_morris_pratt): Remove function.
8552         (strcasestr): Update.
8553         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
8554         * modules/c-strstr (Files): Likewise.
8555         * modules/mbscasestr (Files): Likewise.
8556         * modules/mbsstr (Files): Likewise.
8557         * modules/strcasestr (Files): Likewise.
8558         Suggested by Paul Eggert.
8559
8560 2007-12-30  Bruno Haible  <bruno@clisp.org>
8561
8562         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
8563         defined.
8564
8565 2007-12-30  Bruno Haible  <bruno@clisp.org>
8566
8567         * lib/xmalloca.h: Include xalloc.h.
8568         (xnmalloca): New macro.
8569
8570 2007-12-30  Bruno Haible  <bruno@clisp.org>
8571
8572         * lib/malloca.h (nmalloca): New macro.
8573         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
8574         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
8575         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
8576         knuth_morris_pratt_multibyte): Likewise.
8577         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
8578         knuth_morris_pratt_multibyte): Likewise.
8579         * lib/memmem.c (knuth_morris_pratt): Likewise.
8580         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
8581
8582 2007-12-25  Bruno Haible  <bruno@clisp.org>
8583
8584         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
8585         * lib/glob.c: Don't include openat.h.
8586         (link_exists2_p): Add back the code that deals with the
8587         !GLOB_ALTDIRFUNC case.
8588         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
8589         let it do the filename concatenation.
8590         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
8591         * modules/glob (Depends-on): Remove openat.
8592
8593 2007-12-31  Bruno Haible  <bruno@clisp.org>
8594
8595         * modules/dirfd (License): Change to LGPLv2+.
8596         Approved by Jim Meyering.
8597
8598 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
8599
8600         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
8601         when multiplying M by sizeof (size_t).
8602
8603 2007-12-10  Martin Lambers  <marlam@marlam.de>
8604
8605         Override getpagesize on mingw.
8606         * lib/getpagesize.c: New file.
8607         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
8608         * modules/getpagesize (Files): Add lib/getpagesize.c.
8609         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
8610         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
8611         REPLACE_GETPAGESIZE.
8612         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
8613
8614 2007-12-25  Bruno Haible  <bruno@clisp.org>
8615
8616         * modules/localcharset (Notice): New field.
8617         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
8618         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
8619
8620 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
8621             Bruno Haible  <bruno@clisp.org>
8622
8623         Avoid using the syntax symbol() in formatted documentation.
8624         * MODULES.html.sh (func_module): When replacing symbol() with a
8625         hyperlink, remove the parentheses. Show an error if some remain.
8626         Recognize and render the '...' syntax.
8627         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
8628         Rework. Add paragraph about GCC's inlining.
8629         * doc/alloca.texi: Likewise.
8630         * doc/error.texi: Remove parentheses from symbol reference.
8631         * doc/gnulib-intro.texi: Likewise.
8632         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
8633         * modules/fnmatch (Description): Reword to say "the ... function".
8634         * modules/full-read (Description): Likewise.
8635         * modules/full-write (Description): Likewise.
8636         * modules/safe-read (Description): Likewise.
8637         * modules/safe-write (Description): Likewise.
8638         * modules/strchrnul (Description): Likewise.
8639         * modules/trim (Description): Likewise.
8640         * modules/error (Description): Remove parentheses from symbol
8641         references.
8642         * modules/verror (Description): Likewise.
8643         Reported by Karl Berry.
8644
8645 2007-12-25  Bruno Haible  <bruno@clisp.org>
8646
8647         Fixup after 2007-10-16 commit.
8648         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
8649
8650 2007-12-24  Bruno Haible  <bruno@clisp.org>
8651
8652         Make --enable-relocatable work with DESTDIR.
8653         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
8654         to compute installdir from destprog.
8655         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
8656         also set the RELOC_DESTDIR variable.
8657         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
8658
8659 2007-12-24  Bruno Haible  <bruno@clisp.org>
8660
8661         Fix link error due to xalloc_die().
8662         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
8663         of xreadlink.
8664         * lib/relocwrapper.c: Update comments.
8665         * build-aux/install-reloc: Remove xreadlink.c from file list.
8666         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
8667         xreadlink.c.
8668         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
8669
8670 2007-12-24  Bruno Haible  <bruno@clisp.org>
8671
8672         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
8673         * lib/setenv.h: Remove file.
8674         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
8675         lib/setenv.h.
8676         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
8677         (Depends-on): Add stdlib.
8678         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
8679         gl_FUNC_UNSETENV.
8680         (Include): Replace setenv.h with <stdlib.h>.
8681         * modules/unsetenv: New file.
8682         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
8683         * lib/unsetenv.c: Include <stdlib.h> first.
8684         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
8685         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
8686         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
8687         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
8688         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
8689         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
8690         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
8691         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
8692         * doc/functions/unsetenv.texi: Update.
8693         * modules/xsetenv (Depends-on): Add unsetenv.
8694         * modules/getdate (Depends-on): Likewise.
8695         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
8696         * lib/xsetenv.c: Don't include setenv.h.
8697         * lib/getdate.y: Likewise.
8698         * lib/relocwrapper.c: Likewise.
8699         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
8700         (Depends-on): Add stdlib.
8701         * NEWS: Mention the changes.
8702         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
8703
8704 2007-12-23  Bruno Haible  <bruno@clisp.org>
8705
8706         * lib/memmem.c (memmem): Use lowercase variable names. Tab
8707         indentation.
8708
8709 2007-12-23  Bruno Haible  <bruno@clisp.org>
8710
8711         * lib/c-strcasestr.c: Add more comments.
8712         * lib/c-strstr.c: Likewise.
8713         * lib/mbscasestr.c: Likewise.
8714         * lib/mbsstr.c: Likewise.
8715         * lib/strcasestr.c: Likewise.
8716         * lib/memmem.c: Likewise.
8717
8718 2007-12-23  Bruno Haible  <bruno@clisp.org>
8719
8720         * tests/test-memmem.c: Include <string.h> first.
8721
8722 2007-12-22  Bruno Haible  <bruno@clisp.org>
8723
8724         * gnulib-tool (func_create_testdir): Change $auxdir while generating
8725         the contents of $testsbase.
8726         Reported by Ralf Wildenhues.
8727
8728 2007-12-22  Bruno Haible  <bruno@clisp.org>
8729
8730         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
8731         two variables local_ldadd_before, local_ldadd_last.
8732
8733 2007-12-20  Eric Blake  <ebb9@byu.net>
8734
8735         Work around circular library issue when cross-compiling.
8736         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
8737         that progname.o does not need to pull in rpl_memcmp.
8738
8739 2007-12-19  Eric Blake  <ebb9@byu.net>
8740
8741         Fix memmem to avoid O(n^2) worst-case complexity.
8742         * lib/memmem.c (knuth_morris_pratt): New function.
8743         (memmem): Use it if first few naive iterations fail.
8744         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
8745         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
8746         * modules/memchr (License): Likewise.
8747         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
8748         malloca.
8749         * tests/test-memmem.c: Rewrite, borrowing ideas from
8750         test-mbsstr1.c; the old version wouldn't even compile!
8751         * modules/memmem-tests: New file.
8752         * lib/string.in.h (rpl_memmem): Add declaration.
8753         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
8754         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
8755         REPLACE_MEMMEM.
8756
8757 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
8758
8759         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
8760         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
8761         before any system include files, and undef after them all.  This
8762         should fix a problem on VMS reported by John E. Malmberg in
8763         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
8764
8765 2007-12-17  Eric Blake  <ebb9@byu.net>
8766
8767         Revert addition of verify, for BSD/OS.
8768         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
8769         can't handle large files, for the sake of obsolete platforms.
8770         * modules/fseeko (Depends-on): Remove verify.
8771         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
8772         * doc/functions/ftello.texi (ftello): Likewise.
8773         * doc/functions/fgetpos.texi (fgetpos): Likewise.
8774         Reported by Larry Jones.
8775
8776 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
8777
8778         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
8779         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
8780
8781 2007-12-17  Jim Meyering  <meyering@redhat.com>
8782
8783         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
8784         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
8785         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
8786         * modules/getcwd (Depends-on): Add openat.
8787         Reported by Petr Salinger.
8788
8789 2007-12-17  Bruno Haible  <bruno@clisp.org>
8790
8791         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
8792         avoid a segmentation fault of the configure test on x86_64 systems.
8793
8794 2007-12-15  Jim Meyering  <meyering@redhat.com>
8795
8796         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
8797
8798 2007-12-13  Eric Blake  <ebb9@byu.net>
8799
8800         Another fseek test.
8801         * tests/test-fseek.c (main): Also test ungetc handling.
8802         * tests/test-fseeko.c (main): Likewise.
8803         * modules/fseeko (Depends-on): Add verify.
8804         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
8805         large.
8806         Reported by Larry Jones.
8807
8808         Fix fseeko on mingw.
8809         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
8810         seek.
8811
8812         Beef up fseek tests.
8813         * tests/test-fseek.c (main): Also test eof handling.
8814         * tests/test-fseeko.c (main): Likewise.
8815         Reported by Larry Jones.
8816
8817 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
8818
8819         Fix fseeko on BSD-based platforms.
8820         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
8821         successful seek.
8822
8823 2007-12-12  Eric Blake  <ebb9@byu.net>
8824
8825         Allow circular dependency of separate libtests.a
8826         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
8827         when use_libtests.
8828
8829 2007-12-11  Eric Blake  <ebb9@byu.net>
8830
8831         Fix bug with -0.0L in previous patch.
8832         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
8833         * tests/test-isnan.c (main): Also test on zeroes.
8834         * tests/test-isnanf.c (main): Likewise.
8835         * tests/test-isnanl.h (main): Likewise.
8836
8837         Detect pseudo-denormals on x86 even when cross-compiling.
8838         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
8839         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
8840         invalid bit patterns that happen to satisfy ==.
8841
8842         Avoid link failures with separate libtests.a.
8843         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
8844         last, to satisfy circular dependencies.
8845
8846 2007-12-11  Eric Blake  <ebb9@byu.net>
8847         and Bruno Haible  <bruno@clisp.org>
8848
8849         Fix OpenBSD 4.0 <float.h> handling of long double.
8850         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
8851         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
8852         * doc/headers/float.texi (float.h): Document OpenBSD bug.
8853
8854 2007-12-11  Jim Meyering  <meyering@redhat.com>
8855
8856         * users.txt: Add libvirt.
8857
8858         Support versions of autoconf prior to 2.59c.
8859         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
8860         if it is not already defined.
8861
8862 2007-12-09  Bruno Haible  <bruno@clisp.org>
8863
8864         Let 'gnulib-tool --import' collect sources needed for the tests in
8865         tests/ rather than in lib/.
8866         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
8867         argument. If true, add rules to generate libtests.a, and put libtests.a
8868         into $(LDADD). Consider source files in subdirectories and set
8869         uses_subdirs.
8870         (func_emit_initmacro_start, func_emit_initmacro_end,
8871         func_emit_initmacro_done): Pass all arguments explicitly.
8872         (func_import): Determine two module lists main_modules,
8873         testsrelated_modules. Determine use_libtests. Determine two variables
8874         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
8875         instead of just sed_transform_lib_file. Determine two variables
8876         main_files and testsrelated_files. Compute 'files' as the union of
8877         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
8878         func_add_or_update. In the generated gnulib-comp.m4, collect the
8879         object files for tests/ in different variables than those for lib/.
8880         Substitute LIBTESTS_LIBDEPS.
8881         (func_create_testdir): Combine the uses_subdirs results from
8882         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
8883
8884 2007-12-09  Bruno Haible  <bruno@clisp.org>
8885
8886         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
8887         the build-aux directory.
8888
8889 2007-12-09  Bruno Haible  <bruno@clisp.org>
8890
8891         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
8892         introduced on 2006-09-09.
8893
8894 2007-12-07  Jim Meyering  <meyering@redhat.com>
8895
8896         Let these macros work also with autoconf-2.59.
8897         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
8898         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
8899         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
8900
8901 2007-12-06  Jim Meyering  <meyering@redhat.com>
8902
8903         Avoid a configure-time syntax error in gl_FUNC_ACL.
8904         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
8905         function in each branch, before testing the cache variable.
8906
8907 2007-12-04  Eric Blake  <ebb9@byu.net>
8908
8909         Make scripts executable.
8910         * build-aux/config.guess: Add execute permissions.
8911         * build-aux/config.sub: Likewise.
8912         * build-aux/gendocs.sh: Likewise.
8913
8914         Fix frexp on mingw.
8915         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
8916         cross-compiling.
8917         * doc/functions/frexp.texi (frexp): Document the bug.
8918
8919         Make cygwin fseeko check more reliable.
8920         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
8921         version numbers, rather than unrelated feature check.
8922         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
8923         * doc/functions/ftello.texi (ftello): Likewise.
8924         Reported by Bruno Haible.
8925
8926         * m4/strerror.m4: Bump version number.
8927
8928 2007-12-03  Bruno Haible  <bruno@clisp.org>
8929
8930         * doc/functions/mprotect.texi: Mention the mingw problem.
8931
8932 2007-12-03  Eric Blake  <ebb9@byu.net>
8933
8934         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
8935         REPLACE_STRERROR is initialized before this macro.
8936
8937 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
8938
8939         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
8940         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
8941         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
8942         put -lsec in even for programs other than 'ls'.  This fixes a problem
8943         for gettext reported by Bruno Haible in
8944         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
8945         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
8946         Add support for Solaris 10.  This isn't efficient, but should get the
8947         job done for now.
8948
8949 2007-12-03  James Youngman  <jay@gnu.org>
8950
8951         * doc/regexprops-generic.texi: change "an close-group" to "a
8952         close-group" and "illegal" to "not allowed".
8953
8954 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8955
8956         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
8957         pr_byname.h. Needed for the rare case when the maintainer has done
8958         "make maintainer-clean" in the source directory and then attempts a
8959         build outside the source directory.
8960         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
8961         scripts_byname.h.
8962
8963 2007-12-02  Martin Lambers <marlam@marlam.de>
8964             Bruno Haible  <bruno@clisp.org>
8965
8966         * lib/getpagesize.h: Remove file.
8967         * lib/unistd.in.h: Include declaration of getpagesize here.
8968         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
8969         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
8970         HAVE_SYS_PARAM_H.
8971         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
8972         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
8973         * modules/getpagesize (Files): Remove lib/getpagesize.h.
8974         (Depends-on): Add unistd.
8975         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
8976         (Include): Use <unistd.h> instead of getpagesize.h.
8977         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
8978         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
8979         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
8980         gl_GETPAGESIZE invocation, already handled by module dependency.
8981         * lib/pagealign_alloc.c: Don't include getpagesize.h.
8982
8983 2007-12-02  Bruno Haible  <bruno@clisp.org>
8984
8985         * modules/strings-tests: New file.
8986         * tests/test-strings.c: New file.
8987
8988         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
8989         * lib/strings.in.h: New file.
8990         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
8991         * m4/strings_h.m4: New file.
8992         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
8993         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
8994         * modules/strings: New file.
8995         * modules/string (Makefile.am): Update.
8996         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
8997         Reported by Karl Berry.
8998
8999 2007-12-01  Eric Blake  <ebb9@byu.net>
9000
9001         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
9002         accomodate fix in cygwin 1.5.25.
9003
9004 2007-12-01  Jim Meyering  <meyering@redhat.com>
9005
9006         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
9007         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
9008         that would inhibit utf8-optimization of a regexp containing line-
9009         or buffer-anchors, e.g., `^', `$'.
9010
9011 2007-11-30  Bruno Haible  <bruno@clisp.org>
9012
9013         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
9014         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
9015         glthread_recursive_lock_init.
9016         * lib/lock.c (glthread_recursive_lock_init)
9017         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
9018         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
9019
9020 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
9021
9022         New function qset_acl, like set_acl but with syscall semantics.
9023         * lib/acl.h (qset_acl): New decl.
9024         * lib/acl.c (qset_acl): New function.
9025         (set_acl): Use new function.  Use more-consistent diagnostics.
9026
9027 2007-11-28  Jim Meyering  <meyering@redhat.com>
9028
9029         * modules/physmem (License): Change from GPL to LGPLv2+.
9030
9031 2007-11-26  Bruno Haible  <bruno@clisp.org>
9032
9033         * lib/vasnprintf.c (decode_long_double): Don't abort if the
9034         'long double' type has excess precision.
9035         Reported by Jim Meyering in
9036         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
9037
9038 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9039
9040         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
9041         Sync from <http://gnu.org/licenses>.
9042         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
9043         with license text from same location.
9044         * doc/maintain.texi, doc/standards.texi:  Sync from
9045         <http://savannah.gnu.org/projects/gnustandards>.
9046
9047 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
9048         and Jim Meyering  <meyering@redhat.com>
9049
9050         Adjust getdate' grammar to accept a slightly more regular language.
9051         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
9052         Before, the former was rejected.
9053         * lib/getdate.y (digits_to_date_time): New function, factored
9054         out of ...
9055         (number): ...here.  Just call digits_to_date_time.
9056         (hybrid): New non-terminal to handle an <unsigned number,
9057         signed relative offset> sequence consistently.
9058
9059 2007-11-18  Jim Meyering  <meyering@redhat.com>
9060
9061         Pull my changes from coreutils:
9062         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
9063         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
9064         use of $gnulib_tool_option_extras, so that it's separated from the
9065         preceding argument.
9066
9067         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
9068         * build-aux/bootstrap (cp_mark_as_generated): Create any required
9069         parent destination directories before copying a file into place.
9070
9071 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
9072
9073         bootstrap: work also with 4-argument variant of AC_INIT
9074         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
9075
9076 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
9077
9078         Port test-getaddrinfo to Solaris.
9079         Problem reported by Bruno Haible in
9080         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
9081         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
9082         explanation of setting 'hints'.
9083         Don't reject an implementation merely because it returns EAI_SERVICE.
9084         (EAI_SERVICE): Define to 0 if not defined.
9085
9086 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
9087
9088         The license of gnu-make and posix-shell is now "GPLed build tool".
9089         * modules/gnu-make (License): Likewise.
9090         * modules/posix-shell (License): Likewise.
9091
9092         New module posix-shell, for determining a POSIX shell
9093         or perhaps something that is close enough to a POSIX shell.
9094         * m4/posix-shell.m4: New file.
9095         * modules/posix-shell: New file.
9096
9097         * MODULES.html.sh: Mention new module.
9098
9099         New module gnu-make, for determining whether we're using GNU Make.
9100         * m4/gnu-make.m4: New file.
9101         * modules/gnu-make: New file.
9102         * MODULES.html.sh: Mention new module.
9103
9104 2007-11-14  Jim Meyering  <meyering@redhat.com>
9105
9106         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
9107         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
9108         use this macro to create a function _definition_.
9109         Remove useless "#undef ARGMATCH_DIE".
9110
9111 2007-11-14  Bruno Haible  <bruno@clisp.org>
9112
9113         * lib/config.charset: Update for OpenBSD 4.1.
9114         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
9115
9116 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
9117
9118         Document 64-bit #if problems in stdint.texi.
9119         * doc/headers/stdint.texi (stdint.h): Mention problems with
9120         64-bit-#if, and how to work around them.
9121
9122         Don't insist on 'long long int' support in the preprocessor.  It
9123         breaks too many things.  For example, PRIdMAX still uses a 'long
9124         long int' format with the latest Sun compiler, even though
9125         HAVE_LONG_LONG_INT isn't defined due to that compiler's
9126         preprocessor problem.  This causes the latest coreutils to dump
9127         core on Solaris 10 sparc with the Sun C compiler.
9128         Instead, fix the 2007-10-16 problem in a different way, by evaluating
9129         the troublesome expressions at configure-time, not at #if-time.
9130         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
9131         preprocessor.
9132         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
9133         compile-time C checks, done at 'configure'-time.
9134         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
9135         * modules/inttypes (Makefile): Substitute the new symbols that
9136         gl_INTTYPES_H now generates.
9137         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
9138
9139 2007-11-12  Bruno Haible  <bruno@clisp.org>
9140
9141         Tests for Unicode character classification functions.
9142
9143         * modules/unictype/bidicategory-byname-tests: New file.
9144         * modules/unictype/bidicategory-name-tests: New file.
9145         * modules/unictype/bidicategory-of-tests: New file.
9146         * modules/unictype/bidicategory-test-tests: New file.
9147         * modules/unictype/block-list-tests: New file.
9148         * modules/unictype/block-of-tests: New file.
9149         * modules/unictype/block-test-tests: New file.
9150         * modules/unictype/category-C-tests: New file.
9151         * modules/unictype/category-Cc-tests: New file.
9152         * modules/unictype/category-Cf-tests: New file.
9153         * modules/unictype/category-Cn-tests: New file.
9154         * modules/unictype/category-Co-tests: New file.
9155         * modules/unictype/category-Cs-tests: New file.
9156         * modules/unictype/category-L-tests: New file.
9157         * modules/unictype/category-Ll-tests: New file.
9158         * modules/unictype/category-Lm-tests: New file.
9159         * modules/unictype/category-Lo-tests: New file.
9160         * modules/unictype/category-Lt-tests: New file.
9161         * modules/unictype/category-Lu-tests: New file.
9162         * modules/unictype/category-M-tests: New file.
9163         * modules/unictype/category-Mc-tests: New file.
9164         * modules/unictype/category-Me-tests: New file.
9165         * modules/unictype/category-Mn-tests: New file.
9166         * modules/unictype/category-N-tests: New file.
9167         * modules/unictype/category-Nd-tests: New file.
9168         * modules/unictype/category-Nl-tests: New file.
9169         * modules/unictype/category-No-tests: New file.
9170         * modules/unictype/category-P-tests: New file.
9171         * modules/unictype/category-Pc-tests: New file.
9172         * modules/unictype/category-Pd-tests: New file.
9173         * modules/unictype/category-Pe-tests: New file.
9174         * modules/unictype/category-Pf-tests: New file.
9175         * modules/unictype/category-Pi-tests: New file.
9176         * modules/unictype/category-Po-tests: New file.
9177         * modules/unictype/category-Ps-tests: New file.
9178         * modules/unictype/category-S-tests: New file.
9179         * modules/unictype/category-Sc-tests: New file.
9180         * modules/unictype/category-Sk-tests: New file.
9181         * modules/unictype/category-Sm-tests: New file.
9182         * modules/unictype/category-So-tests: New file.
9183         * modules/unictype/category-Z-tests: New file.
9184         * modules/unictype/category-Zl-tests: New file.
9185         * modules/unictype/category-Zp-tests: New file.
9186         * modules/unictype/category-Zs-tests: New file.
9187         * modules/unictype/category-and-not-tests: New file.
9188         * modules/unictype/category-and-tests: New file.
9189         * modules/unictype/category-byname-tests: New file.
9190         * modules/unictype/category-name-tests: New file.
9191         * modules/unictype/category-none-tests: New file.
9192         * modules/unictype/category-of-tests: New file.
9193         * modules/unictype/category-or-tests: New file.
9194         * modules/unictype/category-test-withtable-tests: New file.
9195         * modules/unictype/combining-class-tests: New file.
9196         * modules/unictype/ctype-alnum-tests: New file.
9197         * modules/unictype/ctype-alpha-tests: New file.
9198         * modules/unictype/ctype-blank-tests: New file.
9199         * modules/unictype/ctype-cntrl-tests: New file.
9200         * modules/unictype/ctype-digit-tests: New file.
9201         * modules/unictype/ctype-graph-tests: New file.
9202         * modules/unictype/ctype-lower-tests: New file.
9203         * modules/unictype/ctype-print-tests: New file.
9204         * modules/unictype/ctype-punct-tests: New file.
9205         * modules/unictype/ctype-space-tests: New file.
9206         * modules/unictype/ctype-upper-tests: New file.
9207         * modules/unictype/ctype-xdigit-tests: New file.
9208         * modules/unictype/decimal-digit-tests: New file.
9209         * modules/unictype/digit-tests: New file.
9210         * modules/unictype/mirror-tests: New file.
9211         * modules/unictype/numeric-tests: New file.
9212         * modules/unictype/property-alphabetic-tests: New file.
9213         * modules/unictype/property-ascii-hex-digit-tests: New file.
9214         * modules/unictype/property-bidi-arabic-digit-tests: New file.
9215         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
9216         * modules/unictype/property-bidi-block-separator-tests: New file.
9217         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
9218         * modules/unictype/property-bidi-common-separator-tests: New file.
9219         * modules/unictype/property-bidi-control-tests: New file.
9220         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
9221         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
9222         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
9223         * modules/unictype/property-bidi-european-digit-tests: New file.
9224         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
9225         * modules/unictype/property-bidi-left-to-right-tests: New file.
9226         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
9227         * modules/unictype/property-bidi-other-neutral-tests: New file.
9228         * modules/unictype/property-bidi-pdf-tests: New file.
9229         * modules/unictype/property-bidi-segment-separator-tests: New file.
9230         * modules/unictype/property-bidi-whitespace-tests: New file.
9231         * modules/unictype/property-byname-tests: New file.
9232         * modules/unictype/property-combining-tests: New file.
9233         * modules/unictype/property-composite-tests: New file.
9234         * modules/unictype/property-currency-symbol-tests: New file.
9235         * modules/unictype/property-dash-tests: New file.
9236         * modules/unictype/property-decimal-digit-tests: New file.
9237         * modules/unictype/property-default-ignorable-code-point-tests: New file.
9238         * modules/unictype/property-deprecated-tests: New file.
9239         * modules/unictype/property-diacritic-tests: New file.
9240         * modules/unictype/property-extender-tests: New file.
9241         * modules/unictype/property-format-control-tests: New file.
9242         * modules/unictype/property-grapheme-base-tests: New file.
9243         * modules/unictype/property-grapheme-extend-tests: New file.
9244         * modules/unictype/property-grapheme-link-tests: New file.
9245         * modules/unictype/property-hex-digit-tests: New file.
9246         * modules/unictype/property-hyphen-tests: New file.
9247         * modules/unictype/property-id-continue-tests: New file.
9248         * modules/unictype/property-id-start-tests: New file.
9249         * modules/unictype/property-ideographic-tests: New file.
9250         * modules/unictype/property-ids-binary-operator-tests: New file.
9251         * modules/unictype/property-ids-trinary-operator-tests: New file.
9252         * modules/unictype/property-ignorable-control-tests: New file.
9253         * modules/unictype/property-iso-control-tests: New file.
9254         * modules/unictype/property-join-control-tests: New file.
9255         * modules/unictype/property-left-of-pair-tests: New file.
9256         * modules/unictype/property-line-separator-tests: New file.
9257         * modules/unictype/property-logical-order-exception-tests: New file.
9258         * modules/unictype/property-lowercase-tests: New file.
9259         * modules/unictype/property-math-tests: New file.
9260         * modules/unictype/property-non-break-tests: New file.
9261         * modules/unictype/property-not-a-character-tests: New file.
9262         * modules/unictype/property-numeric-tests: New file.
9263         * modules/unictype/property-other-alphabetic-tests: New file.
9264         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
9265         * modules/unictype/property-other-grapheme-extend-tests: New file.
9266         * modules/unictype/property-other-id-continue-tests: New file.
9267         * modules/unictype/property-other-id-start-tests: New file.
9268         * modules/unictype/property-other-lowercase-tests: New file.
9269         * modules/unictype/property-other-math-tests: New file.
9270         * modules/unictype/property-other-uppercase-tests: New file.
9271         * modules/unictype/property-paired-punctuation-tests: New file.
9272         * modules/unictype/property-paragraph-separator-tests: New file.
9273         * modules/unictype/property-pattern-syntax-tests: New file.
9274         * modules/unictype/property-pattern-white-space-tests: New file.
9275         * modules/unictype/property-private-use-tests: New file.
9276         * modules/unictype/property-punctuation-tests: New file.
9277         * modules/unictype/property-quotation-mark-tests: New file.
9278         * modules/unictype/property-radical-tests: New file.
9279         * modules/unictype/property-sentence-terminal-tests: New file.
9280         * modules/unictype/property-soft-dotted-tests: New file.
9281         * modules/unictype/property-space-tests: New file.
9282         * modules/unictype/property-terminal-punctuation-tests: New file.
9283         * modules/unictype/property-test-tests: New file.
9284         * modules/unictype/property-titlecase-tests: New file.
9285         * modules/unictype/property-unassigned-code-value-tests: New file.
9286         * modules/unictype/property-unified-ideograph-tests: New file.
9287         * modules/unictype/property-uppercase-tests: New file.
9288         * modules/unictype/property-variation-selector-tests: New file.
9289         * modules/unictype/property-white-space-tests: New file.
9290         * modules/unictype/property-xid-continue-tests: New file.
9291         * modules/unictype/property-xid-start-tests: New file.
9292         * modules/unictype/property-zero-width-tests: New file.
9293         * modules/unictype/scripts-tests: New file.
9294         * modules/unictype/syntax-c-ident-tests: New file.
9295         * modules/unictype/syntax-c-whitespace-tests: New file.
9296         * modules/unictype/syntax-java-ident-tests: New file.
9297         * modules/unictype/syntax-java-whitespace-tests: New file.
9298         * tests/unictype/test-bidi_byname.c: New file.
9299         * tests/unictype/test-bidi_name.c: New file.
9300         * tests/unictype/test-bidi_of.c: New file.
9301         * tests/unictype/test-bidi_test.c: New file.
9302         * tests/unictype/test-block_list.c: New file.
9303         * tests/unictype/test-block_of.c: New file.
9304         * tests/unictype/test-block_test.c: New file.
9305         * tests/unictype/test-categ_and.c: New file.
9306         * tests/unictype/test-categ_and_not.c: New file.
9307         * tests/unictype/test-categ_byname.c: New file.
9308         * tests/unictype/test-categ_name.c: New file.
9309         * tests/unictype/test-categ_none.c: New file.
9310         * tests/unictype/test-categ_of.c: New file.
9311         * tests/unictype/test-categ_or.c: New file.
9312         * tests/unictype/test-categ_test_withtable.c: New file.
9313         * tests/unictype/test-combining.c: New file.
9314         * tests/unictype/test-decdigit.c: New file.
9315         * tests/unictype/test-digit.c: New file.
9316         * tests/unictype/test-mirror.c: New file.
9317         * tests/unictype/test-numeric.c: New file.
9318         * tests/unictype/test-pr_byname.c: New file.
9319         * tests/unictype/test-pr_test.c: New file.
9320         * tests/unictype/test-predicate-part1.h: New file.
9321         * tests/unictype/test-predicate-part2.h: New file.
9322         * tests/unictype/test-scripts.c: New file.
9323         * tests/unictype/test-sy_c_ident.c: New file.
9324         * tests/unictype/test-sy_java_ident.c: New file.
9325
9326         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
9327         for Unicode 5.0.0.
9328         * tests/unictype/test-categ_Cc.c: Likewise.
9329         * tests/unictype/test-categ_Cf.c: Likewise.
9330         * tests/unictype/test-categ_Cn.c: Likewise.
9331         * tests/unictype/test-categ_Co.c: Likewise.
9332         * tests/unictype/test-categ_Cs.c: Likewise.
9333         * tests/unictype/test-categ_L.c: Likewise.
9334         * tests/unictype/test-categ_Ll.c: Likewise.
9335         * tests/unictype/test-categ_Lm.c: Likewise.
9336         * tests/unictype/test-categ_Lo.c: Likewise.
9337         * tests/unictype/test-categ_Lt.c: Likewise.
9338         * tests/unictype/test-categ_Lu.c: Likewise.
9339         * tests/unictype/test-categ_M.c: Likewise.
9340         * tests/unictype/test-categ_Mc.c: Likewise.
9341         * tests/unictype/test-categ_Me.c: Likewise.
9342         * tests/unictype/test-categ_Mn.c: Likewise.
9343         * tests/unictype/test-categ_N.c: Likewise.
9344         * tests/unictype/test-categ_Nd.c: Likewise.
9345         * tests/unictype/test-categ_Nl.c: Likewise.
9346         * tests/unictype/test-categ_No.c: Likewise.
9347         * tests/unictype/test-categ_P.c: Likewise.
9348         * tests/unictype/test-categ_Pc.c: Likewise.
9349         * tests/unictype/test-categ_Pd.c: Likewise.
9350         * tests/unictype/test-categ_Pe.c: Likewise.
9351         * tests/unictype/test-categ_Pf.c: Likewise.
9352         * tests/unictype/test-categ_Pi.c: Likewise.
9353         * tests/unictype/test-categ_Po.c: Likewise.
9354         * tests/unictype/test-categ_Ps.c: Likewise.
9355         * tests/unictype/test-categ_S.c: Likewise.
9356         * tests/unictype/test-categ_Sc.c: Likewise.
9357         * tests/unictype/test-categ_Sk.c: Likewise.
9358         * tests/unictype/test-categ_Sm.c: Likewise.
9359         * tests/unictype/test-categ_So.c: Likewise.
9360         * tests/unictype/test-categ_Z.c: Likewise.
9361         * tests/unictype/test-categ_Zl.c: Likewise.
9362         * tests/unictype/test-categ_Zp.c: Likewise.
9363         * tests/unictype/test-categ_Zs.c: Likewise.
9364         * tests/unictype/test-ctype_alnum.c: Likewise.
9365         * tests/unictype/test-ctype_alpha.c: Likewise.
9366         * tests/unictype/test-ctype_blank.c: Likewise.
9367         * tests/unictype/test-ctype_cntrl.c: Likewise.
9368         * tests/unictype/test-ctype_digit.c: Likewise.
9369         * tests/unictype/test-ctype_graph.c: Likewise.
9370         * tests/unictype/test-ctype_lower.c: Likewise.
9371         * tests/unictype/test-ctype_print.c: Likewise.
9372         * tests/unictype/test-ctype_punct.c: Likewise.
9373         * tests/unictype/test-ctype_space.c: Likewise.
9374         * tests/unictype/test-ctype_upper.c: Likewise.
9375         * tests/unictype/test-ctype_xdigit.c: Likewise.
9376         * tests/unictype/test-decdigit.h: Likewise.
9377         * tests/unictype/test-digit.h: Likewise.
9378         * tests/unictype/test-numeric.h: Likewise.
9379         * tests/unictype/test-pr_alphabetic.c: Likewise.
9380         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
9381         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
9382         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
9383         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
9384         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
9385         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
9386         * tests/unictype/test-pr_bidi_control.c: Likewise.
9387         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
9388         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
9389         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
9390         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
9391         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
9392         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
9393         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
9394         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
9395         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
9396         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
9397         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
9398         * tests/unictype/test-pr_combining.c: Likewise.
9399         * tests/unictype/test-pr_composite.c: Likewise.
9400         * tests/unictype/test-pr_currency_symbol.c: Likewise.
9401         * tests/unictype/test-pr_dash.c: Likewise.
9402         * tests/unictype/test-pr_decimal_digit.c: Likewise.
9403         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
9404         * tests/unictype/test-pr_deprecated.c: Likewise.
9405         * tests/unictype/test-pr_diacritic.c: Likewise.
9406         * tests/unictype/test-pr_extender.c: Likewise.
9407         * tests/unictype/test-pr_format_control.c: Likewise.
9408         * tests/unictype/test-pr_grapheme_base.c: Likewise.
9409         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
9410         * tests/unictype/test-pr_grapheme_link.c: Likewise.
9411         * tests/unictype/test-pr_hex_digit.c: Likewise.
9412         * tests/unictype/test-pr_hyphen.c: Likewise.
9413         * tests/unictype/test-pr_id_continue.c: Likewise.
9414         * tests/unictype/test-pr_id_start.c: Likewise.
9415         * tests/unictype/test-pr_ideographic.c: Likewise.
9416         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
9417         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
9418         * tests/unictype/test-pr_ignorable_control.c: Likewise.
9419         * tests/unictype/test-pr_iso_control.c: Likewise.
9420         * tests/unictype/test-pr_join_control.c: Likewise.
9421         * tests/unictype/test-pr_left_of_pair.c: Likewise.
9422         * tests/unictype/test-pr_line_separator.c: Likewise.
9423         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
9424         * tests/unictype/test-pr_lowercase.c: Likewise.
9425         * tests/unictype/test-pr_math.c: Likewise.
9426         * tests/unictype/test-pr_non_break.c: Likewise.
9427         * tests/unictype/test-pr_not_a_character.c: Likewise.
9428         * tests/unictype/test-pr_numeric.c: Likewise.
9429         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
9430         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
9431         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
9432         * tests/unictype/test-pr_other_id_continue.c: Likewise.
9433         * tests/unictype/test-pr_other_id_start.c: Likewise.
9434         * tests/unictype/test-pr_other_lowercase.c: Likewise.
9435         * tests/unictype/test-pr_other_math.c: Likewise.
9436         * tests/unictype/test-pr_other_uppercase.c: Likewise.
9437         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
9438         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
9439         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
9440         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
9441         * tests/unictype/test-pr_private_use.c: Likewise.
9442         * tests/unictype/test-pr_punctuation.c: Likewise.
9443         * tests/unictype/test-pr_quotation_mark.c: Likewise.
9444         * tests/unictype/test-pr_radical.c: Likewise.
9445         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
9446         * tests/unictype/test-pr_soft_dotted.c: Likewise.
9447         * tests/unictype/test-pr_space.c: Likewise.
9448         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
9449         * tests/unictype/test-pr_titlecase.c: Likewise.
9450         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
9451         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
9452         * tests/unictype/test-pr_uppercase.c: Likewise.
9453         * tests/unictype/test-pr_variation_selector.c: Likewise.
9454         * tests/unictype/test-pr_white_space.c: Likewise.
9455         * tests/unictype/test-pr_xid_continue.c: Likewise.
9456         * tests/unictype/test-pr_xid_start.c: Likewise.
9457         * tests/unictype/test-pr_zero_width.c: Likewise.
9458         * tests/unictype/test-sy_c_whitespace.c: Likewise.
9459         * tests/unictype/test-sy_java_whitespace.c: Likewise.
9460
9461 2007-11-12  Bruno Haible  <bruno@clisp.org>
9462
9463         Unicode character classification functions.
9464         * lib/unictype.h: New file.
9465         * modules/unictype/base: New file.
9466         * modules/unictype/category-L: New file.
9467         * modules/unictype/category-Lu: New file.
9468         * modules/unictype/category-Ll: New file.
9469         * modules/unictype/category-Lt: New file.
9470         * modules/unictype/category-Lm: New file.
9471         * modules/unictype/category-Lo: New file.
9472         * modules/unictype/category-M: New file.
9473         * modules/unictype/category-Mn: New file.
9474         * modules/unictype/category-Mc: New file.
9475         * modules/unictype/category-Me: New file.
9476         * modules/unictype/category-N: New file.
9477         * modules/unictype/category-Nd: New file.
9478         * modules/unictype/category-Nl: New file.
9479         * modules/unictype/category-No: New file.
9480         * modules/unictype/category-P: New file.
9481         * modules/unictype/category-Pc: New file.
9482         * modules/unictype/category-Pd: New file.
9483         * modules/unictype/category-Ps: New file.
9484         * modules/unictype/category-Pe: New file.
9485         * modules/unictype/category-Pi: New file.
9486         * modules/unictype/category-Pf: New file.
9487         * modules/unictype/category-Po: New file.
9488         * modules/unictype/category-S: New file.
9489         * modules/unictype/category-Sm: New file.
9490         * modules/unictype/category-Sc: New file.
9491         * modules/unictype/category-Sk: New file.
9492         * modules/unictype/category-So: New file.
9493         * modules/unictype/category-Z: New file.
9494         * modules/unictype/category-Zs: New file.
9495         * modules/unictype/category-Zl: New file.
9496         * modules/unictype/category-Zp: New file.
9497         * modules/unictype/category-C: New file.
9498         * modules/unictype/category-Cc: New file.
9499         * modules/unictype/category-Cf: New file.
9500         * modules/unictype/category-Cs: New file.
9501         * modules/unictype/category-Co: New file.
9502         * modules/unictype/category-Cn: New file.
9503         * modules/unictype/category-or: New file.
9504         * modules/unictype/category-of: New file.
9505         * modules/unictype/category-test: New file.
9506         * modules/unictype/category-test-withtable: New file.
9507         * modules/unictype/category-byname: New file.
9508         * modules/unictype/category-none: New file.
9509         * modules/unictype/category-and: New file.
9510         * modules/unictype/category-and-not: New file.
9511         * modules/unictype/category-name: New file.
9512         * modules/unictype/combining-class: New file.
9513         * modules/unictype/category-all: New file.
9514         * modules/unictype/bidicategory-all: New file.
9515         * modules/unictype/bidicategory-byname: New file.
9516         * modules/unictype/bidicategory-name: New file.
9517         * modules/unictype/bidicategory-of: New file.
9518         * modules/unictype/bidicategory-test: New file.
9519         * modules/unictype/decimal-digit: New file.
9520         * modules/unictype/digit: New file.
9521         * modules/unictype/numeric: New file.
9522         * modules/unictype/mirror: New file.
9523         * modules/unictype/property-white-space: New file.
9524         * modules/unictype/property-alphabetic: New file.
9525         * modules/unictype/property-other-alphabetic: New file.
9526         * modules/unictype/property-not-a-character: New file.
9527         * modules/unictype/property-default-ignorable-code-point: New file.
9528         * modules/unictype/property-other-default-ignorable-code-point: New
9529         file.
9530         * modules/unictype/property-deprecated: New file.
9531         * modules/unictype/property-logical-order-exception: New file.
9532         * modules/unictype/property-variation-selector: New file.
9533         * modules/unictype/property-private-use: New file.
9534         * modules/unictype/property-unassigned-code-value: New file.
9535         * modules/unictype/property-uppercase: New file.
9536         * modules/unictype/property-other-uppercase: New file.
9537         * modules/unictype/property-lowercase: New file.
9538         * modules/unictype/property-other-lowercase: New file.
9539         * modules/unictype/property-titlecase: New file.
9540         * modules/unictype/property-soft-dotted: New file.
9541         * modules/unictype/property-id-start: New file.
9542         * modules/unictype/property-other-id-start: New file.
9543         * modules/unictype/property-id-continue: New file.
9544         * modules/unictype/property-other-id-continue: New file.
9545         * modules/unictype/property-xid-start: New file.
9546         * modules/unictype/property-xid-continue: New file.
9547         * modules/unictype/property-pattern-white-space: New file.
9548         * modules/unictype/property-pattern-syntax: New file.
9549         * modules/unictype/property-join-control: New file.
9550         * modules/unictype/property-grapheme-base: New file.
9551         * modules/unictype/property-grapheme-extend: New file.
9552         * modules/unictype/property-other-grapheme-extend: New file.
9553         * modules/unictype/property-grapheme-link: New file.
9554         * modules/unictype/property-bidi-control: New file.
9555         * modules/unictype/property-bidi-left-to-right: New file.
9556         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
9557         * modules/unictype/property-bidi-arabic-right-to-left: New file.
9558         * modules/unictype/property-bidi-european-digit: New file.
9559         * modules/unictype/property-bidi-eur-num-separator: New file.
9560         * modules/unictype/property-bidi-eur-num-terminator: New file.
9561         * modules/unictype/property-bidi-arabic-digit: New file.
9562         * modules/unictype/property-bidi-common-separator: New file.
9563         * modules/unictype/property-bidi-block-separator: New file.
9564         * modules/unictype/property-bidi-segment-separator: New file.
9565         * modules/unictype/property-bidi-whitespace: New file.
9566         * modules/unictype/property-bidi-non-spacing-mark: New file.
9567         * modules/unictype/property-bidi-boundary-neutral: New file.
9568         * modules/unictype/property-bidi-pdf: New file.
9569         * modules/unictype/property-bidi-embedding-or-override: New file.
9570         * modules/unictype/property-bidi-other-neutral: New file.
9571         * modules/unictype/property-hex-digit: New file.
9572         * modules/unictype/property-ascii-hex-digit: New file.
9573         * modules/unictype/property-ideographic: New file.
9574         * modules/unictype/property-unified-ideograph: New file.
9575         * modules/unictype/property-radical: New file.
9576         * modules/unictype/property-ids-binary-operator: New file.
9577         * modules/unictype/property-ids-trinary-operator: New file.
9578         * modules/unictype/property-zero-width: New file.
9579         * modules/unictype/property-space: New file.
9580         * modules/unictype/property-non-break: New file.
9581         * modules/unictype/property-iso-control: New file.
9582         * modules/unictype/property-format-control: New file.
9583         * modules/unictype/property-dash: New file.
9584         * modules/unictype/property-hyphen: New file.
9585         * modules/unictype/property-punctuation: New file.
9586         * modules/unictype/property-line-separator: New file.
9587         * modules/unictype/property-paragraph-separator: New file.
9588         * modules/unictype/property-quotation-mark: New file.
9589         * modules/unictype/property-sentence-terminal: New file.
9590         * modules/unictype/property-terminal-punctuation: New file.
9591         * modules/unictype/property-currency-symbol: New file.
9592         * modules/unictype/property-math: New file.
9593         * modules/unictype/property-other-math: New file.
9594         * modules/unictype/property-paired-punctuation: New file.
9595         * modules/unictype/property-left-of-pair: New file.
9596         * modules/unictype/property-combining: New file.
9597         * modules/unictype/property-composite: New file.
9598         * modules/unictype/property-decimal-digit: New file.
9599         * modules/unictype/property-numeric: New file.
9600         * modules/unictype/property-diacritic: New file.
9601         * modules/unictype/property-extender: New file.
9602         * modules/unictype/property-ignorable-control: New file.
9603         * modules/unictype/property-test: New file.
9604         * modules/unictype/property-byname: New file.
9605         * modules/unictype/property-all: New file.
9606         * modules/unictype/scripts: New file.
9607         * modules/unictype/scripts-all: New file.
9608         * modules/unictype/block-of: New file.
9609         * modules/unictype/block-test: New file.
9610         * modules/unictype/block-list: New file.
9611         * modules/unictype/block-all: New file.
9612         * modules/unictype/syntax-c-whitespace: New file.
9613         * modules/unictype/syntax-java-whitespace: New file.
9614         * modules/unictype/syntax-c-ident: New file.
9615         * modules/unictype/syntax-java-ident: New file.
9616         * modules/unictype/ctype-alnum: New file.
9617         * modules/unictype/ctype-alpha: New file.
9618         * modules/unictype/ctype-cntrl: New file.
9619         * modules/unictype/ctype-digit: New file.
9620         * modules/unictype/ctype-graph: New file.
9621         * modules/unictype/ctype-lower: New file.
9622         * modules/unictype/ctype-print: New file.
9623         * modules/unictype/ctype-punct: New file.
9624         * modules/unictype/ctype-space: New file.
9625         * modules/unictype/ctype-upper: New file.
9626         * modules/unictype/ctype-xdigit: New file.
9627         * modules/unictype/ctype-blank: New file.
9628         * lib/unictype/bidi_byname.c: New file.
9629         * lib/unictype/bidi_name.c: New file.
9630         * lib/unictype/bidi_of.c: New file.
9631         * lib/unictype/bidi_test.c: New file.
9632         * lib/unictype/bitmap.h: New file.
9633         * lib/unictype/block_test.c: New file.
9634         * lib/unictype/blocks.c: New file.
9635         * lib/unictype/categ_C.c: New file.
9636         * lib/unictype/categ_Cc.c: New file.
9637         * lib/unictype/categ_Cf.c: New file.
9638         * lib/unictype/categ_Cn.c: New file.
9639         * lib/unictype/categ_Co.c: New file.
9640         * lib/unictype/categ_Cs.c: New file.
9641         * lib/unictype/categ_L.c: New file.
9642         * lib/unictype/categ_Ll.c: New file.
9643         * lib/unictype/categ_Lm.c: New file.
9644         * lib/unictype/categ_Lo.c: New file.
9645         * lib/unictype/categ_Lt.c: New file.
9646         * lib/unictype/categ_Lu.c: New file.
9647         * lib/unictype/categ_M.c: New file.
9648         * lib/unictype/categ_Mc.c: New file.
9649         * lib/unictype/categ_Me.c: New file.
9650         * lib/unictype/categ_Mn.c: New file.
9651         * lib/unictype/categ_N.c: New file.
9652         * lib/unictype/categ_Nd.c: New file.
9653         * lib/unictype/categ_Nl.c: New file.
9654         * lib/unictype/categ_No.c: New file.
9655         * lib/unictype/categ_P.c: New file.
9656         * lib/unictype/categ_Pc.c: New file.
9657         * lib/unictype/categ_Pd.c: New file.
9658         * lib/unictype/categ_Pe.c: New file.
9659         * lib/unictype/categ_Pf.c: New file.
9660         * lib/unictype/categ_Pi.c: New file.
9661         * lib/unictype/categ_Po.c: New file.
9662         * lib/unictype/categ_Ps.c: New file.
9663         * lib/unictype/categ_S.c: New file.
9664         * lib/unictype/categ_Sc.c: New file.
9665         * lib/unictype/categ_Sk.c: New file.
9666         * lib/unictype/categ_Sm.c: New file.
9667         * lib/unictype/categ_So.c: New file.
9668         * lib/unictype/categ_Z.c: New file.
9669         * lib/unictype/categ_Zl.c: New file.
9670         * lib/unictype/categ_Zp.c: New file.
9671         * lib/unictype/categ_Zs.c: New file.
9672         * lib/unictype/categ_and.c: New file.
9673         * lib/unictype/categ_and_not.c: New file.
9674         * lib/unictype/categ_byname.c: New file.
9675         * lib/unictype/categ_name.c: New file.
9676         * lib/unictype/categ_none.c: New file.
9677         * lib/unictype/categ_of.c: New file.
9678         * lib/unictype/categ_or.c: New file.
9679         * lib/unictype/categ_test.c: New file.
9680         * lib/unictype/combining.c: New file.
9681         * lib/unictype/ctype_alnum.c: New file.
9682         * lib/unictype/ctype_alpha.c: New file.
9683         * lib/unictype/ctype_blank.c: New file.
9684         * lib/unictype/ctype_cntrl.c: New file.
9685         * lib/unictype/ctype_digit.c: New file.
9686         * lib/unictype/ctype_graph.c: New file.
9687         * lib/unictype/ctype_lower.c: New file.
9688         * lib/unictype/ctype_print.c: New file.
9689         * lib/unictype/ctype_punct.c: New file.
9690         * lib/unictype/ctype_space.c: New file.
9691         * lib/unictype/ctype_upper.c: New file.
9692         * lib/unictype/ctype_xdigit.c: New file.
9693         * lib/unictype/decdigit.c: New file.
9694         * lib/unictype/digit.c: New file.
9695         * lib/unictype/identsyntaxmap.h: New file.
9696         * lib/unictype/mirror.c: New file.
9697         * lib/unictype/numeric.c: New file.
9698         * lib/unictype/pr_alphabetic.c: New file.
9699         * lib/unictype/pr_ascii_hex_digit.c: New file.
9700         * lib/unictype/pr_bidi_arabic_digit.c: New file.
9701         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
9702         * lib/unictype/pr_bidi_block_separator.c: New file.
9703         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
9704         * lib/unictype/pr_bidi_common_separator.c: New file.
9705         * lib/unictype/pr_bidi_control.c: New file.
9706         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
9707         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
9708         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
9709         * lib/unictype/pr_bidi_european_digit.c: New file.
9710         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
9711         * lib/unictype/pr_bidi_left_to_right.c: New file.
9712         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
9713         * lib/unictype/pr_bidi_other_neutral.c: New file.
9714         * lib/unictype/pr_bidi_pdf.c: New file.
9715         * lib/unictype/pr_bidi_segment_separator.c: New file.
9716         * lib/unictype/pr_bidi_whitespace.c: New file.
9717         * lib/unictype/pr_byname.c: New file.
9718         * lib/unictype/pr_byname.gperf: New file.
9719         * lib/unictype/pr_combining.c: New file.
9720         * lib/unictype/pr_composite.c: New file.
9721         * lib/unictype/pr_currency_symbol.c: New file.
9722         * lib/unictype/pr_dash.c: New file.
9723         * lib/unictype/pr_decimal_digit.c: New file.
9724         * lib/unictype/pr_default_ignorable_code_point.c: New file.
9725         * lib/unictype/pr_deprecated.c: New file.
9726         * lib/unictype/pr_diacritic.c: New file.
9727         * lib/unictype/pr_extender.c: New file.
9728         * lib/unictype/pr_format_control.c: New file.
9729         * lib/unictype/pr_grapheme_base.c: New file.
9730         * lib/unictype/pr_grapheme_extend.c: New file.
9731         * lib/unictype/pr_grapheme_link.c: New file.
9732         * lib/unictype/pr_hex_digit.c: New file.
9733         * lib/unictype/pr_hyphen.c: New file.
9734         * lib/unictype/pr_id_continue.c: New file.
9735         * lib/unictype/pr_id_start.c: New file.
9736         * lib/unictype/pr_ideographic.c: New file.
9737         * lib/unictype/pr_ids_binary_operator.c: New file.
9738         * lib/unictype/pr_ids_trinary_operator.c: New file.
9739         * lib/unictype/pr_ignorable_control.c: New file.
9740         * lib/unictype/pr_iso_control.c: New file.
9741         * lib/unictype/pr_join_control.c: New file.
9742         * lib/unictype/pr_left_of_pair.c: New file.
9743         * lib/unictype/pr_line_separator.c: New file.
9744         * lib/unictype/pr_logical_order_exception.c: New file.
9745         * lib/unictype/pr_lowercase.c: New file.
9746         * lib/unictype/pr_math.c: New file.
9747         * lib/unictype/pr_non_break.c: New file.
9748         * lib/unictype/pr_not_a_character.c: New file.
9749         * lib/unictype/pr_numeric.c: New file.
9750         * lib/unictype/pr_other_alphabetic.c: New file.
9751         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
9752         * lib/unictype/pr_other_grapheme_extend.c: New file.
9753         * lib/unictype/pr_other_id_continue.c: New file.
9754         * lib/unictype/pr_other_id_start.c: New file.
9755         * lib/unictype/pr_other_lowercase.c: New file.
9756         * lib/unictype/pr_other_math.c: New file.
9757         * lib/unictype/pr_other_uppercase.c: New file.
9758         * lib/unictype/pr_paired_punctuation.c: New file.
9759         * lib/unictype/pr_paragraph_separator.c: New file.
9760         * lib/unictype/pr_pattern_syntax.c: New file.
9761         * lib/unictype/pr_pattern_white_space.c: New file.
9762         * lib/unictype/pr_private_use.c: New file.
9763         * lib/unictype/pr_punctuation.c: New file.
9764         * lib/unictype/pr_quotation_mark.c: New file.
9765         * lib/unictype/pr_radical.c: New file.
9766         * lib/unictype/pr_sentence_terminal.c: New file.
9767         * lib/unictype/pr_soft_dotted.c: New file.
9768         * lib/unictype/pr_space.c: New file.
9769         * lib/unictype/pr_terminal_punctuation.c: New file.
9770         * lib/unictype/pr_test.c: New file.
9771         * lib/unictype/pr_titlecase.c: New file.
9772         * lib/unictype/pr_unassigned_code_value.c: New file.
9773         * lib/unictype/pr_unified_ideograph.c: New file.
9774         * lib/unictype/pr_uppercase.c: New file.
9775         * lib/unictype/pr_variation_selector.c: New file.
9776         * lib/unictype/pr_white_space.c: New file.
9777         * lib/unictype/pr_xid_continue.c: New file.
9778         * lib/unictype/pr_xid_start.c: New file.
9779         * lib/unictype/pr_zero_width.c: New file.
9780         * lib/unictype/scripts.c: New file.
9781         * lib/unictype/sy_c_ident.c: New file.
9782         * lib/unictype/sy_c_whitespace.c: New file.
9783         * lib/unictype/sy_java_ident.c: New file.
9784         * lib/unictype/sy_java_whitespace.c: New file.
9785
9786         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
9787         Unicode 5.0.0.
9788         * lib/unictype/blocks.h: Likewise.
9789         * lib/unictype/categ_C.h: Likewise.
9790         * lib/unictype/categ_Cc.h: Likewise.
9791         * lib/unictype/categ_Cf.h: Likewise.
9792         * lib/unictype/categ_Cn.h: Likewise.
9793         * lib/unictype/categ_Co.h: Likewise.
9794         * lib/unictype/categ_Cs.h: Likewise.
9795         * lib/unictype/categ_L.h: Likewise.
9796         * lib/unictype/categ_Ll.h: Likewise.
9797         * lib/unictype/categ_Lm.h: Likewise.
9798         * lib/unictype/categ_Lo.h: Likewise.
9799         * lib/unictype/categ_Lt.h: Likewise.
9800         * lib/unictype/categ_Lu.h: Likewise.
9801         * lib/unictype/categ_M.h: Likewise.
9802         * lib/unictype/categ_Mc.h: Likewise.
9803         * lib/unictype/categ_Me.h: Likewise.
9804         * lib/unictype/categ_Mn.h: Likewise.
9805         * lib/unictype/categ_N.h: Likewise.
9806         * lib/unictype/categ_Nd.h: Likewise.
9807         * lib/unictype/categ_Nl.h: Likewise.
9808         * lib/unictype/categ_No.h: Likewise.
9809         * lib/unictype/categ_P.h: Likewise.
9810         * lib/unictype/categ_Pc.h: Likewise.
9811         * lib/unictype/categ_Pd.h: Likewise.
9812         * lib/unictype/categ_Pe.h: Likewise.
9813         * lib/unictype/categ_Pf.h: Likewise.
9814         * lib/unictype/categ_Pi.h: Likewise.
9815         * lib/unictype/categ_Po.h: Likewise.
9816         * lib/unictype/categ_Ps.h: Likewise.
9817         * lib/unictype/categ_S.h: Likewise.
9818         * lib/unictype/categ_Sc.h: Likewise.
9819         * lib/unictype/categ_Sk.h: Likewise.
9820         * lib/unictype/categ_Sm.h: Likewise.
9821         * lib/unictype/categ_So.h: Likewise.
9822         * lib/unictype/categ_Z.h: Likewise.
9823         * lib/unictype/categ_Zl.h: Likewise.
9824         * lib/unictype/categ_Zp.h: Likewise.
9825         * lib/unictype/categ_Zs.h: Likewise.
9826         * lib/unictype/categ_of.h: Likewise.
9827         * lib/unictype/combining.h: Likewise.
9828         * lib/unictype/ctype_alnum.h: Likewise.
9829         * lib/unictype/ctype_alpha.h: Likewise.
9830         * lib/unictype/ctype_blank.h: Likewise.
9831         * lib/unictype/ctype_cntrl.h: Likewise.
9832         * lib/unictype/ctype_digit.h: Likewise.
9833         * lib/unictype/ctype_graph.h: Likewise.
9834         * lib/unictype/ctype_lower.h: Likewise.
9835         * lib/unictype/ctype_print.h: Likewise.
9836         * lib/unictype/ctype_punct.h: Likewise.
9837         * lib/unictype/ctype_space.h: Likewise.
9838         * lib/unictype/ctype_upper.h: Likewise.
9839         * lib/unictype/ctype_xdigit.h: Likewise.
9840         * lib/unictype/decdigit.h: Likewise.
9841         * lib/unictype/digit.h: Likewise.
9842         * lib/unictype/mirror.h: Likewise.
9843         * lib/unictype/numeric.h: Likewise.
9844         * lib/unictype/pr_alphabetic.h: Likewise.
9845         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
9846         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
9847         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
9848         * lib/unictype/pr_bidi_block_separator.h: Likewise.
9849         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
9850         * lib/unictype/pr_bidi_common_separator.h: Likewise.
9851         * lib/unictype/pr_bidi_control.h: Likewise.
9852         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
9853         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
9854         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
9855         * lib/unictype/pr_bidi_european_digit.h: Likewise.
9856         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
9857         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
9858         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
9859         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
9860         * lib/unictype/pr_bidi_pdf.h: Likewise.
9861         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
9862         * lib/unictype/pr_bidi_whitespace.h: Likewise.
9863         * lib/unictype/pr_combining.h: Likewise.
9864         * lib/unictype/pr_composite.h: Likewise.
9865         * lib/unictype/pr_currency_symbol.h: Likewise.
9866         * lib/unictype/pr_dash.h: Likewise.
9867         * lib/unictype/pr_decimal_digit.h: Likewise.
9868         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
9869         * lib/unictype/pr_deprecated.h: Likewise.
9870         * lib/unictype/pr_diacritic.h: Likewise.
9871         * lib/unictype/pr_extender.h: Likewise.
9872         * lib/unictype/pr_format_control.h: Likewise.
9873         * lib/unictype/pr_grapheme_base.h: Likewise.
9874         * lib/unictype/pr_grapheme_extend.h: Likewise.
9875         * lib/unictype/pr_grapheme_link.h: Likewise.
9876         * lib/unictype/pr_hex_digit.h: Likewise.
9877         * lib/unictype/pr_hyphen.h: Likewise.
9878         * lib/unictype/pr_id_continue.h: Likewise.
9879         * lib/unictype/pr_id_start.h: Likewise.
9880         * lib/unictype/pr_ideographic.h: Likewise.
9881         * lib/unictype/pr_ids_binary_operator.h: Likewise.
9882         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
9883         * lib/unictype/pr_ignorable_control.h: Likewise.
9884         * lib/unictype/pr_iso_control.h: Likewise.
9885         * lib/unictype/pr_join_control.h: Likewise.
9886         * lib/unictype/pr_left_of_pair.h: Likewise.
9887         * lib/unictype/pr_line_separator.h: Likewise.
9888         * lib/unictype/pr_logical_order_exception.h: Likewise.
9889         * lib/unictype/pr_lowercase.h: Likewise.
9890         * lib/unictype/pr_math.h: Likewise.
9891         * lib/unictype/pr_non_break.h: Likewise.
9892         * lib/unictype/pr_not_a_character.h: Likewise.
9893         * lib/unictype/pr_numeric.h: Likewise.
9894         * lib/unictype/pr_other_alphabetic.h: Likewise.
9895         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
9896         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
9897         * lib/unictype/pr_other_id_continue.h: Likewise.
9898         * lib/unictype/pr_other_id_start.h: Likewise.
9899         * lib/unictype/pr_other_lowercase.h: Likewise.
9900         * lib/unictype/pr_other_math.h: Likewise.
9901         * lib/unictype/pr_other_uppercase.h: Likewise.
9902         * lib/unictype/pr_paired_punctuation.h: Likewise.
9903         * lib/unictype/pr_paragraph_separator.h: Likewise.
9904         * lib/unictype/pr_pattern_syntax.h: Likewise.
9905         * lib/unictype/pr_pattern_white_space.h: Likewise.
9906         * lib/unictype/pr_private_use.h: Likewise.
9907         * lib/unictype/pr_punctuation.h: Likewise.
9908         * lib/unictype/pr_quotation_mark.h: Likewise.
9909         * lib/unictype/pr_radical.h: Likewise.
9910         * lib/unictype/pr_sentence_terminal.h: Likewise.
9911         * lib/unictype/pr_soft_dotted.h: Likewise.
9912         * lib/unictype/pr_space.h: Likewise.
9913         * lib/unictype/pr_terminal_punctuation.h: Likewise.
9914         * lib/unictype/pr_titlecase.h: Likewise.
9915         * lib/unictype/pr_unassigned_code_value.h: Likewise.
9916         * lib/unictype/pr_unified_ideograph.h: Likewise.
9917         * lib/unictype/pr_uppercase.h: Likewise.
9918         * lib/unictype/pr_variation_selector.h: Likewise.
9919         * lib/unictype/pr_white_space.h: Likewise.
9920         * lib/unictype/pr_xid_continue.h: Likewise.
9921         * lib/unictype/pr_xid_start.h: Likewise.
9922         * lib/unictype/pr_zero_width.h: Likewise.
9923         * lib/unictype/scripts.h: Likewise.
9924         * lib/unictype/scripts_byname.gperf: Likewise.
9925         * lib/unictype/sy_c_ident.h: Likewise.
9926         * lib/unictype/sy_c_whitespace.h: Likewise.
9927         * lib/unictype/sy_java_ident.h: Likewise.
9928         * lib/unictype/sy_java_whitespace.h: Likewise.
9929
9930         * lib/unictype/Makefile: New file.
9931         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
9932         glibc.
9933         * lib/unictype/3level.h: New file, copied from glibc.
9934         * lib/unictype/3levelbit.h: New file.
9935
9936 2007-11-11  Bruno Haible  <bruno@clisp.org>
9937
9938         * modules/gperf: New file.
9939         * modules/iconv_open (Depends-on): Add it.
9940         (Makefile.am): Remove the GPERF definition.
9941
9942 2007-11-11  Bruno Haible  <bruno@clisp.org>
9943
9944         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
9945         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
9946
9947 2007-11-11  Bruno Haible  <bruno@clisp.org>
9948
9949         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
9950         (usage): Remove function.
9951
9952 2007-11-11  Bruno Haible  <bruno@clisp.org>
9953
9954         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
9955         gl_FUNC_CEILF_LIBS.
9956         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
9957         gl_FUNC_CEIL_LIBS.
9958         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
9959         gl_FUNC_CEILL_LIBS.
9960         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
9961         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
9962         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
9963
9964 2007-11-11  Bruno Haible  <bruno@clisp.org>
9965
9966         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
9967         roundf were declared but do not exist on functions.
9968         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
9969         roundl were declared but do not exist on functions.
9970         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
9971         HAVE_FLOORL_AND_CEILL, respectively.
9972         Needed for Sun C on Solaris 10.
9973
9974 2007-11-11  Bruno Haible  <bruno@clisp.org>
9975
9976         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
9977         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
9978         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
9979         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
9980         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
9981         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
9982         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
9983         HAVE_DECL_ROUNDF.
9984         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
9985         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
9986         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
9987         of HAVE_DECL_ROUND*.
9988         * modules/math (Makefile.am): Update.
9989
9990 2007-11-10  Bruno Haible  <bruno@clisp.org>
9991
9992         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
9993         ptrdiff_t as m4/intl.m4.
9994
9995 2007-11-10  Jim Meyering  <meyering@redhat.com>
9996
9997         Avoid link failure for the argmatch test.
9998         * tests/test-argmatch.c (usage): Define function to avoid a link
9999         failure: argmatch_die requires a usage function.
10000
10001 2007-11-09  Bruno Haible  <bruno@clisp.org>
10002
10003         * doc/functions/snprintf.texi: Mention BeOS deficiency.
10004         * doc/functions/vsnprintf.texi: Likewise.
10005         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
10006         with a size argument < 2.
10007
10008 2007-11-09  Bruno Haible  <bruno@clisp.org>
10009
10010         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
10011         buffer. Fixes an inefficiency introduced on 2007-11-03.
10012
10013 2007-11-09  Bruno Haible  <bruno@clisp.org>
10014
10015         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
10016         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
10017
10018 2007-11-08  Jim Meyering  <meyering@redhat.com>
10019
10020         Change cache variable name prefix "jm_" to "gl_" everywhere.
10021         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
10022         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
10023         * m4/uptime.m4: s/gl_/jm_/
10024
10025 2007-11-07  Bruno Haible  <bruno@clisp.org>
10026
10027         Update to GNU gettext 0.17.
10028         * m4/intl.m4: Update to GNU gettext 0.17.
10029         * m4/po.m4: Likewise.
10030         * modules/gettext (Files): Remove m4/ulonglong.m4.
10031         (configure.ac): Require gettext infrastructure from version 0.17.
10032
10033 2007-11-06  Bruno Haible  <bruno@clisp.org>
10034
10035         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
10036         symbolic values are not defined in a public header.
10037         * lib/freadable.c (freadable) [QNX]: Likewise.
10038         * lib/freadahead.c (freadahead) [QNX]: Likewise.
10039         * lib/freading.c (freading) [QNX]: Likewise.
10040         * lib/fseterr.c (fseterr) [QNX]: Likewise.
10041         * lib/fwritable.c (fwritable) [QNX]: Likewise.
10042         * lib/fwriting.c (fwriting) [QNX]: Likewise.
10043         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
10044         Reported by Alain Magloire.
10045
10046         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
10047
10048 2007-11-05  Bruno Haible  <bruno@clisp.org>
10049
10050         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
10051         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
10052         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
10053         Reported by Eric Blake.
10054
10055 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10056             Bruno Haible  <bruno@clisp.org>
10057
10058         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
10059         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
10060         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
10061         (malloc): Undefine also before including <stdlib.h>.
10062         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
10063         Needed on OSF/1 4.0.
10064
10065 2007-11-05  Jim Meyering  <meyering@redhat.com>
10066
10067         git-version-gen: sync from coreutils.
10068         * build-aux/git-version-gen: Add comments.
10069         Change the first '-' to '.' in the snapshot version string,
10070         e.g., 6.9-377-08144 -> 6.9.377-08144
10071         Remove first parameter.
10072         Don't declare a version "-dirty" merely because a time
10073         stamp has changed.
10074
10075 2007-11-04  Bruno Haible  <bruno@clisp.org>
10076
10077         * lib/lock.h: Protect all macro definitions containing an 'if'
10078         statement through a "do { ... } while (0)".
10079         * lib/tls.h: Likewise.
10080
10081 2007-11-04  Bruno Haible  <bruno@clisp.org>
10082
10083         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
10084
10085 2007-11-04  Bruno Haible  <bruno@clisp.org>
10086
10087         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
10088         * modules/fprintf-posix (Depends-on): Add nocrash.
10089         * modules/snprintf-posix (Depends-on): Likewise.
10090         * modules/sprintf-posix (Depends-on): Likewise.
10091         * modules/vasnprintf-posix (Depends-on): Likewise.
10092         * modules/vasprintf-posix (Depends-on): Likewise.
10093         * modules/vfprintf-posix (Depends-on): Likewise.
10094         * modules/vsnprintf-posix (Depends-on): Likewise.
10095         * modules/vsprintf-posix (Depends-on): Likewise.
10096         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
10097         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
10098         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
10099         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
10100         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
10101         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
10102         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
10103
10104 2007-11-04  Bruno Haible  <bruno@clisp.org>
10105
10106         * modules/nocrash: New file.
10107         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
10108         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
10109
10110 2007-11-04  Bruno Haible  <bruno@clisp.org>
10111
10112         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
10113         precision handling.
10114         * tests/test-vasprintf-posix.c (test_function): Likewise.
10115         * tests/test-snprintf-posix.h (test_function): Likewise.
10116         * tests/test-sprintf-posix.h (test_function): Likewise.
10117
10118         Fix *printf behaviour for large precisions on mingw and BeOS.
10119         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
10120         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
10121         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
10122         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
10123         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
10124         gl_PRINTF_PRECISION and test its result. Invoke
10125         gl_PREREQ_VASNPRINTF_PRECISION.
10126         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
10127         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
10128         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
10129         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
10130         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
10131         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
10132         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
10133         * doc/functions/fprintf.texi: Update.
10134         * doc/functions/printf.texi: Update.
10135         * doc/functions/snprintf.texi: Update.
10136         * doc/functions/sprintf.texi: Update.
10137         * doc/functions/vfprintf.texi: Update.
10138         * doc/functions/vprintf.texi: Update.
10139         * doc/functions/vsnprintf.texi: Update.
10140         * doc/functions/vsprintf.texi: Update.
10141
10142 2007-11-04  Bruno Haible  <bruno@clisp.org>
10143
10144         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
10145
10146 2007-11-04  Bruno Haible  <bruno@clisp.org>
10147
10148         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
10149         Reported by Sylvain Beucler <beuc@gnu.org>.
10150
10151 2007-11-03  Bruno Haible  <bruno@clisp.org>
10152
10153         * tests/test-fprintf-posix2.sh: New file.
10154         * tests/test-fprintf-posix2.c: New file.
10155         * modules/fprintf-posix-tests (Files): Add them.
10156         (TESTS): Add test-fprintf-posix2.sh.
10157         (configure.ac): Check for getrlimit and setrlimit.
10158         (check_PROGRAMS): Add test-fprintf-posix2.
10159
10160         * tests/test-printf-posix2.sh: New file.
10161         * tests/test-printf-posix2.c: New file.
10162         * modules/printf-posix-tests (Files): Add them.
10163         (TESTS): Add test-printf-posix2.sh.
10164         (configure.ac): Check for getrlimit and setrlimit.
10165         (check_PROGRAMS): Add test-printf-posix2.
10166
10167         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
10168         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
10169         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
10170         (decode_double): New function, copied from decode_long_double.
10171         (scale10_round_decimal_decoded): New function, extracted from
10172         scale10_round_decimal_long_double.
10173         (scale10_round_decimal_long_double): Use it.
10174         (scale10_round_decimal_double): New function.
10175         (floorlog10): New function.
10176         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
10177         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
10178         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
10179         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
10180         gl_PRINTF_ENOMEM and test its result. Invoke
10181         gl_PREREQ_VASNPRINTF_ENOMEM.
10182         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
10183         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
10184         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
10185         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
10186         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
10187         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
10188         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
10189         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
10190         * modules/snprintf-posix (Depends-on): Likewise.
10191         * modules/sprintf-posix (Depends-on): Likewise.
10192         * modules/vasnprintf-posix (Depends-on): Likewise.
10193         * modules/vasprintf-posix (Depends-on): Likewise.
10194         * modules/vfprintf-posix (Depends-on): Likewise.
10195         * modules/vsnprintf-posix (Depends-on): Likewise.
10196         * modules/vsprintf-posix (Depends-on): Likewise.
10197         * doc/functions/fprintf.texi: Update.
10198         * doc/functions/printf.texi: Update.
10199         * doc/functions/snprintf.texi: Update.
10200         * doc/functions/sprintf.texi: Update.
10201         * doc/functions/vfprintf.texi: Update.
10202         * doc/functions/vprintf.texi: Update.
10203         * doc/functions/vsnprintf.texi: Update.
10204         * doc/functions/vsprintf.texi: Update.
10205
10206 2007-11-03  Bruno Haible  <bruno@clisp.org>
10207
10208         * modules/frexp-nolibm-tests: New file.
10209
10210         * modules/frexp-nolibm: New file.
10211         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
10212
10213 2007-11-03  Bruno Haible  <bruno@clisp.org>
10214
10215         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
10216         value is C99 compliant.
10217         Needed for OSF/1 5.1.
10218
10219 2007-11-03  Bruno Haible  <bruno@clisp.org>
10220
10221         Fix out-of-memory handling of vasnprintf.
10222         * lib/printf-parse.c: Include <errno.h>.
10223         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
10224         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
10225         is already set.
10226
10227 2007-11-02  Eric Blake  <ebb9@byu.net>
10228
10229         Fix tests on cygwin.
10230         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
10231
10232 2007-11-01  Bruno Haible  <bruno@clisp.org>
10233
10234         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
10235         warning.
10236         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
10237         needed for POSIX compatibility.
10238
10239 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
10240
10241         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
10242         for compatibility with GNU.
10243
10244 2007-11-01  Bruno Haible  <bruno@clisp.org>
10245
10246         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
10247         (putenv): Renamed from rpl_putenv. Change argument type from
10248         'const char *' to 'char *'.
10249         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
10250         of defining putenv in config.h, just set REPLACE_PUTENV.
10251         * modules/putenv (Depends-on): Add stdlib.
10252         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
10253         (Include): Use <stdlib.h>.
10254         * lib/stdlib.in.h (putenv): New declaration.
10255         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
10256         REPLACE_PUTENV.
10257         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
10258         REPLACE_PUTENV.
10259         Needed for MacOS X 10.5.0.
10260         Reported by Peter O'Gorman <peter@pogma.com>.
10261
10262 2007-11-01  Jim Meyering  <meyering@redhat.com>
10263
10264         Treat an empty date string exactly like "0".
10265         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
10266         if the remaining date string (to be parsed) is empty, use "0".
10267         Reported by Mischa Molhoek and discussed in this thread:
10268         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
10269
10270 2007-10-31  Bruno Haible  <bruno@clisp.org>
10271
10272         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
10273         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
10274         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
10275         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
10276         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
10277         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
10278
10279 2007-10-31  Bruno Haible  <bruno@clisp.org>
10280
10281         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
10282         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
10283         (AC_TYPE_LONG_LONG_INT): Use it.
10284         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
10285         it as well.
10286         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
10287         to m4/longlong.m4.
10288         * modules/stdint (Files): Remove m4/ulonglong.m4.
10289         * modules/strtoull (Files): Use m4/longlong.m4 instead of
10290         m4/ulonglong.m4.
10291         * modules/strtoumax (Files): Likewise.
10292
10293 2007-10-30  Bruno Haible  <bruno@clisp.org>
10294
10295         * modules/xvasprintf-posix: New file.
10296         Suggested by Eric Blake.
10297
10298 2007-10-30  Bruno Haible  <bruno@clisp.org>
10299
10300         * modules/xprintf-posix-tests: New file.
10301         * tests/test-xprintf-posix.sh: New file.
10302         * tests/test-xprintf-posix.c: New file.
10303         * tests/test-xfprintf-posix.c: New file.
10304
10305         * modules/xprintf-posix: New file.
10306
10307 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10308
10309         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
10310         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
10311         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
10312
10313 2007-10-29  Bruno Haible  <bruno@clisp.org>
10314
10315         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
10316         contain the special marker '_cv_'.
10317         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
10318         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
10319         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
10320         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
10321         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
10322         Reported by Ralf Wildenhues.
10323
10324 2007-10-29  Bruno Haible  <bruno@clisp.org>
10325
10326         * gnulib-tool (func_import): When --lgpl is not specified, set
10327         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
10328         GPLv3.
10329         Reported by Simon Josefsson.
10330
10331 2007-10-28  Bruno Haible  <bruno@clisp.org>
10332
10333         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
10334         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
10335         HAVE_DECL_ISFINITE.
10336         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
10337         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
10338         HAVE_DECL_ISFINITE.
10339
10340 2007-10-28  Bruno Haible  <bruno@clisp.org>
10341
10342         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
10343         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
10344
10345 2007-10-28  Bruno Haible  <bruno@clisp.org>
10346
10347         Fix link errors with Sun C 5.0 on Solaris 10.
10348         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
10349         function is declared but not present in the compiler's libm.
10350         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
10351         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
10352         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
10353         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
10354         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
10355         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
10356         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
10357         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
10358         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
10359         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
10360         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
10361         HAVE_DECL_FLOORL.
10362
10363 2007-10-28  Bruno Haible  <bruno@clisp.org>
10364
10365         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
10366         gl_FUNC_FLOORL. Cache the result.
10367         (gl_FUNC_FLOORL): Use it.
10368         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
10369         gl_FUNC_CEILL. Cache the result.
10370         (gl_FUNC_CEILL): Use it.
10371
10372         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
10373         gl_FUNC_FLOOR. Cache the result.
10374         (gl_FUNC_FLOOR): Use it.
10375         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
10376         gl_FUNC_CEIL. Cache the result.
10377         (gl_FUNC_CEIL): Use it.
10378
10379         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
10380         gl_FUNC_FLOORF. Cache the result.
10381         (gl_FUNC_FLOORF): Use it.
10382         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
10383         gl_FUNC_CEILF. Cache the result.
10384         (gl_FUNC_CEILF): Use it.
10385
10386 2007-10-28  Bruno Haible  <bruno@clisp.org>
10387
10388         * gnulib-tool: Allow specifying the LGPL version number through
10389         --lgpl=2 or --lgpl=3.
10390         (func_usage): Document --lgpl with argument.
10391         Handle --lgpl=... arguments.
10392         (func_import): Recognize also gl_LGPL calls with an argument. When
10393         --lgpl=2 is used and the module's license is just LGPL, report an
10394         error. Set sed_transform_lib_file according to the lgpl variable. In
10395         the generated files, use --lgpl or gl_LGPL invocations with argument,
10396         if necessary.
10397         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
10398         an LGPv2+ license.
10399         * doc/gnulib-tool.texi (Modified imports): Update explanation of
10400         gl_LGPL macro.
10401
10402 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10403             Bruno Haible  <bruno@clisp.org>
10404
10405         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
10406         (u16_uctomb_aux): Likewise.
10407         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
10408         !HAVE_INLINE.
10409         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
10410
10411 2007-10-28  Bruno Haible  <bruno@clisp.org>
10412
10413         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
10414         Invoke AM_GETTEXT_OPTION if it exists.
10415         * modules/vasprintf: Likewise.
10416         * modules/verror: Likewise.
10417         * modules/xprintf: Likewise.
10418         * modules/xvasprintf: Likewise.
10419
10420 2007-10-27  Ben Pfaff  <blp@gnu.org>
10421
10422         * lib/math.in.h: Define isfinite macro and prototypes for
10423         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
10424         implementations.
10425         * m4/math_h.m4: New substitutions for isfinite module.
10426         * lib/isfinite.c: New file.
10427         * m4/isfinite.m4: New file.
10428         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
10429         * modules/isfinite: New file.
10430         * modules/isfinite-tests: New file.
10431         * tests/tests-isfinite.c: New file.
10432         * doc/functions/isfinite.texi: Mention isfinite module.
10433         * MODULES.html.sh: Mention new module.
10434
10435 2007-10-27  Ben Pfaff  <blp@gnu.org>
10436
10437         Ralf Wildenhues reported that Tru64 4.0D declares the round
10438         functions but does not have definitions.
10439         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
10440         cannot be found in any library, set the output variable to
10441         "missing" instead of "".
10442         * m4/round.m4: Also use our substitute if we cannot find round in
10443         any library, even if it is declared.
10444         * m4/roundf.m4: Likewise for roundf.
10445         * m4/roundl.m4: Likewise for roundl.
10446         * lib/math.in.h: Undefine roundf, round, roundl before defining
10447         their replacements, to allow for hypothetical systems where these
10448         may be defined as macros but not available in libraries.
10449
10450 2007-10-27  Bruno Haible  <bruno@clisp.org>
10451
10452         * doc/gnulib.texi: Invoke @firstparagraphindent.
10453         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
10454         changes in gnulib.
10455         (Source changes): New section.
10456
10457 2007-10-26  Bruno Haible  <bruno@clisp.org>
10458
10459         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
10460         borrowed from autoconf.
10461
10462 2007-10-26  Bruno Haible  <bruno@clisp.org>
10463
10464         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
10465         strerror returned the empty string. Needed on HP-UX 11.00.
10466
10467 2007-10-24  Micah Cowan  <micah@cowan.name>
10468
10469         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
10470         * build-aux/bootstrap: Remove support for now-unnecessary option,
10471         --cvs-user, and envvars CVS_USER, CVS_RSH.
10472
10473 2007-10-24  Jim Meyering  <meyering@redhat.com>
10474
10475         Avoid diagnostics from sha1sum when there is no cached checksum.
10476         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
10477         if the po.s1 file hasn't been created yet.
10478
10479         * build-aux/bootstrap: Sync from coreutils:
10480         2007-10-24  Jim Meyering  <meyering@redhat.com>
10481         Get gnulib from the git repository, not from an obsolete cvs one.
10482         * build-aux/bootstrap: Suggestion from Micah Cowan.
10483         2007-10-04  Jim Meyering  <jim@meyering.net>
10484         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
10485         (update_po_files): Work also when there are no .po files in po/.
10486
10487 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
10488
10489         * README: Append ".git" to git and cg examples.
10490         Problem reported by Benoit Sigoure.
10491
10492 2007-10-23  Micah Cowan  <micah@cowan.name>
10493
10494         * users.txt: Add wget.
10495
10496 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10497
10498         Fix linking of some unistdio tests on FreeBSD.
10499         * modules/unistdio/u16-vsnprintf-tests
10500         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
10501         * modules/unistdio/u16-vsprintf-tests
10502         (test_u16_vsnprintf1_LDADD): Likewise.
10503         * modules/unistdio/u32-vsnprintf-tests
10504         (test_u32_vsnprintf1_LDADD): Likewise.
10505         * modules/unistdio/u32-vsprintf-tests
10506         (test_u32_vsprintf1_LDADD): Likewise.
10507         * modules/unistdio/u8-vsnprintf-tests
10508         (test_u8_vsnprintf1_LDADD): Likewise.
10509         * modules/unistdio/u8-vsprintf-tests
10510         (test_u8_vsprintf1_LDADD): Likewise.
10511         * modules/unistdio/ulc-vsnprintf-tests
10512         (test_ulc_vsnprintf1_LDADD): Likewise.
10513         * modules/unistdio/ulc-vsprintf-tests
10514         (test_ulc_vsprintf1_LDADD): Likewise.
10515
10516         Fix linking of some uniconv tests on FreeBSD.
10517         * modules/uniconv/u16-conv-from-enc-tests
10518         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
10519         * modules/uniconv/u16-conv-to-enc-tests
10520         (test_u16_conv_to_enc_LDADD): Likewise.
10521         * modules/uniconv/u16-strconv-from-enc-tests
10522         (test_u16_strconv_from_enc_LDADD): Likewise.
10523         * modules/uniconv/u16-strconv-to-enc-tests
10524         (test_u16_strconv_to_enc_LDADD): Likewise.
10525         * modules/uniconv/u32-conv-from-enc-tests
10526         (test_u32_conv_from_enc_LDADD): Likewise.
10527         * modules/uniconv/u32-conv-to-enc-tests
10528         (test_u32_conv_to_enc_LDADD): Likewise.
10529         * modules/uniconv/u32-strconv-from-enc-tests
10530         (test_u32_strconv_from_enc_LDADD): Likewise.
10531         * modules/uniconv/u32-strconv-to-enc-tests
10532         (test_u32_strconv_to_enc_LDADD): Likewise.
10533         * modules/uniconv/u8-conv-from-enc-tests
10534         (test_u8_conv_from_enc_LDADD): Likewise.
10535         * modules/uniconv/u8-conv-to-enc-tests
10536         (test_u8_conv_to_enc_LDADD): Likewise.
10537         * modules/uniconv/u8-strconv-from-enc-tests
10538         (test_u8_strconv_from_enc_LDADD): Likewise.
10539         * modules/uniconv/u8-strconv-to-enc-tests
10540         (test_u8_strconv_to_enc_LDADD): Likewise.
10541
10542 2007-10-22  Bruno Haible  <bruno@clisp.org>
10543
10544         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
10545         size.
10546
10547 2007-10-22  Eric Blake  <ebb9@byu.net>
10548
10549         Tweak x*printf documentation.
10550         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
10551         variable name and comments.
10552         Suggested by Bruno Haible.
10553
10554 2007-10-22  Bruno Haible  <bruno@clisp.org>
10555
10556         * lib/acl.c (copy_acl): Fix file name in comment.
10557
10558 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
10559
10560         Fix Tru64 problem with stdbool.h.
10561         * lib/stdbool.in.h (false, true):
10562         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
10563         Don't declare as an enum in this situation; it runs afoul of Tru64.
10564         Problem reported by Steven M. Schweda in
10565         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
10566
10567 2007-10-22  Eric Blake  <ebb9@byu.net>
10568
10569         Also wrap vf?printf.
10570         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
10571         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
10572         (xvprintf, xvfprintf): New functions.
10573
10574 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10575
10576         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
10577         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
10578
10579         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
10580         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
10581
10582 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
10583
10584         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
10585         by Bruno Haible.
10586
10587 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10588
10589         * lib/getloadavg.c
10590         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
10591         Undef `sys' after including sys/table.h, for Tru64 4.0D.
10592
10593         * tests/test-i-ring.c: Work for C89.
10594
10595 2007-10-22  Bruno Haible  <bruno@clisp.org>
10596
10597         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
10598         -1u, in preprocessor expression, so that we don't test for the bug
10599         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
10600         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
10601
10602 2007-10-22  Eric Blake  <ebb9@byu.net>
10603
10604         * tests/test-yesno.sh: Silence stderr during test.
10605
10606 2007-10-22  Simon Josefsson  <simon@josefsson.org>
10607
10608         * modules/crypto/gc-camellia: New file.
10609
10610         * m4/gc-camellia.m4: New file.
10611
10612         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
10613
10614         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
10615
10616 2007-10-22  Simon Josefsson  <simon@josefsson.org>
10617
10618         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
10619         --help to stdout.  Reported by sms@antinode.org (Steven
10620         M. Schweda).
10621
10622 2007-10-22  Simon Josefsson  <simon@josefsson.org>
10623
10624         * users.txt: Fix link to libksba.
10625
10626 2007-10-21  Ben Pfaff  <blp@gnu.org>
10627
10628         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
10629         round.c roundf implementation that depends on floorf and ceilf to
10630         be tested unconditionally.
10631
10632 2007-10-21  Ben Pfaff  <blp@gnu.org>
10633
10634         * m4/check-libm-func.m4: Removed.
10635         * m4/check-math-lib.m4: New file.
10636         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
10637         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
10638         definition and lack of AC_LIBOBJ([roundf]).
10639         * m4/roundl.m4: Ditto, and similarly for roundl.
10640         * modules/round: Reference new m4 file.
10641         * modules/roundf: Ditto.
10642         * modules/roundl: Ditto.
10643         * tests/test-round2.c (main): Use ROUND instead of round.
10644         Bug report from Bruno Haible.
10645
10646 2007-10-21  Bruno Haible  <bruno@clisp.org>
10647
10648         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
10649         context.
10650
10651 2007-10-21  Bruno Haible  <bruno@clisp.org>
10652
10653         * tests/test-wcwidth.c (main): Allow negative result for some control
10654         characters.
10655
10656         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
10657         Needed on OSF/1 5.1.
10658
10659 2007-10-21  Bruno Haible  <bruno@clisp.org>
10660
10661         * tests/test-floorf1.c: Include isnanf.h.
10662         (main): Use isnanf() instead of isnan().
10663         * tests/test-ceilf1.c: Include isnanf.h.
10664         (main): Use isnanf() instead of isnan().
10665         * tests/test-truncf1.c: Include isnanf.h.
10666         (main): Use isnanf() instead of isnan().
10667         * tests/test-roundf1.c: Include isnanf.h.
10668         (main): Use isnanf() instead of isnan().
10669
10670 2007-10-21  Eric Blake  <ebb9@byu.net>
10671
10672         * users.txt: Update URL for m4.
10673
10674 2007-10-21  Bruno Haible  <bruno@clisp.org>
10675
10676         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
10677
10678 2007-10-21  Bruno Haible  <bruno@clisp.org>
10679
10680         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
10681         Git's management files if the CVS files are not present.
10682
10683 2007-10-20  Bruno Haible  <bruno@clisp.org>
10684
10685         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
10686         gcc-3.4.x.
10687
10688 2007-10-20  Ben Pfaff  <blp@gnu.org>
10689
10690         * lib/math.in.h: Declare round, roundf, roundl if we are providing
10691         implementations.
10692         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
10693         * lib/round.c: New file.
10694         * lib/roundf.c: New file.
10695         * lib/roundl.c: New file.
10696         * m4/round.m4: New file.
10697         * m4/roundf.m4: New file.
10698         * m4/roundl.m4: New file.
10699         * m4/check-libm-func-m4: New file.
10700         * modules/math: Replace round, roundf, roundl related @VARS@ in
10701         math.in.h.
10702         * modules/round: New file.
10703         * modules/round-tests: New file.
10704         * modules/roundf: New file.
10705         * modules/roundf-tests: New file.
10706         * modules/roundl: New file.
10707         * modules/roundl-tests: New file.
10708         * tests/test-round1.c: New file.
10709         * tests/test-round2.c: New file.
10710         * tests/test-roundf1.c: New file.
10711         * tests/test-roundf2.c: New file.
10712         * tests/test-roundl.c: New file.
10713         * doc/functions/round.texi: Mention round module.
10714         * doc/functions/roundf.texi: Mention roundf module.
10715         * doc/functions/roundl.texi: Mention roundl module.
10716         * MODULES.html.sh: Mention new modules.
10717         Thanks to Bruno Haible for suggestions.
10718
10719 2007-10-20  Jim Meyering  <meyering@redhat.com>
10720
10721         * lib/xprintf.c: Include <config.h> unconditionally.
10722
10723         Change xprintf's license to GPL.
10724         * modules/xprintf (License): s/LGPL/GPL/, since this module
10725         depends on modules (exit and exitfail) which are GPL.
10726         Suggestion from Bruno Haible.
10727
10728         xprintf fixes.
10729         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
10730         Use a clearer diagnostic.
10731         Patch from Bruno Haible.
10732
10733 2007-10-20  Bruno Haible  <bruno@clisp.org>
10734
10735         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
10736         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
10737         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
10738
10739 2007-10-20  Bruno Haible  <bruno@clisp.org>
10740
10741         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
10742         precision in the comparison result > x - 1 or similar.
10743         * tests/test-ceilf2.c (correct_result_p): Likewise.
10744         * tests/test-truncf2.c (correct_result_p): Likewise.
10745         * tests/test-trunc2.c (correct_result_p): Likewise.
10746         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
10747
10748 2007-10-20  Bruno Haible  <bruno@clisp.org>
10749
10750         * modules/ceil: New file.
10751         * m4/ceil.m4: New file.
10752         * doc/functions/ceil.texi: Mention the 'ceil' module.
10753
10754 2007-10-20  Bruno Haible  <bruno@clisp.org>
10755
10756         * modules/floor: New file.
10757         * m4/floor.m4: New file.
10758         * doc/functions/floor.texi: Mention the 'floor' module.
10759
10760 2007-10-20  Bruno Haible  <bruno@clisp.org>
10761
10762         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
10763         of %a.
10764         * modules/floorf-tests (Depends-on): Likewise.
10765         * modules/truncf-tests (Depends-on): Likewise.
10766         * modules/trunc-tests (Depends-on): Likewise.
10767         Reported by Ben Pfaff.
10768
10769 2007-10-19  Jim Meyering  <meyering@redhat.com>
10770
10771         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
10772         Don't bother testing specific errno values.  Just test ferror.
10773
10774         New module: xprintf
10775         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
10776
10777 2007-10-19  Bruno Haible  <bruno@clisp.org>
10778
10779         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
10780         syntax.
10781         * modules/javaexec (Makefile.am): Likewise.
10782         * modules/relocatable-prog (Makefile.am): Likewise.
10783         Suggested by Jim Meyering.
10784
10785 2007-10-18  Bruno Haible  <bruno@clisp.org>
10786
10787         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
10788         Reported by Jim Meyering.
10789
10790 2007-10-18  Eric Blake  <ebb9@byu.net>
10791
10792         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
10793
10794 2007-10-18  Bruno Haible  <bruno@clisp.org>
10795
10796         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
10797         the format string into writable memory. Needed in Fortify conditions.
10798
10799 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
10800             Bruno Haible  <bruno@clisp.org>
10801
10802         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
10803         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
10804         * modules/trim (Depends-on): Add mbchar.
10805         (configure.ac): Add gl_FUNC_MBRTOWC.
10806         (Makefile.am): Augment lib_SOURCES.
10807
10808 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
10809
10810         Modify glob.c to use fstatat and dirfd, to simplify it.
10811         Suggested by Eric Blake.
10812         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
10813         Don't include <stdbool.h>; not used.
10814         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
10815         (link_exists_p): Simplify implementation, since we can now assume
10816         dirfd and fstatat.
10817         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
10818
10819 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10820
10821         * gnulib-tool (func_get_dependencies): Fix sed script to
10822         match only tests.
10823
10824 2007-10-17  Bruno Haible  <bruno@clisp.org>
10825
10826         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
10827         allow locale names without encoding suffix.
10828         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
10829         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
10830
10831 2007-10-16  Bruno Haible  <bruno@clisp.org>
10832
10833         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
10834         * lib/getgroups.c (getgroups): Likewise.
10835         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
10836
10837 2007-10-16  Bruno Haible  <bruno@clisp.org>
10838
10839         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
10840         * modules/malloc-posix (License): Likewise.
10841         * modules/realloc-posix (License): Likewise.
10842         * modules/calloc-posix (License): Likewise.
10843         * modules/intprops (License): Change from GPL to LGPL, with
10844         Paul Eggert's approval.
10845
10846 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
10847
10848         Merge glibc changes into lib/glob.c.
10849
10850         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
10851         2007-10-15 04:59:03 UTC.  Here are the changes:
10852
10853         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
10854
10855         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
10856
10857         * lib/glob.c: Add some branch prediction throughout.
10858
10859         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
10860
10861         [BZ #5103]
10862         * lib/glob.c (glob): Recognize patterns starting \/.
10863
10864         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
10865
10866         [BZ #3996]
10867         * lib/glob.c (attribute_hidden): Define if not defined.
10868         (glob): Unescape dirname, filename or username when needed and not
10869         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
10870         is NULL.  Handle unescaped [ in pattern without closing ].
10871         Don't pass GLOB_CHECK down to recursive glob for directories.
10872         (__glob_pattern_type): New function.
10873         (__glob_pattern_p): Implement using __glob_pattern_type.
10874         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
10875         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
10876         Remove unreachable code.
10877
10878         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
10879
10880         * lib/glob.c (glob_in_dir): Add some comments and asserts to
10881         explain why there are no leaks.
10882
10883         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
10884
10885         [BZ #3253]
10886         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
10887         time, rather allocate increasingly bigger arrays of pointers, if
10888         possible with alloca, if too large with malloc.
10889
10890 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
10891
10892         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
10893         Problem reported by H.Merijn Brand in
10894         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
10895         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
10896         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
10897
10898 2007-10-15  Bruno Haible  <bruno@clisp.org>
10899
10900         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
10901         with explicit rpl_ prefix.
10902         * lib/fopen.c (fopen): Likewise.
10903         * lib/freopen.c (freopen): Likewise.
10904         * lib/iconv.c (iconv): Likewise.
10905         * lib/iconv_close.c (iconv_close): Likewise.
10906
10907 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10908
10909         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
10910
10911 2007-10-15  Bruno Haible  <bruno@clisp.org>
10912
10913         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
10914         <stddef.h> instead of <stdlib.h> since we only need NULL.
10915         Reported by Ben Pfaff <blp@cs.stanford.edu>.
10916
10917 2007-10-15  Bruno Haible  <bruno@clisp.org>
10918
10919         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
10920         Replace paragraph talking about LIBOBJS.
10921         Reported by Colin Watson <cjwatson@debian.org>.
10922
10923 2007-10-15  Bruno Haible  <bruno@clisp.org>
10924
10925         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
10926         <stdlib.h> before using NULL.
10927
10928 2007-10-15  Simon Josefsson  <simon@josefsson.org>
10929
10930         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
10931         Reported by Albert Chin <china@thewrittenword.com>.
10932
10933 2007-10-14  Bruno Haible  <bruno@clisp.org>
10934
10935         * modules/iconv_open-utf-tests: New file.
10936         * tests/test-iconv-utf.c: New file.
10937
10938         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
10939         * modules/iconv_open-utf: New file.
10940         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
10941         (iconv, iconv_close): New declarations.
10942         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
10943         be defined.
10944         (iconv_open): Add special handling of conversion between UTF-8 and
10945         UTF-{16,32}{BE,LE}.
10946         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
10947         * lib/iconv_close.c: New file.
10948         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
10949         gl_FUNC_ICONV_OPEN.
10950         (gl_FUNC_ICONV_OPEN): Use it.
10951         (gl_FUNC_ICONV_OPEN_UTF): New macro.
10952         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
10953         and REPLACE_ICONV_UTF.
10954         * modules/iconv_open (Depends-on): Add c-strcase.
10955         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
10956         ICONV_CONST.
10957         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
10958
10959 2007-10-13  Albert Chin  <china@thewrittenword.com>
10960             Bruno Haible  <bruno@clisp.org>
10961
10962         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
10963         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
10964
10965 2007-10-13  Bruno Haible  <bruno@clisp.org>
10966
10967         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
10968         defined, use the ISO C99 inline semantics.
10969         * lib/argp.h (ARGP_EI): Likewise.
10970
10971 2007-10-13  Bruno Haible  <bruno@clisp.org>
10972
10973         Handle 'inline' change in gcc 4.3.0.
10974         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
10975         argp_fmtstream_write, argp_fmtstream_set_lmargin,
10976         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
10977         argp_fmtstream_point): Disable 'extern' declaration if the function
10978         definition is going to be provided inline.
10979         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
10980         semantics, not the ISO C99 inline semantics.
10981         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
10982         'extern' declaration if the function definition is going to be provided
10983         inline.
10984         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
10985         the GNU C inline semantics, not the ISO C99 inline semantics. With
10986         GCC 4.2, avoid a warning.
10987
10988 2007-10-13  Bruno Haible  <bruno@clisp.org>
10989
10990         * lib/freading.h (freading): Enable the use of __freading for
10991         glibc >= 2.7.
10992         * lib/freading.c (freading): Likewise.
10993
10994 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
10995
10996         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
10997         "warning: C99 inline functions are not supported; using GNU89".
10998
10999 2007-10-12  Bruno Haible  <bruno@clisp.org>
11000
11001         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
11002         of 2.
11003         * tests/test-ceilf2.c: New file.
11004         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
11005
11006         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
11007         * modules/ceilf-tests: Update.
11008
11009 2007-10-12  Bruno Haible  <bruno@clisp.org>
11010
11011         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
11012         of 2.
11013         * tests/test-floorf2.c: New file.
11014         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
11015
11016         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
11017         * modules/floorf-tests: Update.
11018
11019 2007-10-12  Bruno Haible  <bruno@clisp.org>
11020
11021         * tests/test-trunc2.c: New file.
11022         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
11023
11024         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
11025         * modules/trunc-tests: Update.
11026
11027 2007-10-12  Bruno Haible  <bruno@clisp.org>
11028
11029         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
11030         of 2.
11031         * tests/test-truncf2.c: New file.
11032         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
11033
11034         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
11035         * modules/truncf-tests: Update.
11036
11037 2007-10-11  Eric Blake  <ebb9@byu.net>
11038
11039         Don't claim strerror is broken on Interix.
11040         * doc/functions/strerror.texi (strerror): Known broken systems are
11041         now Solaris 8, and not Interix.
11042         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
11043         Interix on cross-compile.
11044         Reported by Martin Koeppe in
11045         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
11046
11047 2007-10-11  Bruno Haible  <bruno@clisp.org>
11048
11049         * modules/i-ring-tests: New file.
11050         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
11051         instead of assert.
11052
11053 2007-10-11  Bruno Haible  <bruno@clisp.org>
11054
11055         * modules/filenamecat-tests: New file.
11056         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
11057         * lib/filenamecat.c: Remove test code.
11058
11059 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
11060
11061         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
11062
11063         * lib/strerror.c: Include <string.h> always, to test interface,
11064         and to remove the need for the dummy.
11065         Include intprops.h to compute width instead of doing it ourselves
11066         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
11067         (strerror): Define it to return NULL if there's no system strerror.
11068         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
11069         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
11070         ancient pre-strerror Unix systems well any more.  Saying "unknown
11071         system error" is enough.
11072         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
11073         simpler strerror.c implementation.
11074         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
11075         Simplify the tests to reflect the simpler strerror implementation.
11076         * modules/strerror (Depends-on): Add intprops.
11077
11078 2007-10-09  Eric Blake  <ebb9@byu.net>
11079
11080         Silence test-fpending.
11081         * modules/fpending-tests (Files): Add wrapper script.
11082         * tests/test-fpending.sh: New file.
11083
11084 2007-10-09  Bruno Haible  <bruno@clisp.org>
11085
11086         * MODULES.html.sh (func_module): Don't create a hyperlink for
11087         function names like 'printf_frexp'.
11088         (Misc): Add crc, memxor.
11089         (Characteristics of floating types): New section.
11090         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
11091         isnanf-nolibm, signbit, trunc, truncf, truncl.
11092         (Enhancements for ISO C 99 functions): New subsection Input/output.
11093         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
11094         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
11095         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
11096         (Compatibility checks for POSIX:2001 functions): Add clock-time.
11097         (Enhancements for POSIX:2001 functions): Add chdir-long.
11098         (File system functions): Add areadlink, chdir-safer, read-file.
11099         Remove cycle-check.
11100         (File system as inode set): New section.
11101         (Date and time): Add gethrxtime.
11102         (Multithreading): Add openmp.
11103         (Internationalization functions): Add localename.
11104         (Unicode string functions): Add unistr/u*-mbsnlen.
11105         (Support for maintaining and releasing projects): Add git-version-gen.
11106         (Lone files): Remove directories.
11107
11108 2007-10-08  Ben Pfaff  <blp@gnu.org>
11109
11110         * lib/xmalloca.h: Fix typo in comment.
11111
11112 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
11113
11114         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
11115         when avoiding problems with integer overflow.  Use a portable test
11116         instead.
11117
11118 2007-10-08  Simon Josefsson  <simon@josefsson.org>
11119
11120         * modules/dummy (License): Change to LGPLv2+.
11121         * modules/float (License): Likewise
11122         * modules/realloc (License): Likewise
11123         * modules/stdlib (License): Likewise
11124
11125 2007-10-07  Bruno Haible  <bruno@clisp.org>
11126
11127         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
11128         * floor.c (TWO_MANT_DIG): Likewise.
11129         * ceil.c (TWO_MANT_DIG): Likewise.
11130         Reported by Ben Pfaff.
11131
11132 2007-10-07  Bruno Haible  <bruno@clisp.org>
11133
11134         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
11135         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
11136         * lib/frexp.c (FUNC): Likewise.
11137         * lib/printf-frexp.h (printf_frexp): Likewise.
11138         * lib/printf-frexpl.h (printf_frexpl): Likewise.
11139         * lib/printf-frexp.c (FUNC): Likewise.
11140         Suggested by Jim Meyering.
11141
11142 2007-10-07  Jim Meyering  <meyering@redhat.com>
11143
11144         Make xnanosleep's integer overflow test more robust.
11145         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
11146         so that gcc-4.3.0 doesn't optimize away this test for overflow.
11147
11148 2007-10-07  Bruno Haible  <bruno@clisp.org>
11149
11150         * NEWS: Mention the license change.
11151
11152         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
11153         abbreviations in the modules files.
11154
11155         Change copyright notice from GPLv2+ to GPLv3+.
11156         * README: Change copyright notice.
11157         * MODULES.html.sh: Likewise.
11158         * build-aux/bootstrap.conf: Likewise.
11159         * build-aux/config.libpath: Likewise.
11160         * build-aux/csharpcomp.sh.in: Likewise.
11161         * build-aux/csharpexec.sh.in: Likewise.
11162         * build-aux/install-reloc: Likewise.
11163         * build-aux/javacomp.sh.in: Likewise.
11164         * build-aux/javaexec.sh.in: Likewise.
11165         * build-aux/ldd.sh.in: Likewise.
11166         * build-aux/reloc-ldflags: Likewise.
11167         * build-aux/relocatable.sh.in: Likewise.
11168         * build-aux/x-to-1.in: Likewise.
11169         * check-module: Likewise.
11170         * config/srclistvars.sh: Likewise.
11171         * gnulib-tool: Likewise.
11172         * lib/acl-internal.h: Likewise.
11173         * lib/acl.c: Likewise.
11174         * lib/acl.h: Likewise.
11175         * lib/acl_entries.c: Likewise.
11176         * lib/areadlink-with-size.c: Likewise.
11177         * lib/areadlink.c: Likewise.
11178         * lib/areadlink.h: Likewise.
11179         * lib/argmatch.c: Likewise.
11180         * lib/argmatch.h: Likewise.
11181         * lib/argp-ba.c: Likewise.
11182         * lib/argp-eexst.c: Likewise.
11183         * lib/argp-fmtstream.c: Likewise.
11184         * lib/argp-fmtstream.h: Likewise.
11185         * lib/argp-fs-xinl.c: Likewise.
11186         * lib/argp-help.c: Likewise.
11187         * lib/argp-namefrob.h: Likewise.
11188         * lib/argp-parse.c: Likewise.
11189         * lib/argp-pin.c: Likewise.
11190         * lib/argp-pv.c: Likewise.
11191         * lib/argp-pvh.c: Likewise.
11192         * lib/argp-xinl.c: Likewise.
11193         * lib/argp.h: Likewise.
11194         * lib/at-func.c: Likewise.
11195         * lib/atanl.c: Likewise.
11196         * lib/backupfile.c: Likewise.
11197         * lib/backupfile.h: Likewise.
11198         * lib/basename.c: Likewise.
11199         * lib/binary-io.h: Likewise.
11200         * lib/byteswap.in.h: Likewise.
11201         * lib/c-stack.c: Likewise.
11202         * lib/c-stack.h: Likewise.
11203         * lib/c-strcasestr.c: Likewise.
11204         * lib/c-strcasestr.h: Likewise.
11205         * lib/c-strstr.c: Likewise.
11206         * lib/c-strstr.h: Likewise.
11207         * lib/c-strtod.c: Likewise.
11208         * lib/calloc.c: Likewise.
11209         * lib/canon-host.c: Likewise.
11210         * lib/canon-host.h: Likewise.
11211         * lib/canonicalize-lgpl.c: Likewise.
11212         * lib/canonicalize.c: Likewise.
11213         * lib/canonicalize.h: Likewise.
11214         * lib/ceil.c: Likewise.
11215         * lib/ceilf.c: Likewise.
11216         * lib/ceill.c: Likewise.
11217         * lib/chdir-long.c: Likewise.
11218         * lib/chdir-long.h: Likewise.
11219         * lib/chdir-safer.c: Likewise.
11220         * lib/chdir-safer.h: Likewise.
11221         * lib/chown.c: Likewise.
11222         * lib/classpath.c: Likewise.
11223         * lib/classpath.h: Likewise.
11224         * lib/clean-temp.c: Likewise.
11225         * lib/clean-temp.h: Likewise.
11226         * lib/cloexec.c: Likewise.
11227         * lib/close-stream.c: Likewise.
11228         * lib/closein.c: Likewise.
11229         * lib/closein.h: Likewise.
11230         * lib/closeout.c: Likewise.
11231         * lib/closeout.h: Likewise.
11232         * lib/concat-filename.c: Likewise.
11233         * lib/copy-file.c: Likewise.
11234         * lib/copy-file.h: Likewise.
11235         * lib/count-one-bits.h: Likewise.
11236         * lib/crc.c: Likewise.
11237         * lib/crc.h: Likewise.
11238         * lib/creat-safer.c: Likewise.
11239         * lib/csharpcomp.c: Likewise.
11240         * lib/csharpcomp.h: Likewise.
11241         * lib/csharpexec.c: Likewise.
11242         * lib/csharpexec.h: Likewise.
11243         * lib/cycle-check.c: Likewise.
11244         * lib/cycle-check.h: Likewise.
11245         * lib/diacrit.c: Likewise.
11246         * lib/diacrit.h: Likewise.
11247         * lib/diffseq.h: Likewise.
11248         * lib/dirchownmod.c: Likewise.
11249         * lib/dirent.in.h: Likewise.
11250         * lib/dirfd.c: Likewise.
11251         * lib/dirfd.h: Likewise.
11252         * lib/dirname.c: Likewise.
11253         * lib/dirname.h: Likewise.
11254         * lib/dummy.c: Likewise.
11255         * lib/dup-safer.c: Likewise.
11256         * lib/dup2.c: Likewise.
11257         * lib/eealloc.h: Likewise.
11258         * lib/error.c: Likewise.
11259         * lib/error.h: Likewise.
11260         * lib/euidaccess.c: Likewise.
11261         * lib/exclude.c: Likewise.
11262         * lib/exclude.h: Likewise.
11263         * lib/execute.c: Likewise.
11264         * lib/execute.h: Likewise.
11265         * lib/exitfail.c: Likewise.
11266         * lib/exitfail.h: Likewise.
11267         * lib/expl.c: Likewise.
11268         * lib/fatal-signal.c: Likewise.
11269         * lib/fatal-signal.h: Likewise.
11270         * lib/fbufmode.c: Likewise.
11271         * lib/fbufmode.h: Likewise.
11272         * lib/fchdir.c: Likewise.
11273         * lib/fchmodat.c: Likewise.
11274         * lib/fchownat.c: Likewise.
11275         * lib/fcntl--.h: Likewise.
11276         * lib/fcntl-safer.h: Likewise.
11277         * lib/fcntl.in.h: Likewise.
11278         * lib/fd-safer.c: Likewise.
11279         * lib/fflush.c: Likewise.
11280         * lib/file-has-acl.c: Likewise.
11281         * lib/file-set.c: Likewise.
11282         * lib/file-type.c: Likewise.
11283         * lib/file-type.h: Likewise.
11284         * lib/fileblocks.c: Likewise.
11285         * lib/filemode.c: Likewise.
11286         * lib/filemode.h: Likewise.
11287         * lib/filename.h: Likewise.
11288         * lib/filenamecat.c: Likewise.
11289         * lib/filenamecat.h: Likewise.
11290         * lib/findprog.c: Likewise.
11291         * lib/findprog.h: Likewise.
11292         * lib/float.in.h: Likewise.
11293         * lib/floor.c: Likewise.
11294         * lib/floorf.c: Likewise.
11295         * lib/floorl.c: Likewise.
11296         * lib/fopen-safer.c: Likewise.
11297         * lib/fopen.c: Likewise.
11298         * lib/fpending.c: Likewise.
11299         * lib/fpending.h: Likewise.
11300         * lib/fprintf.c: Likewise.
11301         * lib/fprintftime.h: Likewise.
11302         * lib/fpucw.h: Likewise.
11303         * lib/fpurge.c: Likewise.
11304         * lib/fpurge.h: Likewise.
11305         * lib/freadable.c: Likewise.
11306         * lib/freadable.h: Likewise.
11307         * lib/freadahead.c: Likewise.
11308         * lib/freadahead.h: Likewise.
11309         * lib/freading.c: Likewise.
11310         * lib/freading.h: Likewise.
11311         * lib/free.c: Likewise.
11312         * lib/freopen.c: Likewise.
11313         * lib/frexp.c: Likewise.
11314         * lib/frexpl.c: Likewise.
11315         * lib/fseek.c: Likewise.
11316         * lib/fseterr.c: Likewise.
11317         * lib/fseterr.h: Likewise.
11318         * lib/fstatat.c: Likewise.
11319         * lib/fstrcmp.c: Likewise.
11320         * lib/fstrcmp.h: Likewise.
11321         * lib/fsusage.c: Likewise.
11322         * lib/fsusage.h: Likewise.
11323         * lib/ftell.c: Likewise.
11324         * lib/ftello.c: Likewise.
11325         * lib/fts-cycle.c: Likewise.
11326         * lib/fts.c: Likewise.
11327         * lib/fts_.h: Likewise.
11328         * lib/full-read.c: Likewise.
11329         * lib/full-read.h: Likewise.
11330         * lib/full-write.c: Likewise.
11331         * lib/full-write.h: Likewise.
11332         * lib/fwritable.c: Likewise.
11333         * lib/fwritable.h: Likewise.
11334         * lib/fwriteerror.c: Likewise.
11335         * lib/fwriteerror.h: Likewise.
11336         * lib/fwriting.c: Likewise.
11337         * lib/fwriting.h: Likewise.
11338         * lib/gcd.c: Likewise.
11339         * lib/gcd.h: Likewise.
11340         * lib/getcwd.c: Likewise.
11341         * lib/getdate.h: Likewise.
11342         * lib/getdate.y: Likewise.
11343         * lib/getdomainname.c: Likewise.
11344         * lib/getdomainname.h: Likewise.
11345         * lib/getgroups.c: Likewise.
11346         * lib/gethostname.c: Likewise.
11347         * lib/gethrxtime.c: Likewise.
11348         * lib/gethrxtime.h: Likewise.
11349         * lib/getloadavg.c: Likewise.
11350         * lib/getndelim2.c: Likewise.
11351         * lib/getndelim2.h: Likewise.
11352         * lib/getnline.c: Likewise.
11353         * lib/getnline.h: Likewise.
11354         * lib/getopt.c: Likewise.
11355         * lib/getopt.in.h: Likewise.
11356         * lib/getopt1.c: Likewise.
11357         * lib/getopt_int.h: Likewise.
11358         * lib/getpagesize.h: Likewise.
11359         * lib/getsubopt.c: Likewise.
11360         * lib/gettime.c: Likewise.
11361         * lib/getugroups.c: Likewise.
11362         * lib/getugroups.h: Likewise.
11363         * lib/getusershell.c: Likewise.
11364         * lib/gl_anyavltree_list1.h: Likewise.
11365         * lib/gl_anyavltree_list2.h: Likewise.
11366         * lib/gl_anyhash_list1.h: Likewise.
11367         * lib/gl_anyhash_list2.h: Likewise.
11368         * lib/gl_anylinked_list1.h: Likewise.
11369         * lib/gl_anylinked_list2.h: Likewise.
11370         * lib/gl_anyrbtree_list1.h: Likewise.
11371         * lib/gl_anyrbtree_list2.h: Likewise.
11372         * lib/gl_anytree_list1.h: Likewise.
11373         * lib/gl_anytree_list2.h: Likewise.
11374         * lib/gl_anytree_oset.h: Likewise.
11375         * lib/gl_anytreehash_list1.h: Likewise.
11376         * lib/gl_anytreehash_list2.h: Likewise.
11377         * lib/gl_array_list.c: Likewise.
11378         * lib/gl_array_list.h: Likewise.
11379         * lib/gl_array_oset.c: Likewise.
11380         * lib/gl_array_oset.h: Likewise.
11381         * lib/gl_avltree_list.c: Likewise.
11382         * lib/gl_avltree_list.h: Likewise.
11383         * lib/gl_avltree_oset.c: Likewise.
11384         * lib/gl_avltree_oset.h: Likewise.
11385         * lib/gl_avltreehash_list.c: Likewise.
11386         * lib/gl_avltreehash_list.h: Likewise.
11387         * lib/gl_carray_list.c: Likewise.
11388         * lib/gl_carray_list.h: Likewise.
11389         * lib/gl_linked_list.c: Likewise.
11390         * lib/gl_linked_list.h: Likewise.
11391         * lib/gl_linkedhash_list.c: Likewise.
11392         * lib/gl_linkedhash_list.h: Likewise.
11393         * lib/gl_list.c: Likewise.
11394         * lib/gl_list.h: Likewise.
11395         * lib/gl_oset.c: Likewise.
11396         * lib/gl_oset.h: Likewise.
11397         * lib/gl_rbtree_list.c: Likewise.
11398         * lib/gl_rbtree_list.h: Likewise.
11399         * lib/gl_rbtree_oset.c: Likewise.
11400         * lib/gl_rbtree_oset.h: Likewise.
11401         * lib/gl_rbtreehash_list.c: Likewise.
11402         * lib/gl_rbtreehash_list.h: Likewise.
11403         * lib/gl_sublist.c: Likewise.
11404         * lib/gl_sublist.h: Likewise.
11405         * lib/group-member.c: Likewise.
11406         * lib/group-member.h: Likewise.
11407         * lib/hard-locale.c: Likewise.
11408         * lib/hard-locale.h: Likewise.
11409         * lib/hash-pjw.c: Likewise.
11410         * lib/hash-pjw.h: Likewise.
11411         * lib/hash-triple.c: Likewise.
11412         * lib/hash.c: Likewise.
11413         * lib/hash.h: Likewise.
11414         * lib/human.c: Likewise.
11415         * lib/human.h: Likewise.
11416         * lib/i-ring.c: Likewise.
11417         * lib/i-ring.h: Likewise.
11418         * lib/idcache.c: Likewise.
11419         * lib/imaxabs.c: Likewise.
11420         * lib/imaxdiv.c: Likewise.
11421         * lib/inet_pton.c: Likewise.
11422         * lib/inet_pton.h: Likewise.
11423         * lib/intprops.h: Likewise.
11424         * lib/inttostr.c: Likewise.
11425         * lib/inttostr.h: Likewise.
11426         * lib/inttypes.in.h: Likewise.
11427         * lib/isapipe.c: Likewise.
11428         * lib/isdir.c: Likewise.
11429         * lib/isnan.c: Likewise.
11430         * lib/isnan.h: Likewise.
11431         * lib/isnanf.c: Likewise.
11432         * lib/isnanf.h: Likewise.
11433         * lib/isnanl-nolibm.h: Likewise.
11434         * lib/isnanl.c: Likewise.
11435         * lib/isnanl.h: Likewise.
11436         * lib/javacomp.c: Likewise.
11437         * lib/javacomp.h: Likewise.
11438         * lib/javaexec.c: Likewise.
11439         * lib/javaexec.h: Likewise.
11440         * lib/javaversion.c: Likewise.
11441         * lib/javaversion.h: Likewise.
11442         * lib/javaversion.java: Likewise.
11443         * lib/lbrkprop.h: Likewise.
11444         * lib/lchmod.h: Likewise.
11445         * lib/lchown.c: Likewise.
11446         * lib/ldexpl.c: Likewise.
11447         * lib/linebreak.c: Likewise.
11448         * lib/linebreak.h: Likewise.
11449         * lib/linebuffer.c: Likewise.
11450         * lib/linebuffer.h: Likewise.
11451         * lib/locale.in.h: Likewise.
11452         * lib/logl.c: Likewise.
11453         * lib/long-options.c: Likewise.
11454         * lib/long-options.h: Likewise.
11455         * lib/lstat.c: Likewise.
11456         * lib/lstat.h: Likewise.
11457         * lib/math.in.h: Likewise.
11458         * lib/mbchar.c: Likewise.
11459         * lib/mbchar.h: Likewise.
11460         * lib/mbfile.h: Likewise.
11461         * lib/mbiter.h: Likewise.
11462         * lib/mbscasecmp.c: Likewise.
11463         * lib/mbscasestr.c: Likewise.
11464         * lib/mbschr.c: Likewise.
11465         * lib/mbscspn.c: Likewise.
11466         * lib/mbslen.c: Likewise.
11467         * lib/mbsncasecmp.c: Likewise.
11468         * lib/mbsnlen.c: Likewise.
11469         * lib/mbspbrk.c: Likewise.
11470         * lib/mbspcasecmp.c: Likewise.
11471         * lib/mbsrchr.c: Likewise.
11472         * lib/mbssep.c: Likewise.
11473         * lib/mbsspn.c: Likewise.
11474         * lib/mbsstr.c: Likewise.
11475         * lib/mbstok_r.c: Likewise.
11476         * lib/mbswidth.c: Likewise.
11477         * lib/mbswidth.h: Likewise.
11478         * lib/mbuiter.h: Likewise.
11479         * lib/memcasecmp.c: Likewise.
11480         * lib/memcasecmp.h: Likewise.
11481         * lib/memchr.c: Likewise.
11482         * lib/memcmp.c: Likewise.
11483         * lib/memcoll.c: Likewise.
11484         * lib/memcoll.h: Likewise.
11485         * lib/memcpy.c: Likewise.
11486         * lib/memrchr.c: Likewise.
11487         * lib/mkancesdirs.c: Likewise.
11488         * lib/mkdir-p.c: Likewise.
11489         * lib/mkdir-p.h: Likewise.
11490         * lib/mkdir.c: Likewise.
11491         * lib/mkdirat.c: Likewise.
11492         * lib/mkdtemp.c: Likewise.
11493         * lib/mkstemp-safer.c: Likewise.
11494         * lib/mkstemp.c: Likewise.
11495         * lib/modechange.c: Likewise.
11496         * lib/modechange.h: Likewise.
11497         * lib/mountlist.c: Likewise.
11498         * lib/mountlist.h: Likewise.
11499         * lib/mpsort.c: Likewise.
11500         * lib/nanosleep.c: Likewise.
11501         * lib/obstack.c: Likewise.
11502         * lib/obstack.h: Likewise.
11503         * lib/open-safer.c: Likewise.
11504         * lib/open.c: Likewise.
11505         * lib/openat-die.c: Likewise.
11506         * lib/openat-priv.h: Likewise.
11507         * lib/openat-proc.c: Likewise.
11508         * lib/openat.c: Likewise.
11509         * lib/openat.h: Likewise.
11510         * lib/pagealign_alloc.c: Likewise.
11511         * lib/pagealign_alloc.h: Likewise.
11512         * lib/physmem.c: Likewise.
11513         * lib/physmem.h: Likewise.
11514         * lib/pipe-safer.c: Likewise.
11515         * lib/pipe.c: Likewise.
11516         * lib/pipe.h: Likewise.
11517         * lib/posixtm.c: Likewise.
11518         * lib/posixtm.h: Likewise.
11519         * lib/posixver.c: Likewise.
11520         * lib/printf-frexp.c: Likewise.
11521         * lib/printf-frexp.h: Likewise.
11522         * lib/printf-frexpl.c: Likewise.
11523         * lib/printf-frexpl.h: Likewise.
11524         * lib/printf.c: Likewise.
11525         * lib/progname.c: Likewise.
11526         * lib/progname.h: Likewise.
11527         * lib/progreloc.c: Likewise.
11528         * lib/putenv.c: Likewise.
11529         * lib/quote.c: Likewise.
11530         * lib/quote.h: Likewise.
11531         * lib/quotearg.c: Likewise.
11532         * lib/quotearg.h: Likewise.
11533         * lib/raise.c: Likewise.
11534         * lib/readline.c: Likewise.
11535         * lib/readline.h: Likewise.
11536         * lib/readlink.c: Likewise.
11537         * lib/readtokens.c: Likewise.
11538         * lib/readtokens.h: Likewise.
11539         * lib/readtokens0.c: Likewise.
11540         * lib/readtokens0.h: Likewise.
11541         * lib/readutmp.c: Likewise.
11542         * lib/readutmp.h: Likewise.
11543         * lib/realloc.c: Likewise.
11544         * lib/relocwrapper.c: Likewise.
11545         * lib/rename-dest-slash.c: Likewise.
11546         * lib/rename.c: Likewise.
11547         * lib/rmdir.c: Likewise.
11548         * lib/rpmatch.c: Likewise.
11549         * lib/safe-read.c: Likewise.
11550         * lib/safe-read.h: Likewise.
11551         * lib/safe-write.c: Likewise.
11552         * lib/safe-write.h: Likewise.
11553         * lib/same-inode.h: Likewise.
11554         * lib/same.c: Likewise.
11555         * lib/same.h: Likewise.
11556         * lib/save-cwd.c: Likewise.
11557         * lib/save-cwd.h: Likewise.
11558         * lib/savedir.c: Likewise.
11559         * lib/savedir.h: Likewise.
11560         * lib/savewd.c: Likewise.
11561         * lib/savewd.h: Likewise.
11562         * lib/search.in.h: Likewise.
11563         * lib/setenv.c: Likewise.
11564         * lib/setenv.h: Likewise.
11565         * lib/settime.c: Likewise.
11566         * lib/sh-quote.c: Likewise.
11567         * lib/sh-quote.h: Likewise.
11568         * lib/sig2str.c: Likewise.
11569         * lib/sig2str.h: Likewise.
11570         * lib/signal.in.h: Likewise.
11571         * lib/signbitd.c: Likewise.
11572         * lib/signbitf.c: Likewise.
11573         * lib/signbitl.c: Likewise.
11574         * lib/sigprocmask.c: Likewise.
11575         * lib/sincosl.c: Likewise.
11576         * lib/sleep.c: Likewise.
11577         * lib/sprintf.c: Likewise.
11578         * lib/sqrtl.c: Likewise.
11579         * lib/stat-time.h: Likewise.
11580         * lib/stdio--.h: Likewise.
11581         * lib/stdio-safer.h: Likewise.
11582         * lib/stdlib--.h: Likewise.
11583         * lib/stdlib-safer.h: Likewise.
11584         * lib/stdlib.in.h: Likewise.
11585         * lib/stpcpy.c: Likewise.
11586         * lib/stpncpy.c: Likewise.
11587         * lib/strchrnul.c: Likewise.
11588         * lib/strcspn.c: Likewise.
11589         * lib/strerror.c: Likewise.
11590         * lib/strftime.c: Likewise.
11591         * lib/strftime.h: Likewise.
11592         * lib/striconveh.c: Likewise.
11593         * lib/striconveh.h: Likewise.
11594         * lib/striconveha.c: Likewise.
11595         * lib/striconveha.h: Likewise.
11596         * lib/stripslash.c: Likewise.
11597         * lib/strnlen1.c: Likewise.
11598         * lib/strnlen1.h: Likewise.
11599         * lib/strtod.c: Likewise.
11600         * lib/strtoimax.c: Likewise.
11601         * lib/strtok_r.c: Likewise.
11602         * lib/strtol.c: Likewise.
11603         * lib/strtoll.c: Likewise.
11604         * lib/strtoul.c: Likewise.
11605         * lib/strtoull.c: Likewise.
11606         * lib/sysexits.in.h: Likewise.
11607         * lib/tempname.c: Likewise.
11608         * lib/tempname.h: Likewise.
11609         * lib/timespec.h: Likewise.
11610         * lib/tls.c: Likewise.
11611         * lib/tls.h: Likewise.
11612         * lib/tmpdir.c: Likewise.
11613         * lib/tmpdir.h: Likewise.
11614         * lib/tmpfile-safer.c: Likewise.
11615         * lib/tmpfile.c: Likewise.
11616         * lib/trigl.c: Likewise.
11617         * lib/trigl.h: Likewise.
11618         * lib/trim.c: Likewise.
11619         * lib/trim.h: Likewise.
11620         * lib/trunc.c: Likewise.
11621         * lib/truncf.c: Likewise.
11622         * lib/truncl.c: Likewise.
11623         * lib/tsearch.c: Likewise.
11624         * lib/unicodeio.c: Likewise.
11625         * lib/unicodeio.h: Likewise.
11626         * lib/unistd--.h: Likewise.
11627         * lib/unistd-safer.h: Likewise.
11628         * lib/unistdio/ulc-fprintf.c: Likewise.
11629         * lib/unistdio/ulc-vfprintf.c: Likewise.
11630         * lib/unlinkdir.c: Likewise.
11631         * lib/unlinkdir.h: Likewise.
11632         * lib/unlocked-io.h: Likewise.
11633         * lib/unsetenv.c: Likewise.
11634         * lib/userspec.c: Likewise.
11635         * lib/utime.c: Likewise.
11636         * lib/utimecmp.c: Likewise.
11637         * lib/utimecmp.h: Likewise.
11638         * lib/utimens.c: Likewise.
11639         * lib/verify.h: Likewise.
11640         * lib/verror.c: Likewise.
11641         * lib/verror.h: Likewise.
11642         * lib/version-etc-fsf.c: Likewise.
11643         * lib/version-etc.c: Likewise.
11644         * lib/version-etc.h: Likewise.
11645         * lib/vfprintf.c: Likewise.
11646         * lib/vprintf.c: Likewise.
11647         * lib/vsprintf.c: Likewise.
11648         * lib/w32spawn.h: Likewise.
11649         * lib/wait-process.c: Likewise.
11650         * lib/wait-process.h: Likewise.
11651         * lib/wcwidth.c: Likewise.
11652         * lib/write-any-file.c: Likewise.
11653         * lib/xalloc-die.c: Likewise.
11654         * lib/xalloc.h: Likewise.
11655         * lib/xasprintf.c: Likewise.
11656         * lib/xgetcwd.c: Likewise.
11657         * lib/xgetcwd.h: Likewise.
11658         * lib/xgetdomainname.c: Likewise.
11659         * lib/xgetdomainname.h: Likewise.
11660         * lib/xgethostname.c: Likewise.
11661         * lib/xmalloc.c: Likewise.
11662         * lib/xmalloca.c: Likewise.
11663         * lib/xmalloca.h: Likewise.
11664         * lib/xmemcoll.c: Likewise.
11665         * lib/xnanosleep.c: Likewise.
11666         * lib/xreadlink.c: Likewise.
11667         * lib/xreadlink.h: Likewise.
11668         * lib/xsetenv.c: Likewise.
11669         * lib/xsetenv.h: Likewise.
11670         * lib/xstriconv.c: Likewise.
11671         * lib/xstriconv.h: Likewise.
11672         * lib/xstrndup.c: Likewise.
11673         * lib/xstrndup.h: Likewise.
11674         * lib/xstrtod.c: Likewise.
11675         * lib/xstrtod.h: Likewise.
11676         * lib/xstrtol-error.c: Likewise.
11677         * lib/xstrtol.c: Likewise.
11678         * lib/xstrtol.h: Likewise.
11679         * lib/xtime.h: Likewise.
11680         * lib/xvasprintf.c: Likewise.
11681         * lib/xvasprintf.h: Likewise.
11682         * lib/yesno.c: Likewise.
11683         * lib/yesno.h: Likewise.
11684         * posix-modules: Likewise.
11685         * tests/test-alloca-opt.c: Likewise.
11686         * tests/test-arcfour.c: Likewise.
11687         * tests/test-arctwo.c: Likewise.
11688         * tests/test-argmatch.c: Likewise.
11689         * tests/test-argp-2.sh: Likewise.
11690         * tests/test-argp.c: Likewise.
11691         * tests/test-arpa_inet.c: Likewise.
11692         * tests/test-array_list.c: Likewise.
11693         * tests/test-array_oset.c: Likewise.
11694         * tests/test-atexit.c: Likewise.
11695         * tests/test-avltree_list.c: Likewise.
11696         * tests/test-avltree_oset.c: Likewise.
11697         * tests/test-avltreehash_list.c: Likewise.
11698         * tests/test-base64.c: Likewise.
11699         * tests/test-binary-io.c: Likewise.
11700         * tests/test-byteswap.c: Likewise.
11701         * tests/test-c-ctype.c: Likewise.
11702         * tests/test-c-strcasecmp.c: Likewise.
11703         * tests/test-c-strcasestr.c: Likewise.
11704         * tests/test-c-strncasecmp.c: Likewise.
11705         * tests/test-c-strstr.c: Likewise.
11706         * tests/test-canonicalize-lgpl.c: Likewise.
11707         * tests/test-canonicalize.c: Likewise.
11708         * tests/test-carray_list.c: Likewise.
11709         * tests/test-ceilf.c: Likewise.
11710         * tests/test-ceill.c: Likewise.
11711         * tests/test-count-one-bits.c: Likewise.
11712         * tests/test-crc.c: Likewise.
11713         * tests/test-dirname.c: Likewise.
11714         * tests/test-fbufmode.c: Likewise.
11715         * tests/test-fcntl.c: Likewise.
11716         * tests/test-fflush.c: Likewise.
11717         * tests/test-floorf.c: Likewise.
11718         * tests/test-floorl.c: Likewise.
11719         * tests/test-fopen.c: Likewise.
11720         * tests/test-fprintf-posix.c: Likewise.
11721         * tests/test-fprintf-posix.h: Likewise.
11722         * tests/test-fpurge.c: Likewise.
11723         * tests/test-freadable.c: Likewise.
11724         * tests/test-freadahead.c: Likewise.
11725         * tests/test-freading.c: Likewise.
11726         * tests/test-freopen.c: Likewise.
11727         * tests/test-frexp.c: Likewise.
11728         * tests/test-frexpl.c: Likewise.
11729         * tests/test-fseek.c: Likewise.
11730         * tests/test-fseeko.c: Likewise.
11731         * tests/test-fseterr.c: Likewise.
11732         * tests/test-fstrcmp.c: Likewise.
11733         * tests/test-ftell.c: Likewise.
11734         * tests/test-ftello.c: Likewise.
11735         * tests/test-fwritable.c: Likewise.
11736         * tests/test-fwriting.c: Likewise.
11737         * tests/test-getaddrinfo.c: Likewise.
11738         * tests/test-getpass.c: Likewise.
11739         * tests/test-gettimeofday.c: Likewise.
11740         * tests/test-hmac-md5.c: Likewise.
11741         * tests/test-hmac-sha1.c: Likewise.
11742         * tests/test-iconv.c: Likewise.
11743         * tests/test-iconvme.c: Likewise.
11744         * tests/test-inttypes.c: Likewise.
11745         * tests/test-isnan.c: Likewise.
11746         * tests/test-isnanf.c: Likewise.
11747         * tests/test-isnanl-nolibm.c: Likewise.
11748         * tests/test-isnanl.c: Likewise.
11749         * tests/test-isnanl.h: Likewise.
11750         * tests/test-ldexpl.c: Likewise.
11751         * tests/test-linked_list.c: Likewise.
11752         * tests/test-linkedhash_list.c: Likewise.
11753         * tests/test-locale.c: Likewise.
11754         * tests/test-localename.c: Likewise.
11755         * tests/test-lock.c: Likewise.
11756         * tests/test-lseek.c: Likewise.
11757         * tests/test-malloca.c: Likewise.
11758         * tests/test-math.c: Likewise.
11759         * tests/test-mbscasecmp.c: Likewise.
11760         * tests/test-mbscasestr1.c: Likewise.
11761         * tests/test-mbscasestr2.c: Likewise.
11762         * tests/test-mbscasestr3.c: Likewise.
11763         * tests/test-mbscasestr4.c: Likewise.
11764         * tests/test-mbschr.c: Likewise.
11765         * tests/test-mbscspn.c: Likewise.
11766         * tests/test-mbsncasecmp.c: Likewise.
11767         * tests/test-mbspbrk.c: Likewise.
11768         * tests/test-mbspcasecmp.c: Likewise.
11769         * tests/test-mbsrchr.c: Likewise.
11770         * tests/test-mbsspn.c: Likewise.
11771         * tests/test-mbsstr1.c: Likewise.
11772         * tests/test-mbsstr2.c: Likewise.
11773         * tests/test-mbsstr3.c: Likewise.
11774         * tests/test-md5.c: Likewise.
11775         * tests/test-memmem.c: Likewise.
11776         * tests/test-netinet_in.c: Likewise.
11777         * tests/test-open.c: Likewise.
11778         * tests/test-printf-frexp.c: Likewise.
11779         * tests/test-printf-frexpl.c: Likewise.
11780         * tests/test-printf-posix.c: Likewise.
11781         * tests/test-printf-posix.h: Likewise.
11782         * tests/test-rbtree_list.c: Likewise.
11783         * tests/test-rbtree_oset.c: Likewise.
11784         * tests/test-rbtreehash_list.c: Likewise.
11785         * tests/test-read-file.c: Likewise.
11786         * tests/test-rijndael.c: Likewise.
11787         * tests/test-search.c: Likewise.
11788         * tests/test-signbit.c: Likewise.
11789         * tests/test-sleep.c: Likewise.
11790         * tests/test-snprintf-posix.c: Likewise.
11791         * tests/test-snprintf-posix.h: Likewise.
11792         * tests/test-snprintf.c: Likewise.
11793         * tests/test-sprintf-posix.c: Likewise.
11794         * tests/test-sprintf-posix.h: Likewise.
11795         * tests/test-stat-time.c: Likewise.
11796         * tests/test-stdbool.c: Likewise.
11797         * tests/test-stdint.c: Likewise.
11798         * tests/test-stdio.c: Likewise.
11799         * tests/test-stdlib.c: Likewise.
11800         * tests/test-stpncpy.c: Likewise.
11801         * tests/test-strcasestr.c: Likewise.
11802         * tests/test-striconv.c: Likewise.
11803         * tests/test-striconveh.c: Likewise.
11804         * tests/test-striconveha.c: Likewise.
11805         * tests/test-string.c: Likewise.
11806         * tests/test-sys_select.c: Likewise.
11807         * tests/test-sys_socket.c: Likewise.
11808         * tests/test-sys_stat.c: Likewise.
11809         * tests/test-sys_time.c: Likewise.
11810         * tests/test-sysexits.c: Likewise.
11811         * tests/test-time.c: Likewise.
11812         * tests/test-tls.c: Likewise.
11813         * tests/test-trunc.c: Likewise.
11814         * tests/test-truncf.c: Likewise.
11815         * tests/test-truncl.c: Likewise.
11816         * tests/test-unistd.c: Likewise.
11817         * tests/test-vasnprintf-posix.c: Likewise.
11818         * tests/test-vasnprintf-posix2.c: Likewise.
11819         * tests/test-vasnprintf.c: Likewise.
11820         * tests/test-vasprintf-posix.c: Likewise.
11821         * tests/test-vasprintf.c: Likewise.
11822         * tests/test-verify.c: Likewise.
11823         * tests/test-vfprintf-posix.c: Likewise.
11824         * tests/test-vprintf-posix.c: Likewise.
11825         * tests/test-vsnprintf-posix.c: Likewise.
11826         * tests/test-vsnprintf.c: Likewise.
11827         * tests/test-vsprintf-posix.c: Likewise.
11828         * tests/test-wchar.c: Likewise.
11829         * tests/test-wctype.c: Likewise.
11830         * tests/test-wcwidth.c: Likewise.
11831         * tests/test-xstrtol.c: Likewise.
11832         * tests/test-xvasprintf.c: Likewise.
11833         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
11834         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
11835         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
11836         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
11837         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
11838         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
11839         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
11840         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
11841         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
11842         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
11843         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
11844         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
11845         * tests/uniname/test-uninames.c: Likewise.
11846         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
11847         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
11848         * tests/unistdio/test-u16-printf1.h: Likewise.
11849         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
11850         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
11851         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
11852         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
11853         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
11854         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
11855         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
11856         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
11857         * tests/unistdio/test-u32-printf1.h: Likewise.
11858         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
11859         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
11860         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
11861         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
11862         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
11863         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
11864         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
11865         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
11866         * tests/unistdio/test-u8-printf1.h: Likewise.
11867         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
11868         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
11869         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
11870         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
11871         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
11872         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
11873         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
11874         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
11875         * tests/unistdio/test-ulc-printf1.h: Likewise.
11876         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
11877         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
11878         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
11879         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
11880         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
11881         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
11882         * tests/uniwidth/test-u16-strwidth.c: Likewise.
11883         * tests/uniwidth/test-u16-width.c: Likewise.
11884         * tests/uniwidth/test-u32-strwidth.c: Likewise.
11885         * tests/uniwidth/test-u32-width.c: Likewise.
11886         * tests/uniwidth/test-u8-strwidth.c: Likewise.
11887         * tests/uniwidth/test-u8-width.c: Likewise.
11888         * tests/uniwidth/test-uc_width.c: Likewise.
11889         * config/srclist-update: Likewise.
11890         (fixlicense): Update to GPLv3+.
11891
11892         Change copyright notice from LGPLv2.1+ to LGPLv3+.
11893         * tests/test-tsearch.c: Change copyright notice.
11894
11895         Change copyright notice from LGPLv2.0+ to LGPLv3+.
11896         * lib/c-strcaseeq.h: Change copyright notice.
11897         * lib/streq.h: Likewise.
11898         * lib/uniconv.h: Likewise.
11899         * lib/uniconv/u-conv-from-enc.h: Likewise.
11900         * lib/uniconv/u-conv-to-enc.h: Likewise.
11901         * lib/uniconv/u-strconv-from-enc.h: Likewise.
11902         * lib/uniconv/u-strconv-to-enc.h: Likewise.
11903         * lib/uniconv/u16-conv-from-enc.c: Likewise.
11904         * lib/uniconv/u16-conv-to-enc.c: Likewise.
11905         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
11906         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
11907         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
11908         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
11909         * lib/uniconv/u32-conv-from-enc.c: Likewise.
11910         * lib/uniconv/u32-conv-to-enc.c: Likewise.
11911         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
11912         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
11913         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
11914         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
11915         * lib/uniconv/u8-conv-from-enc.c: Likewise.
11916         * lib/uniconv/u8-conv-to-enc.c: Likewise.
11917         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
11918         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
11919         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
11920         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
11921         * lib/uniname.h: Likewise.
11922         * lib/uniname/uniname.c: Likewise.
11923         * lib/unistdio.h: Likewise.
11924         * lib/unistdio/u-asnprintf.h: Likewise.
11925         * lib/unistdio/u-asprintf.h: Likewise.
11926         * lib/unistdio/u-printf-args.c: Likewise.
11927         * lib/unistdio/u-printf-args.h: Likewise.
11928         * lib/unistdio/u-printf-parse.h: Likewise.
11929         * lib/unistdio/u-snprintf.h: Likewise.
11930         * lib/unistdio/u-sprintf.h: Likewise.
11931         * lib/unistdio/u-vasprintf.h: Likewise.
11932         * lib/unistdio/u-vsnprintf.h: Likewise.
11933         * lib/unistdio/u-vsprintf.h: Likewise.
11934         * lib/unistdio/u16-asnprintf.c: Likewise.
11935         * lib/unistdio/u16-asprintf.c: Likewise.
11936         * lib/unistdio/u16-printf-parse.c: Likewise.
11937         * lib/unistdio/u16-snprintf.c: Likewise.
11938         * lib/unistdio/u16-sprintf.c: Likewise.
11939         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
11940         * lib/unistdio/u16-u16-asprintf.c: Likewise.
11941         * lib/unistdio/u16-u16-snprintf.c: Likewise.
11942         * lib/unistdio/u16-u16-sprintf.c: Likewise.
11943         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
11944         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
11945         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
11946         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
11947         * lib/unistdio/u16-vasnprintf.c: Likewise.
11948         * lib/unistdio/u16-vasprintf.c: Likewise.
11949         * lib/unistdio/u16-vsnprintf.c: Likewise.
11950         * lib/unistdio/u16-vsprintf.c: Likewise.
11951         * lib/unistdio/u32-asnprintf.c: Likewise.
11952         * lib/unistdio/u32-asprintf.c: Likewise.
11953         * lib/unistdio/u32-printf-parse.c: Likewise.
11954         * lib/unistdio/u32-snprintf.c: Likewise.
11955         * lib/unistdio/u32-sprintf.c: Likewise.
11956         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
11957         * lib/unistdio/u32-u32-asprintf.c: Likewise.
11958         * lib/unistdio/u32-u32-snprintf.c: Likewise.
11959         * lib/unistdio/u32-u32-sprintf.c: Likewise.
11960         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
11961         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
11962         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
11963         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
11964         * lib/unistdio/u32-vasnprintf.c: Likewise.
11965         * lib/unistdio/u32-vasprintf.c: Likewise.
11966         * lib/unistdio/u32-vsnprintf.c: Likewise.
11967         * lib/unistdio/u32-vsprintf.c: Likewise.
11968         * lib/unistdio/u8-asnprintf.c: Likewise.
11969         * lib/unistdio/u8-asprintf.c: Likewise.
11970         * lib/unistdio/u8-printf-parse.c: Likewise.
11971         * lib/unistdio/u8-snprintf.c: Likewise.
11972         * lib/unistdio/u8-sprintf.c: Likewise.
11973         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
11974         * lib/unistdio/u8-u8-asprintf.c: Likewise.
11975         * lib/unistdio/u8-u8-snprintf.c: Likewise.
11976         * lib/unistdio/u8-u8-sprintf.c: Likewise.
11977         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
11978         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
11979         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
11980         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
11981         * lib/unistdio/u8-vasnprintf.c: Likewise.
11982         * lib/unistdio/u8-vasprintf.c: Likewise.
11983         * lib/unistdio/u8-vsnprintf.c: Likewise.
11984         * lib/unistdio/u8-vsprintf.c: Likewise.
11985         * lib/unistdio/ulc-asnprintf.c: Likewise.
11986         * lib/unistdio/ulc-asprintf.c: Likewise.
11987         * lib/unistdio/ulc-printf-parse.c: Likewise.
11988         * lib/unistdio/ulc-snprintf.c: Likewise.
11989         * lib/unistdio/ulc-sprintf.c: Likewise.
11990         * lib/unistdio/ulc-vasnprintf.c: Likewise.
11991         * lib/unistdio/ulc-vasprintf.c: Likewise.
11992         * lib/unistdio/ulc-vsnprintf.c: Likewise.
11993         * lib/unistdio/ulc-vsprintf.c: Likewise.
11994         * lib/unistr.h: Likewise.
11995         * lib/unistr/u-cpy-alloc.h: Likewise.
11996         * lib/unistr/u-cpy.h: Likewise.
11997         * lib/unistr/u-endswith.h: Likewise.
11998         * lib/unistr/u-move.h: Likewise.
11999         * lib/unistr/u-set.h: Likewise.
12000         * lib/unistr/u-startswith.h: Likewise.
12001         * lib/unistr/u-stpcpy.h: Likewise.
12002         * lib/unistr/u-stpncpy.h: Likewise.
12003         * lib/unistr/u-strcat.h: Likewise.
12004         * lib/unistr/u-strcpy.h: Likewise.
12005         * lib/unistr/u-strcspn.h: Likewise.
12006         * lib/unistr/u-strdup.h: Likewise.
12007         * lib/unistr/u-strlen.h: Likewise.
12008         * lib/unistr/u-strncat.h: Likewise.
12009         * lib/unistr/u-strncpy.h: Likewise.
12010         * lib/unistr/u-strnlen.h: Likewise.
12011         * lib/unistr/u-strpbrk.h: Likewise.
12012         * lib/unistr/u-strspn.h: Likewise.
12013         * lib/unistr/u-strstr.h: Likewise.
12014         * lib/unistr/u-strtok.h: Likewise.
12015         * lib/unistr/u16-check.c: Likewise.
12016         * lib/unistr/u16-chr.c: Likewise.
12017         * lib/unistr/u16-cmp.c: Likewise.
12018         * lib/unistr/u16-cpy-alloc.c: Likewise.
12019         * lib/unistr/u16-cpy.c: Likewise.
12020         * lib/unistr/u16-endswith.c: Likewise.
12021         * lib/unistr/u16-mblen.c: Likewise.
12022         * lib/unistr/u16-mbsnlen.c: Likewise.
12023         * lib/unistr/u16-mbtouc-aux.c: Likewise.
12024         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
12025         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
12026         * lib/unistr/u16-mbtouc.c: Likewise.
12027         * lib/unistr/u16-mbtoucr.c: Likewise.
12028         * lib/unistr/u16-move.c: Likewise.
12029         * lib/unistr/u16-next.c: Likewise.
12030         * lib/unistr/u16-prev.c: Likewise.
12031         * lib/unistr/u16-set.c: Likewise.
12032         * lib/unistr/u16-startswith.c: Likewise.
12033         * lib/unistr/u16-stpcpy.c: Likewise.
12034         * lib/unistr/u16-stpncpy.c: Likewise.
12035         * lib/unistr/u16-strcat.c: Likewise.
12036         * lib/unistr/u16-strchr.c: Likewise.
12037         * lib/unistr/u16-strcmp.c: Likewise.
12038         * lib/unistr/u16-strcpy.c: Likewise.
12039         * lib/unistr/u16-strcspn.c: Likewise.
12040         * lib/unistr/u16-strdup.c: Likewise.
12041         * lib/unistr/u16-strlen.c: Likewise.
12042         * lib/unistr/u16-strmblen.c: Likewise.
12043         * lib/unistr/u16-strmbtouc.c: Likewise.
12044         * lib/unistr/u16-strncat.c: Likewise.
12045         * lib/unistr/u16-strncmp.c: Likewise.
12046         * lib/unistr/u16-strncpy.c: Likewise.
12047         * lib/unistr/u16-strnlen.c: Likewise.
12048         * lib/unistr/u16-strpbrk.c: Likewise.
12049         * lib/unistr/u16-strrchr.c: Likewise.
12050         * lib/unistr/u16-strspn.c: Likewise.
12051         * lib/unistr/u16-strstr.c: Likewise.
12052         * lib/unistr/u16-strtok.c: Likewise.
12053         * lib/unistr/u16-to-u32.c: Likewise.
12054         * lib/unistr/u16-to-u8.c: Likewise.
12055         * lib/unistr/u16-uctomb-aux.c: Likewise.
12056         * lib/unistr/u16-uctomb.c: Likewise.
12057         * lib/unistr/u32-check.c: Likewise.
12058         * lib/unistr/u32-chr.c: Likewise.
12059         * lib/unistr/u32-cmp.c: Likewise.
12060         * lib/unistr/u32-cpy-alloc.c: Likewise.
12061         * lib/unistr/u32-cpy.c: Likewise.
12062         * lib/unistr/u32-endswith.c: Likewise.
12063         * lib/unistr/u32-mblen.c: Likewise.
12064         * lib/unistr/u32-mbsnlen.c: Likewise.
12065         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
12066         * lib/unistr/u32-mbtouc.c: Likewise.
12067         * lib/unistr/u32-mbtoucr.c: Likewise.
12068         * lib/unistr/u32-move.c: Likewise.
12069         * lib/unistr/u32-next.c: Likewise.
12070         * lib/unistr/u32-prev.c: Likewise.
12071         * lib/unistr/u32-set.c: Likewise.
12072         * lib/unistr/u32-startswith.c: Likewise.
12073         * lib/unistr/u32-stpcpy.c: Likewise.
12074         * lib/unistr/u32-stpncpy.c: Likewise.
12075         * lib/unistr/u32-strcat.c: Likewise.
12076         * lib/unistr/u32-strchr.c: Likewise.
12077         * lib/unistr/u32-strcmp.c: Likewise.
12078         * lib/unistr/u32-strcpy.c: Likewise.
12079         * lib/unistr/u32-strcspn.c: Likewise.
12080         * lib/unistr/u32-strdup.c: Likewise.
12081         * lib/unistr/u32-strlen.c: Likewise.
12082         * lib/unistr/u32-strmblen.c: Likewise.
12083         * lib/unistr/u32-strmbtouc.c: Likewise.
12084         * lib/unistr/u32-strncat.c: Likewise.
12085         * lib/unistr/u32-strncmp.c: Likewise.
12086         * lib/unistr/u32-strncpy.c: Likewise.
12087         * lib/unistr/u32-strnlen.c: Likewise.
12088         * lib/unistr/u32-strpbrk.c: Likewise.
12089         * lib/unistr/u32-strrchr.c: Likewise.
12090         * lib/unistr/u32-strspn.c: Likewise.
12091         * lib/unistr/u32-strstr.c: Likewise.
12092         * lib/unistr/u32-strtok.c: Likewise.
12093         * lib/unistr/u32-to-u16.c: Likewise.
12094         * lib/unistr/u32-to-u8.c: Likewise.
12095         * lib/unistr/u32-uctomb.c: Likewise.
12096         * lib/unistr/u8-check.c: Likewise.
12097         * lib/unistr/u8-chr.c: Likewise.
12098         * lib/unistr/u8-cmp.c: Likewise.
12099         * lib/unistr/u8-cpy-alloc.c: Likewise.
12100         * lib/unistr/u8-cpy.c: Likewise.
12101         * lib/unistr/u8-endswith.c: Likewise.
12102         * lib/unistr/u8-mblen.c: Likewise.
12103         * lib/unistr/u8-mbsnlen.c: Likewise.
12104         * lib/unistr/u8-mbtouc-aux.c: Likewise.
12105         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
12106         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
12107         * lib/unistr/u8-mbtouc.c: Likewise.
12108         * lib/unistr/u8-mbtoucr.c: Likewise.
12109         * lib/unistr/u8-move.c: Likewise.
12110         * lib/unistr/u8-next.c: Likewise.
12111         * lib/unistr/u8-prev.c: Likewise.
12112         * lib/unistr/u8-set.c: Likewise.
12113         * lib/unistr/u8-startswith.c: Likewise.
12114         * lib/unistr/u8-stpcpy.c: Likewise.
12115         * lib/unistr/u8-stpncpy.c: Likewise.
12116         * lib/unistr/u8-strcat.c: Likewise.
12117         * lib/unistr/u8-strchr.c: Likewise.
12118         * lib/unistr/u8-strcmp.c: Likewise.
12119         * lib/unistr/u8-strcpy.c: Likewise.
12120         * lib/unistr/u8-strcspn.c: Likewise.
12121         * lib/unistr/u8-strdup.c: Likewise.
12122         * lib/unistr/u8-strlen.c: Likewise.
12123         * lib/unistr/u8-strmblen.c: Likewise.
12124         * lib/unistr/u8-strmbtouc.c: Likewise.
12125         * lib/unistr/u8-strncat.c: Likewise.
12126         * lib/unistr/u8-strncmp.c: Likewise.
12127         * lib/unistr/u8-strncpy.c: Likewise.
12128         * lib/unistr/u8-strnlen.c: Likewise.
12129         * lib/unistr/u8-strpbrk.c: Likewise.
12130         * lib/unistr/u8-strrchr.c: Likewise.
12131         * lib/unistr/u8-strspn.c: Likewise.
12132         * lib/unistr/u8-strstr.c: Likewise.
12133         * lib/unistr/u8-strtok.c: Likewise.
12134         * lib/unistr/u8-to-u16.c: Likewise.
12135         * lib/unistr/u8-to-u32.c: Likewise.
12136         * lib/unistr/u8-uctomb-aux.c: Likewise.
12137         * lib/unistr/u8-uctomb.c: Likewise.
12138         * lib/unitypes.h: Likewise.
12139         * lib/uniwidth.h: Likewise.
12140         * lib/uniwidth/cjk.h: Likewise.
12141         * lib/uniwidth/u16-strwidth.c: Likewise.
12142         * lib/uniwidth/u16-width.c: Likewise.
12143         * lib/uniwidth/u32-strwidth.c: Likewise.
12144         * lib/uniwidth/u32-width.c: Likewise.
12145         * lib/uniwidth/u8-strwidth.c: Likewise.
12146         * lib/uniwidth/u8-width.c: Likewise.
12147         * lib/uniwidth/width.c: Likewise.
12148
12149 2007-10-07  Bruno Haible  <bruno@clisp.org>
12150
12151         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
12152         The file is still under LGPL (see modules/inttypes).
12153
12154 2007-10-06  Bruno Haible  <bruno@clisp.org>
12155
12156         * modules/trunc (Dependencies): Add 'extensions'.
12157         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
12158         Reported by Ben Pfaff <blp@gnu.org>.
12159
12160 2007-10-06  Bruno Haible  <bruno@clisp.org>
12161
12162         * modules/freopen-tests: New file.
12163         * tests/test-freopen.c: New file.
12164
12165         * modules/fopen-tests: New file.
12166         * tests/test-fopen.c: New file.
12167
12168         * modules/fopen: New file.
12169         * lib/fopen.c: New file.
12170         * m4/fopen.m4: New file.
12171         * modules/freopen: New file.
12172         * lib/freopen.c: New file.
12173         * m4/freopen.m4: New file.
12174         * lib/stdio.in.h (fopen, freopen): New declarations.
12175         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
12176         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
12177         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
12178         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
12179         * doc/functions/fopen.texi: Mention the 'fopen' module.
12180         * doc/functions/freopen.texi: Mention the 'freopen' module.
12181
12182 2007-10-06  Bruno Haible  <bruno@clisp.org>
12183
12184         * modules/open-tests: New file.
12185         * tests/test-open.c: New file.
12186
12187         * modules/open: New file.
12188         * lib/open.c: New file.
12189         * m4/open.m4: New file.
12190         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
12191         lib/open.c does.
12192         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
12193         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
12194         macros.
12195         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
12196         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
12197         REPLACE_OPEN.
12198         * doc/functions/open.texi: Mention the 'open' module.
12199
12200 2007-10-04  Bruno Haible  <bruno@clisp.org>
12201
12202         * modules/ceill-tests: New file.
12203         * tests/test-ceill.c: New file.
12204
12205         * modules/ceill: New file.
12206         * lib/ceill.c: Replace entire file.
12207         * m4/ceill.m4: New file.
12208         * lib/math.in.h (ceill): Replace declaration.
12209         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
12210         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
12211         * doc/functions/ceill.texi: Mention the 'ceill' module.
12212         * modules/mathl (Files): Remove lib/ceill.c.
12213         (Depends-on): Add ceill.
12214
12215 2007-10-04  Bruno Haible  <bruno@clisp.org>
12216
12217         * modules/ceilf-tests: New file.
12218         * tests/test-ceilf.c: New file.
12219
12220         * modules/ceilf: New file.
12221         * lib/ceil.c: New file.
12222         * lib/ceilf.c: New file.
12223         * m4/ceilf.m4: New file.
12224         * lib/math.in.h (ceilf): New declaration.
12225         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
12226         HAVE_DECL_CEILF.
12227         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
12228         HAVE_DECL_CEILF.
12229         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
12230
12231 2007-10-04  Bruno Haible  <bruno@clisp.org>
12232
12233         * modules/floorl-tests: New file.
12234         * tests/test-floorl.c: New file.
12235
12236         * modules/floorl: New file.
12237         * lib/floorl.c: Replace entire file.
12238         * m4/floorl.m4: New file.
12239         * lib/math.in.h (floorl): Replace declaration.
12240         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
12241         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
12242         * doc/functions/floorl.texi: Mention the 'floorl' module.
12243         * modules/mathl (Files): Remove lib/floorl.c.
12244         (Depends-on): Add floorl.
12245
12246 2007-10-04  Bruno Haible  <bruno@clisp.org>
12247
12248         * modules/floorf-tests: New file.
12249         * tests/test-floorf.c: New file.
12250
12251         * modules/floorf: New file.
12252         * lib/floor.c: New file.
12253         * lib/floorf.c: New file.
12254         * m4/floorf.m4: New file.
12255         * lib/math.in.h (floorf): New declaration.
12256         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
12257         HAVE_DECL_FLOORF.
12258         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
12259         HAVE_DECL_FLOORF.
12260         * doc/functions/floorf.texi: Mention the 'floorf' module.
12261
12262 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
12263             Bruno Haible  <bruno@clisp.org>
12264
12265         Advertise for the Git server instead of the CVS server.
12266         * doc/gnulib-intro.texi (Steady Development): Mention the Git
12267         repository instead of the CVS one.
12268         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
12269         about all VCS systems generically.
12270         * doc/gnulib.texi (Introduction): Capitalize `Git'.
12271
12272 2007-10-04  Bruno Haible  <bruno@clisp.org>
12273
12274         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
12275         means.
12276         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
12277
12278 2007-10-04  Bruno Haible  <bruno@clisp.org>
12279
12280         * modules/truncl-tests: New file.
12281         * tests/test-truncl.c: New file.
12282
12283         * modules/truncl: New file.
12284         * lib/truncl.c: New file.
12285         * m4/truncl.m4: New file.
12286         * lib/math.in.h (truncl): New declaration.
12287         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
12288         HAVE_DECL_TRUNCL.
12289         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
12290         HAVE_DECL_TRUNCL.
12291         * doc/functions/truncl.texi: Mention the 'truncl' module.
12292
12293 2007-10-04  Bruno Haible  <bruno@clisp.org>
12294
12295         * modules/truncf-tests: New file.
12296         * tests/test-truncf.c: New file.
12297
12298         * modules/truncf: New file.
12299         * lib/trunc.c: Make paramerizable through USE_* macros.
12300         * lib/truncf.c: New file.
12301         * m4/truncf.m4: New file.
12302         * lib/math.in.h (truncf): New declaration.
12303         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
12304         HAVE_DECL_TRUNCF.
12305         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
12306         HAVE_DECL_TRUNCF.
12307         * doc/functions/truncf.texi: Mention the 'truncf' module.
12308
12309 2007-10-03  Bruno Haible  <bruno@clisp.org>
12310
12311         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
12312         augmentation also for tests modules.
12313         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
12314         * modules/atexit-tests (Makefile.am): Likewise.
12315         * modules/binary-io-tests (Makefile.am): Likewise.
12316         * modules/c-strcase-tests (Makefile.am): Likewise.
12317         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
12318         * modules/canonicalize-tests (Makefile.am): Likewise.
12319         * modules/closein-tests (Makefile.am): Likewise.
12320         * modules/fprintf-posix-tests (Makefile.am): Likewise.
12321         * modules/freadahead-tests (Makefile.am): Likewise.
12322         * modules/fseek-tests (Makefile.am): Likewise.
12323         * modules/fseeko-tests (Makefile.am): Likewise.
12324         * modules/ftell-tests (Makefile.am): Likewise.
12325         * modules/ftello-tests (Makefile.am): Likewise.
12326         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
12327         * modules/isnanl-tests (Makefile.am): Likewise.
12328         * modules/lseek-tests (Makefile.am): Likewise.
12329         * modules/mbscasecmp-tests (Makefile.am): Likewise.
12330         * modules/mbscasestr-tests (Makefile.am): Likewise.
12331         * modules/mbschr-tests (Makefile.am): Likewise.
12332         * modules/mbscspn-tests (Makefile.am): Likewise.
12333         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
12334         * modules/mbspbrk-tests (Makefile.am): Likewise.
12335         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
12336         * modules/mbsrchr-tests (Makefile.am): Likewise.
12337         * modules/mbsspn-tests (Makefile.am): Likewise.
12338         * modules/mbsstr-tests (Makefile.am): Likewise.
12339         * modules/printf-posix-tests (Makefile.am): Likewise.
12340         * modules/snprintf-posix-tests (Makefile.am): Likewise.
12341         * modules/sprintf-posix-tests (Makefile.am): Likewise.
12342         * modules/tsearch-tests (Makefile.am): Likewise.
12343         * modules/uniname/uniname-tests (Makefile.am): Likewise.
12344         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
12345         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
12346         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
12347         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
12348         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
12349         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
12350         * modules/vprintf-posix-tests (Makefile.am): Likewise.
12351         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
12352         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
12353         * modules/xstrtoimax-tests (Makefile.am): Likewise.
12354         * modules/xstrtol-tests (Makefile.am): Likewise.
12355         * modules/xstrtoumax-tests (Makefile.am): Likewise.
12356         * modules/yesno-tests (Makefile.am): Likewise.
12357
12358 2007-10-03  Bruno Haible  <bruno@clisp.org>
12359
12360         * modules/trunc-tests: New file.
12361         * tests/test-trunc.c: New file.
12362
12363         * modules/trunc: New file.
12364         * lib/trunc.c: New file.
12365         * m4/trunc.m4: New file.
12366         * lib/math.in.h (trunc): New declaration.
12367         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
12368         HAVE_DECL_TRUNC.
12369         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
12370         HAVE_DECL_TRUNC.
12371         * doc/functions/trunc.texi: Mention the 'trunc' module.
12372
12373 2007-10-03  Bruno Haible  <bruno@clisp.org>
12374
12375         * tests/test-fpending.c: New file, mostly copied
12376         from coreutils/lib/t-fpending.c.
12377         * modules/fpending-tests: New file.
12378
12379 2007-10-03  Bruno Haible  <bruno@clisp.org>
12380
12381         Port the stdio extensions to QNX (untested).
12382         * lib/fseterr.c (fseterr): Add support for QNX.
12383         * lib/fbufmode.c (fbufmode): Likewise.
12384         * lib/freadable.c (freadable): Likewise.
12385         * lib/fwritable.c (fwritable): Likewise.
12386         * lib/freading.c (freading): Likewise.
12387         * lib/fwriting.c (fwriting): Likewise.
12388         * lib/freadahead.c (freadahed): Likewise.
12389         * lib/fpurge.c (fpurge): Likewise.
12390         * lib/fseeko.c (rpl_fseeko): Likewise.
12391
12392 2007-10-03  Bruno Haible  <bruno@clisp.org>
12393             Jim Meyering  <jim@meyering.net>
12394             Eric Blake  <ebb9@byu.net>
12395
12396         * doc/relocatable.texi: Use @command instead of @program.
12397
12398 2007-10-02  Jim Meyering  <jim@meyering.net>
12399
12400         Perform one more "_.h" -> ".in.h" substitution.
12401         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
12402         instead of unistd_.h here, too.
12403
12404 2007-10-01  Bruno Haible  <bruno@clisp.org>
12405
12406         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
12407         Needed for the alloca-opt module.
12408
12409 2007-09-30  Bruno Haible  <bruno@clisp.org>
12410
12411         * lib/alloca.in.h: Renamed from lib/alloca_.h.
12412         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
12413         alloca_.h.
12414         * lib/argz.in.h: Renamed from lib/argz_.h.
12415         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
12416         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
12417         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
12418         byteswap_.h.
12419         * lib/dirent.in.h: Renamed from lib/dirent_.h.
12420         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
12421         dirent_.h.
12422         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
12423         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
12424         fcntl_.h.
12425         * lib/float.in.h: Renamed from lib/float_.h.
12426         * modules/float (Files, Makefile.am): Use float.in.h instead of
12427         float_.h.
12428         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
12429         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
12430         fnmatch_.h.
12431         * lib/getopt.in.h: Renamed from lib/getopt_.h.
12432         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
12433         getopt_.h.
12434         * lib/glob.in.h: Renamed from lib/glob_.h.
12435         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
12436         * lib/iconv.in.h: Renamed from lib/iconv_.h.
12437         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
12438         iconv_.h.
12439         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
12440         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
12441         inttypes_.h.
12442         * lib/locale.in.h: Renamed from lib/locale_.h.
12443         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
12444         locale_.h.
12445         * lib/math.in.h: Renamed from lib/math_.h.
12446         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
12447         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
12448         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
12449         of netinet_in_.h. Add dependency.
12450         * lib/poll.in.h: Renamed from lib/poll_.h.
12451         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
12452         * lib/search.in.h: Renamed from lib/search_.h.
12453         * modules/search (Files, Makefile.am): Use search.in.h instead of
12454         search_.h.
12455         * lib/signal.in.h: Renamed from lib/signal_.h.
12456         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
12457         _signal.h.
12458         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
12459         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
12460         stdbool_.h.
12461         * lib/stdint.in.h: Renamed from lib/stdint_.h.
12462         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
12463         stdint_.h.
12464         * lib/stdio.in.h: Renamed from lib/stdio_.h.
12465         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
12466         stdio_.h.
12467         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
12468         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
12469         stdlib_.h.
12470         * lib/string.in.h: Renamed from lib/string_.h.
12471         * modules/string (Files, Makefile.am): Use string.in.h instead of
12472         string_.h.
12473         * doc/gnulib-tool.texi (Initial import): Update.
12474         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
12475         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
12476         of sys_select_.h. Add dependency.
12477         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
12478         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
12479         of sys_socket_.h.
12480         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
12481         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
12482         sys_stat_.h.
12483         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
12484         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
12485         sys_time_.h.
12486         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
12487         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
12488         sysexits_.h.
12489         * lib/time.in.h: Renamed from lib/time_.h.
12490         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
12491         * lib/unistd.in.h: Renamed from lib/unistd_.h.
12492         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
12493         unistd_.h.
12494         * lib/wchar.in.h: Renamed from lib/wchar_.h.
12495         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
12496         wchar_.h.
12497         * lib/wctype.in.h: Renamed from lib/wctype_.h.
12498         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
12499         wctype_.h.
12500         * build-aux/bootstrap (slurp): Update.
12501         * lib/.cppi-disable: Update.
12502
12503 2007-09-30  Bruno Haible  <bruno@clisp.org>
12504
12505         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
12506         Needed on BeOS.
12507
12508 2007-09-30  Bruno Haible  <bruno@clisp.org>
12509
12510         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
12511
12512 2007-09-29  Bruno Haible  <bruno@clisp.org>
12513
12514         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
12515
12516 2007-09-29  Bruno Haible  <bruno@clisp.org>
12517
12518         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
12519         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
12520         * build-aux/install-reloc: Compile also areadlink.c.
12521         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
12522
12523 2007-09-29  Bruno Haible  <bruno@clisp.org>
12524
12525         * gnulib-tool (func_emit_initmacro_done): Indentation.
12526
12527 2007-09-29  Bruno Haible  <bruno@clisp.org>
12528
12529         * README: Add CVS checkout update instructions.
12530         Info from Bob Proulx <bob@proulx.com>.
12531
12532 2007-09-28  Eric Blake  <ebb9@byu.net>
12533
12534         Provide move-if-change.
12535         * build-aux/move-if-change: New file, based on best practice
12536         rather than any canonical upstream location.
12537
12538 2007-09-28  Jim Meyering  <jim@meyering.net>
12539
12540         Fix canonicalize loop-detection corner case.
12541         Do not attempt to stat the symlink values stored via seen_triple.
12542         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
12543         on linux-2.6.18, (but not 2.6.22).
12544         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
12545         triple_compare.  The former compares dev,ino,filename, while the latter
12546         would actually stat dirname(filename) when dev and ino were equal.
12547         * lib/hash-triple.c: Install <string.h>.
12548         (STREQ): Define.
12549         (triple_compare_ino_str): New function.
12550         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
12551
12552 2007-09-28  Eric Blake  <ebb9@byu.net>
12553
12554         Enforce that AC_REPLACE_FUNCS files exist.
12555         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
12556         override check for typos.
12557
12558         Fix test-closein on Solaris 10.
12559         * tests/test-closein.c (main): Don't assume stdin can be inherited
12560         closed on all systems.
12561         * tests/test-closein.sh: Likewise.
12562         Reported by Piotr Tarnowski.
12563
12564 2007-09-28  Jim Meyering  <jim@meyering.net>
12565
12566         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
12567
12568 2007-09-27  Jim Meyering  <jim@meyering.net>
12569
12570         canonicalize: Avoid a false-positive cycle failure.
12571         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
12572         Sort.  Remove cycle-check.
12573         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
12574         not cycle-check.h.
12575         (seen_triple): New function.
12576         (canonicalize_filename_mode): Use it instead of cycle-check.
12577         * tests/test-canonicalize.c: Add a test for this bug.
12578         * tests/test-canonicalize.sh: Set up and run the test.
12579
12580         New module, file-set, from coreutils.
12581         * modules/file-set: Define it.
12582         * lib/file-set.c, lib/file-set.h: Implement.
12583
12584         New module, hash-triple, from coreutils.
12585         * modules/hash-triple: Define it.
12586         * lib/hash-triple.c, lib/hash-triple.h: Implement.
12587
12588 2007-09-25  Eric Blake  <ebb9@byu.net>
12589
12590         Fix strerror on Interix.
12591         * lib/string_.h (strerror): Declare replacement.
12592         * doc/functions/strerror.texi (strerror): Document the Interix
12593         shortcoming.
12594         * modules/string (Makefile.am): Support new hooks.
12595         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
12596         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
12597         gl_FUNC_STRERROR_SEPARATE.
12598         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
12599         * lib/strerror.c (rpl_strerror): Provide replacement.
12600         * modules/strerror (Depends-on): Add string.
12601         (configure.ac): Detect use of module.
12602         * tests/test-strerror.c: New file.
12603         * modules/strerror-tests: New test module.
12604         * modules/argp (Depends-on): Add strerror.
12605         * modules/error (Depends-on): Likewise.
12606         Reported by Martin Koeppe.
12607
12608 2007-09-24  Bruno Haible  <bruno@clisp.org>
12609
12610         * README: Update git instructions.
12611
12612 2007-09-24  Eric Blake  <ebb9@byu.net>
12613
12614         Revert fpending breakage from 2007-09-08.
12615         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
12616         __fpending.c.
12617
12618 2007-09-24  Jim Meyering  <jim@meyering.net>
12619
12620         filenamecat.c: Add a test.
12621         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
12622         showing how the function works when DIR is the empty string.
12623
12624 2007-09-21  Simon Josefsson  <simon@josefsson.org>
12625
12626         * tests/test-canonicalize.sh: Turn on executable bit.
12627
12628 2007-09-19  Eric Blake  <ebb9@byu.net>
12629
12630         * README: Update CVS instructions.
12631
12632 2007-09-18  Bruno Haible  <bruno@clisp.org>
12633
12634         * modules/areadlink: New file.
12635         * lib/areadlink.h (areadlink): New declaration.
12636         * lib/areadlink.c: New file, based on lib/xreadlink.c.
12637
12638 2007-09-17  Jim Meyering  <jim@meyering.net>
12639
12640         * lib/savewd.c (ESTALE) [!defined]: Define.
12641         Reported to be required on Interix by Martin Koeppe.
12642
12643 2007-09-17  Bruno Haible  <bruno@clisp.org>
12644
12645         * gnulib-tool (func_version): Use $version.
12646
12647 2007-09-16  Bruno Haible  <bruno@clisp.org>
12648
12649         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
12650         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
12651         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
12652         Reported by Greg Schafer <gschafer@zip.com.au>.
12653
12654 2007-09-15  Bruno Haible  <bruno@clisp.org>
12655
12656         * gnulib-tool (sed): Try a little harder to make bash understand the
12657         alias.
12658         Reported by Bruce Korb <bruce.korb@gmail.com>.
12659
12660 2007-09-13  Eric Blake  <ebb9@byu.net>
12661
12662         * ChangeLog: Remove conflict markers.
12663
12664 2007-09-13  Simon Josefsson  <simon@josefsson.org>
12665
12666         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
12667         Reported by Bruno Haible <bruno@clisp.org>.
12668
12669 2007-09-12  Bruno Haible  <bruno@clisp.org>
12670
12671         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
12672         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
12673         is not defined.
12674
12675 2007-09-12  Eric Blake  <ebb9@byu.net>
12676
12677         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
12678         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
12679         Autoconf definition.
12680         * modules/euidaccess (Depends-on): Add extensions, for
12681         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
12682         * modules/fnmatch (Depends-on): Likewise.
12683         * modules/getaddrinfo (Depends-on): Likewise.
12684         * modules/getdelim (Depends-on): Likewise.
12685         * modules/getline (Depends-on): Likewise.
12686         * modules/getsubopt (Depends-on): Likewise.
12687         * modules/gettext (Depends-on): Likewise.
12688         * modules/group-member (Depends-on): Likewise.
12689         * modules/mbchar (Depends-on): Likewise.
12690         * modules/memmem (Depends-on): Likewise.
12691         * modules/mempcpy (Depends-on): Likewise.
12692         * modules/memrchr (Depends-on): Likewise.
12693         * modules/pagealign_alloc (Depends-on): Likewise.
12694         * modules/readutmp (Depends-on): Likewise.
12695         * modules/stpcpy (Depends-on): Likewise.
12696         * modules/stpncpy (Depends-on): Likewise.
12697         * modules/strchrnul (Depends-on): Likewise.
12698         * modules/strndup (Depends-on): Likewise.
12699         * modules/strsep (Depends-on): Likewise.
12700         * modules/strverscmp (Depends-on): Likewise.
12701         * modules/vasprintf (Depends-on): Likewise.
12702         * modules/wcwidth (Depends-on): Likewise.
12703         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
12704         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
12705         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
12706         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
12707         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
12708         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
12709         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
12710         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
12711         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
12712         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
12713         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
12714         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
12715         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
12716         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
12717         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
12718         * m4/readutmp.m4 (gl_READUTMP): Likewise.
12719         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
12720         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
12721         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
12722         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
12723         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
12724         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
12725         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
12726         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
12727         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
12728         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
12729         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
12730         so that lock.m4 can be used in gettext without extensions module.
12731
12732 2007-09-11  Bruno Haible  <bruno@clisp.org>
12733
12734         * m4/isc-posix.m4: Remove file.
12735         Suggested by Eric Blake.
12736
12737 2007-09-11  Eric Blake  <ebb9@byu.net>
12738
12739         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
12740
12741 2007-09-10  Bruno Haible  <bruno@clisp.org>
12742
12743         * posix-modules: Fix typo in error message.
12744         Reported by Matt <mkraai@beckman.com>.
12745
12746 2007-09-09  Bruno Haible  <bruno@clisp.org>
12747
12748         * doc/functions/getdelim.texi: Update list of platforms lacking the
12749         function.
12750         * doc/functions/getline.texi: Likewise.
12751
12752 2007-09-09  Jim Meyering  <jim@meyering.net>
12753
12754         * lib/hash.c (hash_initialize): Detect calloc failure.
12755         Reported by Bruno Haible.
12756
12757 2007-09-09  Bruno Haible  <bruno@clisp.org>
12758
12759         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
12760         malloc or realloc fails.
12761
12762 2007-09-09  Bruno Haible  <bruno@clisp.org>
12763
12764         * modules/getcwd (Depends-on): Add malloc-posix.
12765         * modules/glob (Depends-on): Likewise.
12766         * modules/putenv (Depends-on): Likewise.
12767         * modules/strdup (Depends-on): Likewise.
12768         * modules/getdelim (Depends-on): Add realloc-posix.
12769         * modules/read-file (Depends-on): Likewise.
12770
12771 2007-09-09  Bruno Haible  <bruno@clisp.org>
12772
12773         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
12774         (gl_FUNC_MALLOC_POSIX): Require it.
12775         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
12776         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
12777         * modules/realloc (Files): Add m4/malloc.m4.
12778         * modules/calloc (Files): Likewise.
12779
12780 2007-09-09  Bruno Haible  <bruno@clisp.org>
12781
12782         * modules/malloc-posix: New file.
12783         * modules/malloc (Depends-on): Add malloc-posix.
12784         * lib/malloc.c: Include errno.h.
12785         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
12786         and a POSIX-compatible malloc into a single function. Set ENOMEM
12787         when returning NULL.
12788         * m4/malloc.m4: New file.
12789         * doc/functions/malloc.texi: Mention the malloc-posix module.
12790         * lib/stdlib_.h (malloc): New declaration.
12791         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
12792         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
12793         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
12794         and HAVE_MALLOC_POSIX.
12795
12796 2007-09-09  Bruno Haible  <bruno@clisp.org>
12797
12798         * modules/realloc-posix: New file.
12799         * modules/realloc (Depends-on): Add realloc-posix.
12800         * lib/realloc.c: Include errno.h.
12801         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
12802         and a POSIX-compatible realloc into a single function. Set ENOMEM
12803         when returning NULL.
12804         * m4/realloc.m4: New file.
12805         * doc/functions/realloc.texi: Mention the realloc-posix module.
12806         * lib/stdlib_.h (realloc): New declaration.
12807         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
12808         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
12809         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
12810         and HAVE_REALLOC_POSIX.
12811
12812 2007-09-09  Bruno Haible  <bruno@clisp.org>
12813
12814         * modules/calloc-posix: New file.
12815         * modules/calloc (Depends-on): Add calloc-posix.
12816         * lib/calloc.c: Include errno.h.
12817         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
12818         and a POSIX-compatible calloc into a single function. Set ENOMEM
12819         when returning NULL.
12820         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
12821         * doc/functions/calloc.texi: Mention the calloc-posix module.
12822         * lib/stdlib_.h (calloc): New declaration.
12823         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
12824         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
12825         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
12826         and HAVE_CALLOC_POSIX.
12827
12828 2007-09-09  Bruno Haible  <bruno@clisp.org>
12829
12830         Allow for modules to show an arbitrary notice.
12831         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
12832         * gnulib-tool: New option --extract-notice.
12833         (func_usage): Document it.
12834         (sed_extract_prog): Update.
12835         (func_get_notice): New function.
12836         (func_modules_notice): New function.
12837         (func_import, func_create_testdir): Invoke it.
12838         Suggested by Jim Meyering.
12839
12840 2007-09-09  Bruno Haible  <bruno@clisp.org>
12841
12842         * gnulib-tool: New options --verbose, --quiet.
12843         (func_usage): Document them.
12844         (verbose): New variable.
12845         (func_execute_command): New function.
12846         (func_import): Don't show the module list and the file list if
12847         $verbose < 0.
12848         (func_create_testdir): Likewise. Use func_execute_command.
12849         (func_create_megatestdir): Use func_execute_command.
12850
12851 2007-09-08  Bruno Haible  <bruno@clisp.org>
12852
12853         * gnulib-tool (func_import): Prefer rsync over wget when available,
12854         for fetching the PO files.
12855
12856 2007-09-08  Bruno Haible  <bruno@clisp.org>
12857
12858         * posix-modules: New file. Portions copied from gnulib-tool.
12859         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
12860
12861 2007-09-08  Jim Meyering  <jim@meyering.net>
12862
12863         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
12864         * lib/fpending.h: Rename from __fpending.h.
12865         * lib/fpending.c: Rename from __fpending.c.
12866         Include "fpending.h", not "__fpending.h".
12867         * lib/__fpending.h, lib/__fpending.c: Remove files.
12868         * modules/fpending (Files): Reflect new file names.
12869         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
12870
12871 2007-09-08  Bruno Haible  <bruno@clisp.org>
12872
12873         * m4/inttypes-h.m4: Remove stub file.
12874
12875 2007-09-07  Simon Josefsson  <simon@josefsson.org>
12876
12877         * doc/headers/stdint.texi: Discuss #include_next issue.
12878
12879 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
12880
12881         * build-aux/bootstrap: Remove obsolete comment about wget --help.
12882
12883 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
12884
12885         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
12886         in variable name.
12887
12888 2007-09-03  Jim Meyering  <jim@meyering.net>
12889
12890         New module: git-version-gen.
12891         * modules/git-version-gen: New file.
12892
12893         Import changes from coreutils for bootstrap script.
12894
12895         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
12896
12897         bootstrap: uses rsync to download the .po files
12898         * build-aux/bootstrap (po_download_command_format): New global.
12899         (download_po_files): Use rsync.
12900         (update_po_files): Don't remove .po files after download,
12901         so future rsync runs can take advantage of the copies.
12902
12903         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
12904
12905         Solve the unnecessary-.po-file-regeneration problem once and for all.
12906         * build-aux/bootstrap (download_po_files): New function, renamed from
12907         get_translations.  Now, downloads, but doesn't update LINGUAS.
12908         (update_po_files): New function.
12909
12910         bootstrap: Ignore more.
12911         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
12912         uniwidth to e.g., lib/.gitignore.
12913         (slurp): Handle the sys_stat_.h -> sys mapping, too.
12914
12915         * build-aux/bootstrap: New setting: vc_ignore.
12916         (insert_sorted_if_absent): Create $file if absent.
12917         Adapt to new, possibly empty, list: $vc_ignore.
12918
12919         bootstrap: generate more ignorable names
12920         * build-aux/bootstrap (slurp): When generating ignorable names,
12921         also map .sin to .sed, .gperf to .c, and .y to .c.
12922
12923 2007-09-03  Jim Meyering  <jim@meyering.net>
12924
12925         * build-aux/git-version-gen: New file, from coreutils.  For details, see
12926         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
12927
12928 2007-09-02  Bruno Haible  <bruno@clisp.org>
12929
12930         Fix mis-recognition of 'mcs' on QNX 6.
12931         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
12932         output contains the string "Mono".
12933         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
12934         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
12935
12936 2007-09-01  Bruno Haible  <bruno@clisp.org>
12937
12938         Fix collision between uniwidth/* and linebreak modules.
12939         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
12940         u32_width): Remove declarations.
12941         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
12942         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
12943         streq3, streq2, streq1, streq0): Remove functions.
12944         (STREQ): Remove macro.
12945         (is_cjk_encoding): Remove function.
12946         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
12947         (uc_width, u8_width, u16_width, u32_width): Remove functions.
12948         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
12949         * NEWS: Document the change.
12950
12951 2007-09-01  Bruno Haible  <bruno@clisp.org>
12952
12953         * lib/streq.h: Add double-inclusion guard.
12954
12955 2007-09-01  Karl Berry  <karl@gnu.org>
12956
12957         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
12958
12959 2007-08-28  Jim Meyering  <jim@meyering.net>
12960
12961         Rename mreadlink_with_size to areadlink_with_size.
12962         * NEWS: Document the change.
12963         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
12964         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
12965         * lib/mreadlink.h: Rename this to...
12966         * lib/areadlink.h: ...this.
12967         * modules/mreadlink-with-size: Rename this to...
12968         * modules/areadlink-with-size: ...this.
12969         * lib/canonicalize.c: Reflect the renaming.
12970         * modules/canonicalize: Likewise.
12971
12972 2007-08-26  Bruno Haible  <bruno@clisp.org>
12973
12974         * gnulib-tool (func_import): When deciding which files to remove,
12975         consider also dangling symbolic links.
12976         Reported by Eric Blake.
12977
12978 2007-08-26  Bruno Haible  <bruno@clisp.org>
12979
12980         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
12981
12982 2007-08-23  Simon Josefsson  <simon@josefsson.org>
12983
12984         * lib/readline.c: Don't include getline.h, the prototype is now
12985         found in stdio.h.
12986
12987 2007-08-23  Jim Meyering  <jim@meyering.net>
12988
12989         Getdelim touchup.
12990         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
12991         around the funlockfile call, since funlockfile never sets errno.
12992         Don't set errno upon failed realloc.
12993
12994 2007-08-22  Eric Blake  <ebb9@byu.net>
12995
12996         Getline touchups.
12997         * lib/getdelim.c (getdelim): Revert regression that required *n to
12998         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
12999         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
13000         getdelim, rather than whether implementation is missing.
13001         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
13002         * lib/stdio_.h (getline): Also declare if replacement is
13003         required.
13004         * doc/functions/getdelim.texi: New file.
13005         * doc/functions/getline.texi: Likewise.
13006         * doc/gnulib.texi (Function Substitutes): Add new files.
13007         Reported by Bruno Haible.
13008
13009 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
13010
13011         * users.txt: Add Guile.
13012
13013 2007-08-22  Eric Blake  <ebb9@byu.net>
13014
13015         * tests/test-getdelim.c (main): Use remove, not unlink.
13016         * tests/test-getline.c (main): Likewise.
13017
13018         Move getline and getdelim into stdio.h, per POSIX 200x.
13019         * modules/getline (Files): Remove getline.h.
13020         (Depends-on): Add stdio.
13021         (configure.ac): Add module indicator.
13022         * modules/getdelim (Files): Remove getdelim.h.
13023         (Depends-on): Add stdio.
13024         (configure.ac): Add module indicator.
13025         * modules/stdio (Makefile.am): Work with new indicators.
13026         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
13027         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
13028         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
13029         * lib/getdelim.h: Delete.
13030         * lib/getline.h: Delete.
13031         * lib/stdio_.h (getdelim, getline): Declare.
13032         * modules/getdelim-tests: New module.
13033         * modules/getline-tests: Likewise.
13034         * tests/test-getdelim.c: New file.
13035         * tests/test-getline.c: Likewise.
13036         * NEWS: Document the change.
13037         * lib/getline.c: Update choice of header.
13038         * lib/csharpcomp.c: Likewise.
13039         * lib/getpass.c: Likewise.
13040         * lib/javacomp.c: Likewise.
13041         * lib/javaversion.c: Likewise.
13042         * lib/yesno.c: Likewise.
13043         * lib/getdelim.c: Likewise.
13044         (getdelim): Set errno on failure, and avoid memory leak.
13045
13046 2007-08-19  Bruno Haible  <bruno@clisp.org>
13047
13048         * modules/closein (Depends-on): Add freadahead.
13049         * lib/closein.c: Include freadahead.h.
13050         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
13051         is zero.
13052
13053 2007-08-19  Bruno Haible  <bruno@clisp.org>
13054
13055         * modules/freadahead-tests: New file.
13056         * tests/test-freadahead.sh: New file.
13057         * tests/test-freadahead.c: New file.
13058
13059         * modules/freadahead: New file.
13060         * lib/freadahead.h: New file.
13061         * lib/freadahead.c: New file.
13062         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
13063         fbufmode, fpurge, freadable, fwritable.
13064
13065 2007-08-19  Eric Blake  <ebb9@byu.net>
13066
13067         Test yesno in combination with closein.
13068         * lib/yesno.c (yesno): Document use of stdin.
13069         * modules/yesno-tests (Files): New module.
13070         * tests/test-yesno.c (main): New file.
13071         * tests/test-yesno.sh: Likewise.
13072
13073 2007-08-19  Bruno Haible  <bruno@clisp.org>
13074
13075         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
13076         * lib/fseeko.c (rpl_fseeko): Likewise.
13077         * lib/fseterr.c (fseterr): Likewise.
13078
13079 2007-08-19  Bruno Haible  <bruno@clisp.org>
13080
13081         * tests/test-lseek.c (main): Disable a test for BeOS.
13082         * doc/functions/lseek.texi: Document the BeOS bug.
13083
13084 2007-08-19  Bruno Haible  <bruno@clisp.org>
13085             Eric Blake  <ebb9@byu.net>
13086
13087         * lib/lseek.c: Include <sys/stat.h>.
13088         (rpl_lseek): Add workaround code also for Unix platforms.
13089         Needed for BeOS.
13090         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
13091         * doc/functions/lseek.texi: Document BeOS definiency.
13092
13093 2007-08-18  Bruno Haible  <bruno@clisp.org>
13094
13095         * modules/fstrcmp-tests: New file.
13096         * tests/test-fstrcmp.c: New file.
13097
13098 2007-08-18  Bruno Haible  <bruno@clisp.org>
13099
13100         * modules/fstrcmp: New file, from GNU gettext with modifications.
13101         * lib/fstrcmp.h: New file, from GNU gettext.
13102         * lib/fstrcmp.c: New file, from GNU gettext.
13103         * MODULES.html.sh (String handling): Add fstrcmp.
13104
13105 2007-08-18  Bruno Haible  <bruno@clisp.org>
13106
13107         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
13108         'bool'.
13109         (diag, compareseq): Remove const from the ctxt argument.
13110         (USE_HEURISTIC): Undefine at the end.
13111
13112 2007-08-18  Jim Meyering  <jim@meyering.net>
13113
13114         New file: lib/idcache.h
13115         * NEWS: Mention the addition.
13116         * modules/idcache (Files): Add lib/idcache.h
13117         * lib/idcache.c: Include "idcache.h".
13118         Don't include <sys/types.h>.
13119         Add a FIXME comment.
13120         Move file-scoped "static" declarations to the top.
13121         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
13122
13123 2007-08-17  Bruno Haible  <bruno@clisp.org>
13124         and Paul Eggert  <eggert@cs.ucla.edu>
13125
13126         * MODULES.html.sh: Add diffseq.
13127         * modules/diffseq: New file.
13128         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
13129         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
13130
13131 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
13132
13133         Import changes from coreutils for bootstrap script.
13134
13135         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
13136
13137         * build-aux/bootstrap (slurp): Work even in environments where
13138         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
13139         current code does not slurp files whose names start with ".", and
13140         this looks like it might be a troublesome area.
13141
13142         2007-07-11  Jim Meyering  <jim@meyering.net>
13143
13144         If there's a GPL vN copyright comment, require that N == 3.
13145
13146         2007-07-08  Jim Meyering  <jim@meyering.net>
13147
13148         Run the coreutils-specific code only if tests/Makefile.am.in exists.
13149         * build-aux/bootstrap (mam_template): Move definition out of loop.
13150
13151         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
13152
13153         * build-aux/bootstrap (symlink_to_dir): Rename function from
13154         symlink_to_gnulib.  Add a directory parameter.  Update all
13155         callers.
13156         (cp_mark_as_generated): Also check for -- and link to -- files in
13157         gl/.
13158
13159         2007-07-08  Jim Meyering  <jim@meyering.net>
13160
13161         Adapt to deeper hierarchy in gnulib.
13162         * build-aux/bootstrap (symlink_to_dir): If the destination
13163         directory doesn't exist, create it. This is required at least for
13164         "lib/uniwidth/cjk.h".
13165
13166         2007-05-15  Jim Meyering  <jim@meyering.net>
13167
13168         * build-aux/bootstrap: Now that generated Makefile.am files
13169         are no longer under version control, they must be created at
13170         bootstrap time.
13171
13172 2007-08-14  Ben Pfaff  <blp@gnu.org>
13173
13174         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
13175
13176 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
13177
13178         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
13179         given the changes below.
13180         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
13181         even on hosts that have padding bits beyond the supported 64.
13182
13183 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
13184
13185         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
13186         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
13187         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
13188         depends on it.
13189         (xstrtol_error): Remove.
13190         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
13191         but with a different signature.
13192         (ATTRIBUTE_NORETURN, __attribute__): New macros.
13193         * lib/xstrtol-error.c: Include exitfail.h.
13194         (xstrtol_fatal): New function, with a different signature from the
13195         old xstrtol_error, so that the caller need not worry about passing
13196         in an exit status, or about storage management of the option argument.
13197         (xstrtol_error): Now a static function.  Redo signature to
13198         implement xstrtol_fatal.  Output the correct number of hyphens in
13199         front of the option so that the caller need not worry about
13200         storage management.
13201         (N_): New macro.
13202         (_): Remove; not used now.
13203         * modules/xstrtol: Depend on getopt.
13204         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
13205         of old STRTOL_FATAL_ERROR macro.
13206         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
13207         of test program.
13208         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
13209         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
13210
13211 2007-08-08  Eric Blake  <ebb9@byu.net>
13212
13213         * lib/xstrtol-error.c: Add missing include.
13214
13215         Move xstrtol messages into gnulib domain, when --pobase is used.
13216         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
13217         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
13218         * modules/xstrtol (Files): Distribute new file.
13219         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
13220         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
13221         * tests/test-xstrtol.c: ...into new file.
13222         * tests/test-xstrtoul.c: Also test xstrtoul.
13223         * tests/test-xstrtoimax.c: Also test xstrtoimax.
13224         * tests/test-xstrtoumax.c: Also test xstrtoumax.
13225         * tests/test-xstrtol.sh: Drive the tests.
13226         * tests/test-xstrtoimax.sh: Likewise.
13227         * tests/test-xstrtoumax.sh: Likewise.
13228         * modules/xstrtol-tests: New module.
13229         * modules/xstrtoimax-tests: Likewise.
13230         * modules/xstrtoumax-tests: Likewise.
13231
13232 2007-08-08  Jim Meyering  <jim@meyering.net>
13233
13234         New function: mfile_name_concat.
13235         * lib/filenamecat.c (mfile_name_concat): New function, just like
13236         file_name_concat, but return NULL upon failure rather than exiting
13237         with a diagnostic.
13238         * lib/filenamecat.h: Declare it.
13239
13240 2007-08-07  Bruno Haible  <bruno@clisp.org>
13241
13242         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
13243         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
13244         warning from gcc.
13245         Reported by Eric Blake.
13246
13247 2007-08-07  Simon Josefsson  <simon@josefsson.org>
13248
13249         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
13250         * modules/crypto/arcfour (License): Likewise.
13251         * modules/crypto/des-tests (License): Likewise.
13252         * modules/crypto/gc-arctwo-tests (License): Likewise.
13253         * modules/crypto/gc-des-tests (License): Likewise.
13254         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
13255         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
13256         * modules/crypto/gc-md2-tests (License): Likewise.
13257         * modules/crypto/gc-md4-tests (License): Likewise.
13258         * modules/crypto/gc-md5-tests (License): Likewise.
13259         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
13260         * modules/crypto/gc-rijndael-tests (License): Likewise.
13261         * modules/crypto/gc-sha1-tests (License): Likewise.
13262         * modules/crypto/gc-tests (License): Likewise.
13263         * modules/crypto/hmac-md5 (License): Likewise.
13264         * modules/crypto/hmac-sha1 (License): Likewise.
13265         * modules/crypto/md2-tests (License): Likewise.
13266         * modules/crypto/md4-tests (License): Likewise.
13267         * modules/crypto/md5 (License): Likewise.
13268         * modules/crypto/rijndael (License): Likewise.
13269         * modules/crypto/sha1 (License): Likewise.
13270         * modules/memxor (License): Likewise.
13271
13272 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
13273         and Bruno Haible  <bruno@clisp.org>
13274
13275         * NEWS: Describe interface changes to human, xstrtol.
13276         * lib/human.h: Include <xstrtol.h>.
13277         (human_options): Return enum strtol_error, not int.  Remove
13278         bool arg; take int * instead.
13279         * lib/human.c: Don't include "gettext.h".
13280         (_): Remove; no longer used.
13281         Don't include <xstrtol.h>, since human.h does it.
13282         (human_options): Adjust to abovementioned interface changes.
13283         Do not report error to stderr; that's now the caller's
13284         responsibility.
13285         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
13286         interface change.
13287         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
13288         Str, Argument_type_string.  All uses changed.  Put " argument"
13289         in diagnostics to make them clearer.  Change wording of suffix
13290         message for clarity.
13291         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
13292         Argument_type_string.
13293         (STRTOL_FATAL_WARN): Remove; no longer used.
13294         * modules/human (Depends-on): Remove gettext-h.
13295
13296 2007-08-06  Simon Josefsson  <simon@josefsson.org>
13297
13298         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
13299
13300 2007-07-31  Bruno Haible  <bruno@clisp.org>
13301
13302         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
13303         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
13304         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
13305
13306 2007-07-31  Bruno Haible  <bruno@clisp.org>
13307
13308         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
13309         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
13310
13311 2007-07-30  Bruno Haible  <bruno@clisp.org>
13312
13313         * modules/base64 (License): Use the synonymous term "LGPLv2+".
13314         * modules/c-ctype (License): Likewise.
13315         * modules/c-strcase (License): Likewise.
13316         * modules/check-version (License): Likewise.
13317         * modules/iconv (License): Likewise.
13318         * modules/iconv_open (License): Likewise.
13319         * modules/read-file (License): Likewise.
13320         * modules/striconv (License): Likewise.
13321         * modules/strverscmp (License): Likewise.
13322         * modules/vasprintf (License): Likewise.
13323         * modules/crypto/des (License): Likewise.
13324         * modules/crypto/gc (License): Likewise.
13325         * modules/crypto/gc-arcfour (License): Likewise.
13326         * modules/crypto/gc-arctwo (License): Likewise.
13327         * modules/crypto/gc-des (License): Likewise.
13328         * modules/crypto/gc-hmac-md5 (License): Likewise.
13329         * modules/crypto/gc-hmac-sha1 (License): Likewise.
13330         * modules/crypto/gc-md2 (License): Likewise.
13331         * modules/crypto/gc-md4 (License): Likewise.
13332         * modules/crypto/gc-md5 (License): Likewise.
13333         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
13334         * modules/crypto/gc-random (License): Likewise.
13335         * modules/crypto/gc-rijndael (License): Likewise.
13336         * modules/crypto/gc-sha1 (License): Likewise.
13337         * modules/crypto/md2 (License): Likewise.
13338         * modules/crypto/md4 (License): Likewise.
13339
13340 2007-07-30  Jim Meyering  <jim@meyering.net>
13341
13342         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
13343         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
13344         it has valid stat data.  This bug would cause du not to count the
13345         sizes of inaccessible directories.
13346         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
13347         in <http://bugzilla.redhat.com/250077>.
13348
13349 2007-07-25  Peter O'Gorman  <peter@pogma.com>
13350             Bruno Haible  <bruno@clisp.org>
13351
13352         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
13353         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
13354         #include_next, gives a diagnostic about it, but reports no error in
13355         the exit code.
13356         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
13357
13358 2007-07-24  Ben Pfaff  <blp@gnu.org>
13359
13360         Improve name: "count-one-bits" is better than "popcount".
13361         * MODULES.html.sh: Update name.
13362         * lib/popcount.h: Renamed lib/count-one-bits.h.
13363         (popcount): Renamed count_one_bits.
13364         (popcountl): Renamed count_one_bits_l.
13365         (popcountll): Renamed count_one_bits_ll.
13366         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
13367         * modules/popcount: Renamed module/count-one-bits.
13368         * modules/popcount-tests: Renamed module/count-one-bits-tests.
13369         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
13370
13371 2007-07-23  Ben Pfaff  <blp@gnu.org>
13372
13373         * lib/popcount.h (popcount32): Reduce size of constants, to allow
13374         better code generation, and add U to large constants to avoid
13375         warnings, in non-GCC case.
13376         Suggested by Bruno Haible.
13377
13378 2007-07-23  Ben Pfaff  <blp@gnu.org>
13379
13380         * lib/popcount.h: Use verify_true instead of if...abort.
13381         * modules/popcount: Depend on verify module.
13382         Suggested by Jim Meyering.
13383
13384 2007-07-23  Bruno Haible  <bruno@clisp.org>
13385
13386         * gnulib-tool (func_import): Create a .cvsignore file also when the
13387         directory is not yet in CVS but the toplevel directory is. When
13388         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
13389         Reported by Karl Berry.
13390
13391 2007-07-22  Ben Pfaff  <blp@gnu.org>
13392
13393         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
13394         case.
13395         Suggested by Eric Blake.
13396
13397 2007-07-22  Ben Pfaff  <blp@gnu.org>
13398
13399         New module: popcount.
13400         * MODULES.html.sh: Add popcount.
13401         * modules/popcount: New file.
13402         * modules/popcount-tests: New file.
13403         * tests/test-popcount.c: New file.
13404         * lib/popcount.h: New file.
13405         * m4/popcount.m4: New file.
13406
13407 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
13408
13409         * build-aux/announce-gen: Update to GPLv3.
13410
13411         * build-aux/config.guess: Update from config.
13412
13413 2007-07-21  Bruno Haible  <bruno@clisp.org>
13414
13415         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
13416         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
13417
13418 2007-07-20  Jim Meyering  <jim@meyering.net>
13419
13420         * check-module: Diagnose a self-dependency.
13421
13422 2007-07-19  Bruno Haible  <bruno@clisp.org>
13423
13424         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
13425         empty.
13426         Reported by Eric Blake.
13427
13428 2007-07-18  Bruno Haible  <bruno@clisp.org>
13429
13430         * gnulib-tool: New options --po-base, --po-domain.
13431         (func_usage): Document them.
13432         (pobase, po_domain): New variables.
13433         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
13434         DEFAULT_TEXT_DOMAIN.
13435         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
13436         (func_import): Consider pobase and po_domain. Create a po/ directory.
13437         (func_create_testdir): Set pobase and po_domain to empty.
13438         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
13439         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
13440
13441 2007-07-18  Bruno Haible  <bruno@clisp.org>
13442
13443         * gnulib-tool (func_get_automake_snippet): Synthesize also an
13444         EXTRA_DIST augmentation for files in build-aux/.
13445
13446 2007-07-16  Bruno Haible  <bruno@clisp.org>
13447
13448         * modules/lseek (License): Use the synonymous term "LGPLv2+".
13449         * modules/getdelim (License): Likewise.
13450
13451 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
13452
13453         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
13454         * modules/d-type (License): Likewise.
13455         * modules/extensions (License): Likewise.
13456         * modules/fnmatch (License): Likewise.
13457         * modules/fseeko (License): Likewise.
13458         * modules/getaddrinfo (License): Likewise.
13459         * modules/getline (License): Likewise.
13460         * modules/getlogin_r (License): Likewise.
13461         * modules/getpass (License): Likewise.
13462         * modules/gettimeofday (License): Likewise.
13463         * modules/glob (License): Likewise.
13464         * modules/inet_ntop (License): Likewise.
13465         * modules/malloc (License): Likewise.
13466         * modules/malloca (License): Likewise.
13467         * modules/memmem (License): Likewise.
13468         * modules/mempcpy (License): Likewise.
13469         * modules/memset (License): Likewise.
13470         * modules/minmax (License): Likewise.
13471         * modules/mktime (License): Likewise.
13472         * modules/netinet_in (License): Likewise.
13473         * modules/pathmax (License): Likewise.
13474         * modules/poll (License): Likewise.
13475         * modules/regex (License): Likewise.
13476         * modules/snprintf (License): Likewise.
13477         * modules/stdbool (License): Likewise.
13478         * modules/stdint (License): Likewise.
13479         * modules/stdio (License): Likewise.
13480         * modules/strcase (License): Likewise.
13481         * modules/strcasestr (License): Likewise.
13482         * modules/strdup (License): Likewise.
13483         * modules/string (License): Likewise.
13484         * modules/strndup (License): Likewise.
13485         * modules/strnlen (License): Likewise.
13486         * modules/strpbrk (License): Likewise.
13487         * modules/strptime (License): Likewise.
13488         * modules/strsep (License): Likewise.
13489         * modules/sys_select (License): Likewise.
13490         * modules/sys_socket (License): Likewise.
13491         * modules/sys_stat (License): Likewise.
13492         * modules/sys_time (License): Likewise.
13493         * modules/time (License): Likewise.
13494         * modules/time_r (License): Likewise.
13495         * modules/timegm (License): Likewise.
13496         * modules/unistd (License): Likewise.
13497         * modules/vsnprintf (License): Likewise.
13498         * modules/wctype (License): Likewise.
13499
13500 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13501
13502         * modules/argz (License): LGPLv2+.
13503
13504 2007-07-15  Karl Berry  <karl@gnu.org>
13505
13506         * doc/gnulib.texi: revise node structure per new fdl.texi.
13507
13508 2007-07-14  Bruno Haible  <bruno@clisp.org>
13509
13510         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
13511         the output file.
13512         * lib/uniname/uninames.h: Regenerated.
13513
13514 2007-07-14  Karl Berry  <karl@gnu.org>
13515
13516         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
13517         omitting sectioning and index commands.
13518
13519 2007-07-13  Bruno Haible  <bruno@clisp.org>
13520
13521         New gnulib-tool option --more-symlinks.
13522         * gnulib-tool (func_usage): Document --more-symlinks.
13523         (do_copyrights): New variable.
13524         Recognize option --more-symlinks.
13525         (func_import): Don't add a copyright notice transform to
13526         sed_transform_lib_file if do_copyrights is empty.
13527
13528 2007-07-13  Bruno Haible  <bruno@clisp.org>
13529
13530         * lib/vasnprintf.c (decimal_point_char): Define also if
13531         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
13532         && !NEED_PRINTF_DIRECTIVE_A.
13533         Reported by Clemens Koller <clemens.koller@anagramm.de> via
13534         Gary V. Vaughan <gary@gnu.org>.
13535
13536 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
13537
13538         * lib/inttypes_.h: Undo previous change, since it was fixed
13539         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
13540
13541 2007-07-13  Bruno Haible  <bruno@clisp.org>
13542
13543         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
13544         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
13545
13546 2007-07-13  Jim Meyering  <jim@meyering.net>
13547
13548         df: Don't fail for Tru64's "file-on-file mount".
13549         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
13550         so we fall through and use statfs instead.  Details here:
13551         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
13552         Reported by Albert Chin.
13553
13554 2007-07-13  Bruno Haible  <bruno@clisp.org>
13555
13556         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
13557         * modules/configmake (License): Likewise.
13558         * modules/gettext (License): Likewise.
13559         * modules/gettext-h (License): Likewise.
13560         * modules/include_next (License): Likewise.
13561         * modules/link-warning (License): Likewise.
13562         * modules/localcharset (License): Likewise.
13563         * modules/localename (License): Likewise.
13564         * modules/lock (License): Likewise.
13565         * modules/relocatable-lib-lgpl (License): Likewise.
13566         * modules/size_max (License): Likewise.
13567         * modules/vasnprintf (License): Likewise.
13568         * modules/wchar (License): Likewise.
13569         * modules/xsize (License): Likewise.
13570
13571 2007-07-13  Bruno Haible  <bruno@clisp.org>
13572
13573         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
13574         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
13575
13576 2007-07-12  Bruno Haible  <bruno@clisp.org>
13577
13578         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
13579         in the modules files.
13580
13581 2007-07-11  Karl Berry  <karl@gnu.org>
13582
13583         * MODULES.html.sh (func_module): use
13584          sed -e '\|^'"${includefile}"'$|d'
13585          instead of /.../d, to avoid errors on $includefile's containing /.
13586
13587 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
13588
13589         * gnulib-tool (func_import): Avoid duplication of --avoid
13590         statements
13591         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
13592         names to `_' in variable names.
13593
13594 2007-07-10  Eric Blake  <ebb9@byu.net>
13595
13596         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
13597         * NEWS: Document this change.
13598
13599 2007-07-08  Bruno Haible  <bruno@clisp.org>
13600
13601         Update to Unicode 5.0.
13602         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
13603         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
13604         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
13605         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
13606         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
13607         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
13608         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
13609         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
13610         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
13611         U+10A3F, U+1D242..U+1D244.
13612         (nonspacing_table_ind): Update.
13613         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
13614         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
13615
13616 2007-07-08  Bruno Haible  <bruno@clisp.org>
13617
13618         Update to Unicode 5.0.
13619         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
13620         code transform. Extend the name index field of unicode_name_to_code and
13621         unicode_code_to_name from 16 to 24 bits.
13622         * lib/uniname/uniname.c (unicode_character_name,
13623         unicode_name_character): Add the range 0x12xxx to the code transform.
13624         * lib/uniname/uninames.h: Regenerated.
13625         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
13626
13627 2007-07-07  Bruno Haible  <bruno@clisp.org>
13628
13629         * modules/wcwidth-tests: New file.
13630         * tests/test-wcwidth.c: New file.
13631
13632         Work around MacOS X wcwidth() bug.
13633         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
13634         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
13635         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
13636         original wcwidth in non-UTF-8 locales.
13637         * modules/wcwidth (Depends-on): Add localcharset, streq,
13638         uniwidth/width.
13639         * doc/functions/wcwidth.texi: Update.
13640
13641 2007-07-07  Bruno Haible  <bruno@clisp.org>
13642
13643         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
13644         (wcwidth): New declaration.
13645         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
13646         macros.
13647         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
13648         here. Prepare for creating <wchar.h> unconditionally.
13649         * modules/wchar (Depends-on): Add link-warning.
13650         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
13651         REPLACE_WCWIDTH, and GL_LINK_WARNING.
13652         * lib/wcwidth.h: Remove file.
13653         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
13654         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
13655         * modules/wcwidth (Files): Remove lib/wcwidth.h.
13656         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
13657         (Include): Replace wcwidth.h with <wchar.h>.
13658         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
13659         * lib/mbchar.h: Don't include wcwidth.h.
13660         * lib/mbswidth.c: Likewise.
13661         * NEWS: Mention the change.
13662
13663 2007-07-07  Bruno Haible  <bruno@clisp.org>
13664
13665         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
13666         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
13667         definition with an external declaration.
13668         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
13669         defined as a function. Remove AC_C_INLINE requirement.
13670         * modules/wcwidth (Files): Add lib/wcwidth.c.
13671         (Makefile.am): Remove redundant statement.
13672
13673 2007-07-07  Bruno Haible  <bruno@clisp.org>
13674
13675         * MODULES.html.sh (Unicode string functions): Add the new modules.
13676
13677         * tests/uniwidth/test-u32-strwidth.c: New file.
13678         * modules/uniwidth/u32-strwidth-tests: New file.
13679
13680         * lib/uniwidth/u32-strwidth.c: New file.
13681         * modules/uniwidth/u32-strwidth: New file.
13682
13683         * tests/uniwidth/test-u16-strwidth.c: New file.
13684         * modules/uniwidth/u16-strwidth-tests: New file.
13685
13686         * lib/uniwidth/u16-strwidth.c: New file.
13687         * modules/uniwidth/u16-strwidth: New file.
13688
13689         * tests/uniwidth/test-u8-strwidth.c: New file.
13690         * modules/uniwidth/u8-strwidth-tests: New file.
13691
13692         * lib/uniwidth/u8-strwidth.c: New file.
13693         * modules/uniwidth/u8-strwidth: New file.
13694
13695         * tests/uniwidth/test-u32-width.c: New file.
13696         * modules/uniwidth/u32-width-tests: New file.
13697
13698         * lib/uniwidth/u32-width.c: New file.
13699         * modules/uniwidth/u32-width: New file.
13700
13701         * tests/uniwidth/test-u16-width.c: New file.
13702         * modules/uniwidth/u16-width-tests: New file.
13703
13704         * lib/uniwidth/u16-width.c: New file.
13705         * modules/uniwidth/u16-width: New file.
13706
13707         * tests/uniwidth/test-u8-width.c: New file.
13708         * modules/uniwidth/u8-width-tests: New file.
13709
13710         * lib/uniwidth/u8-width.c: New file.
13711         * modules/uniwidth/u8-width: New file.
13712
13713         * tests/uniwidth/test-uc_width.c: New file.
13714         * modules/uniwidth/width-tests: New file.
13715
13716         * lib/uniwidth/width.c: New file, from GNU libiconv.
13717         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
13718         * modules/uniwidth/width: New file.
13719
13720         * lib/uniwidth.h: New file, from GNU libiconv.
13721         * modules/uniwidth/base: New file.
13722
13723 2007-07-07  Bruno Haible  <bruno@clisp.org>
13724
13725         * lib/uniname.h: New file, from GNU gettext.
13726         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
13727         * lib/uniname/uninames.h: New file, from GNU gettext.
13728         * lib/uniname/uniname.c: New file, from GNU gettext.
13729         * tests/uniname/test-uninames.sh: New file.
13730         * tests/uniname/test-uninames.c: New file, from GNU gettext.
13731         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
13732         * modules/uniname/base: New file.
13733         * modules/uniname/uniname: New file.
13734         * modules/uniname/uniname-tests: New file.
13735         * MODULES.html.sh (Unicode string functions): Add the new modules.
13736
13737 2007-07-06  Bruno Haible  <bruno@clisp.org>
13738
13739         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
13740
13741 2007-07-06  Bruno Haible  <bruno@clisp.org>
13742
13743         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
13744         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
13745         includes <cygwin/sys_time.h> which includes <sys/select.h> which
13746         include <sys/time.h>.
13747         Reported by Eric Blake.
13748
13749 2007-07-06  Eric Blake  <ebb9@byu.net>
13750
13751         Fix testing canonicalize on cygwin.
13752         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
13753         Revert patch from 2007-06-19.
13754         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
13755         canonicalize module is also in use.
13756         * tests/test-canonicalize.c: New file.
13757         * tests/test-canonicalize.sh: Likewise.
13758         * modules/canonicalize-tests: Likewise.
13759
13760 2007-07-06  Jim Meyering  <jim@meyering.net>
13761
13762         * lib/getugroups.c (getugroups): Detect getgrent failure.
13763         Adjust comment to reflect reality: this function may return -1.
13764
13765 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
13766
13767         * build-aux/bootstrap (TP_URL,get_translations): Update to use
13768         the new TP address.
13769         (usage): Fix typo
13770         (gnulib_mk): New variable.
13771
13772 2007-07-05  Jim Meyering  <jim@meyering.net>
13773
13774         Don't let endgrent clobber errno, no matter how improbable.
13775         * lib/getugroups.c (getugroups): Save and restore errno around
13776         endgrent call.
13777
13778         Close the group DB even when failing with 2^31 or more members.
13779         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
13780
13781 2007-07-04  Jim Meyering  <jim@meyering.net>
13782
13783         * lib/getugroups.h: New file.
13784         * lib/getugroups.c: Include "getugroups.h".
13785         Remove uses of "register" keyword.
13786         Move local variable, "cp", down into scope where used.
13787         Give "username" parameter the "const" attribute.
13788         * modules/getugroups (Files): Add lib/getugroups.h
13789
13790 2007-07-04  Karl Berry  <karl@gnu.org>
13791
13792         * MODULES.html.sh (func_all_modules): Complete rename of
13793         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
13794
13795 2007-07-02  Bruno Haible  <bruno@clisp.org>
13796
13797         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
13798         mode, when inttypes.h comes from gnulib.
13799         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
13800
13801 2007-07-02  Simon Josefsson  <simon@josefsson.org>
13802
13803         * NEWS: Mention lgpl module name change.
13804
13805         * modules/lgpl-2.1: Renamed from lgpl.
13806
13807         * NEWS: Mention gpl module name change.
13808
13809         * modules/gpl-3.0: New file, based on gpl-2.0.
13810
13811         * modules/gpl-2.0: Renamed from gpl.
13812
13813         * modules/gpl: Fix filename, doc/gpl.texi is now found at
13814         doc/gpl-2.0.texi.
13815
13816 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
13817
13818         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
13819         #define __STDC_LIMIT_MACROS temporarily while including
13820         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
13821         Problem reported by Joel E. Denny in
13822         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
13823
13824 2007-07-01  Bruno Haible  <bruno@clisp.org>
13825
13826         * lib/unistdio.h: New file.
13827         * lib/unistdio/u-asnprintf.h: New file.
13828         * lib/unistdio/u-asprintf.h: New file.
13829         * lib/unistdio/u-printf-args.c: New file.
13830         * lib/unistdio/u-printf-args.h: New file.
13831         * lib/unistdio/u-printf-parse.h: New file.
13832         * lib/unistdio/u-snprintf.h: New file.
13833         * lib/unistdio/u-sprintf.h: New file.
13834         * lib/unistdio/u-vasprintf.h: New file.
13835         * lib/unistdio/u-vsnprintf.h: New file.
13836         * lib/unistdio/u-vsprintf.h: New file.
13837         * lib/unistdio/ulc-asnprintf.c: New file.
13838         * lib/unistdio/ulc-asprintf.c: New file.
13839         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
13840         * lib/unistdio/ulc-printf-parse.c: New file.
13841         * lib/unistdio/ulc-snprintf.c: New file.
13842         * lib/unistdio/ulc-sprintf.c: New file.
13843         * lib/unistdio/ulc-vasnprintf.c: New file.
13844         * lib/unistdio/ulc-vasprintf.c: New file.
13845         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
13846         * lib/unistdio/ulc-vsnprintf.c: New file.
13847         * lib/unistdio/ulc-vsprintf.c: New file.
13848         * lib/unistdio/u8-asnprintf.c: New file.
13849         * lib/unistdio/u8-asprintf.c: New file.
13850         * lib/unistdio/u8-printf-parse.c: New file.
13851         * lib/unistdio/u8-snprintf.c: New file.
13852         * lib/unistdio/u8-sprintf.c: New file.
13853         * lib/unistdio/u8-vasnprintf.c: New file.
13854         * lib/unistdio/u8-vasprintf.c: New file.
13855         * lib/unistdio/u8-vsnprintf.c: New file.
13856         * lib/unistdio/u8-vsprintf.c: New file.
13857         * lib/unistdio/u8-u8-asnprintf.c: New file.
13858         * lib/unistdio/u8-u8-asprintf.c: New file.
13859         * lib/unistdio/u8-u8-snprintf.c: New file.
13860         * lib/unistdio/u8-u8-sprintf.c: New file.
13861         * lib/unistdio/u8-u8-vasnprintf.c: New file.
13862         * lib/unistdio/u8-u8-vasprintf.c: New file.
13863         * lib/unistdio/u8-u8-vsnprintf.c: New file.
13864         * lib/unistdio/u8-u8-vsprintf.c: New file.
13865         * lib/unistdio/u16-asnprintf.c: New file.
13866         * lib/unistdio/u16-asprintf.c: New file.
13867         * lib/unistdio/u16-printf-parse.c: New file.
13868         * lib/unistdio/u16-snprintf.c: New file.
13869         * lib/unistdio/u16-sprintf.c: New file.
13870         * lib/unistdio/u16-vasnprintf.c: New file.
13871         * lib/unistdio/u16-vasprintf.c: New file.
13872         * lib/unistdio/u16-vsnprintf.c: New file.
13873         * lib/unistdio/u16-vsprintf.c: New file.
13874         * lib/unistdio/u16-u16-asnprintf.c: New file.
13875         * lib/unistdio/u16-u16-asprintf.c: New file.
13876         * lib/unistdio/u16-u16-snprintf.c: New file.
13877         * lib/unistdio/u16-u16-sprintf.c: New file.
13878         * lib/unistdio/u16-u16-vasnprintf.c: New file.
13879         * lib/unistdio/u16-u16-vasprintf.c: New file.
13880         * lib/unistdio/u16-u16-vsnprintf.c: New file.
13881         * lib/unistdio/u16-u16-vsprintf.c: New file.
13882         * lib/unistdio/u32-asnprintf.c: New file.
13883         * lib/unistdio/u32-asprintf.c: New file.
13884         * lib/unistdio/u32-printf-parse.c: New file.
13885         * lib/unistdio/u32-snprintf.c: New file.
13886         * lib/unistdio/u32-sprintf.c: New file.
13887         * lib/unistdio/u32-vasnprintf.c: New file.
13888         * lib/unistdio/u32-vasprintf.c: New file.
13889         * lib/unistdio/u32-vsnprintf.c: New file.
13890         * lib/unistdio/u32-vsprintf.c: New file.
13891         * lib/unistdio/u32-u32-asnprintf.c: New file.
13892         * lib/unistdio/u32-u32-asprintf.c: New file.
13893         * lib/unistdio/u32-u32-snprintf.c: New file.
13894         * lib/unistdio/u32-u32-sprintf.c: New file.
13895         * lib/unistdio/u32-u32-vasnprintf.c: New file.
13896         * lib/unistdio/u32-u32-vasprintf.c: New file.
13897         * lib/unistdio/u32-u32-vsnprintf.c: New file.
13898         * lib/unistdio/u32-u32-vsprintf.c: New file.
13899         * tests/unistdio/test-ulc-asnprintf1.c: New file.
13900         * tests/unistdio/test-ulc-asnprintf1.h: New file.
13901         * tests/unistdio/test-ulc-printf1.h: New file.
13902         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
13903         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
13904         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
13905         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
13906         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
13907         * tests/unistdio/test-ulc-vasprintf1.c: New file.
13908         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
13909         * tests/unistdio/test-ulc-vsprintf1.c: New file.
13910         * tests/unistdio/test-u8-asnprintf1.c: New file.
13911         * tests/unistdio/test-u8-asnprintf1.h: New file.
13912         * tests/unistdio/test-u8-printf1.h: New file.
13913         * tests/unistdio/test-u8-vasnprintf1.c: New file.
13914         * tests/unistdio/test-u8-vasnprintf2.c: New file.
13915         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
13916         * tests/unistdio/test-u8-vasnprintf3.c: New file.
13917         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
13918         * tests/unistdio/test-u8-vasprintf1.c: New file.
13919         * tests/unistdio/test-u8-vsnprintf1.c: New file.
13920         * tests/unistdio/test-u8-vsprintf1.c: New file.
13921         * tests/unistdio/test-u16-asnprintf1.c: New file.
13922         * tests/unistdio/test-u16-asnprintf1.h: New file.
13923         * tests/unistdio/test-u16-printf1.h: New file.
13924         * tests/unistdio/test-u16-vasnprintf1.c: New file.
13925         * tests/unistdio/test-u16-vasnprintf2.c: New file.
13926         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
13927         * tests/unistdio/test-u16-vasnprintf3.c: New file.
13928         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
13929         * tests/unistdio/test-u16-vasprintf1.c: New file.
13930         * tests/unistdio/test-u16-vsnprintf1.c: New file.
13931         * tests/unistdio/test-u16-vsprintf1.c: New file.
13932         * tests/unistdio/test-u32-asnprintf1.c: New file.
13933         * tests/unistdio/test-u32-asnprintf1.h: New file.
13934         * tests/unistdio/test-u32-printf1.h: New file.
13935         * tests/unistdio/test-u32-vasnprintf1.c: New file.
13936         * tests/unistdio/test-u32-vasnprintf2.c: New file.
13937         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
13938         * tests/unistdio/test-u32-vasnprintf3.c: New file.
13939         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
13940         * tests/unistdio/test-u32-vasprintf1.c: New file.
13941         * tests/unistdio/test-u32-vsnprintf1.c: New file.
13942         * tests/unistdio/test-u32-vsprintf1.c: New file.
13943         * modules/unistdio/base: New file.
13944         * modules/unistdio/u-printf-args: New file.
13945         * modules/unistdio/ulc-asnprintf: New file.
13946         * modules/unistdio/ulc-asprintf: New file.
13947         * modules/unistdio/ulc-fprintf: New file.
13948         * modules/unistdio/ulc-printf-parse: New file.
13949         * modules/unistdio/ulc-snprintf: New file.
13950         * modules/unistdio/ulc-sprintf: New file.
13951         * modules/unistdio/ulc-vasnprintf: New file.
13952         * modules/unistdio/ulc-vasprintf: New file.
13953         * modules/unistdio/ulc-vfprintf: New file.
13954         * modules/unistdio/ulc-vsnprintf: New file.
13955         * modules/unistdio/ulc-vsprintf: New file.
13956         * modules/unistdio/u8-asnprintf: New file.
13957         * modules/unistdio/u8-asprintf: New file.
13958         * modules/unistdio/u8-printf-parse: New file.
13959         * modules/unistdio/u8-snprintf: New file.
13960         * modules/unistdio/u8-sprintf: New file.
13961         * modules/unistdio/u8-vasnprintf: New file.
13962         * modules/unistdio/u8-vasprintf: New file.
13963         * modules/unistdio/u8-vsnprintf: New file.
13964         * modules/unistdio/u8-vsprintf: New file.
13965         * modules/unistdio/u8-u8-asnprintf: New file.
13966         * modules/unistdio/u8-u8-asprintf: New file.
13967         * modules/unistdio/u8-u8-snprintf: New file.
13968         * modules/unistdio/u8-u8-sprintf: New file.
13969         * modules/unistdio/u8-u8-vasnprintf: New file.
13970         * modules/unistdio/u8-u8-vasprintf: New file.
13971         * modules/unistdio/u8-u8-vsnprintf: New file.
13972         * modules/unistdio/u8-u8-vsprintf: New file.
13973         * modules/unistdio/u16-asnprintf: New file.
13974         * modules/unistdio/u16-asprintf: New file.
13975         * modules/unistdio/u16-printf-parse: New file.
13976         * modules/unistdio/u16-snprintf: New file.
13977         * modules/unistdio/u16-sprintf: New file.
13978         * modules/unistdio/u16-vasnprintf: New file.
13979         * modules/unistdio/u16-vasprintf: New file.
13980         * modules/unistdio/u16-vsnprintf: New file.
13981         * modules/unistdio/u16-vsprintf: New file.
13982         * modules/unistdio/u16-u16-asnprintf: New file.
13983         * modules/unistdio/u16-u16-asprintf: New file.
13984         * modules/unistdio/u16-u16-snprintf: New file.
13985         * modules/unistdio/u16-u16-sprintf: New file.
13986         * modules/unistdio/u16-u16-vasnprintf: New file.
13987         * modules/unistdio/u16-u16-vasprintf: New file.
13988         * modules/unistdio/u16-u16-vsnprintf: New file.
13989         * modules/unistdio/u16-u16-vsprintf: New file.
13990         * modules/unistdio/u32-asnprintf: New file.
13991         * modules/unistdio/u32-asprintf: New file.
13992         * modules/unistdio/u32-printf-parse: New file.
13993         * modules/unistdio/u32-snprintf: New file.
13994         * modules/unistdio/u32-sprintf: New file.
13995         * modules/unistdio/u32-vasnprintf: New file.
13996         * modules/unistdio/u32-vasprintf: New file.
13997         * modules/unistdio/u32-vsnprintf: New file.
13998         * modules/unistdio/u32-vsprintf: New file.
13999         * modules/unistdio/u32-u32-asnprintf: New file.
14000         * modules/unistdio/u32-u32-asprintf: New file.
14001         * modules/unistdio/u32-u32-snprintf: New file.
14002         * modules/unistdio/u32-u32-sprintf: New file.
14003         * modules/unistdio/u32-u32-vasnprintf: New file.
14004         * modules/unistdio/u32-u32-vasprintf: New file.
14005         * modules/unistdio/u32-u32-vsnprintf: New file.
14006         * modules/unistdio/u32-u32-vsprintf: New file.
14007         * modules/unistdio/ulc-asnprintf-tests: New file.
14008         * modules/unistdio/ulc-vasnprintf-tests: New file.
14009         * modules/unistdio/ulc-vasprintf-tests: New file.
14010         * modules/unistdio/ulc-vsnprintf-tests: New file.
14011         * modules/unistdio/ulc-vsprintf-tests: New file.
14012         * modules/unistdio/u8-asnprintf-tests: New file.
14013         * modules/unistdio/u8-vasnprintf-tests: New file.
14014         * modules/unistdio/u8-vasprintf-tests: New file.
14015         * modules/unistdio/u8-vsnprintf-tests: New file.
14016         * modules/unistdio/u8-vsprintf-tests: New file.
14017         * modules/unistdio/u16-asnprintf-tests: New file.
14018         * modules/unistdio/u16-vasnprintf-tests: New file.
14019         * modules/unistdio/u16-vasprintf-tests: New file.
14020         * modules/unistdio/u16-vsnprintf-tests: New file.
14021         * modules/unistdio/u16-vsprintf-tests: New file.
14022         * modules/unistdio/u32-asnprintf-tests: New file.
14023         * modules/unistdio/u32-vasnprintf-tests: New file.
14024         * modules/unistdio/u32-vasprintf-tests: New file.
14025         * modules/unistdio/u32-vsnprintf-tests: New file.
14026         * modules/unistdio/u32-vsprintf-tests: New file.
14027         * MODULES.html.sh (Unicode string functions): Add the new modules.
14028
14029 2007-07-01  Bruno Haible  <bruno@clisp.org>
14030
14031         * lib/sprintf.c (sprintf): Limit the available length estimation,
14032         to avoid address wraparound.
14033         * lib/vsprintf.c (vsprintf): Likewise.
14034         * modules/sprintf-posix (Dependencies): Add stdint.
14035         * modules/vsprintf-posix (Dependencies): Likewise.
14036
14037 2007-07-01  Bruno Haible  <bruno@clisp.org>
14038
14039         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
14040         Windows PATH as well. Conservative double-quoting. Comments.
14041
14042 2007-07-01  Bruno Haible  <bruno@clisp.org>
14043             Eric Blake  <ebb9@byu.net>
14044             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14045
14046         * gnulib-tool (self_abspathname): Fix algorithm to cope with
14047         empty components in $PATH, denoting '.'.
14048
14049 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14050
14051         * gnulib-tool: Fix indentation.
14052         (func_create_megatestdir): Likewise.
14053         Report by Bruno Haible.
14054
14055 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14056
14057         Sync from Automake.
14058         * build-aux/gnupload: Fix shell portability issues with for loops.
14059         Report by Karl Berry.
14060
14061 2007-06-29  Simon Josefsson  <simon@josefsson.org>
14062
14063         * build-aux/maint.mk (POURL): Use translationproject.org.
14064
14065 2007-06-27  Simon Josefsson  <simon@josefsson.org>
14066             Bruno Haible  <bruno@clisp.org>
14067
14068         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
14069         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
14070         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
14071         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
14072         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
14073
14074 2007-06-27  Bruno Haible  <bruno@clisp.org>
14075
14076         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
14077         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
14078
14079 2007-06-26  Karl Berry  <karl@gnu.org>
14080
14081         * MODULES.html.sh: remove xreadlink-with-size.
14082
14083 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
14084
14085         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
14086         method that I hope also handles the double-include problem noted
14087         by Bruno Haible in
14088         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
14089
14090 2007-06-23  Bruno Haible  <bruno@clisp.org>
14091
14092         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
14093         Don't let the 'mostlyclean' target fail if the last subdirectory could
14094         not be removed.
14095         Reported by Karl Berry.
14096
14097 2007-06-23  Bruno Haible  <bruno@clisp.org>
14098
14099         * gnulib-tool (echo): Add a speedier workaround for ksh.
14100         * tests/test-echo.sh: Likewise.
14101
14102 2007-06-23  Bruno Haible  <bruno@clisp.org>
14103
14104         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
14105         * tests/test-echo.sh: Likewise.
14106
14107 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14108
14109         * gnulib-tool (IFS): Initialize early, so we don't set it to
14110         empty later.
14111         (self_abspathname): Rewrite algorithm to set it, reindent.
14112         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
14113         (func_create_megatestdir): Merge some sed scripts.
14114
14115 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
14116
14117         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
14118         exposed by Sun Studio 11 cc on Solaris 8.
14119
14120 2007-06-22  Bruno Haible  <bruno@clisp.org>
14121
14122         * gnulib-tool (echo): Ensure the echo primitive does not interpret
14123         backslashes.
14124         * tests/test-echo.sh: New file.
14125
14126 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14127
14128         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
14129         simplify `sed_replace_build_aux' scripts, they are portable but
14130         echoing them with `echo' is not.
14131         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
14132
14133 2007-06-21  Karl Berry  <karl@gnu.org>
14134
14135         * config/srclist.txt: guess we can't handle the licenses via
14136         srclist at the moment.
14137
14138 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
14139
14140         * MODULES.html.sh: Add include_next.
14141         * modules/include_next: New file.
14142
14143 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
14144
14145         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
14146         INCLUDE_NEXT.
14147         (gl_CHECK_NEXT_HEADERS): New macro.
14148         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
14149         the obsolescent gl_ABSOLUTE_HEADER.
14150         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
14151         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
14152         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
14153         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
14154         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
14155         * m4/math_h.m4 (gl_MATH_H): Likewise.
14156         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
14157         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
14158         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
14159         * m4/stdint.m4 (gl_STDINT_H): Likewise.
14160         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
14161         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
14162         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
14163         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
14164         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
14165         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
14166         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
14167         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
14168         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
14169         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
14170         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
14171         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
14172         * m4/inttypes.m4 (gl_INTTYPES_H): Define
14173         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
14174         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
14175         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
14176         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
14177         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
14178         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
14179         * lib/float_.h: Likewise.
14180         * lib/inttypes_.h: Likewise.
14181         * lib/math_.h: Likewise.
14182         * lib/search_.h: Likewise.
14183         * lib/signal_.h: Likewise.
14184         * lib/stdint_.h: Likewise.
14185         * lib/stdio_.h: Likewise.
14186         * lib/stdlib_.h: Likewise.
14187         * lib/string_.h: Likewise.
14188         * lib/sys_stat_.h: Likewise.
14189         * lib/sys_time_.h: Likewise.
14190         * lib/time_.h: Likewise.
14191         * lib/unistd_.h: Likewise.
14192         * lib/wchar_.h: Likewise.
14193         * lib/wctype_.h: Likewise.
14194         * lib/dirent_.h: Likewise.
14195         * lib/iconv_.h: Likewise.
14196         * lib/locale_.h: Likewise.
14197         * lib/netinet_in_.h: Likewise.
14198         * lib/sys_select_.h: Likewise.
14199         * lib/sys_socket_.h: Likewise.
14200         * lib/sysexits_.h: Likewise.
14201         * modules/fcntl (Depends-on): Depend on include_next, not
14202         absolute_header.
14203         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
14204         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
14205         * modules/fchdir: Likewise.
14206         * modules/float: Likewise.
14207         * modules/iconv_open: Likewise.
14208         * modules/inttypes: Likewise.
14209         * modules/locale: Likewise.
14210         * modules/math: Likewise.
14211         * modules/netinet_in: Likewise.
14212         * modules/search: Likewise.
14213         * modules/signal: Likewise.
14214         * modules/stdint: Likewise.
14215         * modules/stdio: Likewise.
14216         * modules/stdlib: Likewise.
14217         * modules/string: Likewise.
14218         * modules/sys_select: Likewise.
14219         * modules/sys_socket: Likewise.
14220         * modules/sys_stat: Likewise.
14221         * modules/sys_time: Likewise.
14222         * modules/sysexits: Likewise.
14223         * modules/time: Likewise.
14224         * modules/unistd: Likewise.
14225         * modules/wchar: Likewise.
14226         * modules/wctype: Likewise.
14227         * modules/sys_stat: Change maintainer to "all".
14228         * modules/unistd: Likewise.
14229
14230 2007-06-20  Karl Berry  <karl@gnu.org>
14231
14232         * config/srclist.txt: track www changes in license files.
14233
14234 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
14235
14236         * build-aux/bootstrap: Remove stray dot.
14237         Make sure build_aux settings are honored when linking
14238         gnulib_extra_files.
14239
14240 2007-06-19  Eric Blake  <ebb9@byu.net>
14241
14242         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
14243         Allow compilation on cygwin.
14244
14245 2007-06-19  Jim Meyering  <jim@meyering.net>
14246
14247         xreadlink-with-size: Remove module.  No longer used.
14248         Ex-callers now use xreadlink or mreadlink-with-size.
14249         * modules/xreadlink-with-size: Remove module.
14250         * lib/xreadlink-with-size.c: Remove file.
14251         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
14252         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
14253         just before the function definition *is* accurate.
14254
14255         Eliminate one way canonicalize_filename_mode could exit.
14256         * lib/canonicalize.c (canonicalize_filename_mode):
14257         Use mreadlink_with_size, not xreadlink_with_size.
14258
14259 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
14260
14261         Detect porting problems to FreeBSD/arm, which has time_t wider than
14262         long int.  Original problem reported for GNU diff by Xin Li in
14263         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
14264         * modules/getdate (Depends-on): Add intprops, verify.
14265         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
14266         is an integer type no wider than long int.
14267
14268 2007-06-18  Jim Meyering  <jim@meyering.net>
14269
14270         New module: mreadlink-with-size.
14271         * MODULES.html.sh: Add mreadlink-with-size.
14272         * modules/mreadlink-with-size: New module
14273         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
14274         not xreadlink-with-size.
14275         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
14276
14277 2007-06-16  Bruno Haible  <bruno@clisp.org>
14278
14279         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
14280         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
14281         Reported by Gary V. Vaughan <gary@gnu.org>.
14282
14283 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
14284
14285         Revamp lchown so that it lives in unistd.h where it belongs.
14286         * lib/lchown.h: Remove.
14287         * lib/dirchownmod.c: Don't include lib/lchown.h.
14288         * lib/fchownat.c: Likewise.
14289         * lib/openat.c: Likewise.
14290         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
14291         does not follow symlinks.
14292         (EOPNOTSUPP): Define if not defined.
14293         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
14294         is defined to 0.
14295         (lchown): New decl.
14296         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
14297         Do not check for lchown decl.
14298         Set REPLACE_LCHOWN.
14299         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
14300         REPLACE_LCHOWN.
14301         * modules/chown: Make it clear it follows symlinks.
14302         * modules/lchown: Make it clear it doesn't follow symlinks.
14303         (Files): Remove lib/lchown.h
14304         (Depends-on): Add unistd.
14305         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
14306         (Include): Include <unistd.h>, not "lchown.h".
14307         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
14308         REPLACE_LCHOWN.
14309
14310 2007-06-15  Jim Meyering  <jim@meyering.net>
14311
14312         Change license (GPL to LGPL) of fsusage and dependents.
14313         * modules/fsusage (License): Change to LGPL.
14314         * modules/full-read (License): Likewise.
14315         * modules/full-write (License): Likewise.
14316         * modules/safe-read (License): Likewise.
14317         * modules/safe-write (License): Likewise.
14318
14319 2007-06-14  Ben Pfaff  <blp@gnu.org>
14320
14321         Missing part of allocsa -> malloca transition.
14322         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
14323         gl_MALLOCA.
14324
14325 2007-06-12  Bruno Haible  <bruno@clisp.org>
14326
14327         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
14328         to ia64, x86_64, i386.
14329         Reported by Eric Blake.
14330
14331 2007-06-12  Bruno Haible  <bruno@clisp.org>
14332
14333         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
14334         cross-compiling to x86_64.
14335
14336 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
14337
14338         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
14339         glitch reported by Ralf Wildenhues in
14340         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
14341
14342         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
14343         Vin Shelton.
14344
14345 2007-06-11  Bruno Haible  <bruno@clisp.org>
14346
14347         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
14348         replacement string.
14349         Reported by Eric Blake.
14350
14351 2007-06-10  Bruno Haible  <bruno@clisp.org>
14352
14353         Prepare vasnprintf code for use with Unicode strings.
14354         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
14355         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
14356         TYPE_U32_STRING.
14357         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
14358         a_u32_string variants.
14359         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
14360         * lib/printf-args.c: Don't include config.h and the specification
14361         header if PRINTF_FETCHARGS is already defined.
14362         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
14363         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
14364         TYPE_U16_STRING, TYPE_U32_STRING.
14365         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
14366         u16_directive, u16_directives, u32_directive, u32_directives): New
14367         types.
14368         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
14369         New declarations.
14370         * lib/printf-parse.c: Don't include config.h and the specification
14371         header if PRINTF_PARSE is already defined. Eliminate the set of
14372         parameters for WIDE_CHAR_VERSION; the user of this file must provide
14373         them now. Include c-ctype.h.
14374         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
14375         directive and CHAR_T_ONLY_ASCII.
14376         * lib/vasnprintf.c: Don't include config.h and the specification header
14377         if VASNPRINTF is already defined.
14378         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
14379         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
14380         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
14381         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
14382         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
14383         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
14384         code accordingly.
14385         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
14386         pad_ourselves also in this case, with the 'c' and 's' directives, and
14387         with a different notion of "width".
14388         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
14389
14390 2007-06-10  Bruno Haible  <bruno@clisp.org>
14391
14392         * modules/unistr/u32-mbsnlen: New file.
14393         * lib/unistr/u32-mbsnlen.c: New file.
14394
14395         * modules/unistr/u16-mbsnlen: New file.
14396         * lib/unistr/u16-mbsnlen.c: New file.
14397
14398         * modules/unistr/u8-mbsnlen: New file.
14399         * lib/unistr/u8-mbsnlen.c: New file.
14400
14401         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
14402         declarations.
14403
14404 2007-06-10  Bruno Haible  <bruno@clisp.org>
14405
14406         * lib/string_.h (mbsnlen): New declaration.
14407         * lib/mbsnlen.c: New file.
14408         * m4/mbsnlen.m4: New file.
14409         * modules/mbsnlen: New file.
14410         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
14411         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
14412         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
14413
14414 2007-06-10  Bruno Haible  <bruno@clisp.org>
14415
14416         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
14417
14418 2007-06-10  Bruno Haible  <bruno@clisp.org>
14419
14420         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
14421         * lib/mbuiter.h: Likewise.
14422
14423 2007-06-10  Bruno Haible  <bruno@clisp.org>
14424
14425         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
14426         declaration.
14427
14428 2007-06-10  Karl Berry  <karl@gnu.org>
14429
14430         * config/srclist.txt: remove gettext entries, Bruno prefers
14431         to update individually.
14432
14433 2007-06-10  Bruno Haible  <bruno@clisp.org>
14434
14435         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
14436         'maxlen'. Ensure only length + width bytes are allocated, not
14437         length + 1 + width.
14438
14439 2007-06-09  Bruno Haible  <bruno@clisp.org>
14440
14441         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
14442         (CHAR_T): Remove macro.
14443         (VASNPRINTF): Update.
14444
14445 2007-06-09  Bruno Haible  <bruno@clisp.org>
14446
14447         * MODULES.html.sh (Unicode string functions): Add the new modules.
14448
14449         * modules/uniconv/u32-conv-to-enc: New file.
14450         * lib/uniconv/u32-conv-to-enc.c: New file.
14451         * modules/uniconv/u32-conv-to-enc-tests: New file.
14452         * tests/uniconv/test-u32-conv-to-enc.c: New file.
14453
14454         * modules/uniconv/u16-conv-to-enc: New file.
14455         * lib/uniconv/u16-conv-to-enc.c: New file.
14456         * lib/uniconv/u-conv-to-enc.h: New file.
14457         * modules/uniconv/u16-conv-to-enc-tests: New file.
14458         * tests/uniconv/test-u16-conv-to-enc.c: New file.
14459
14460         * modules/uniconv/u8-conv-to-enc: New file.
14461         * lib/uniconv/u8-conv-to-enc.c: New file.
14462         * modules/uniconv/u8-conv-to-enc-tests: New file.
14463         * tests/uniconv/test-u8-conv-to-enc.c: New file.
14464
14465         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
14466         u32_conv_to_encoding): New declarations.
14467
14468 2007-06-09  Bruno Haible  <bruno@clisp.org>
14469
14470         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
14471
14472 2007-06-09  Bruno Haible  <bruno@clisp.org>
14473
14474         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
14475         * modules/malloca: Renamed from modules/allocsa, updated.
14476         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
14477         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
14478         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
14479         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
14480         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
14481         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
14482         * modules/xmalloca: Renamed from modules/xallocsa, updated.
14483         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
14484         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
14485         * modules/c-strcasestr (Depends-on): Update.
14486         * lib/c-strcasestr.c: Update.
14487         * modules/c-strstr (Depends-on): Update.
14488         * lib/c-strstr.c: Update.
14489         * modules/canonicalize-lgpl (Depends-on): Update.
14490         * lib/canonicalize-lgpl.c: Update.
14491         * modules/clean-temp (Depends-on): Update.
14492         * lib/clean-temp.c: Update.
14493         * modules/csharpcomp (Depends-on): Update.
14494         * lib/csharpcomp.c: Update.
14495         * modules/csharpexec (Depends-on): Update.
14496         * lib/csharpexec.c: Update.
14497         * modules/javacomp (Depends-on): Update.
14498         * lib/javacomp.c: Update.
14499         * modules/javaexec (Depends-on): Update.
14500         * lib/javaexec.c: Update.
14501         * modules/mbscasestr (Depends-on): Update.
14502         * lib/mbscasestr.c: Update.
14503         * modules/mbsstr (Depends-on): Update.
14504         * lib/mbsstr.c: Update.
14505         * modules/setenv (Depends-on): Update.
14506         * lib/setenv.c: Update.
14507         * modules/strcasestr (Depends-on): Update.
14508         * lib/strcasestr.c: Update.
14509         * modules/striconveha (Depends-on): Update.
14510         * lib/striconveha.c: Update.
14511         * modules/relocatable-prog-wrapper (Files): Update.
14512         * lib/relocwrapper.c: Update.
14513         * build-aux/install-reloc: Update.
14514         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
14515
14516 2007-06-08  Bruno Haible  <bruno@clisp.org>
14517
14518         Port to uClibc.
14519         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
14520         * lib/fpurge.c (fpurge): Likewise.
14521         * lib/freading.c (freading): Likewise.
14522         * lib/fseeko.c (rpl_fseeko): Likewise.
14523         * lib/fseterr.c (fseterr): Likewise.
14524         * lib/fwriting.c (fwriting): Likewise.
14525         * tests/test-fflush.c (main): Avoid a failure on uClibc.
14526
14527 2007-06-08  Bruno Haible  <bruno@clisp.org>
14528
14529         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
14530         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
14531         * modules/gettext (Files): Add m4/intlmacosx.m4.
14532
14533 2007-06-07  Bruno Haible  <bruno@clisp.org>
14534
14535         * modules/localename-tests: New file.
14536         * tests/test-localename.c: New file.
14537
14538         New module 'localename'.
14539         * lib/localename.h: New file.
14540         * lib/localename.c: New file, from GNU gettext.
14541         * m4/localename.m4: New file.
14542         * modules/localename: New file.
14543
14544 2007-06-07  Bruno Haible  <bruno@clisp.org>
14545
14546         Work around the lack of <wchar.h> on some builds of uClibc.
14547         * doc/headers/wchar.texi: Update.
14548         * lib/wchar_.h: Include <wchar.h> only if it exists.
14549         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
14550         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
14551         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
14552         doesn't exist.
14553         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
14554         * modules/mbfile (Depends-on): Add wchar.
14555         * modules/mbiter (Depends-on): Likewise.
14556         * modules/mbuiter (Depends-on): Likewise.
14557         Reported by Simon Josefsson.
14558
14559 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
14560
14561         Work around problem reported by Steven M. Schweda in
14562         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
14563         Tru64 5.1B with the Compaq compiler environment installed declares
14564         an 'isblank' function but does not define it in the C library.
14565         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
14566         * lib/regex_internal.h (isblank): Likewise.
14567         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
14568         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
14569
14570 2007-06-05  Bruno Haible  <bruno@clisp.org>
14571
14572         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
14573         ia64.
14574         * modules/printf-safe: New file.
14575         * modules/fprintf-posix (Depends-on): Add printf-safe.
14576         * modules/printf-posix (Depends-on): Likewise.
14577         * modules/snprintf-posix (Depends-on): Likewise.
14578         * modules/sprintf-posix (Depends-on): Likewise.
14579         * modules/vasnprintf-posix (Depends-on): Likewise.
14580         * modules/vasprintf-posix (Depends-on): Likewise.
14581         * modules/vfprintf-posix (Depends-on): Likewise.
14582         * modules/vprintf-posix (Depends-on): Likewise.
14583         * modules/vsnprintf-posix (Depends-on): Likewise.
14584         * modules/vsprintf-posix (Depends-on): Likewise.
14585         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
14586         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
14587         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
14588         "no" on i386, x86_64, ia64.
14589         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
14590         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
14591         on i386, x86_64, ia64.
14592         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
14593         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
14594         on i386, x86_64, ia64.
14595         * tests/test-vasnprintf-posix.c: Include float.h.
14596         (LDBL80_WORDS): New macro.
14597         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
14598         on i386, x86_64, ia64.
14599         * tests/test-vasprintf-posix.c: Include float.h.
14600         (LDBL80_WORDS): New macro.
14601         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
14602         on i386, x86_64, ia64.
14603         * tests/test-snprintf-posix.c: Include float.h.
14604         * tests/test-sprintf-posix.c: Likewise.
14605         * tests/test-vsnprintf-posix.c: Likewise.
14606         * tests/test-vsprintf-posix.c: Likewise.
14607
14608 2007-06-05  Bruno Haible  <bruno@clisp.org>
14609
14610         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
14611         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
14612         non-IEEE numbers on i386, x86_64, ia64.
14613         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
14614         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
14615         * tests/test-isnanl.h: Include float.h.
14616         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
14617
14618 2007-06-05  Bruno Haible  <bruno@clisp.org>
14619
14620         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
14621         also the %a / %A. Handle the %a / %A code before this extra handling.
14622
14623 2007-06-05  Bruno Haible  <bruno@clisp.org>
14624
14625         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
14626         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
14627
14628 2007-06-05  Bruno Haible  <bruno@clisp.org>
14629
14630         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
14631         typo in variable name.
14632
14633 2007-06-05  Eric Blake  <ebb9@byu.net>
14634
14635         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
14636         Reported by Simon Josefsson.
14637
14638 2007-06-04  Bruno Haible  <bruno@clisp.org>
14639
14640         Avoid test failures on some PowerPC platforms.
14641         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
14642         Define differently for PowerPC.
14643         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
14644         Reported by Gary V. Vaughan <gary@gnu.org>.
14645
14646 2007-06-02  Bruno Haible  <bruno@clisp.org>
14647
14648         Fix test-stdint failure on FreeBSD/ia64.
14649         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
14650         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
14651         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
14652         * doc/headers/stdint.texi: Update.
14653
14654 2007-06-01  Bruno Haible  <bruno@clisp.org>
14655
14656         * tests/test-binary-io.c (main): Pass a third argument to open().
14657         Reported by Gary V. Vaughan <gary@gnu.org>.
14658
14659 2007-06-01  Bruno Haible  <bruno@clisp.org>
14660
14661         * doc/functions/frexpl.texi: Update for mingw.
14662
14663 2007-06-01  Bruno Haible  <bruno@clisp.org>
14664
14665         * tests/test-lseek.c (main): Disable test of errno for invalid third
14666         argument.
14667         * doc/functions/lseek.texi: Update.
14668         Reported by Gary V. Vaughan <gary@gnu.org>.
14669
14670 2007-05-28  Bruno Haible  <bruno@clisp.org>
14671
14672         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
14673
14674 2007-05-31  Eric Blake  <ebb9@byu.net>
14675
14676         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
14677         cross compiling.
14678
14679 2007-05-30  Eric Blake  <ebb9@byu.net>
14680         and Bruno Haible  <bruno@clisp.org>
14681
14682         Work around mingw test failures exposed by m4-1.4.9b.
14683         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
14684         * tests/test-unistd.c: Disable uid_t and git_t tests for the
14685         moment.
14686
14687 2007-05-30  Bruno Haible  <bruno@clisp.org>
14688
14689         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
14690         assuming that they are closed. Needed on HP-UX 11.
14691
14692 2007-05-29  Bruno Haible  <bruno@clisp.org>
14693
14694         Fix a problem with #include_next.
14695         * lib/dirent_.h: Split the double-inclusion guard.
14696         * lib/fcntl_.h: Likewise.
14697         * lib/float_.h: Likewise.
14698         * lib/iconv_.h: Likewise.
14699         * lib/inttypes_.h: Likewise.
14700         * lib/locale_.h: Likewise.
14701         * lib/math_.h: Likewise.
14702         * lib/netinet_in_.h: Likewise.
14703         * lib/search_.h: Likewise.
14704         * lib/signal_.h: Likewise.
14705         * lib/stdint_.h: Likewise.
14706         * lib/stdio_.h: Likewise.
14707         * lib/stdlib_.h: Likewise.
14708         * lib/string_.h: Likewise.
14709         * lib/sys_select_.h: Likewise.
14710         * lib/sys_socket_.h: Likewise.
14711         * lib/sys_stat_.h: Likewise.
14712         * lib/sys_time_.h: Likewise.
14713         * lib/sysexits_.h: Likewise.
14714         * lib/time_.h: Likewise.
14715         * lib/unistd_.h: Likewise.
14716         * lib/wchar_.h: Likewise.
14717         * lib/wctype_.h: Likewise.
14718
14719 2007-05-29  Bruno Haible  <bruno@clisp.org>
14720
14721         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
14722         for the moment.
14723
14724 2007-05-29  Bruno Haible  <bruno@clisp.org>
14725
14726         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
14727         invocation.
14728         Reported by Eric Blake.
14729
14730 2007-05-29  Bruno Haible  <bruno@clisp.org>
14731
14732         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
14733         compiling case.
14734
14735 2007-05-29  Eric Blake  <ebb9@byu.net>
14736             Bruno Haible  <bruno@clisp.org>
14737
14738         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
14739         cross compiles.
14740
14741 2007-05-28  Eric Blake  <ebb9@byu.net>
14742
14743         * modules/closein-tests (test_closein_LDADD): Support test on
14744         cygwin with libtool.
14745
14746 2007-05-28  Bruno Haible  <bruno@clisp.org>
14747
14748         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
14749         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
14750         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
14751         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
14752         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
14753         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
14754         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
14755         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
14756         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
14757
14758 2007-05-28  Eric Blake  <ebb9@byu.net>
14759
14760         Unconditionally include <config.h> in unit tests.
14761         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
14762         * tests/test-allocsa.c, tests/test-arcfour.c,
14763         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
14764         tests/test-array_list.c, tests/test-array_oset.c,
14765         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
14766         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
14767         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
14768         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
14769         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
14770         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
14771         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
14772         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
14773         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
14774         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
14775         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
14776         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
14777         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
14778         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
14779         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
14780         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
14781         test-md5.c, test-memmem.c, test-printf-posix.c,
14782         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
14783         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
14784         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
14785         test-strcasestr.c, test-striconv.c, test-striconveh.c,
14786         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
14787         test-vasnprintf-posix2.c, test-vasnprintf.c,
14788         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
14789         test-vfprintf-posix.c, test-vprintf-posix.c,
14790         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
14791         test-xvasprintf.c: Likewise.
14792
14793 2007-05-28  Bruno Haible  <bruno@clisp.org>
14794
14795         * gnulib-tool (func_import): Remember the --with-tests command-line
14796         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
14797         Reported by Eric Blake.
14798
14799 2007-05-28  Bruno Haible  <bruno@clisp.org>
14800
14801         * modules/ftell-tests: New file.
14802         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
14803         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
14804
14805         * lib/ftell.c: New file.
14806         * modules/ftell: New file.
14807         * m4/ftell.m4: New file.
14808         * doc/functions/ftell.texi: Update.
14809         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
14810         REPLACE_FTELL.
14811         * lib/stdio_.h (rpl_ftell): New declaration.
14812         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
14813         REPLACE_FTELL.
14814
14815 2007-05-28  Eric Blake  <ebb9@byu.net>
14816
14817         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
14818
14819 2007-05-28  Bruno Haible  <bruno@clisp.org>
14820
14821         * modules/fseek-tests: New file.
14822         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
14823         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
14824
14825         * lib/fseek.c: New file.
14826         * modules/fseek: New file.
14827         * m4/fseek.m4: New file.
14828         * doc/functions/fseek.texi: Update.
14829         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
14830         REPLACE_FSEEK.
14831         * lib/stdio_.h (rpl_fseek): New declaration.
14832         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
14833         REPLACE_FSEEK.
14834
14835 2007-05-28  Bruno Haible  <bruno@clisp.org>
14836
14837         * lib/stdio_.h (fflush): More comments.
14838
14839 2007-05-28  Bruno Haible  <bruno@clisp.org>
14840
14841         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
14842         runtime test.
14843
14844 2007-05-28  Eric Blake  <ebb9@byu.net>
14845
14846         Improve lseek module.
14847         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
14848         * lib/unistd_.h (lseek): Scale back link warning message.
14849         * tests/test-lseek.c: Beef up test.
14850         * tests/test-lseek.sh: Exercise more facets of lseek.
14851         Reported by Bruno Haible.
14852
14853 2007-05-28  Bruno Haible  <bruno@clisp.org>
14854
14855         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
14856         to define.
14857
14858 2007-05-27  Bruno Haible  <bruno@clisp.org>
14859
14860         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
14861
14862 2007-05-27  Bruno Haible  <bruno@clisp.org>
14863
14864         * modules/openmp: New file.
14865         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
14866         Noah Misch.
14867
14868 2007-05-26  Bruno Haible  <bruno@clisp.org>
14869
14870         * modules/chdir-long (Depends-on): Add fchdir.
14871         * modules/chdir-safer (Depends-on): Likewise.
14872         * modules/fts (Depends-on): Likewise.
14873         * modules/fts-lgpl (Depends-on): Likewise.
14874         * modules/openat (Depends-on): Likewise.
14875         * modules/savewd (Depends-on): Likewise.
14876
14877 2007-05-24  Eric Blake  <ebb9@byu.net>
14878
14879         Fix lseek on mingw.
14880         * modules/lseek: New module.
14881         * m4/lseek.m4: New file.
14882         * lib/lseek.c: New file.
14883         * modules/lseek-tests: New file.
14884         * tests/test-lseek.c: New file.
14885         * tests/test-lseek.sh: New file.
14886         * MODULES.html.sh: Document lseek module.
14887         * modules/fflush (Depends-on): Add lseek, fseeko.
14888         * modules/fseeko (Depends-on): Likewise.
14889         * modules/ftello (Depends-on): Likewise.
14890         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
14891         broken.
14892         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
14893         broken.
14894         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
14895         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
14896         * lib/ftello.c (rpl_ftello): Likewise.
14897         * tests/test-fseeko.c (main): Test this.
14898         * tests/test-fseeko.sh: Likewise.
14899         * tests/test-ftello.c (main): Likewise.
14900         * tests/test-ftello.sh: Likewise.
14901         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
14902         implies replacing fseek.
14903         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
14904         HAVE_FTELLO.
14905         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
14906         * modules/unistd (Makefile.am): Likewise.
14907         * lib/unistd_.h (lseek): Declare a replacement.
14908         * doc/functions/lseek.texi (lseek): Document this fix.
14909         * doc/functions/fseek.texi (fseek): Likewise.
14910         * doc/functions/ftell.texi (ftell): Likewise.
14911
14912 2007-05-24  Bruno Haible  <bruno@clisp.org>
14913
14914         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
14915         in the printed representation of a NaN.
14916         * tests/test-vasprintf-posix.c (test_function): Likewise.
14917         * tests/test-snprintf-posix.h (test_function): Likewise.
14918         * tests/test-sprintf-posix.h (test_function): Likewise.
14919         Reported by Eric Blake.
14920
14921 2007-05-23  Eric Blake  <ebb9@byu.net>
14922
14923         Fix fseeko/ftello on cygwin 1.5.24.
14924         * doc/functions/fseeko.texi (fseeko): Document the fix.
14925         * doc/functions/ftello.texi (ftello): Document the fix.
14926         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
14927         * doc/functions/stdout.text (stdout): New file.
14928         * doc/functions/stderr.text (stderr): New file.
14929         * doc/gnulib.texi (Function Substitutes): Use new files.
14930         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
14931         prior to 1.7.0.
14932         * tests/test-ftello.c (main): Likewise for ftello.
14933         * tests/test-fseeko.sh: New file.
14934         * tests/test-ftello.sh: New file.
14935         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
14936         with seekable stdin.
14937         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
14938         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
14939         (gl_REPLACE_FSEEKO): New macro.
14940         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
14941         * modules/fseeko (Files): Distribute fseeko.c.
14942         * modules/ftello (Files): Distribute ftello.c.
14943         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
14944         mode.
14945         * lib/ftello.c (rpl_ftello): New file.
14946         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
14947         fseeko, ftello.
14948         (gl_STDIN_LARGE_OFFSET): New macro.
14949         * modules/stdio (Makefile.am): Perform the replacement.
14950         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
14951
14952 2007-05-23  Bruno Haible  <bruno@clisp.org>
14953
14954         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
14955         GNULIB_POSIXCHECK is defined.
14956
14957 2007-05-21  Bruno Haible  <bruno@clisp.org>
14958
14959         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
14960         Check also the output for NaN arguments. When cross-compiling, guess
14961         no on IRIX.
14962         * lib/vasnprintf.c: Update comments.
14963         * tests/test-vasnprintf-posix.c (strisnan): New function.
14964         (test_function): Use it.
14965         * tests/test-vasprintf-posix.c (strisnan): New function.
14966         (test_function): Use it.
14967         * tests/test-snprintf-posix.h (strisnan): New function.
14968         (test_function): Use it.
14969         * tests/test-sprintf-posix.h (strisnan): New function.
14970         (test_function): Use it.
14971         Reported by Eric Blake.
14972
14973 2007-05-20  Bruno Haible  <bruno@clisp.org>
14974
14975         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
14976         numbers that fails on BeOS.
14977         * doc/functions/frexpl.texi: Update.
14978
14979 2007-05-20  Jim Meyering  <jim@meyering.net>
14980
14981         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
14982         forced upon us by glibc-2.6.
14983
14984 2007-05-20  Bruno Haible  <bruno@clisp.org>
14985
14986         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
14987         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
14988         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
14989         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
14990         NEED_PRINTF_INFINITE.
14991         (is_infinitel): New function.
14992         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
14993         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
14994         gl_PREREQ_VASNPRINTF_INFINITE.
14995         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
14996         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
14997         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
14998         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
14999         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
15000         gl_PREREQ_VASNPRINTF_INFINITE.
15001         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
15002         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
15003         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
15004         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
15005         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
15006         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
15007         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
15008         * doc/functions/fprintf.texi: Update.
15009         * doc/functions/printf.texi: Update.
15010         * doc/functions/snprintf.texi: Update.
15011         * doc/functions/sprintf.texi: Update.
15012         * doc/functions/vfprintf.texi: Update.
15013         * doc/functions/vprintf.texi: Update.
15014         * doc/functions/vsnprintf.texi: Update.
15015         * doc/functions/vsprintf.texi: Update.
15016
15017 2007-05-20  Bruno Haible  <bruno@clisp.org>
15018
15019         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
15020         was not found in libc.
15021         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
15022
15023 2007-05-20  Bruno Haible  <bruno@clisp.org>
15024
15025         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
15026         printed as "-nan" instead of "nan".
15027         * tests/test-vasprintf-posix.c (test_function): Likewise.
15028         * tests/test-snprintf-posix.h (test_function): Likewise.
15029         * tests/test-sprintf-posix.h (test_function): Likewise.
15030         Needed for HP-UX 11.
15031
15032 2007-05-20  Jim Meyering  <jim@meyering.net>
15033
15034         Fix buggy test for the fchownat-deref bug.
15035         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
15036         symlink required for the run-test.  Without it, this test would
15037         always declare that fchownat doesn't work, and client code would
15038         unnecessarily use the replacement function with fixed libc.
15039         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
15040         Reported by Greg Schafer.
15041
15042 2007-05-19  Bruno Haible  <bruno@clisp.org>
15043
15044         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
15045         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
15046         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
15047         Needed for IRIX 6.5 and Solaris 2.5.1.
15048
15049 2007-05-19  Bruno Haible  <bruno@clisp.org>
15050
15051         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
15052         (test_function): Skip tests involving -0.0 on platforms where
15053         -0.0 = 0.0.
15054         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
15055         (test_function): Skip tests involving -0.0 on platforms where
15056         -0.0 = 0.0.
15057         * tests/test-snprintf-posix.h (have_minus_zero): New function.
15058         (test_function): Skip tests involving -0.0 on platforms where
15059         -0.0 = 0.0.
15060         * tests/test-sprintf-posix.h (have_minus_zero): New function.
15061         (test_function): Skip tests involving -0.0 on platforms where
15062         -0.0 = 0.0.
15063         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
15064         tests.
15065         * tests/test-printf-posix.h (test_function): Likewise.
15066         * tests/test-printf-posix.output: Remove all -0.0 related results.
15067         Needed for IRIX 6.5.
15068
15069 2007-05-19  Bruno Haible  <bruno@clisp.org>
15070
15071         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
15072         printed as "nan0x7fffffff" instead of "nan".
15073         * tests/test-vasprintf-posix.c (test_function): Likewise.
15074         * tests/test-snprintf-posix.h (test_function): Likewise.
15075         * tests/test-sprintf-posix.h (test_function): Likewise.
15076         * tests/test-fprintf-posix.h (NaN): Remove macro.
15077         (test_function): Remove all NaN related tests.
15078         * tests/test-printf-posix.h (NaN): Remove macro.
15079         (test_function): Remove all NaN related tests.
15080         * tests/test-printf-posix.output: Remove all NaN related results.
15081         Needed for IRIX 6.5.
15082
15083 2007-05-19  Bruno Haible  <bruno@clisp.org>
15084
15085         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
15086         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
15087
15088 2007-05-19  Bruno Haible  <bruno@clisp.org>
15089
15090         * lib/float_.h: New file.
15091         * m4/float_h.m4: New file.
15092         * modules/float: New file.
15093         * modules/isnanl (Dependencies): Add float.
15094         * modules/isnanl-nolibm (Dependencies): Likewise.
15095         * modules/mathl (Dependencies): Likewise.
15096         * modules/printf-frexpl (Dependencies): Likewise.
15097         * modules/signbit (Dependencies): Likewise.
15098         * modules/vasnprintf (Dependencies): Likewise.
15099         * doc/headers/float.texi: Update.
15100
15101 2007-05-19  Jim Meyering  <jim@meyering.net>
15102
15103         * lib/utimens.c (gl_futimens): Rename from futimens,
15104         now that glibc-2.6 declares futimens.
15105         * lib/utimens.h: Likewise.
15106
15107 2007-05-19  Bruno Haible  <bruno@clisp.org>
15108
15109         Avoid test failures on mingw.
15110         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
15111         * tests/test-printf-posix.sh: Likewise.
15112         * tests/test-vfprintf-posix.sh: Likewise.
15113         * tests/test-vprintf-posix.sh: Likewise.
15114
15115 2007-05-19  Bruno Haible  <bruno@clisp.org>
15116
15117         Fix *printf result for NaN, Inf, -0.0 on mingw.
15118         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
15119         * lib/vasnprintf.c: Include math.h and isnan.h.
15120         (is_infinite_or_zero): New function.
15121         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
15122         values in the %f, %F, %e, %E, %g, %G directives.
15123         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
15124         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
15125         gl_PRINTF_INFINITE and test its result. Invoke
15126         gl_PREREQ_VASNPRINTF_INFINITE.
15127         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
15128         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
15129         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
15130         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
15131         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
15132         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
15133         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
15134         * doc/functions/fprintf.texi: Update.
15135         * doc/functions/printf.texi: Update.
15136         * doc/functions/snprintf.texi: Update.
15137         * doc/functions/sprintf.texi: Update.
15138         * doc/functions/vfprintf.texi: Update.
15139         * doc/functions/vprintf.texi: Update.
15140         * doc/functions/vsnprintf.texi: Update.
15141         * doc/functions/vsprintf.texi: Update.
15142
15143 2007-05-19  Bruno Haible  <bruno@clisp.org>
15144
15145         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
15146         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
15147         Instead of multiplying with 10^k, set extra_zeroes to k.
15148         (scale10_round_long_double): Remove function.
15149
15150 2007-05-18  Bruno Haible  <bruno@clisp.org>
15151
15152         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
15153         introduced on 2007-05-06.
15154
15155 2007-05-18  Bruno Haible  <bruno@clisp.org>
15156
15157         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
15158         %g directives.
15159         * tests/test-vasprintf-posix.c (test_function): Likewise.
15160         * tests/test-snprintf-posix.h (test_function): Likewise.
15161         * tests/test-sprintf-posix.h (test_function): Likewise.
15162
15163 2007-05-18  Bruno Haible  <bruno@clisp.org>
15164
15165         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
15166         (strmatch): New function.
15167         (test_function): Test the %f directive on numbers of various exponents.
15168         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
15169         (strmatch): New function.
15170         (test_function): Test the %f directive on numbers of various exponents.
15171         * tests/test-snprintf-posix.h (strmatch): New function.
15172         (test_function): Test the %f directive on numbers of various exponents.
15173         * tests/test-sprintf-posix.h (strmatch): New function.
15174         (test_function): Test the %f directive on numbers of various exponents.
15175         * tests/test-snprintf-posix.c (SIZEOF): New macro.
15176         * tests/test-sprintf-posix.c (SIZEOF): New macro.
15177         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
15178         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
15179
15180 2007-05-18  Bruno Haible  <bruno@clisp.org>
15181
15182         Add support for 'long double' number output.
15183         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
15184         * lib/vasnprintf.c: Include math.h and float+.h.
15185         (mp_limb_t): New type.
15186         (GMP_LIMB_BITS): New macro.
15187         (mp_twolimb_t): New type.
15188         (GMP_TWOLIMB_BITS): New macro.
15189         (mpn_t): New type.
15190         (multiply, divide, convert_to_decimal, decode_long_double,
15191         scale10_round_long_double, scale10_round_decimal_long_double,
15192         floorlog10l): New functions.
15193         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
15194         for the %f, %F, %e, %E, %g, %G directives.
15195         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
15196         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
15197         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
15198         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
15199         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
15200         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
15201         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
15202         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
15203         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
15204         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
15205         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
15206         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
15207         * modules/snprintf-posix (Depends-on): Likewise.
15208         * modules/sprintf-posix (Depends-on): Likewise.
15209         * modules/vasnprintf-posix (Depends-on): Likewise.
15210         * modules/vasprintf-posix (Depends-on): Likewise.
15211         * modules/vfprintf-posix (Depends-on): Likewise.
15212         * modules/vsnprintf-posix (Depends-on): Likewise.
15213         * modules/vsprintf-posix (Depends-on): Likewise.
15214         * modules/vasnprintf (Files): Add lib/float+.h.
15215         * doc/functions/fprintf.texi: Update.
15216         * doc/functions/printf.texi: Update.
15217         * doc/functions/snprintf.texi: Update.
15218         * doc/functions/sprintf.texi: Update.
15219         * doc/functions/vfprintf.texi: Update.
15220         * doc/functions/vprintf.texi: Update.
15221         * doc/functions/vsnprintf.texi: Update.
15222         * doc/functions/vsprintf.texi: Update.
15223
15224 2007-05-18  Bruno Haible  <bruno@clisp.org>
15225
15226         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
15227
15228 2007-05-18  Bruno Haible  <bruno@clisp.org>
15229
15230         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
15231         for printing 64-bit integers. Needed for mingw.
15232
15233 2007-05-18  Bruno Haible  <bruno@clisp.org>
15234
15235         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
15236         gl_FUNC_FREXPL_WORKS.
15237         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
15238
15239 2007-05-18  Bruno Haible  <bruno@clisp.org>
15240
15241         * modules/frexpl-nolibm-tests: New file.
15242
15243         * modules/frexpl-nolibm: New file.
15244         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
15245
15246 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
15247
15248         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
15249         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
15250         GCC 4.2, which otherwise issues a lot of warnings.
15251         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
15252         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
15253         Likewise.
15254         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
15255         * modules/iconv_open (iconv.h): Likewise.
15256         * modules/locale (locale.h): Likewise.
15257         * modules/netinet_in (netinet/in.h): Likewise.
15258         * modules/sys_select (sys_select.h): Likewise.
15259         * modules/sys_socket (sys/socket.h): Likewise.
15260         * modules/sys_stat (sys/stat.h): Likewise.
15261         * modules/sysexits (sysexits.h): Likewise.
15262         * modules/unistd (unistd.h): Likewise.
15263
15264 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15265
15266         * modules/closein-tests (Makefile.am): Distribute
15267         `test-closein.sh'.
15268
15269 2007-05-17  Bruno Haible  <bruno@clisp.org>
15270
15271         * tests/test-printf-posix.output: Renamed from
15272         tests/test-fprintf-posix.out.
15273         * modules/fprintf-posix-tests: Update.
15274         * modules/printf-posix-tests: Update.
15275         * modules/vfprintf-posix-tests: Update.
15276         * modules/vprintf-posix-tests: Update.
15277         * tests/test-fprintf-posix.sh: Update.
15278         * tests/test-printf-posix.sh: Update.
15279         * tests/test-vfprintf-posix.sh: Update.
15280         * tests/test-vprintf-posix.sh: Update.
15281         Reported by Ralf Wildenhues.
15282
15283 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
15284
15285         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
15286         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
15287         GCC 4.2, which otherwise issues a lot of warnings.
15288         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
15289         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
15290         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
15291         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
15292         it should no longer be needed.
15293         * lib/string_.h: Likewise.
15294         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
15295         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
15296         * modules/inttypes (inttypes.h): Likewise.
15297         * modules/math (math.h): Likewise.
15298         * modules/search (search.h): Likewise.
15299         * modules/signal (signal.h): Likewise.
15300         * modules/stdint (stdint.h): Likewise.
15301         * modules/stdio (stdio.h): Likewise.
15302         * modules/stdlib (stdlib.h): Likewise.
15303         * modules/string (string.h): Likewise.
15304         * modules/sys_time (sys/time.h): Likewise.
15305         * modules/time (time.h): Likewise.
15306         * modules/wchar (wchar.h): Likewise.
15307         * modules/wctype (wtype.h): Likewise.
15308
15309 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
15310
15311         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
15312
15313 2007-05-13  Bruno Haible  <bruno@clisp.org>
15314
15315         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
15316         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
15317         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
15318         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
15319         (gl_PREREQ_STRTOK_R): Don't require it here.
15320
15321 2007-05-13  Bruno Haible  <bruno@clisp.org>
15322
15323         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
15324         when used in C++ mode.
15325
15326 2007-05-12  Bruno Haible  <bruno@clisp.org>
15327
15328         * lib/linebuffer.h: Tweak doc.
15329         * lib/linebuffer.c: Likewise.
15330
15331 2007-05-12  James Youngman  <jay@gnu.org>
15332
15333         * lib/linebuffer.c (readlinebuffer_delim): New function,
15334         like readlinebuffer, but use a caller-specified delimiter.
15335         (readlinebuffer): Just call readlinebuffer_delim with '\n'
15336         as the delimiter.
15337         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
15338
15339 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
15340
15341         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
15342         * modules/openat (Files): Remove openat-die.c.
15343         (Depends-on): Add openat-die.
15344         * modules/openat-die: New module.
15345
15346 2007-05-06  Bruno Haible  <bruno@clisp.org>
15347
15348         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
15349         Update with info about Cygwin.
15350         * doc/functions/fprintf.texi: Update.
15351         * doc/functions/printf.texi: Update.
15352         * doc/functions/snprintf.texi: Update.
15353         * doc/functions/sprintf.texi: Update.
15354         * doc/functions/vfprintf.texi: Update.
15355         * doc/functions/vprintf.texi: Update.
15356         * doc/functions/vsnprintf.texi: Update.
15357         * doc/functions/vsprintf.texi: Update.
15358         Reported by Eric Blake.
15359
15360 2007-05-06  Bruno Haible  <bruno@clisp.org>
15361
15362         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
15363         padding ourselves for the floating-point directives.
15364         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
15365         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
15366         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
15367         gl_PRINTF_FLAG_ZERO and test its result. Invoke
15368         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
15369         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
15370         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
15371         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
15372         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
15373         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
15374         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
15375         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
15376         * tests/test-snprintf-posix.h (test_function): Also check the width
15377         and some flags in the %f directive.
15378         * tests/test-sprintf-posix.h (test_function): Likewise.
15379         * tests/test-vasnprintf-posix.c (test_function): Likewise.
15380         * tests/test-vasprintf-posix.c (test_function): Likewise.
15381         * doc/functions/fprintf.texi: Update.
15382         * doc/functions/printf.texi: Update.
15383         * doc/functions/snprintf.texi: Update.
15384         * doc/functions/sprintf.texi: Update.
15385         * doc/functions/vfprintf.texi: Update.
15386         * doc/functions/vprintf.texi: Update.
15387         * doc/functions/vsnprintf.texi: Update.
15388         * doc/functions/vsprintf.texi: Update.
15389
15390 2007-05-06  Bruno Haible  <bruno@clisp.org>
15391
15392         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
15393         pass the ' flag character to sprintf or snprintf.
15394         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
15395         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
15396         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
15397         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
15398         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
15399         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
15400         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
15401         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
15402         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
15403         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
15404         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
15405         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
15406         * tests/test-snprintf-posix.h (test_function): Also check the grouping
15407         flag.
15408         * tests/test-sprintf-posix.h (test_function): Likewise.
15409         * tests/test-vasnprintf-posix.c (test_function): Likewise.
15410         * tests/test-vasprintf-posix.c (test_function): Likewise.
15411         * doc/functions/fprintf.texi: Update.
15412         * doc/functions/printf.texi: Update.
15413         * doc/functions/snprintf.texi: Update.
15414         * doc/functions/sprintf.texi: Update.
15415         * doc/functions/vfprintf.texi: Update.
15416         * doc/functions/vprintf.texi: Update.
15417         * doc/functions/vsnprintf.texi: Update.
15418         * doc/functions/vsprintf.texi: Update.
15419
15420 2007-05-01  Bruno Haible  <bruno@clisp.org>
15421
15422         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
15423
15424 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
15425
15426         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
15427         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
15428
15429 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
15430
15431         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
15432         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
15433         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
15434
15435 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
15436
15437         * lib/argp-help.c (struct hol_entry): New member `ord'.
15438         (HOL_ENTRY_PTRCMP): Use ord for comparison
15439         (hol_sort): Initialize ord.
15440
15441 2007-05-01  Bruno Haible  <bruno@clisp.org>
15442
15443         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
15444         Reported by Eric Blake.
15445         * doc/gnulib.texi (Function Substitutes): Update.
15446
15447 2007-05-01  Bruno Haible  <bruno@clisp.org>
15448
15449         * doc/functions.texi: Remove file, now redundant through
15450         doc/functions/*.texi.
15451
15452 2007-05-01  Bruno Haible  <bruno@clisp.org>
15453
15454         * modules/argp (Depends-on): Add sleep.
15455
15456 2007-05-01  Bruno Haible  <bruno@clisp.org>
15457
15458         * modules/sleep-tests: New file.
15459         * tests/test-sleep.c: New file.
15460
15461         * modules/sleep: New file.
15462         * lib/sleep.c: New file.
15463         * m4/sleep.m4: New file.
15464         * lib/unistd_.h (sleep): New declaration.
15465         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
15466         HAVE_SLEEP.
15467         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
15468         * doc/functions/sleep.texi: Document the sleep module.
15469
15470 2007-05-01  Bruno Haible  <bruno@clisp.org>
15471
15472         * lib/sigprocmask.h: Remove file.
15473         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
15474         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
15475         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
15476         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
15477         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
15478         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
15479         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
15480         HAVE_SIGSET_T as a shell variable.
15481         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
15482         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
15483         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
15484         (Depends-on): Add signal. Remove verify.
15485         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
15486         (Include): Mention <signal.h> instead of sigprocmask.h.
15487         * NEWS: Mention the change.
15488         * lib/fatal-signal.c: Don't include sigprocmask.h.
15489
15490 2007-05-01  Bruno Haible  <bruno@clisp.org>
15491
15492         * modules/signal: New file.
15493         * lib/signal_.h: New file.
15494         * m4/signal_h.m4: New file.
15495
15496 2007-05-01  Bruno Haible  <bruno@clisp.org>
15497
15498         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
15499         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
15500         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
15501         HAVE_WCTYPE_CTMP_BUG into wctype.h.
15502
15503 2007-05-01  Bruno Haible  <bruno@clisp.org>
15504
15505         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
15506         configure time.
15507         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
15508         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
15509         * modules/sys_stat (Makefile.am): Substitute their values into
15510         sys/stat.h.
15511
15512 2007-05-01  Bruno Haible  <bruno@clisp.org>
15513
15514         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
15515         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
15516         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
15517
15518 2007-05-01  Bruno Haible  <bruno@clisp.org>
15519
15520         * doc/header/assert.texi: Undo last change: don't mention the gnulib
15521         'assert' module here.
15522
15523 2007-05-01  Bruno Haible  <bruno@clisp.org>
15524
15525         * doc/functions/*.texi: New files.
15526         * doc/functions/google-ranking.txt: New file.
15527         * doc/gnulib.texi (Function Substitutes): New chapter.
15528         (ctime, inet_ntoa): Remove sections.
15529         * doc/ctime.texi: Remove file.
15530         * doc/inet_ntoa.texi: Remove file.
15531         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
15532         dependencies.
15533         (%.info): New rule, specifying a --reference-limit.
15534
15535 2007-05-01  Bruno Haible  <bruno@clisp.org>
15536
15537         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
15538
15539 2007-05-01  Bruno Haible  <bruno@clisp.org>
15540
15541         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
15542         the portability of 'mkdir' to mingw systems.
15543
15544 2007-05-01  Bruno Haible  <bruno@clisp.org>
15545
15546         * doc/headers/google-ranking.txt: New file.
15547
15548 2007-04-30  Eric Blake  <ebb9@byu.net>
15549
15550         Prefer fseeko to fseek.
15551         * modules/getpass (Depends-on): Add fseeko.
15552         * lib/getpass.c (getpass): Use fseeko, not fseek.
15553
15554 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
15555
15556         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
15557         assumes the sorting is stable, while most qsort implementations
15558         are not.  Use argument addresses to ensure they never compare as
15559         equal.
15560
15561         * tests/test-argp-2.sh (usage-indent test): Fix output
15562         (func_compare): Restore diff options
15563         * tests/test-argp.c: Restore #include "progname.h"
15564
15565 2007-04-29  Bruno Haible  <bruno@clisp.org>
15566
15567         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
15568         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
15569         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
15570         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
15571         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
15572         (configure.ac): Define CHECK_SNPRINTF_POSIX.
15573         (TESTS, check_PROGRAMS): Add test-snprintf.
15574         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
15575         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
15576         (TESTS, check_PROGRAMS): Add test-vsnprintf.
15577         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
15578         assertions that fail on HP-UX, OSF/1, or IRIX.
15579         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
15580
15581 2007-04-29  Bruno Haible  <bruno@clisp.org>
15582
15583         * MODULES.html.sh (posix_functions): Remove 'contents'.
15584
15585 2007-04-29  Karl Berry  <karl@gnu.org>
15586
15587         * config/srclist.txt (gendocs_template_min): new entry.
15588
15589 2007-04-29  Bruno Haible  <bruno@clisp.org>
15590
15591         Work around fpurge bug on BSD systems.
15592         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
15593         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
15594         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
15595         fpurge to rpl_fpurge if the system already has this function.
15596         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
15597         the case where the system already has this function. Correct invariants
15598         on BSD systems.
15599         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
15600         BSD systems.
15601
15602 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
15603
15604         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
15605         proposed by Sven Verdoolaege.
15606
15607         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
15608         options.
15609         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
15610         (usage and help tests): Update
15611
15612 2007-04-29  Bruno Haible  <bruno@clisp.org>
15613
15614         * tests/test-fflush.c (main): Use a file of size 17, not 10.
15615         Print more information in case of failure. Disable a test on BeOS.
15616
15617 2007-04-29  Bruno Haible  <bruno@clisp.org>
15618
15619         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
15620         This helps debugging on systems on which no gdb is available.
15621
15622 2007-04-29  Bruno Haible  <bruno@clisp.org>
15623
15624         * lib/freading.h: Improve comments.
15625         * lib/fwriting.h: Likewise.
15626         * tests/test-freading.c (main): Don't check freading immediately after
15627         repositioning. Needed for glibc.
15628
15629 2007-04-29  Bruno Haible  <bruno@clisp.org>
15630
15631         * lib/freading.c (freading): Trivial simplification.
15632
15633 2007-04-28  Bruno Haible  <bruno@clisp.org>
15634
15635         * tests/test-fwriting.c (main): Also test the interaction between
15636         fflush and fwriting.
15637         * modules/fwriting-tests (Depends-on): Add fflush.
15638
15639         * tests/test-freading.c (main): Also test the interaction between
15640         fflush and freading.
15641         * modules/freading-tests (Depends-on): Add fflush.
15642
15643 2007-04-28  Bruno Haible  <bruno@clisp.org>
15644
15645         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
15646         fseeko and ftello.
15647         Suggested by Eric Blake.
15648
15649 2007-04-28  Jim Meyering  <jim@meyering.net>
15650
15651         Avoid false-negative in gl_STDINT_H's C99 conformance test.
15652         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
15653         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
15654
15655 2007-04-27  Eric Blake  <ebb9@byu.net>
15656
15657         * doc/headers/assert.texi (assert.h): Document assert module use.
15658
15659 2007-04-27  Bruno Haible  <bruno@clisp.org>
15660
15661         * doc/headers/*.texi: New files.
15662         * doc/gnulib.texi (Header File Substitutes): New chapter.
15663         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
15664         dependencies.
15665         (standards.info ,standards.html, standards.dvi): Update dependencies.
15666         (mostlyclean, clean): New targets.
15667
15668 2007-04-27  Bruno Haible  <bruno@clisp.org>
15669
15670         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
15671         * modules/sysexits (Files, Makefile.am): Update.
15672
15673         * lib/sys_socket_.h: Renamed from lib/socket_.h.
15674         * modules/sys_socket (Files, Makefile.am): Update.
15675
15676         * lib/sys_stat_.h: Renamed from lib/stat_.h.
15677         * modules/sys_stat (Files, Makefile.am): Update.
15678
15679 2007-04-27  Eric Blake  <ebb9@byu.net>
15680
15681         * lib/freading.h: Improve comments.
15682         * lib/fwriting.h: Likewise.
15683         * lib/fflush.c: Likewise.
15684
15685         Fix closein for mingw.
15686         * modules/closein-tests: Add tests for closein.
15687         * tests/test-closein.c: New file.
15688         * tests/test-closein.sh: Likewise.
15689         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
15690         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
15691
15692 2007-04-27  Bruno Haible  <bruno@clisp.org>
15693
15694         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
15695         version is < 6.
15696         * lib/math_.h [__DECC]: Likewise.
15697         * lib/stdio_.h [__DECC]: Likewise.
15698         * lib/stdlib_.h [__DECC]: Likewise.
15699         * lib/string_.h [__DECC]: Likewise.
15700         * lib/time_.h [__DECC]: Likewise.
15701         * lib/wchar_.h [__DECC]: Likewise.
15702         * lib/wctype_.h [__DECC]: Likewise.
15703
15704 2007-04-27  Bruno Haible  <bruno@clisp.org>
15705
15706         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
15707
15708 2007-04-27  Bruno Haible  <bruno@clisp.org>
15709
15710         * lib/fflush.c: Add comments.
15711         * modules/fpurge-tests (Depends-on): Add fflush.
15712         * modules/freadable-tests (Depends-on): Likewise.
15713         * modules/fwritable-tests (Depends-on): Likewise.
15714
15715 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
15716
15717         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
15718         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
15719         Report by Bruno Haible <bruno@clisp.org>.
15720
15721 2007-04-26  Eric Blake  <ebb9@byu.net>
15722
15723         Fix fflush on mingw.
15724         * modules/fflush (Depends-on): Add freading.
15725         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
15726         but unread data.
15727
15728 2007-04-26  Eric Blake  <ebb9@byu.net>
15729         and Bruno Haible  <bruno@clisp.org>
15730
15731         Implement freading and fwriting.
15732         * lib/freading.c: New file.
15733         * lib/freading.h: Likewise.
15734         * m4/freading.m4: Likewise.
15735         * modules/freading: Likewise.
15736         * modules/freading-tests: Likewise.
15737         * tests/test-freading.c: Likewise.
15738         * lib/fwriting.c: New file.
15739         * lib/fwriting.h: Likewise.
15740         * m4/fwriting.m4: Likewise.
15741         * modules/fwriting: Likewise.
15742         * modules/fwriting-tests: Likewise.
15743         * tests/test-fwriting.c: Likewise.
15744         * MODULES.html.sh (File stream based Input/Output): Mention them.
15745
15746 2007-04-26  Bruno Haible  <bruno@clisp.org>
15747
15748         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
15749         'long' when we assume it.
15750         Suggested by Eric Blake.
15751
15752 2007-04-26  Bruno Haible  <bruno@clisp.org>
15753
15754         Ensure fseeko, ftello are declared on glibc systems.
15755         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
15756         * modules/fseeko (configure.ac-early): Likewise.
15757         * modules/ftello (configure.ac-early): Likewise.
15758         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
15759         AC_FUNC_FSEEKO for this.
15760         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
15761         (gl_CHECK_FSEEKO): Remove macro.
15762
15763 2007-04-26  Bruno Haible  <bruno@clisp.org>
15764
15765         * tests/test-fflush.c (main): Also check the ftell result after
15766         fflush and fseek/fseeko.
15767         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
15768         file descriptor position cache in the stream.
15769         * lib/fseeko.c (rpl_fseeko): Likewise.
15770
15771 2007-04-26  Bruno Haible  <bruno@clisp.org>
15772
15773         * modules/fflush-tests (Depends-on): Add fseeko.
15774
15775 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
15776             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15777
15778         * lib/argz_.h: ensure error_t definition is obtained in same
15779         mechanism system argz.h would have.
15780         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
15781         argz facilities are known bad.  Err on the side of caution if
15782         cross-compiling.
15783
15784 2007-04-25  Eric Blake  <ebb9@byu.net>
15785
15786         * lib/fpurge.c (includes): Use stdlib.h for free.
15787         * tests/test-fflush.c (main): Also test fflush-fseeko.
15788
15789 2007-04-25  Bruno Haible  <bruno@clisp.org>
15790
15791         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
15792         * lib/fseeko.c: New file.
15793         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
15794         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
15795         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
15796         gl_FUNC_FSEEKO.
15797         (gl_FUNC_FSEEKO): Invoke it.
15798         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
15799         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
15800         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
15801
15802 2007-04-25  Bruno Haible  <bruno@clisp.org>
15803
15804         * modules/fflush (Depends-on): Add ftello.
15805
15806 2007-04-25  Bruno Haible  <bruno@clisp.org>
15807
15808         * modules/ftello-tests: New file.
15809         * tests/test-ftello.c: New file.
15810
15811         * modules/ftello: New file.
15812         * m4/ftello.m4: New file.
15813         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
15814         HAVE_FTELLO.
15815         * lib/stdio_.h (ftello): New declaration.
15816         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
15817         HAVE_FTELLO.
15818
15819 2007-04-25  Bruno Haible  <bruno@clisp.org>
15820
15821         * modules/fseeko-tests: New file.
15822         * tests/test-fseeko.c: New file.
15823
15824         * modules/fseeko: New file.
15825         * m4/fseeko.m4: New file.
15826         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
15827         HAVE_FSEEKO.
15828         * lib/stdio_.h (fseeko): New declaration.
15829         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
15830         HAVE_FSEEKO.
15831
15832 2007-04-25  Bruno Haible  <bruno@clisp.org>
15833
15834         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
15835
15836 2007-04-25  Bruno Haible  <bruno@clisp.org>
15837
15838         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
15839         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
15840         * tests/test-unistd.c: Likewise.
15841         * tests/test-fcntl.c: Likewise.
15842
15843 2007-04-23  Eric Blake  <ebb9@byu.net>
15844
15845         * lib/fflush.c: Fix missing include.
15846         Reported by Bruno Haible.
15847
15848 2007-04-23  Bruno Haible  <bruno@clisp.org>
15849
15850         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
15851         Reported by Eric Blake.
15852
15853 2007-04-23  Bruno Haible  <bruno@clisp.org>
15854
15855         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
15856
15857 2007-04-23  Bruno Haible  <bruno@clisp.org>
15858
15859         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
15860
15861 2007-04-23  Bruno Haible  <bruno@clisp.org>
15862
15863         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
15864         Needed on HP-UX 11.
15865
15866 2007-04-16  Eric Blake  <ebb9@byu.net>
15867
15868         Make fflush rely on fpurge.
15869         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
15870         open coding all variants.
15871         * modules/fflush (Depends-on): Add fpurge and unistd.
15872         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
15873         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
15874
15875         Fix --with-tests compilation on cygwin.
15876         * modules/argmatch-tests (Makefile.am): List gnulib library first
15877         in LDADD.
15878         * modules/argp-tests (Makefile.am): Likewise.
15879         * modules/array-list-tests (Makefile.am): Likewise.
15880         * modules/array-oset-tests (Makefile.am): Likewise.
15881         * modules/avltree-list-tests (Makefile.am): Likewise.
15882         * modules/avltree-oset-tests (Makefile.am): Likewise.
15883         * modules/avltreehash-list-tests (Makefile.am): Likewise.
15884         * modules/carray-list-tests (Makefile.am): Likewise.
15885         * modules/dirname-tests (Makefile.am): Likewise.
15886         * modules/frexp-tests (Makefile.am): Likewise.
15887         * modules/isnanl-tests (Makefile.am): Likewise.
15888         * modules/linked-list-tests (Makefile.am): Likewise.
15889         * modules/linkedhash-list-tests (Makefile.am): Likewise.
15890         * modules/lock-tests (Makefile.am): Likewise.
15891         * modules/rbtree-list-tests (Makefile.am): Likewise.
15892         * modules/rbtree-oset-tests (Makefile.am): Likewise.
15893         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
15894         * modules/tls-tests (Makefile.am): Likewise.
15895         * modules/tsearch-tests (Makefile.am): Likewise.
15896         * modules/xvasprintf-tests (Makefile.am): Likewise.
15897
15898         Fix fpurge for cygwin.
15899         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
15900         value.
15901         * modules/fpurge-tests (Depends-on): Clean up trash.
15902
15903 2007-04-16  Simon Josefsson  <simon@josefsson.org>
15904
15905         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
15906
15907         * m4/autobuild.m4: Re-indent.
15908
15909 2007-04-13  Bruno Haible  <bruno@clisp.org>
15910
15911         * modules/fpurge-tests: New file.
15912         * tests/test-fpurge.c: New file.
15913
15914         * modules/fpurge: New file.
15915         * lib/fpurge.h: New file.
15916         * lib/fpurge.c: New file.
15917         * m4/fpurge.m4: New file.
15918
15919 2007-04-13  Bruno Haible  <bruno@clisp.org>
15920
15921         * modules/fbufmode-tests: New file.
15922         * tests/test-fbufmode.c: New file.
15923
15924         * modules/fbufmode: New file.
15925         * lib/fbufmode.h: New file.
15926         * lib/fbufmode.c: New file.
15927         * m4/fbufmode.m4: New file.
15928
15929 2007-04-13  Bruno Haible  <bruno@clisp.org>
15930
15931         * modules/fwritable-tests: New file.
15932         * tests/test-fwritable.c: New file.
15933
15934         * modules/fwritable: New file.
15935         * lib/fwritable.h: New file.
15936         * lib/fwritable.c: New file.
15937         * m4/fwritable.m4: New file.
15938
15939 2007-04-13  Bruno Haible  <bruno@clisp.org>
15940
15941         * modules/freadable-tests: New file.
15942         * tests/test-freadable.c: New file.
15943
15944         * modules/freadable: New file.
15945         * lib/freadable.h: New file.
15946         * lib/freadable.c: New file.
15947         * m4/freadable.m4: New file.
15948
15949 2007-04-13  Bruno Haible  <bruno@clisp.org>
15950
15951         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
15952         MOSTLYCLEANFILES.
15953
15954 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
15955
15956         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
15957         gzip bootstrap.conf to avoid dragging in i18n machinery.
15958         (gnulib_tool_option): Use it.
15959
15960 2007-04-13  Bruno Haible  <bruno@clisp.org>
15961
15962         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
15963         %F directives.
15964         * tests/test-vasprintf-posix.c (test_function): Likewise.
15965         * tests/test-snprintf-posix.h (test_function): Likewise.
15966         * tests/test-sprintf-posix.h (test_function): Likewise.
15967         * tests/test-fprintf-posix.h (test_function): Likewise.
15968         * tests/test-printf-posix.h (test_function): Likewise.
15969         * tests/test-fprintf-posix.out: Likewise.
15970
15971 2007-04-13  Bruno Haible  <bruno@clisp.org>
15972
15973         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
15974         * modules/tls-tests (configure.ac): Likewise.
15975         Reported by Arto C. Nirkko <anirkko@insel.ch>.
15976
15977 2007-04-13  Bruno Haible  <bruno@clisp.org>
15978
15979         * lib/tls.c (glthread_tls_get): Fix return type.
15980         Patch by Arto C. Nirkko <anirkko@insel.ch>.
15981
15982 2007-04-12  Eric Blake  <ebb9@byu.net>
15983
15984         * modules/gettime (Depends-on): Remove gettime.
15985         Reported by Dmitry V. Levin.
15986
15987 2007-04-12  Bruno Haible  <bruno@clisp.org>
15988
15989         * modules/fflush (Include): Mention <stdio.h>.
15990         * modules/strtoimax (Include): Mention <inttypes.h>.
15991         * modules/strtoumax (Include): Likewise.
15992
15993 2007-04-12  Eric Blake  <ebb9@byu.net>
15994
15995         * .cvsignore: New file.
15996         * .gitignore: Likewise.
15997
15998 2007-04-12  Bruno Haible  <bruno@clisp.org>
15999
16000         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
16001         not before, since $(LDADD) often contains libgnu.a.
16002         * modules/striconv-tests (test_striconv_LDADD): Likewise.
16003         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
16004         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
16005         Needed on Cygwin.
16006
16007 2007-04-12  Eric Blake  <ebb9@byu.net>
16008
16009         Work around glibc's failure to flush stdin on fclose.
16010         * lib/closein.c (close_stdin): Flush stdin before closing.
16011
16012         Work around glibc's failure to reset seekable stdin on exit.
16013         * modules/closein: New module.
16014         * lib/closein.c: New file.
16015         * lib/closein.h: Likewise.
16016         * m4/closein.m4: Likewise.
16017         * MODULES.html.sh (File stream based Input/Output): Document it.
16018
16019 2007-04-12  Simon Josefsson  <simon@josefsson.org>
16020
16021         * gnulib-tool: Rename generated 'autobuild' script to
16022         'do-autobuild' in --create-megatestdir output.
16023
16024         * doc/gnulib.texi (Build robot for gnulib): Fix.
16025
16026 2007-04-12  Simon Josefsson  <simon@josefsson.org>
16027
16028         * modules/sysexits (Depends-on): Add absolute-header.
16029
16030 2007-04-12  Eric Blake  <ebb9@byu.net>
16031
16032         No need to preserve errno on success.
16033         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
16034         Reported by Bruno Haible.
16035
16036 2007-04-12  Simon Josefsson  <simon@josefsson.org>
16037
16038         * MODULES.html.sh (Support for maintaining and releasing
16039         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
16040
16041 2007-04-12  Simon Josefsson  <simon@josefsson.org>
16042
16043         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
16044
16045 2007-04-12  Simon Josefsson  <simon@josefsson.org>
16046
16047         * modules/autobuild: New module.
16048
16049         * m4/autobuild.m4: New file.
16050
16051 2007-04-11  Bruno Haible  <bruno@clisp.org>
16052
16053         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
16054         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
16055         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
16056         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
16057         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
16058         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
16059         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
16060         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
16061         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
16062         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
16063         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
16064         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
16065         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
16066         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
16067         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
16068         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
16069         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
16070         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
16071         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
16072         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
16073         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
16074         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
16075         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
16076         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
16077         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
16078         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
16079         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
16080         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
16081         Reported by Eric Blake.
16082
16083 2007-04-11  Bruno Haible  <bruno@clisp.org>
16084
16085         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
16086
16087 2007-04-10  Bruno Haible  <bruno@clisp.org>
16088
16089         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
16090         for NaN and Infinity. Needed on FreeBSD 6.1.
16091         * tests/test-vasnprintf-posix.c (test_function): Undo last change
16092         regarding results for "%010a" of Infinity and NaN.
16093         * tests/test-vasprintf-posix.c (test_function): Likewise.
16094         * tests/test-snprintf-posix.h (test_function): Likewise.
16095         * tests/test-sprintf-posix.h (test_function): Likewise.
16096         * tests/test-fprintf-posix.h (test_function): Likewise.
16097         * tests/test-printf-posix.h (test_function): Likewise.
16098         * tests/test-fprintf-posix.out: Likewise.
16099
16100 2007-04-10  Bruno Haible  <bruno@clisp.org>
16101
16102         * modules/locale-tests: New file.
16103         * tests/test-locale.c: New file.
16104
16105         * modules/locale: New file.
16106         * lib/locale_.h: New file.
16107         * m4/locale_h.m4: New file.
16108
16109 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
16110             Bruno Haible  <bruno@clisp.org>
16111
16112         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
16113         be determined, test for availability of the copysignf, copysign,
16114         copysignl functions.
16115         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
16116         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
16117         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
16118
16119 2007-04-09  Eric Blake  <ebb9@byu.net>
16120
16121         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
16122         * modules/stdio (Makefile.am): Support fflush.
16123         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
16124         * modules/fflush: New file.
16125         * lib/fflush.c: Likewise.
16126         * m4/fflush.m4: Likewise.
16127         * modules/fflush-tests: New test.
16128         * tests/test-fflush.c: Likewise.
16129         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
16130
16131 2007-04-06  Bruno Haible  <bruno@clisp.org>
16132
16133         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
16134         (VASNPRINTF): Use signbit for faster determination whether to print a
16135         minus sign.
16136         * modules/vasnprintf (Files): Remove lib/float+.h.
16137         * modules/fprintf-posix (Depends-on): Add signbit.
16138         * modules/snprintf-posix (Depends-on): Likewise.
16139         * modules/sprintf-posix (Depends-on): Likewise.
16140         * modules/vasnprintf-posix (Depends-on): Likewise.
16141         * modules/vasprintf-posix (Depends-on): Likewise.
16142         * modules/vfprintf-posix (Depends-on): Likewise.
16143         * modules/vsnprintf-posix (Depends-on): Likewise.
16144         * modules/vsprintf-posix (Depends-on): Likewise.
16145
16146 2007-04-06  Bruno Haible  <bruno@clisp.org>
16147
16148         * tests/test-frexp.c (main): Test also the sign bit of zero results.
16149         * tests/test-frexpl.c (main): Likewise.
16150         * tests/test-ldexpl.c (main): Likewise.
16151         * modules/frexp-tests (Depends-on): Add signbit.
16152         * modules/frexpl-tests (Depdends-on): Likewise.
16153         * modules/ldexpl-tests (Depdends-on): Likewise.
16154
16155 2007-04-06  Bruno Haible  <bruno@clisp.org>
16156
16157         * modules/signbit-tests: New file.
16158         * tests/test-signbit.c: New file.
16159
16160         * modules/signbit: New file.
16161         * lib/signbitf.c: New file.
16162         * lib/signbitd.c: New file.
16163         * lib/signbitl.c: New file.
16164         * m4/signbit.m4: New file.
16165         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
16166         (signbit): New macro.
16167         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
16168         REPLACE_SIGNBIT.
16169         * modules/math (Makefile.am) Substibute also GNULIB_SIGNBIT and
16170         REPLACE_FREXPL into math.h.
16171
16172 2007-04-06  Bruno Haible  <bruno@clisp.org>
16173
16174         * modules/isnanf-nolibm-tests: New file.
16175         * tests/test-isnanf.c: New file.
16176
16177         * modules/isnanf-nolibm: New file.
16178         * lib/isnanf.h: New file.
16179         * lib/isnanf.c: New file.
16180         * lib/isnan.c: Consider the USE_FLOAT macro.
16181         * m4/isnanf.m4: New file.
16182
16183 2007-04-06  Bruno Haible  <bruno@clisp.org>
16184
16185         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
16186         (Link): New section.
16187
16188         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
16189
16190 2007-04-06  Bruno Haible  <bruno@clisp.org>
16191
16192         Assume the 'long double' type.
16193         * m4/longdouble.m4: Remove file.
16194         * config/srclist.txt: Don't mention longdouble.m4.
16195         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
16196         * lib/float+.h: Likewise.
16197         * lib/frexp.c: Likewise.
16198         * lib/printf-args.h: Likewise.
16199         * lib/printf-args.c: Likewise.
16200         * lib/printf-frexp.c: Likewise.
16201         * lib/printf-parse.c: Likewise.
16202         * lib/vasnprintf.c: Likewise.
16203         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
16204         * m4/intl.m4: Likewise.
16205         * m4/isnanl.m4: Likewise.
16206         * m4/printf.m4: Likewise.
16207         * m4/printf-frexpl.m4: Likewise.
16208         * m4/vasnprintf.m4: Likewise.
16209         * modules/allocsa (Files): Remove m4/longdouble.m4.
16210         * modules/gettext (Files): Likewise.
16211         * modules/relocatable-prog-wrapper (Files): Likewise.
16212         * modules/vasnprintf (Files): Likewise.
16213         * modules/isnanl (Files): Likewise.
16214         (Include): Simplify.
16215         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
16216         (Include): Simplify.
16217         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
16218         (Include): Simplify.
16219         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
16220         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
16221         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
16222         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
16223         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
16224         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
16225         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
16226         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
16227         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
16228         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
16229         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
16230         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
16231         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
16232         * tests/test-isnanl.c: Likewise.
16233         * tests/test-snprintf-posix.h: Likewise.
16234         * tests/test-sprintf-posix.h: Likewise.
16235         * tests/test-vasnprintf-posix.c: Likewise.
16236         * tests/test-vasnprintf-posix2.c: Likewise.
16237         * tests/test-vasprintf-posix.c: Likewise.
16238
16239 2007-04-06  Bruno Haible  <bruno@clisp.org>
16240
16241         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
16242         * lib/math_.h [__DECC]: Include the overridden include file through
16243         #include_next, outside the double-inclusion guard.
16244         * lib/stdio_.h [__DECC]: Likewise.
16245         * lib/stdlib_.h [__DECC]: Likewise.
16246         * lib/string_.h [__DECC]: Likewise.
16247         * lib/time_.h [__DECC]: Likewise.
16248         * lib/wchar_.h [__DECC]: Likewise.
16249         * lib/wctype_.h [__DECC]: Likewise.
16250         * lib/inttypes_.h [__DECC]: Likewise.
16251         Reported by Albert Chin <china@thewrittenword.com> in
16252         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
16253
16254 2007-04-04  Eric Blake  <ebb9@byu.net>
16255
16256         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
16257         1.5.x.
16258
16259 2007-04-04  Bruno Haible  <bruno@clisp.org>
16260
16261         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
16262         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
16263
16264 2007-04-04  Bruno Haible  <bruno@clisp.org>
16265
16266         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
16267         results for "%010a" of Infinity and NaN.
16268         * tests/test-vasprintf-posix.c (test_function): Likewise.
16269         * tests/test-snprintf-posix.h (test_function): Likewise.
16270         * tests/test-sprintf-posix.h (test_function): Likewise.
16271         * tests/test-fprintf-posix.h (test_function): Remove these tests.
16272         * tests/test-printf-posix.h (test_function): Likewise.
16273         * tests/test-fprintf-posix.out: Update.
16274         Needed for FreeBSD 6.1.
16275
16276 2007-04-04  Bruno Haible  <bruno@clisp.org>
16277
16278         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
16279         directly used by the gnulib modules nor by gnulib-tool.
16280
16281 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
16282
16283         * DEPENDENCIES: Give overall description of version dependency
16284         desirability.  Use more-typical names for apps.
16285         Add shell, coreutils, diffutils, grep, tar, gzip.
16286
16287 2007-04-04  Simon Josefsson  <simon@josefsson.org>
16288
16289         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
16290
16291 2007-04-04  Karl Berry  <karl@gnu.org>
16292
16293         * MODULES.html.sh (func_module): missing '.
16294
16295 2007-04-03  Bruno Haible  <bruno@clisp.org>
16296
16297         * modules/argmatch-tests (Makefile.am): New variable
16298         test_argmatch_LDADD.
16299         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
16300         * modules/array-list-tests (Makefile.am): New variable
16301         test_array_list_LDADD.
16302         * modules/array-oset-tests (Makefile.am): New variable
16303         test_array_oset_LDADD.
16304         * modules/avltree-list-tests (Makefile.am): New variable
16305         test_avltree_list_LDADD.
16306         * modules/avltree-oset-tests (Makefile.am): New variable
16307         test_avltree_oset_LDADD.
16308         * modules/avltreehash-list-tests (Makefile.am): New variable
16309         test_avltreehash_list_LDADD.
16310         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
16311         test_canonicalize_lgpl_LDADD.
16312         * modules/carray-list-tests (Makefile.am): New variable
16313         test_carray_list_LDADD.
16314         * modules/dirname-tests (Makefile.am): New variable
16315         test_dirname_LDADD.
16316         * modules/linked-list-tests (Makefile.am): New variable
16317         test_linked_list_LDADD.
16318         * modules/linkedhash-list-tests (Makefile.am): New variable
16319         test_linkedhash_list_LDADD.
16320         * modules/rbtree-list-tests (Makefile.am): New variable
16321         test_rbtree_list_LDADD.
16322         * modules/rbtree-oset-tests (Makefile.am): New variable
16323         test_rbtree_oset_LDADD.
16324         * modules/rbtreehash-list-tests (Makefile.am): New variable
16325         test_rbtreehash_list_LDADD.
16326         * modules/xvasprintf-tests (Makefile.am): New variable
16327         test_xvasprintf_LDADD.
16328         Reported by Eric Blake.
16329
16330 2007-04-03  Eric Blake  <ebb9@byu.net>
16331
16332         * DEPENDENCIES: Weaken m4 requirements.
16333
16334 2007-04-03  Bruno Haible  <bruno@clisp.org>
16335
16336         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
16337         * modules/isnanl-tests (configure.ac): Likewise.
16338
16339 2007-04-03  Ben Pfaff  <blp@gnu.org>
16340
16341         * modules/iconv_open: Add $(srcdir)/ to source directory
16342         references in Makefile fragments that call gperf, to fix VPATH
16343         builds.
16344
16345 2007-04-03  Bruno Haible  <bruno@clisp.org>
16346
16347         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
16348         * lib/ldexpl.c: Undo last change.
16349
16350 2007-04-03  Bruno Haible  <bruno@clisp.org>
16351
16352         * modules/printf-frexpl (Depends-on): Undo last change.
16353         (Files): Add m4/ldexpl.m4.
16354
16355 2007-04-03  Bruno Haible  <bruno@clisp.org>
16356
16357         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
16358         * modules/isnanl (Link): New section.
16359
16360         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
16361         * modules/frexp (Link): New section.
16362
16363         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
16364         * modules/frexpl (Link): New section.
16365
16366         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
16367         * modules/ldexpl (Link): New section.
16368
16369 2007-04-03  Bruno Haible  <bruno@clisp.org>
16370
16371         * modules/TEMPLATE-EXTENDED: New file.
16372         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
16373
16374 2007-04-03  Bruno Haible  <bruno@clisp.org>
16375
16376         * DEPENDENCIES: New file.
16377         Suggested by Simon Josefsson.
16378
16379 2007-04-03  Bruno Haible  <bruno@clisp.org>
16380
16381         * doc/gnulib.texi: Escape @.
16382
16383 2007-04-03  James Youngman  <jay@gnu.org>
16384         and Paul Eggert  <eggert@cs.ucla.edu>
16385
16386         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
16387         birthtime on all systems that have birthtime, not just those which
16388         use st_birthtimensec rather than st_birthtim.  Putting zero in
16389         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
16390         that the birth time is not available for files on an NFS mount.
16391
16392 2007-04-03  Simon Josefsson  <simon@josefsson.org>
16393
16394         * modules/memxor: Move back from crypto/, suggested by Bruno.
16395         * modules/crypto/hmac-sha1: Fix memxor dependency.
16396
16397         * modules/crypto/gc: Moved from ../.
16398
16399 2007-04-02  Eric Blake  <ebb9@byu.net>
16400
16401         * lib/ldexpl.c (includes): Avoid libm.
16402
16403         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
16404
16405 2007-04-02  Bruno Haible  <bruno@clisp.org>
16406
16407         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
16408         on IRIX.
16409
16410 2007-04-02  Bruno Haible  <bruno@clisp.org>
16411
16412         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
16413         x86 or x86_64 platforms running MacOS X.
16414         Reported by Ryan Schmidt <@ryandesign.com>.
16415
16416 2007-04-02  Bruno Haible  <bruno@clisp.org>
16417
16418         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
16419         i386.
16420
16421 2007-04-01  Simon Josefsson  <simon@josefsson.org>
16422
16423         * modules/crypto/arcfour: Moved from ../.
16424         * modules/crypto/arcfour-tests: Moved from ../.
16425         * modules/crypto/arctwo: Moved from ../.
16426         * modules/crypto/arctwo-tests: Moved from ../.
16427         * modules/crypto/des: Moved from ../.
16428         * modules/crypto/des-tests: Moved from ../.
16429         * modules/crypto/gc-arcfour: Moved from ../.
16430         * modules/crypto/gc-arcfour-tests: Moved from ../.
16431         * modules/crypto/gc-arctwo: Moved from ../.
16432         * modules/crypto/gc-arctwo-tests: Moved from ../.
16433         * modules/crypto/gc-des: Moved from ../.
16434         * modules/crypto/gc-des-tests: Moved from ../.
16435         * modules/crypto/gc-hmac-md5: Moved from ../.
16436         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
16437         * modules/crypto/gc-hmac-sha1: Moved from ../.
16438         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
16439         * modules/crypto/gc-md2: Moved from ../.
16440         * modules/crypto/gc-md2-tests: Moved from ../.
16441         * modules/crypto/gc-md4: Moved from ../.
16442         * modules/crypto/gc-md4-tests: Moved from ../.
16443         * modules/crypto/gc-md5: Moved from ../.
16444         * modules/crypto/gc-md5-tests: Moved from ../.
16445         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
16446         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
16447         * modules/crypto/gc-random: Moved from ../.
16448         * modules/crypto/gc-rijndael: Moved from ../.
16449         * modules/crypto/gc-rijndael-tests: Moved from ../.
16450         * modules/crypto/gc-sha1: Moved from ../.
16451         * modules/crypto/gc-sha1-tests: Moved from ../.
16452         * modules/crypto/gc-tests: Moved from ../.
16453         * modules/crypto/hmac-md5: Moved from ../.
16454         * modules/crypto/hmac-md5-tests: Moved from ../.
16455         * modules/crypto/hmac-sha1: Moved from ../.
16456         * modules/crypto/hmac-sha1-tests: Moved from ../.
16457         * modules/crypto/md2: Moved from ../.
16458         * modules/crypto/md2-tests: Moved from ../.
16459         * modules/crypto/md4: Moved from ../.
16460         * modules/crypto/md4-tests: Moved from ../.
16461         * modules/crypto/md5: Moved from ../.
16462         * modules/crypto/md5-tests: Moved from ../.
16463         * modules/crypto/memxor: Moved from ../.
16464         * modules/crypto/rijndael: Moved from ../.
16465         * modules/crypto/rijndael-tests: Moved from ../.
16466         * modules/crypto/sha1: Moved from ../.
16467
16468 2007-03-30  James Youngman  <jay@gnu.org>
16469
16470         * tests/test-stat-time.c (prepare_test): use chmod() rather than
16471         rename() to change the ctime of a file (because ctime is unaffected
16472         by rename on jfs2 on AIX 5.1).
16473         (main): Start by doing cleanup, in case a previous run failed leaving
16474         test files behind.
16475
16476 2007-03-31  Bruno Haible  <bruno@clisp.org>
16477
16478         Support old proprietary implementations of iconv.
16479         * modules/iconv_open: New file.
16480         * lib/iconv_.h: New file.
16481         * m4/iconv_h.m4: New file.
16482         * lib/iconv_open.c: New file.
16483         * lib/iconv_open-aix.gperf: New file.
16484         * lib/iconv_open-hpux.gperf: New file.
16485         * lib/iconv_open-irix.gperf: New file.
16486         * lib/iconv_open-osf.gperf: New file.
16487         * m4/iconv_open.m4: New file.
16488         * modules/linebreak (Depends-on): Add iconv_open.
16489         * modules/striconv (Depends-on): Likewise.
16490         * modules/striconveh (Depends-on): Likewise.
16491         * modules/unicodeio (Depends-on): Likewise.
16492         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
16493         (iconv_t)(-1).
16494         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
16495         conversion if cd is (iconv_t)(-1).
16496         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
16497         is not possible.
16498
16499 2007-03-31  Bruno Haible  <bruno@clisp.org>
16500
16501         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
16502         work on Solaris either. Protect also second use of "autodetect_jp".
16503
16504 2007-03-31  Bruno Haible  <bruno@clisp.org>
16505
16506         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
16507         the function is not present.
16508
16509 2007-03-31  Bruno Haible  <bruno@clisp.org>
16510
16511         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
16512         the function is not present.
16513
16514 2007-03-31  Bruno Haible  <bruno@clisp.org>
16515
16516         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
16517         a bug in HP-UX iconv_open().
16518
16519 2007-03-31  Bruno Haible  <bruno@clisp.org>
16520
16521         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
16522         (Mathematics <math.h>): New section, add fpieee.
16523         (Input/output <stdio.h>): Add fseterr.
16524         (Mathematics <math.h>): New section, add printf-frexp.
16525         (Container data structures): Add sublist.
16526         (Core language properties): Add fpucw, inline.
16527         (Functions for greatest-width integer types <inttypes.h>): Add
16528         imaxabs, imaxdiv, inttypes.
16529         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
16530         isnanl-nolibm, ldexp.
16531         (Mathematics <math.h>): New section, add printf-frexpl.
16532         (Support for systems lacking POSIX:2001): Add fprintf-posix,
16533         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
16534         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
16535         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
16536         (Unicode string functions): Add unistr/u*-mbtoucr.
16537         (Java): Add javacomp-script, javaexec-script.
16538         (C#): Add csharpcomp-script, csharpexec-script.
16539         (Support for building libraries and executables): Add havelib,
16540         relocatable-*.
16541         (Support for maintaining and releasing projects): Renamed from
16542         'Support for maintaining and release projects'. Add announce-gen.
16543
16544 2007-03-31  Bruno Haible  <bruno@clisp.org>
16545
16546         * README: Talk primarily about git.
16547         (git and CVS): Renamed from CVS.
16548         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
16549         gnulib is available through git.
16550         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
16551
16552 2007-03-30  Bruno Haible  <bruno@clisp.org>
16553
16554         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
16555         * lib/poll_.h: Likewise.
16556         * lib/stat_.h: Likewise.
16557         * lib/sys_time_.h: Likewise.
16558         * lib/sysexit_.h: Likewise.
16559         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
16560         * lib/stdbool_.h: Likewise.
16561         * lib/byteswap_.h: Add double-inclusion guard.
16562
16563 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
16564
16565         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
16566
16567 2007-03-30  Karl Berry  <karl@gnu.org>
16568
16569         * config/srclist-update: double space after USA in the license
16570         substitution, since that's how it's usually (?) written.
16571
16572 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
16573
16574         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
16575         reported by Bruno Haible.
16576
16577 2007-03-29  Bruno Haible  <bruno@clisp.org>
16578
16579         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
16580         a bug in AIX iconv().
16581
16582 2007-03-29  Bruno Haible  <bruno@clisp.org>
16583
16584         * modules/ldexpl-tests: New file.
16585         * tests/test-ldexpl.c: New file.
16586
16587 2007-03-29  Bruno Haible  <bruno@clisp.org>
16588
16589         * lib/ldexpl.c: Include fpucw.h.
16590         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
16591         multiplication.
16592         * modules/ldexpl (Depends-on): Add fpucw.
16593
16594 2007-03-29  Bruno Haible  <bruno@clisp.org>
16595
16596         * modules/ldexpl: New file.
16597         * m4/ldexpl.m4: New file.
16598         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
16599         set.
16600         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
16601         REPLACE_LDEXPL.
16602         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
16603         REPLACE_LDEXPL.
16604         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
16605         gl_FUNC_LDEXPL_WORKS.
16606         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
16607         * modules/mathl (Files): Remove lib/ldexpl.c.
16608         (Depends-on): Add ldexpl.
16609
16610 2007-03-29  Bruno Haible  <bruno@clisp.org>
16611
16612         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
16613
16614 2007-03-29  Bruno Haible  <bruno@clisp.org>
16615
16616         * tests/test-striconveh.c (main): Don't assume that a direct conversion
16617         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
16618         and possibly also HP-UX.
16619         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
16620         work on AIX, IRIX, HP-UX, OSF/1.
16621         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
16622         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
16623         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
16624         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
16625         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
16626         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
16627
16628 2007-03-29  Bruno Haible  <bruno@clisp.org>
16629
16630         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
16631
16632 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
16633
16634         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
16635         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
16636
16637 2007-03-29  Eric Blake  <ebb9@byu.net>
16638
16639         * lib/acl-internal.h: Remove redundant include.
16640         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
16641         Cygwin when a file is locked.
16642
16643 2007-03-29  Bruno Haible  <bruno@clisp.org>
16644
16645         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
16646         file.
16647         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
16648
16649 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
16650
16651         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
16652         try to remove a parent directory if the child couldn't be removed
16653         (except for the first rmdir, which could fail because the child
16654         doesn't exist).  Problem reported by Jeff Blaine in
16655         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
16656
16657 2007-03-28  Bruno Haible  <bruno@clisp.org>
16658
16659         * lib/striconveh.c (utf8conv_carefully): New function.
16660         (mem_cd_iconveh_internal): Invoke it.
16661
16662 2007-03-28  Bruno Haible  <bruno@clisp.org>
16663
16664         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
16665         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
16666         input.
16667         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
16668         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
16669         unistr/u8-uctomb.
16670
16671 2007-03-28  Bruno Haible  <bruno@clisp.org>
16672
16673         * modules/unistr/u8-mbtoucr: New file.
16674         * lib/unistr/u8-mbtoucr.c: New file.
16675         * modules/unistr/u16-mbtoucr: New file.
16676         * lib/unistr/u16-mbtoucr.c: New file.
16677         * modules/unistr/u16-mbtoucr: New file.
16678         * lib/unistr/u16-mbtoucr.c: New file.
16679         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
16680
16681 2007-03-27  Simon Josefsson  <simon@josefsson.org>
16682             Bruno Haible  <bruno@clisp.org>
16683
16684         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
16685         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
16686         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
16687
16688         * m4/stdio_h.m4: Add stubs for vasprintf too.
16689
16690         * modules/stdio: Support vasprintf in sed command.
16691
16692         * modules/vasprintf: Depend on stdio for prototypes.  Remove
16693         vasprintf.h.  Add stdio module indicator.
16694
16695         * lib/stdio_.h: Declare asprintf and vasprintf, based on
16696         vasprintf.h.
16697
16698         * lib/vasprintf.h: File removed.
16699
16700         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
16701         * lib/vasprintf.c: Ditto.
16702         * lib/xvasprintf.c: Ditto.
16703         * tests/test-vasprintf-posix.c: Ditto.
16704         * tests/test-vasprintf.c: Ditto.
16705
16706 2007-03-27  Bruno Haible  <bruno@clisp.org>
16707
16708         Make vasnprintf multithread-safe.
16709         * lib/vasnprintf.c (decimal_point_char): New function.
16710         (VASNPRINTF): Use it.
16711         Suggested by Simon Josefsson.
16712
16713 2007-03-27  Eric Blake  <ebb9@byu.net>
16714
16715         Support sub-second birthtime on cygwin.
16716         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
16717         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
16718         (get_stat_birthtime): Also work with st_birthtim.
16719
16720 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
16721
16722         * lib/stat-time.h (USE_BIRTHTIME): Remove.
16723         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
16724         (get_stat_birthtime_ns): Do not try to use "spare" fields.
16725         (get_stat_birthtime_ns): Simplify compile-time tests.
16726         (get_stat_birthtime): Change the API to look like
16727         get_stat_mtime etc., except return a negative tv_nsec on error.
16728         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
16729         Don't check for "spare" fields.
16730         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
16731         or for struct stat.st_birthtime, as these tests aren't used.
16732         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
16733
16734 2007-03-27  Bruno Haible  <bruno@clisp.org>
16735
16736         * lib/stat-time.h: Include <sys/stat.h>.
16737
16738 2007-03-27  James Youngman  <jay@gnu.org>
16739
16740         * lib/stat-time.h (get_stat_birthtime): New function for
16741           retrieving st_birthtime as provided by UFS2 (hence *BSD).
16742         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
16743           and its variants.
16744         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
16745         * modules/stat-time-test: New file.
16746         * tests/test-stat-time.c: New test, devised by Bruno Haible.
16747
16748 2007-03-26  Bruno Haible  <bruno@clisp.org>
16749
16750         Better support of signalling NaNs.
16751         * lib/atanl.c: Include isnanl.h.
16752         (atanl): Perform test for NaN at the beginning of the function and
16753         through a call to isnanl.
16754         * lib/cosl.c: Include isnanl.h.
16755         (cosl): Perform test for NaN at the beginning of the function and
16756         through a call to isnanl.
16757         * lib/ldexpl.c: Include isnanl.h.
16758         (ldexpl): Perform test for NaN through a call to isnanl.
16759         * lib/logl.c: Include isnanl.h.
16760         (logl): Perform test for NaN at the beginning of the function and
16761         through a call to isnanl.
16762         * lib/sinl.c: Include isnanl.h.
16763         (sinl): Perform test for NaN at the beginning of the function and
16764         through a call to isnanl.
16765         * lib/sqrtl.c: Include isnanl.h.
16766         (sqrtl): Perform test for NaN at the beginning of the function and
16767         through a call to isnanl.
16768         * lib/tanl.c: Include isnanl.h.
16769         (tanl): Perform test for NaN at the beginning of the function and
16770         through a call to isnanl.
16771         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
16772         * modules/mathl (Depends-on): Add isnanl.
16773
16774 2007-03-26  Eric Blake  <ebb9@byu.net>
16775
16776         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
16777         regression in logic sense of previous patch.
16778
16779 2007-03-26  Bruno Haible  <bruno@clisp.org>
16780
16781         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
16782         unportable shell command "if ! ...".
16783         Reported by Ralf Wildenhues.
16784
16785 2007-03-25  Bruno Haible  <bruno@clisp.org>
16786
16787         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
16788         <sysexits.h> file, and only add EX_CONFIG.
16789         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
16790         absolute file name and whether it is sufficient. Substitute also
16791         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
16792         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
16793         ABSOLUTE_SYSEXITS_H into sysexits.h.
16794
16795 2007-03-25  Bruno Haible  <bruno@clisp.org>
16796
16797         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
16798         hints is NULL.
16799
16800 2007-03-25  Bruno Haible  <bruno@clisp.org>
16801
16802         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
16803         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
16804
16805 2007-03-25  Bruno Haible  <bruno@clisp.org>
16806
16807         * lib/vasnprintf.c: Include langinfo.h.
16808         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
16809         multithread-safe.
16810         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
16811         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
16812         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
16813         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
16814         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
16815         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
16816         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
16817         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
16818         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
16819         Reported by Simon Josefsson.
16820
16821 2007-03-25  Bruno Haible  <bruno@clisp.org>
16822
16823         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
16824         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
16825         * modules/vasnprintf (Depends-on): Add stdint.
16826
16827 2007-03-25  Bruno Haible  <bruno@clisp.org>
16828
16829         * modules/fpieee: New file.
16830         * m4/fpieee.m4: New file.
16831         * modules/isnan-nolibm (Depends-on): Add fpieee.
16832         * modules/isnanl-nolibm (Depends-on): Add fpieee.
16833         * modules/isnanl (Depends-on): Add fpieee.
16834
16835 2007-03-25  Bruno Haible  <bruno@clisp.org>
16836
16837         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
16838
16839 2007-03-25  Bruno Haible  <bruno@clisp.org>
16840
16841         Avoid test failures on IRIX 6.5.
16842         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
16843         (main): Use it.
16844         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
16845         macros.
16846         (main): Use them.
16847
16848 2007-03-25  Bruno Haible  <bruno@clisp.org>
16849
16850         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
16851         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
16852         exists but doesn't work.
16853         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
16854         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
16855         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
16856         * modules/math (Makefile.am) Substibute also REPLACE_FREXPL into math.h.
16857
16858 2007-03-25  Bruno Haible  <bruno@clisp.org>
16859
16860         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
16861         returns inf. Needed on IRIX 6.5.
16862
16863 2007-03-25  Bruno Haible  <bruno@clisp.org>
16864
16865         * tests/test-frexpl.c: Include isnanl-nolibm.h.
16866         (main): Use isnanl instead of x != x idiom.
16867         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
16868
16869         * tests/test-frexp.c: Include isnan.h.
16870         (main): Use isnan instead of x != x idiom.
16871         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
16872
16873 2007-03-25  Bruno Haible  <bruno@clisp.org>
16874
16875         * tests/test-frexp.c (NaN): New function/macro.
16876         (main): Use it instead of 0.0 / 0.0.
16877         * tests/test-isnan.c (NaN): New function/macro.
16878         (main): Use it instead of 0.0 / 0.0.
16879         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
16880         (test_function): Use it instead of 0.0 / 0.0.
16881         * tests/test-vasprintf-posix.c (NaN): New function/macro.
16882         (test_function): Use it instead of 0.0 / 0.0.
16883         * tests/test-snprintf-posix.h (NaN): New function/macro.
16884         (test_function): Use it instead of 0.0 / 0.0.
16885         * tests/test-sprintf-posix.h (NaN): New function/macro.
16886         (test_function): Use it instead of 0.0 / 0.0.
16887         * tests/test-fprintf-posix.h (NaN): New function/macro.
16888         (test_function): Use it instead of 0.0 / 0.0.
16889         * tests/test-printf-posix.h (NaN): New function/macro.
16890         (test_function): Use it instead of 0.0 / 0.0.
16891
16892         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
16893
16894 2007-03-25  Bruno Haible  <bruno@clisp.org>
16895
16896         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
16897
16898 2007-03-25  Bruno Haible  <bruno@clisp.org>
16899
16900         * lib/regexec.c (merge_state_with_log): Make static.
16901
16902 2007-03-25  Bruno Haible  <bruno@clisp.org>
16903
16904         * lib/trigl.c (kernel_rem_pio2): Make static.
16905
16906 2007-03-25  Bruno Haible  <bruno@clisp.org>
16907
16908         * lib/sincosl.c (sincosl_table): Make static.
16909
16910 2007-03-25  Bruno Haible  <bruno@clisp.org>
16911
16912         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
16913         if the compiler does not support C99.
16914
16915 2007-03-25  Bruno Haible  <bruno@clisp.org>
16916
16917         * modules/time (Makefile.am): Ensure all rule action lines start with a
16918         tab.
16919
16920 2007-03-24  Bruno Haible  <bruno@clisp.org>
16921
16922         * modules/tsearch-tests: New file.
16923         * tests/test-tsearch.sh: New file.
16924         * tests/test-tsearch.c: New file, mostly copied from glibc.
16925
16926         * modules/search-tests: New file.
16927         * tests/test-search.c: New file.
16928
16929         * modules/search: New file.
16930         * lib/search_.h: New file, incorporating lib/tsearch.h.
16931         * m4/search_h.m4: New file.
16932         * lib/tsearch.h: Remove file.
16933         * lib/tsearch.c: Include search.h instead of tsearch.h.
16934         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
16935         HAVE_TSEARCH.
16936         * modules/tsearch (Files): Remove lib/tsearch.h.
16937         (Depends-on): Add search.
16938         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
16939         (Include): Change tsearch.h into search.h.
16940
16941 2007-03-24  Bruno Haible  <bruno@clisp.org>
16942
16943         * modules/fpucw: New file.
16944         * lib/fpucw.h: New file.
16945         * lib/frexp.c: Include fpucw.h.
16946         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
16947         (FUNC): Use them.
16948         * lib/printf-frexp.c: Include fpucw.h.
16949         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
16950         (FUNC): Use them.
16951         * lib/vasnprintf.c: Include fpucw.h.
16952         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
16953         'long double' calculations.
16954         * tests/test-frexpl.c: Include fpucw.h.
16955         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
16956         * tests/test-printf-frexpl.c: Include fpucw.h.
16957         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
16958         * modules/frexpl (Depends-on): Add fpucw.
16959         * modules/printf-frexpl (Depends-on): Likewise.
16960         * modules/fprintf-posix (Depends-on): Likewise.
16961         * modules/snprintf-posix (Depends-on): Likewise.
16962         * modules/sprintf-posix (Depends-on): Likewise.
16963         * modules/vasnprintf-posix (Depends-on): Likewise.
16964         * modules/vasprintf-posix (Depends-on): Likewise.
16965         * modules/vfprintf-posix (Depends-on): Likewise.
16966         * modules/vsnprintf-posix (Depends-on): Likewise.
16967         * modules/vsprintf-posix (Depends-on): Likewise.
16968         * modules/frexpl-tests (Depends-on): Likewise.
16969         * modules/printf-frexpl-tests (Depends-on): Likewise.
16970
16971 2007-03-24  Bruno Haible  <bruno@clisp.org>
16972
16973         * lib/float+.h: New file.
16974         * lib/isnan.c: Include float+.h.
16975         (SIZE): New macro.
16976         (FUNC): Compare only SIZE bytes of the value.
16977         * lib/vasnprintf.c: Include float+.h.
16978         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
16979         SIZEOF_LDBL or SIZEOF_DBL bytes.
16980         * modules/isnan-nolibm (Files): Add lib/float+.h.
16981         * modules/isnanl-nolibm (Files): Add lib/float+.h.
16982         * modules/isnanl (Files): Add lib/float+.h.
16983         * modules/vasnprintf (Files): Add lib/float+.h.
16984
16985 2007-03-24  Bruno Haible  <bruno@clisp.org>
16986
16987         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
16988         include isnanl-nolibm.h.
16989
16990 2007-03-24  Bruno Haible  <bruno@clisp.org>
16991
16992         * tests/test-read-file.c (main): Don't produce spurious output for
16993         expected situations. Make the test fail if it encountered unexpected
16994         results.
16995
16996 2007-03-24  Bruno Haible  <bruno@clisp.org>
16997
16998         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
16999         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
17000
17001 2007-03-24  Bruno Haible  <bruno@clisp.org>
17002
17003         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
17004
17005 2007-03-24  Bruno Haible  <bruno@clisp.org>
17006
17007         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
17008         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
17009
17010         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
17011         * modules/utf8-ucs4: Turn into a symbolic link to module
17012         unistr/u8-mbtouc.
17013
17014         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
17015         utf8-ucs4-unsafe.
17016         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
17017         unistr/u8-mbtouc-unsafe.
17018
17019         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
17020         * modules/utf16-ucs4: Turn into a symbolic link to module
17021         unistr/u16-mbtouc.
17022
17023         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
17024         utf16-ucs4-unsafe.
17025         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
17026         unistr/u16-mbtouc-unsafe.
17027
17028         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
17029         * modules/ucs4-utf8: Turn into a symbolic link to module
17030         unistr/u8-ubtomb.
17031
17032         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
17033         * modules/ucs4-utf16: Turn into a symbolic link to module
17034         unistr/u16-ubtomb.
17035
17036 2007-03-24  Bruno Haible  <bruno@clisp.org>
17037
17038         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
17039         Enable the function only if HAVE_INLINE.
17040         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
17041         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
17042         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
17043         Enable the function only if HAVE_INLINE.
17044         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
17045         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
17046         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
17047         Enable the function only if HAVE_INLINE.
17048         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
17049         Enable the function only if HAVE_INLINE.
17050         * modules/utf8-ucs4: Update.
17051         * modules/utf8-ucs4-unsafe: Update.
17052         * modules/utf16-ucs4: Update.
17053         * modules/utf16-ucs4-unsafe: Update.
17054         * modules/ucs4-utf8: Update.
17055         * modules/ucs4-utf16: Update.
17056
17057 2007-03-24  Bruno Haible  <bruno@clisp.org>
17058
17059         * lib/utf8-ucs4.h: Remove file.
17060         * lib/utf8-ucs4-unsafe.h: Remove file.
17061         * lib/utf16-ucs4.h: Remove file.
17062         * lib/utf16-ucs4-unsafe.h: Remove file.
17063         * lib/ucs4-utf8.h: Remove file.
17064         * lib/ucs4-utf16.h: Remove file.
17065         * lib/unistr.h: Include their previous contents.
17066         * m4/utf-ucs4.m4: Remove file.
17067         * m4/ucs4-utf.m4: Remove file.
17068         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
17069         (Depends-on): Add unistr/base.
17070         (configure.ac): Remove gl_UTF_UCS4.
17071         (Makefile.am): Update.
17072         (Include): Change to unistr.h.
17073         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
17074         (Depends-on): Add unistr/base.
17075         (configure.ac): Remove gl_UTF_UCS4.
17076         (Makefile.am): Update.
17077         (Include): Change to unistr.h.
17078         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
17079         (Depends-on): Add unistr/base.
17080         (configure.ac): Remove gl_UTF_UCS4.
17081         (Makefile.am): Update.
17082         (Include): Change to unistr.h.
17083         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
17084         (Depends-on): Add unistr/base.
17085         (configure.ac): Remove gl_UTF_UCS4.
17086         (Makefile.am): Update.
17087         (Include): Change to unistr.h.
17088         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
17089         (Depends-on): Add unistr/base.
17090         (configure.ac): Remove gl_UCS4_UTF.
17091         (Makefile.am): Update.
17092         (Include): Change to unistr.h.
17093         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
17094         (Depends-on): Add unistr/base.
17095         (configure.ac): Remove gl_UCS4_UTF.
17096         (Makefile.am): Update.
17097         (Include): Change to unistr.h.
17098         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
17099         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
17100         utf8-ucs4-unsafe.h.
17101         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
17102         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
17103         utf16-ucs4-unsafe.h.
17104         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
17105         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
17106         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
17107         * lib/unistr/u8-strchr.c: Likewise.
17108         * lib/unistr/u8-strrchr.c: Likewise.
17109         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
17110         * lib/unistr/u16-strchr.c: Likewise.
17111         * lib/unistr/u16-strrchr.c: Likewise.
17112         * lib/striconveh.c: Update.
17113         * lib/linebreak.c: Update.
17114
17115 2007-03-24  Bruno Haible  <bruno@clisp.org>
17116
17117         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
17118         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
17119
17120 2007-03-22  Bruno Haible  <bruno@clisp.org>
17121
17122         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
17123
17124 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
17125
17126         * MODULES.html.sh (File system functions): New module write-any-file.
17127         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
17128         * m4/write-any-file.m4: New files.
17129
17130 2007-03-23  Eric Blake  <ebb9@byu.net>
17131
17132         * gnulib-tool: Rearrange space-tab sequences, since some editors
17133         like to eat them.
17134
17135 2007-03-23  Eric Blake  <ebb9@byu.net>
17136
17137         * lib/version-etc.c (version_etc_va): Update license wording to
17138         be more concise.  Recommended by Richard Stallman.
17139
17140 2007-03-22  Bruno Haible  <bruno@clisp.org>
17141
17142         * lib/poll.c (MSG_PEEK): New fallback definition.
17143
17144 2007-03-22  Bruno Haible  <bruno@clisp.org>
17145
17146         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
17147         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
17148         (main): Update.
17149         Fixes a compilation error on BeOS.
17150
17151 2007-03-22  Bruno Haible  <bruno@clisp.org>
17152
17153         * modules/frexpl-tests: New file.
17154         * tests/test-frexpl.c: New file.
17155
17156         * modules/frexpl: New file.
17157         * m4/frexpl.m4: New file.
17158         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
17159         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
17160         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
17161         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
17162         (Depends-on): Add frexpl. Remove isnanl-nolibm.
17163         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
17164
17165 2007-03-22  Bruno Haible  <bruno@clisp.org>
17166
17167         * lib/frexpl.c: Share code with lib/frexp.c.
17168         * modules/mathl (Files): Add lib/frexp.c.
17169         (Depends-on): Add isnanl-nolibm.
17170
17171 2007-03-22  Bruno Haible  <bruno@clisp.org>
17172
17173         * modules/printf-frexp (Files): Add m4/frexp.m4.
17174         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
17175         only if the found frexp function actually works.
17176
17177 2007-03-22  Bruno Haible  <bruno@clisp.org>
17178
17179         * lib/frexp.c: Remove older implementation that uses divisions.
17180
17181 2007-03-21  Bruno Haible  <bruno@clisp.org>
17182
17183         * modules/frexp-tests: New file.
17184         * tests/test-frexp.c: New file.
17185
17186         * modules/frexp: New file.
17187         * lib/frexp.c: New file.
17188         * m4/frexp.m4: New file.
17189         * lib/math_.h (frexp): New declaration.
17190         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
17191         REPLACE_FREXP.
17192         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
17193
17194 2007-03-21  Bruno Haible  <bruno@clisp.org>
17195
17196         * modules/isnanl-tests: New file.
17197         * tests/test-isnanl.c: New file.
17198
17199         * modules/isnanl: New file.
17200         * lib/isnanl.h: New file.
17201         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
17202         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
17203         gl_FUNC_ISNANL_WORKS.
17204         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
17205         New macros.
17206
17207 2007-03-21  Bruno Haible  <bruno@clisp.org>
17208
17209         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
17210         lib/isnanl.h.
17211         (Include): Update.
17212         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
17213         * lib/vasnprintf.c: Update.
17214         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
17215         tests/test-isnanl.h, remove tests/test-isnanl.c.
17216         (Makefile.am): Update.
17217         * tests/test-isnanl-nolibm.c: New file.
17218         * tests/test-isnanl.h: New file.
17219         * tests/test-isnanl.c: Remove file.
17220
17221 2007-03-21  Jim Meyering  <jim@meyering.net>
17222
17223         When trying to open ".", treat ESTALE like EACCES.
17224         * lib/savewd.c (savewd_save): Resort to forking not just upon
17225         failure with EACCES, but also when errno is ESTALE.
17226
17227 2007-03-20  Bruno Haible  <bruno@clisp.org>
17228
17229         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
17230         Needed on AIX 5.1. Reported by Matthew Woehlke.
17231
17232 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
17233
17234         Suggestions by Bruno Haible:
17235         * lib/acl-internal.h: Include "gettext.h" rather than rolling
17236         our own.
17237         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
17238         * modules/acl (Depends-on): Add gettext.
17239
17240 2007-03-19  Bruno Haible  <bruno@clisp.org>
17241
17242         * modules/iconvme: Remove file.
17243         * lib/iconvme.h: Remove file.
17244         * lib/iconvme.c: Remove file.
17245         * m4/iconvme.m4: Remove file.
17246
17247 2007-03-19  Bruno Haible  <bruno@clisp.org>
17248
17249         * doc/relocatable-maint.texi: Break long shell script line.
17250         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
17251
17252 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
17253
17254         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
17255         handle file_has_acl.
17256         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
17257         * lib/acl.c: Move header inclusions and related macro defns into
17258         lib/acl-internal.h.
17259         (S_ISLNK): Remove defn, since that's now done for us.
17260         (file_has_acl): Move to lib/file-has-acl.c.
17261         Call acl_trivial if available.  This is the crucial part of the fix.
17262         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
17263         shared within the library.  Rewrite a bit, partly to make it compatible
17264         with the GNU coding style.
17265         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
17266         Remove unnecessary double-quotes.
17267         Don't test for acl_to_text; the build will catch that.
17268         Replace acl_entries if it doesn't exist and it is needed.
17269         Check for -lsec and acl_trivial (as used on Solaris 10).
17270         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
17271         lib/file-has-acl.c.
17272         (Depends-on): Add sys_stat, for S_ISLNK.
17273
17274 2007-03-19  Ben Pfaff  <blp@gnu.org>
17275
17276         * doc/gnulib.texi: Fix typos.
17277         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
17278
17279 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
17280
17281         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
17282         If size is zero here, buf must be zero.
17283
17284 2007-03-19  Simon Josefsson  <simon@josefsson.org>
17285
17286         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
17287         <bruno@clisp.org>.
17288
17289 2007-03-18  Bruno Haible  <bruno@clisp.org>
17290
17291         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
17292         Suggested by Eric Blake.
17293
17294 2007-03-18  Ben Pfaff  <blp@gnu.org>
17295
17296         * doc/relocatable.texi: Recommend using as prefix a directory
17297         that does not exist and will never be created.  Based on
17298         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
17299         and others.
17300
17301 2007-03-17  Bruno Haible  <bruno@clisp.org>
17302
17303         * lib/fchownat.c: Include lchown.h.
17304
17305 2007-03-17  Bruno Haible  <bruno@clisp.org>
17306
17307         Fix endless loop when the given allocated size was > INT_MAX.
17308         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
17309         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
17310         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
17311         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
17312         * lib/sprintf.c (sprintf): Likewise.
17313
17314 2007-03-17  Bruno Haible  <bruno@clisp.org>
17315
17316         * tests/test-argp-2.sh (func_compare): Output a context diff.
17317
17318 2007-03-17  Bruno Haible  <bruno@clisp.org>
17319
17320         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
17321         locale's decimal-point character.
17322
17323 2007-03-17  Bruno Haible  <bruno@clisp.org>
17324
17325         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
17326         before comparing it. Needed because on some platforms (e.g. x86) a
17327         'long double' occupies less bytes than sizeof (long double).
17328
17329 2007-03-17  Bruno Haible  <bruno@clisp.org>
17330
17331         * tests/test-crc.c (main): Make printf statements 64-bit clean.
17332         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
17333         * tests/test-getaddrinfo.c (simple): Likewise.
17334         * tests/test-read-file.c (main): Likewise.
17335
17336 2007-03-17  Bruno Haible  <bruno@clisp.org>
17337
17338         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
17339
17340 2007-03-17  Bruno Haible  <bruno@clisp.org>
17341
17342         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
17343         unused variable.
17344
17345 2007-03-17  Bruno Haible  <bruno@clisp.org>
17346
17347         * tests/test-c-strcasecmp.c: Include c-strcase.h.
17348         * tests/test-c-strncasecmp.c: Likewise.
17349
17350 2007-03-17  Bruno Haible  <bruno@clisp.org>
17351
17352         * modules/stdlib (Depends-on): Add unistd.
17353         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
17354         Needed for MacOS X 10.3.
17355
17356 2007-03-17  Bruno Haible  <bruno@clisp.org>
17357
17358         * lib/unistr/u-strdup.h: Include <stdlib.h>.
17359
17360 2007-03-17  Bruno Haible  <bruno@clisp.org>
17361
17362         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
17363
17364 2007-03-17  Bruno Haible  <bruno@clisp.org>
17365
17366         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
17367         to reflect files copied from gnulib (with or without modifications).
17368         Suggested by Jim Meyering.
17369
17370 2007-03-17  Eric Blake  <ebb9@byu.net>
17371
17372         * NEWS: Document stdlib change from 2007-02-18.
17373
17374 2007-03-17  Jim Meyering  <jim@meyering.net>
17375
17376         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
17377         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
17378         someone uses a name containing shell meta-characters.
17379         Reported by Alfred M. Szmidt.
17380
17381         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
17382
17383 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
17384
17385         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
17386         and copy gettext configuration files only if configure.ac contains
17387         a use of AM_GNU_GETTEXT_VERSION.
17388
17389 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
17390
17391         * build-aux/bootstrap (gnulib_name): New variable.
17392         (gnulib_tool_options): Use it.
17393
17394 2007-03-13  Simon Josefsson  <simon@josefsson.org>
17395
17396         * tests/test-des.c: Use new namespace.
17397
17398 2007-03-15  Bruno Haible  <bruno@clisp.org>
17399
17400         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
17401         Reported by James Youngman <jay@gnu.org>.
17402
17403 2007-03-15  Bruno Haible  <bruno@clisp.org>
17404
17405         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
17406         declared prototype. Needed with cc on OSF/1 5.1.
17407
17408 2007-03-15  Bruno Haible  <bruno@clisp.org>
17409
17410         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
17411         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
17412         (struct gl_list_implementation): Add dispose_fn argument to the
17413         'create_empty', 'create' methods.
17414         (struct gl_list_impl_base): Add field 'dispose_fn'.
17415         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
17416         argument.
17417         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
17418         dispose_fn argument.
17419         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
17420         dispose_fn on the dropped values.
17421         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
17422         dispose_fn argument.
17423         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
17424         dropped values.
17425         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
17426         (gl_tree_remove_node): Call dispose_fn on the dropped value.
17427         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
17428         (gl_tree_remove_node): Call dispose_fn on the dropped value.
17429         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
17430         argument.
17431         (gl_tree_list_free): Call dispose_fn on the dropped values.
17432         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
17433         the dropped values.
17434         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
17435         Add dispose_fn argument.
17436         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
17437         Call dispose_fn on the dropped values.
17438         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
17439         Add dispose_fn argument.
17440         (gl_sublist_create): Initialize the 'dispose_fn' field.
17441         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
17442         * tests/test-array_list.c (main): Update.
17443         * tests/test-carray_list.c (main): Update.
17444         * tests/test-avltree_list.c (main): Update.
17445         * tests/test-rbtree_list.c (main): Update.
17446         * tests/test-avltreehash_list.c (main): Update.
17447         * tests/test-rbtreehash_list.c (main): Update.
17448         * tests/test-linked_list.c (main): Update.
17449         * tests/test-linkedhash_list.c (main): Update.
17450         * tests/test-array_oset.c (main): Update.
17451
17452 2007-03-15  Bruno Haible  <bruno@clisp.org>
17453
17454         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
17455         (gl_oset_create_empty): Add dispose_fn argument.
17456         (struct gl_oset_implementation): Add dispose_fn argument to
17457         'create_empty' method.
17458         (struct gl_oset_impl_base): Add dispose_fn field.
17459         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
17460         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
17461         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
17462         values.
17463         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
17464         (gl_tree_oset_free): Call dispose_fn on the dropped values.
17465         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
17466         dropped value.
17467         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
17468         dropped value.
17469         * tests/test-array_oset.c (main): Update.
17470         * tests/test-avltree_oset.c (main): Update.
17471         * tests/test-rbtree_oset.c (main): Update.
17472         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
17473
17474 2007-03-13  Bruno Haible  <bruno@clisp.org>
17475
17476         * tests/test-stdbool.c (i): Update after last patch.
17477
17478 2007-03-12  Bruno Haible  <bruno@clisp.org>
17479
17480         * lib/quotearg.c: Include <wctype.h> early, before the definition of
17481         the iswprint macro. Needed on Solaris 2.5.1.
17482
17483 2007-03-12  Bruno Haible  <bruno@clisp.org>
17484
17485         * tests/test-printf-frexp.c (main): Declare x as volatile.
17486
17487 2007-03-12  Simon Josefsson  <simon@josefsson.org>
17488
17489         * doc/gnulib.texi (Build robot for gnulib): New section.
17490
17491 2007-03-12  Jim Meyering  <jim@meyering.net>
17492
17493         * build-aux/bootstrap: New file.
17494         * build-aux/bootstrap.conf: New file, from coreutils.
17495
17496 2007-03-11  Bruno Haible  <bruno@clisp.org>
17497
17498         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
17499
17500 2007-03-12  Simon Josefsson  <simon@josefsson.org>
17501
17502         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
17503         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
17504         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
17505
17506 2007-03-11  Bruno Haible  <bruno@clisp.org>
17507
17508         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
17509         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
17510
17511 2007-03-11  Bruno Haible  <bruno@clisp.org>
17512
17513         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
17514         formula. Needed for SunPRO C 5.0.
17515
17516 2007-03-11  Bruno Haible  <bruno@clisp.org>
17517
17518         * modules/long-options (Depends-on): Add getopt.
17519
17520 2007-03-11  Bruno Haible  <bruno@clisp.org>
17521
17522         * modules/modechange (Depends-on): Add stdbool.
17523
17524 2007-03-11  Bruno Haible  <bruno@clisp.org>
17525
17526         * modules/i-ring (Depends-on): Add stdbool.
17527
17528 2007-03-11  Bruno Haible  <bruno@clisp.org>
17529
17530         * modules/gc-des (Depends-on): Add stdbool.
17531
17532 2007-03-11  Bruno Haible  <bruno@clisp.org>
17533
17534         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
17535
17536 2007-03-11  Bruno Haible  <bruno@clisp.org>
17537
17538         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
17539
17540 2007-03-11  Bruno Haible  <bruno@clisp.org>
17541
17542         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
17543
17544 2007-03-11  Bruno Haible  <bruno@clisp.org>
17545
17546         * lib/vasnprintf.c (sprintf): Undefine.
17547
17548 2007-03-11  Bruno Haible  <bruno@clisp.org>
17549
17550         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
17551         initializers in SunPRO C and Compaq C compilers.
17552
17553 2007-03-11  Bruno Haible  <bruno@clisp.org>
17554
17555         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
17556         decrementing code ANSI C compliant.
17557
17558 2007-03-11  Bruno Haible  <bruno@clisp.org>
17559
17560         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
17561         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
17562
17563 2007-03-11  Bruno Haible  <bruno@clisp.org>
17564
17565         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
17566         <stdbool.h> substitute doesn't pass.
17567
17568 2007-03-11  Bruno Haible  <bruno@clisp.org>
17569
17570         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
17571
17572 2007-03-11  Bruno Haible  <bruno@clisp.org>
17573
17574         * gnulib-tool (func_create_megatestdir): Create also an autobuild
17575         script, for submission to autobuild.josefsson.org.
17576
17577 2007-03-10  Bruno Haible  <bruno@clisp.org>
17578
17579         * modules/canonicalize-lgpl-tests: New file.
17580         * tests/test-canonicalize-lgpl.sh: New file.
17581         * tests/test-canonicalize-lgpl.c: New file.
17582
17583         * modules/c-strcase-tests: New file.
17584         * tests/test-c-strcase.sh: New file.
17585         * tests/test-c-strcasecmp.c: New file.
17586         * tests/test-c-strncasecmp.c: New file.
17587
17588         * modules/atexit-tests: New file.
17589         * tests/test-atexit.sh: New file.
17590         * tests/test-atexit.c: New file.
17591
17592 2007-03-10  Bruno Haible  <bruno@clisp.org>
17593
17594         * tests/test-binary-io.sh: Use temporary filenames that are not so
17595         likely to clash with those of other tests (in a parallel make).
17596         * tests/test-binary-io.c: Likewise.
17597
17598 2007-03-10  Bruno Haible  <bruno@clisp.org>
17599
17600         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
17601         fallback; use #error instead.
17602         Suggested by Simon Josefsson.
17603
17604 2007-03-10  Bruno Haible  <bruno@clisp.org>
17605
17606         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
17607         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
17608         first and the last.
17609
17610 2007-03-10  Bruno Haible  <bruno@clisp.org>
17611
17612         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
17613
17614 2007-03-10  Bruno Haible  <bruno@clisp.org>
17615
17616         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
17617         "make distcheck".
17618         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
17619         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
17620         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
17621
17622 2007-03-10  Bruno Haible  <bruno@clisp.org>
17623
17624         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
17625         variable.
17626         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
17627         variable.
17628
17629 2007-03-09  Eric Blake  <ebb9@byu.net>
17630         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
17631
17632         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
17633         types are not being provided by gnulib.
17634         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
17635         types are supported.
17636
17637 2007-03-10  Bruno Haible  <bruno@clisp.org>
17638
17639         * lib/stdio_.h (__attribute__): New macro.
17640         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
17641         vsprintf): Specify __attribute__ __format__ for GCC.
17642         Suggested by Eric Blake.
17643
17644 2007-03-09  Bruno Haible  <bruno@clisp.org>
17645
17646         * modules/printf-posix-tests: New file.
17647         * tests/test-printf-posix.sh: New file.
17648         * tests/test-printf-posix.c: New file.
17649
17650         * modules/printf-posix: New file.
17651         * lib/printf.c: New file.
17652         * m4/printf-posix-rpl.m4: New file.
17653         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
17654         REPLACE_PRINTF.
17655         * lib/stdio_.h (printf): New declaration.
17656         (format, __format__, ____printf____, ____scanf____, ____strftime____,
17657         ____strfmon____): New macros.
17658         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
17659         REPLACE_PRINTF.
17660
17661 2007-03-09  Bruno Haible  <bruno@clisp.org>
17662
17663         * tests/test-vasnprintf-posix2.sh: New file.
17664         * tests/test-vasnprintf-posix2.c: New file.
17665         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
17666         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
17667         (Makefile.am): Activate test-vasnprintf-posix2.sh.
17668
17669         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
17670         a locale dependent decimal point, rather than always '.'.
17671
17672 2007-03-09  Eric Blake  <ebb9@byu.net>
17673
17674         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
17675         spite of platforms like Tandem/NSK that define it to -1.
17676
17677 2007-03-08  Bruno Haible  <bruno@clisp.org>
17678
17679         * modules/vprintf-posix-tests: New file.
17680         * tests/test-vprintf-posix.sh: New file.
17681         * tests/test-vprintf-posix.c: New file.
17682         * tests/test-printf-posix.h: New file.
17683
17684         * modules/vprintf-posix: New file.
17685         * lib/vprintf.c: New file.
17686         * m4/vprintf-posix.m4: New file.
17687         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
17688         REPLACE_VPRINTF.
17689         * lib/stdio_.h (vprintf): New declaration.
17690         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
17691         REPLACE_VPRINTF.
17692
17693 2007-03-08  Bruno Haible  <bruno@clisp.org>
17694
17695         * modules/fprintf-posix-tests: New file.
17696         * tests/test-fprintf-posix.sh: New file.
17697         * tests/test-fprintf-posix.c: New file.
17698
17699         * modules/fprintf-posix: New file.
17700         * lib/fprintf.c: New file.
17701         * m4/fprintf-posix.m4: New file.
17702         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
17703         REPLACE_FPRINTF.
17704         * lib/stdio_.h (fprintf): New declaration.
17705         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
17706         REPLACE_FPRINTF.
17707
17708 2007-03-08  Bruno Haible  <bruno@clisp.org>
17709
17710         * modules/vfprintf-posix-tests: New file.
17711         * tests/test-vfprintf-posix.sh: New file.
17712         * tests/test-vfprintf-posix.c: New file.
17713         * tests/test-fprintf-posix.h: New file.
17714         * tests/test-fprintf-posix.out: New file.
17715
17716         * modules/vfprintf-posix: New file.
17717         * lib/vfprintf.c: New file.
17718         * m4/vfprintf-posix.m4: New file.
17719         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
17720         REPLACE_VFPRINTF.
17721         * lib/stdio_.h (vfprintf): New declaration.
17722         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
17723         REPLACE_VFPRINTF.
17724
17725 2007-03-08  Bruno Haible  <bruno@clisp.org>
17726
17727         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
17728
17729 2007-03-08  Bruno Haible  <bruno@clisp.org>
17730
17731         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
17732         instead of 'expr' invocations.
17733         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
17734         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
17735         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
17736         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
17737         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
17738         Suggested by Paul Eggert.
17739
17740 2007-03-08  Bruno Haible  <bruno@clisp.org>
17741
17742         * modules/fseterr-tests: New file.
17743         * tests/test-fseterr.c: New file.
17744
17745         * modules/fseterr: New file.
17746         * lib/fseterr.h: New file.
17747         * lib/fseterr.c: New file.
17748
17749 2007-03-08  Bruno Haible  <bruno@clisp.org>
17750
17751         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
17752         * lib/getopt_.h: Likewise.
17753         * lib/mbswidth.h: Likewise.
17754         * lib/setenv.h: Likewise.
17755         * lib/vasnprintf.h: Likewise.
17756         * lib/vasprintf.h: Likewise.
17757         * lib/verror.h: Likewise.
17758         * lib/xsetenv.h: Likewise.
17759         * lib/xvasprintf.h: Likewise.
17760
17761 2007-03-08  Jim Meyering  <jim@meyering.net>
17762
17763         * users.txt: Add parted.
17764
17765         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
17766
17767 2007-03-07  Bruno Haible  <bruno@clisp.org>
17768
17769         * m4/printf.m4: Make the shell script snippets copy&pastable.
17770
17771 2007-03-02  Bruno Haible  <bruno@clisp.org>
17772
17773         * lib/netinet_in_.h: New file.
17774         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
17775         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
17776         * modules/netinet_in (Files): Add lib/netinet_in_.h.
17777         (Depends-on): Add absolute-header.
17778         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
17779         into netinet/in.h.
17780
17781 2007-03-03  Bruno Haible  <bruno@clisp.org>
17782
17783         * lib/sys_select_.h: New file.
17784         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
17785         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
17786         * modules/sys_select (Files): Add lib/sys_select_.h.
17787         (Depends-on): Add absolute-header.
17788         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
17789         into sys/select.h.
17790
17791 2007-03-02  Bruno Haible  <bruno@clisp.org>
17792
17793         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
17794         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
17795         values.
17796         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
17797         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
17798         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
17799         * modules/sys_socket (Depends-on): Add absolute-header.
17800         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
17801         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
17802         (Include): Remove requirement of inclusion of <sys/types.h>.
17803
17804 2007-03-02  Bruno Haible  <bruno@clisp.org>
17805
17806         * lib/byteswap_.h (bswap_32): Fix formula.
17807
17808 2007-03-06  Bruno Haible  <bruno@clisp.org>
17809
17810         * modules/sprintf-posix-tests: New file.
17811         * tests/test-sprintf-posix.c: New file.
17812
17813         * modules/sprintf-posix: New file.
17814         * lib/sprintf.c: New file.
17815         * m4/sprintf-posix.m4: New file.
17816         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
17817         REPLACE_SPRINTF.
17818         * lib/stdio_.h (sprintf): New declaration.
17819         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
17820         REPLACE_SPRINTF.
17821
17822 2007-03-06  Bruno Haible  <bruno@clisp.org>
17823
17824         * modules/vsprintf-posix-tests: New file.
17825         * tests/test-vsprintf-posix.c: New file.
17826         * tests/test-sprintf-posix.h: New file.
17827
17828         * modules/vsprintf-posix: New file.
17829         * lib/vsprintf.c: New file.
17830         * m4/vsprintf-posix.m4: New file.
17831         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
17832         REPLACE_VSPRINTF.
17833         * lib/stdio_.h (vsprintf): New declaration.
17834         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
17835         REPLACE_VSPRINTF.
17836
17837 2007-03-06  Bruno Haible  <bruno@clisp.org>
17838
17839         * modules/vsnprintf (Depend-on): Remove minmax.
17840
17841 2007-03-06  Bruno Haible  <bruno@clisp.org>
17842
17843         * modules/snprintf-posix-tests: New file.
17844         * tests/test-snprintf-posix.c: New file.
17845
17846         * modules/snprintf-posix: New file.
17847         * m4/snprintf-posix.m4: New file.
17848         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
17849         gl_FUNC_SNPRINTF.
17850         (gl_FUNC_SNPRINTF): Invoke it.
17851         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
17852         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
17853         is set.
17854         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
17855
17856 2007-03-06  Bruno Haible  <bruno@clisp.org>
17857
17858         * modules/vsnprintf-posix-tests: New file.
17859         * tests/test-vsnprintf-posix.c: New file.
17860         * tests/test-snprintf-posix.h: New file.
17861
17862         * modules/vsnprintf-posix: New file.
17863         * m4/vsnprintf-posix.m4: New file.
17864         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
17865         gl_FUNC_VSNPRINTF.
17866         (gl_FUNC_VSNPRINTF): Invoke it.
17867         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
17868         * lib/stdio_.h (vsnprintf): Define as a replacement if
17869         REPLACE_VSNPRINTF is set.
17870         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
17871
17872 2007-03-06  Bruno Haible  <bruno@clisp.org>
17873
17874         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
17875         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
17876
17877 2007-03-06  Bruno Haible  <bruno@clisp.org>
17878
17879         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
17880         (asinl): Declare also if HAVE_DECL_ASINL is set.
17881         (atanl): Declare also if HAVE_DECL_ATANL is set.
17882         (ceill): Declare also if HAVE_DECL_CEILL is set.
17883         (cosl): Declare also if HAVE_DECL_COSL is set.
17884         (expl): Declare also if HAVE_DECL_EXPL is set.
17885         (floorl): Declare also if HAVE_DECL_FLOORL is set.
17886         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
17887         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
17888         (logl): Declare also if HAVE_DECL_LOGL is set.
17889         (sinl): Declare also if HAVE_DECL_SINL is set.
17890         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
17891         (tanl): Declare also if HAVE_DECL_TANL is set.
17892         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
17893         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
17894         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
17895         declaration of frexpl, ldexpl.
17896         * modules/printf-frexpl (Depends-on): Add math.
17897         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
17898
17899 2007-03-05  Bruno Haible  <bruno@clisp.org>
17900
17901         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
17902         frexpl and ldexpl are declared.
17903         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
17904
17905 2007-03-05  Bruno Haible  <bruno@clisp.org>
17906
17907         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
17908         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
17909
17910 2007-03-05  Bruno Haible  <bruno@clisp.org>
17911
17912         * lib/stdio_.h: Include <stddef.h>.
17913
17914 2007-03-05  Bruno Haible  <bruno@clisp.org>
17915
17916         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
17917
17918 2007-03-05  Bruno Haible  <bruno@clisp.org>
17919
17920         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
17921         NetBSD 4, from Ralf Wildenhues.
17922
17923 2007-03-04  Bruno Haible  <bruno@clisp.org>
17924
17925         * lib/vasprintf.h: Update #if logic for the case when the functions
17926         exist but are overridden.
17927
17928 2007-03-04  Bruno Haible  <bruno@clisp.org>
17929
17930         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
17931         implementations: glibc-2.4 and MacOS X 10.3.
17932         * tests/test-vasnprintf-posix.c (test_function): Test also the case
17933         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
17934         * tests/test-vasprintf-posix.c (test_function): Likewise.
17935
17936 2007-03-04  Bruno Haible  <bruno@clisp.org>
17937
17938         * modules/vasprintf-posix-tests: New file.
17939         * tests/test-vasprintf-posix.c: New file.
17940
17941         * modules/vasprintf-posix: New file.
17942         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
17943         defined.
17944         * m4/vasprintf-posix.m4: New file.
17945         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
17946         gl_FUNC_VASPRINTF.
17947         (gl_FUNC_VASPRINTF): Invoke it.
17948         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
17949         here.
17950         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
17951
17952 2007-03-04  Bruno Haible  <bruno@clisp.org>
17953
17954         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
17955         REPLACE_GETTIMEOFDAY.
17956         * modules/sys_time (Makefile.am): Likewise.
17957         * m4/sys_time_h.m4: Likewise.
17958         * m4/gettimeofday.m4: Likewise.
17959
17960 2007-03-04  Bruno Haible  <bruno@clisp.org>
17961
17962         * modules/vasnprintf-posix-tests: New file.
17963         * tests/test-vasnprintf-posix.c: New file.
17964
17965         * modules/vasnprintf-posix: New file.
17966         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
17967         printf-frexpl.h.
17968         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
17969         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
17970         REPLACE_VASNPRINTF is defined.
17971         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
17972         gl_FUNC_VASNPRINTF.
17973         (gl_FUNC_VASNPRINTF): Invoke it.
17974         * m4/vasnprintf-posix.m4: New file.
17975         * m4/printf.m4: New file.
17976
17977 2007-03-04  Bruno Haible  <bruno@clisp.org>
17978
17979         Compile progreloc.c only if --enable-relocatable is specified.
17980         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
17981         if --enable-relocatable was specified.
17982         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
17983         lib_SOURCES.
17984
17985 2007-03-04  Jim Meyering  <jim@meyering.net>
17986
17987         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
17988         Use it consistently, rather than enumerating errno constants.
17989
17990 2007-03-04  Bruno Haible  <bruno@clisp.org>
17991
17992         * modules/xvasprintf-tests: New file.
17993         * tests/test-xvasprintf.c: New file.
17994
17995         * modules/vasprintf-tests: New file.
17996         * tests/test-vasprintf.c: New file.
17997
17998         * modules/vasnprintf-tests: New file.
17999         * tests/test-vasnprintf.c: New file.
18000
18001         * modules/vsnprintf-tests: New file.
18002         * tests/test-vsnprintf.c: New file.
18003
18004         * modules/snprintf-tests: New file.
18005         * tests/test-snprintf.c: New file.
18006
18007 2007-03-04  Bruno Haible  <bruno@clisp.org>
18008
18009         Compile relocatable.c only if --enable-relocatable is specified.
18010         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
18011         gl_RELOCATABLE_LIBRARY.
18012         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
18013         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
18014         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
18015         gl_RELOCATABLE_LIBRARY.
18016         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
18017         (Makefile.am): Remove lib_SOURCES.
18018         * modules/relocatable-lib-lgpl (configure.ac): Invoke
18019         gl_RELOCATABLE_LIBRARY.
18020         (Makefile.am): Remove lib_SOURCES.
18021         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
18022         always.
18023         * modules/relocatable-prog-wrapper (configure.ac): Invoke
18024         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
18025
18026 2007-03-04  Bruno Haible  <bruno@clisp.org>
18027
18028         * modules/argmatch-tests: New file.
18029         * tests/test-argmatch.c: New file.
18030
18031         * tests/test-allocsa.c (main): Halve the number of loop runs.
18032
18033         * modules/alloca-opt-tests: New file.
18034         * tests/test-alloca-opt.c: New file.
18035
18036 2007-03-04  Jim Meyering  <jim@meyering.net>
18037
18038         Work around difference between Linux ACLs and Solaris 10 ZFS.
18039         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
18040         for EINVAL.
18041
18042 2007-03-03  Bruno Haible  <bruno@clisp.org>
18043
18044         * modules/relocatable-prog (Depends-on): Add back progreloc's
18045         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
18046
18047 2007-03-03  Bruno Haible  <bruno@clisp.org>
18048
18049         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
18050         * modules/relocatable-lib: New file.
18051
18052 2007-03-03  Bruno Haible  <bruno@clisp.org>
18053
18054         * modules/relocatable-prog: Renamed from modules/relocatable.
18055         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
18056
18057 2007-03-03  Bruno Haible  <bruno@clisp.org>
18058
18059         * modules/relocatable-script (Files): Add doc/relocatable.texi,
18060         m4/relocatable-lib.m4.
18061         (Depends-on): Remove 'relocatable'.
18062         (configure.ac): Add gl_RELOCATABLE_NOP.
18063
18064 2007-03-03  Bruno Haible  <bruno@clisp.org>
18065
18066         * modules/relocatable-prog-wrapper: New file.
18067         * modules/relocatable (Depends-on): Add it. Remove all other
18068         dependencies except progname.
18069         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
18070
18071         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
18072         (gl_FUNC_STRERROR): Nop.
18073         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
18074
18075         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
18076         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
18077
18078         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
18079         (gl_FUNC_READLINK): Update.
18080
18081         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
18082
18083 2007-03-03  Bruno Haible  <bruno@clisp.org>
18084
18085         * lib/xreadlink.c: Include <unistd.h> unconditionally.
18086         * modules/xreadlink (Depends-on): Add unistd.
18087         * modules/xreadlink-with-size (Depends-on): Likewise.
18088
18089 2007-03-03  Bruno Haible  <bruno@clisp.org>
18090
18091         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
18092         extracted from gt_FUNC_SETENV.
18093         (gt_FUNC_SETENV): Remove macro.
18094         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
18095         remove gt_FUNC_SETENV.
18096
18097 2007-03-03  Bruno Haible  <bruno@clisp.org>
18098
18099         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
18100         ENABLE_RELOCATABLE here.
18101         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
18102
18103 2007-03-03  Bruno Haible  <bruno@clisp.org>
18104
18105         * modules/rbtreehash-list-tests (Depends-on): Add progname.
18106         * tests/test-rbtreehash_list.c: Include progname.h.
18107         (main): Call set_program_name.
18108
18109         * modules/rbtree-oset-tests (Depends-on): Add progname.
18110         * tests/test-rbtree_oset.c: Include progname.h.
18111         (main): Call set_program_name.
18112
18113         * modules/rbtree-list-tests (Depends-on): Add progname.
18114         * tests/test-rbtree_list.c: Include progname.h.
18115         (main): Call set_program_name.
18116
18117         * modules/linked-list-tests (Depends-on): Add progname.
18118         * tests/test-linked_list.c: Include progname.h.
18119         (main): Call set_program_name.
18120
18121 2007-03-03  Bruno Haible  <bruno@clisp.org>
18122
18123         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
18124         All uses of __restrict changed to _Restrict_.
18125         * lib/glob_.h (__restrict): Remove macro.
18126
18127 2007-03-02  Bruno Haible  <bruno@clisp.org>
18128
18129         * modules/gettext (configure.ac): Require gettext infrastructure
18130         from version 0.16.1.
18131
18132 2007-03-02  Bruno Haible  <bruno@clisp.org>
18133
18134         * modules/linkedhash-list-tests (Depends-on): Add progname.
18135         * tests/test-linkedhash_list.c: Include progname.h.
18136         (main): Call set_program_name.
18137
18138         * modules/carray-list-tests (Depends-on): Add progname.
18139         * tests/test-carray_list.c: Include progname.h.
18140         (main): Call set_program_name.
18141
18142         * modules/avltreehash-list-tests (Depends-on): Add progname.
18143         * tests/test-avltreehash_list.c: Include progname.h.
18144         (main): Call set_program_name.
18145
18146         * modules/avltree-oset-tests (Depends-on): Add progname.
18147         * tests/test-avltree_oset.c: Include progname.h.
18148         (main): Call set_program_name.
18149
18150         * modules/avltree-list-tests (Depends-on): Add progname.
18151         * tests/test-avltree_list.c: Include progname.h.
18152         (main): Call set_program_name.
18153
18154         * modules/array-oset-tests (Depends-on): Add progname.
18155         * tests/test-array_oset.c: Include progname.h.
18156         (main): Call set_program_name.
18157
18158         * modules/array-list-tests (Depends-on): Add progname.
18159         * tests/test-array_list.c: Include progname.h.
18160         (main): Call set_program_name.
18161
18162         * modules/argp-tests (Depends-on): Add progname.
18163         * tests/test-argp.c: Include argp.h first. Include progname.h.
18164         (main): Call set_program_name.
18165
18166 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
18167
18168         * doc/gnulib-tool.texi (Initial import): Reword description of
18169         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
18170         limited effect even if defined after the first system include.
18171
18172 2007-03-01  Bruno Haible  <bruno@clisp.org>
18173
18174         * build-aux/config.libpath: Update to libtool-1.5.22.
18175         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
18176
18177 2007-03-01  Bruno Haible  <bruno@clisp.org>
18178
18179         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
18180         foo_CFLAGS.
18181         Reported by Ralf Wildenhues.
18182
18183 2007-03-01  Bruno Haible  <bruno@clisp.org>
18184
18185         * build-aux/install-reloc: Remove object files left over by some
18186         compilers.
18187         Reported by Ralf Wildenhues.
18188
18189 2007-03-01  Bruno Haible  <bruno@clisp.org>
18190
18191         * build-aux/install-reloc: Break long lines.
18192
18193 2007-03-01  Bruno Haible  <bruno@clisp.org>
18194
18195         * doc/relocatable.texi: Document that it may not work on OpenBSD.
18196         Reported by Ralf Wildenhues.
18197
18198 2007-03-01  Bruno Haible  <bruno@clisp.org>
18199
18200         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
18201         include ordering constraints.
18202
18203 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
18204
18205         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
18206         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
18207         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
18208         as another example.
18209         * lib/time_.h: Fix misspelling.
18210         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
18211         Require gl_HEADER_TIME_H_DEFAULTS.
18212         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
18213         * m4/time_r.m4 (gl_TIME_R): Likewise.
18214         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
18215
18216 2007-03-01  Bruno Haible  <bruno@clisp.org>
18217
18218         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
18219         * m4/utimens.m4 (gl_UTIMENS): Likewise.
18220
18221 2007-03-01  Jim Meyering  <jim@meyering.net>
18222
18223         * modules/xreadlink (Maintainer): Add my name.
18224         * modules/xreadlink-with-size (Depends-on): Alphabetize.
18225
18226 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
18227             Bruno Haible  <bruno@clisp.org>
18228
18229         * build-aux/install-reloc: Compile also c-ctype.c.
18230         * build-aux/relocatable.sh.in: New file.
18231         * doc/relocatable.texi: New file.
18232         * doc/relocatable-maint.texi: New file.
18233         * doc/gnulib.texi: Include relocatable-maint.texi.
18234         * lib/progreloc.c: Include unistd.h unconditionally.
18235         * lib/relocwrapper.c: Include unistd.h unconditionally.
18236         Include c-ctype.h.
18237         (add_dotbin): Use c_tolower.
18238         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
18239         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
18240         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
18241         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
18242         to m4/relocatable-lib.m4.
18243         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
18244         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
18245         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
18246         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
18247         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
18248         * modules/relocatable: New file.
18249         * modules/relocatable-lib: New file.
18250         * modules/relocatable-script: New file.
18251
18252 2007-02-28  Bruno Haible  <bruno@clisp.org>
18253
18254         Import --enable-relocatable infrastructure.
18255         * build-aux/config.libpath: New file, from GNU gettext.
18256         * build-aux/install-reloc: New file, from GNU gettext.
18257         * build-aux/reloc-ldflags: New file, from GNU gettext.
18258         * lib/relocatable.h: New file, from GNU gettext.
18259         * lib/relocatable.c: New file, from GNU gettext.
18260         * lib/relocwrapper.c: New file, from GNU gettext.
18261         * m4/relocatable.m4: New file, from GNU gettext.
18262
18263 2007-02-28  Bruno Haible  <bruno@clisp.org>
18264
18265         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
18266
18267         * modules/xreadlink: New file, from GNU gettext with modifications.
18268         * lib/xreadlink.c: New file, from GNU gettext.
18269         * lib/xreadlink.h: Add comments.
18270         (xreadlink): New declaration.
18271
18272         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
18273         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
18274         lib/xreadlink-with-size.c.
18275         (configure.ac): Remove gl_XREADLINK invocation.
18276         (Makefile.am): Augment lib_SOURCES.
18277         * m4/xreadlink.m4: Remove file.
18278         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
18279         (xreadlink_with_size): Renamed from xreadink.
18280         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
18281         * modules/canonicalize (Depends-on): Replace xreadlink with
18282         xreadlink-with-size.
18283         * lib/canonicalize.c (canonicalize_filename_mode): Update.
18284
18285 2007-02-25  Jim Meyering  <jim@meyering.net>
18286
18287         * build-aux/announce-gen: When complaining about excess arguments,
18288         list them.
18289
18290 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
18291
18292         * README: Document signed integer overflow situation more
18293         accurately.
18294
18295 2007-02-25  Bruno Haible  <bruno@clisp.org>
18296
18297         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
18298         'a' or 'A' conversion.
18299
18300 2007-02-25  Bruno Haible  <bruno@clisp.org>
18301
18302         * modules/filename: Renamed from modules/pathname.
18303         (Files): Replace lib/pathname.h with lib/filename.h. Replace
18304         lib/concatpath.c with lib/concat-filename.c.
18305         (Makefile.am): Update.
18306         (Include): Replace pathname.h with filename.h.
18307         * lib/filename.h: Renamed from lib/pathname.h.
18308         (concatenated_filename): Renamed from concatenated_pathname.
18309         * lib/concat-filename.c: Renamed from lib/concatpath.c.
18310         (concatenated_filename): Renamed from concatenated_pathname.
18311         * lib/findprog.c: Include filename.h instead of pathname.h.
18312         (find_in_path): Update.
18313         * lib/javacomp.c: Include filename.h instead of pathname.h.
18314         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
18315         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
18316         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
18317         is_oldgcj_14_13_usable, is_javac_usable): Update.
18318         * lib/javaexec.c: Include filename.h instead of pathname.h.
18319         (execute_java_class): Update.
18320         * modules/findprog: Update.
18321         * modules/javacomp: Update.
18322         * modules/javaexec: Update.
18323         * MODULES.html.sh (File system functions): Add 'filename', remove
18324         'pathname'.
18325
18326 2007-02-25  Bruno Haible  <bruno@clisp.org>
18327
18328         * modules/printf-frexpl-tests: New file.
18329         * tests/test-printf-frexpl.c: New file.
18330
18331         * modules/printf-frexpl: New file.
18332         * lib/printf-frexpl.h: New file.
18333         * lib/printf-frexpl.c: New file.
18334         * m4/printf-frexpl.m4: New file.
18335
18336 2007-02-25  Bruno Haible  <bruno@clisp.org>
18337
18338         * modules/printf-frexp-tests: New file.
18339         * tests/test-printf-frexp.c: New file.
18340
18341         * modules/printf-frexp: New file.
18342         * lib/printf-frexp.h: New file.
18343         * lib/printf-frexp.c: New file.
18344         * m4/printf-frexp.m4: New file.
18345
18346 2007-02-25  Bruno Haible  <bruno@clisp.org>
18347
18348         Assume automake >= 1.10 for the tests.
18349         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
18350         * modules/arctwo-tests: Likewise.
18351         * modules/argp-tests: Likewise.
18352         * modules/avltree-list-tests: Likewise.
18353         * modules/avltree-oset-tests: Likewise.
18354         * modules/avltreehash-list-tests: Likewise.
18355         * modules/carray-list-tests: Likewise.
18356         * modules/crc-tests: Likewise.
18357         * modules/des-tests: Likewise.
18358         * modules/gc-arcfour-tests: Likewise.
18359         * modules/gc-arctwo-tests: Likewise.
18360         * modules/gc-des-tests: Likewise.
18361         * modules/gc-hmac-md5-tests: Likewise.
18362         * modules/gc-hmac-sha1-tests: Likewise.
18363         * modules/gc-md2-tests: Likewise.
18364         * modules/gc-md4-tests: Likewise.
18365         * modules/gc-md5-tests: Likewise.
18366         * modules/gc-pbkdf2-sha1-tests: Likewise.
18367         * modules/gc-rijndael-tests: Likewise.
18368         * modules/gc-sha1-tests: Likewise.
18369         * modules/gc-tests: Likewise.
18370         * modules/getaddrinfo-tests: Likewise.
18371         * modules/hmac-md5-tests: Likewise.
18372         * modules/hmac-sha1-tests: Likewise.
18373         * modules/linked-list-tests: Likewise.
18374         * modules/linkedhash-list-tests: Likewise.
18375         * modules/lock-tests: Likewise.
18376         * modules/md2-tests: Likewise.
18377         * modules/md4-tests: Likewise.
18378         * modules/md5-tests: Likewise.
18379         * modules/rbtree-list-tests: Likewise.
18380         * modules/rbtree-oset-tests: Likewise.
18381         * modules/rbtreehash-list-tests: Likewise.
18382         * modules/read-file-tests: Likewise.
18383         * modules/rijndael-tests: Likewise.
18384         * modules/stdint-tests: Likewise.
18385         * modules/tls-tests: Likewise.
18386
18387 2007-02-24  Bruno Haible  <bruno@clisp.org>
18388
18389         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
18390         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
18391         function; instead check whether isnan with a double argument links.
18392         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
18393         function; instead check whether isnan with a 'long double' argument
18394         links.
18395         Reported by Eric Blake <ebb9@byu.net>.
18396
18397 2007-02-24  Bruno Haible  <bruno@clisp.org>
18398
18399         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
18400         defined.
18401         * lib/isnanl.c: Remove all code. Just include isnan.c.
18402         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
18403
18404 2007-02-25  Jim Meyering  <jim@meyering.net>
18405
18406         Avoid conflicting types for 'unsetenv' on FreeBSD.
18407         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
18408         conflicting with FreeBSD's (5.0 and 6.1) function declaration
18409         in stdlib.h.
18410
18411 2007-02-24  Bruno Haible  <bruno@clisp.org>
18412
18413         * modules/isnanl-nolibm-tests: New file.
18414         * tests/test-isnanl.c: New file.
18415
18416         * modules/isnanl-nolibm: New file.
18417         * lib/isnanl.h: New file.
18418         * lib/isnanl.c: New file.
18419         * m4/isnanl.m4: New file.
18420
18421 2007-02-24  Bruno Haible  <bruno@clisp.org>
18422
18423         * modules/isnan-nolibm-tests: New file.
18424         * tests/test-isnan.c: New file.
18425
18426         * modules/isnan-nolibm: New file.
18427         * lib/isnan.h: New file.
18428         * lib/isnan.c: New file.
18429         * m4/isnan.m4: New file.
18430
18431 2007-02-24  Bruno Haible  <bruno@clisp.org>
18432
18433         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
18434         assume that an exponent fits in 20 bits.
18435
18436 2007-02-24  Jim Meyering  <jim@meyering.net>
18437
18438         * m4/regex.m4: Update the description of the configure-time option,
18439         --without-included-regex, to state accurately what the defaults are,
18440         and perhaps to give people an idea why using this option is risky.
18441
18442 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
18443
18444         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
18445         loops on small arguments.  This attempts to avoid the problem
18446         Bruno Haible reported for AIX 4.3.2 in
18447         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
18448
18449 2007-02-23  Bruno Haible  <bruno@clisp.org>
18450
18451         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
18452         Needed for help2man.
18453
18454 2007-02-23  Karl Berry  <karl@gnu.org>
18455
18456         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
18457         exists, foo.h should be cvs-ignored, not committed.
18458
18459 2007-02-23  Eric Blake  <ebb9@byu.net>
18460
18461         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
18462         * lib/stat-time.h (includes): Likewise.
18463         * lib/utimecmp.c (includes): Likewise.
18464         * lib/utimens.h (includes): Likewise.
18465         * lib/getdate.y (includes): Also include "timespec.h" for use
18466         internal to the module.
18467         * modules/utimens (Depends-on): Revert yesterday's patch.
18468         * modules/nanosleep (Depends-on): Add missing dependency.
18469
18470 2007-02-22  Bruno Haible  <bruno@clisp.org>
18471
18472         * lib/glob.c: Don't include getlogin_r.h.
18473
18474 2007-02-22  Jim Meyering  <jim@meyering.net>
18475
18476         * modules/utimens (Depends-on): Add timespec, required for
18477         utimens.h's inclusion of timespec.h.
18478
18479 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
18480
18481         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
18482         long unreadable paths in GNU/Linux.  Problem reported by Andreas
18483         Schwab in
18484         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
18485         I'll try to think of a better way to fix the Solaris problem.
18486
18487         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
18488         like glibc; on Solaris 10, it fails with errno == EINVAL.
18489         POSIX says the behavior is unspecified if the first argument is NULL,
18490         so play it safe and never pass NULL to the system getcwd.
18491
18492 2007-02-21  Jim Meyering  <jim@meyering.net>
18493
18494         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
18495         of gettimeofday.  It would conflict with the one now always
18496         provided via sys_time_.h.  Reported by Matthew Woehlke, as
18497         an IRIX 6.5 build failure.
18498
18499 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
18500
18501         Minor fixups to port to Solaris 10 with Sun C 5.8.
18502         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
18503         * modules/getcwd (Depends-on): Add dirfd.
18504         * lib/putenv.c (putenv): #undef it.
18505         (rpl_putenv): New decl.
18506         (malloc, free): Include <stdlib.h> rather than prototyping separately.
18507
18508 2007-02-20  Bruno Haible  <bruno@clisp.org>
18509
18510         * modules/stdio-tests: New file.
18511         * tests/test-stdio.c: New file.
18512
18513         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
18514         (Depends-on): Add stdio.
18515         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
18516         (Include): Use <stdio.h> instead of vsnprintf.h.
18517         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
18518         HAVE_DECL_VSNPRINTF.
18519         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
18520
18521         * modules/snprintf (Files): Remove lib/snprintf.h.
18522         (Depends-on): Add stdio.
18523         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
18524         (Include): Use <stdio.h> instead of snprintf.h.
18525         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
18526         HAVE_DECL_SNPRINTF.
18527         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
18528         * lib/getaddrinfo.c: Likewise.
18529
18530         * modules/stdio: New file.
18531         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
18532         * lib/snprintf.h: Remove file.
18533         * lib/vsnprintf.h: Remove file.
18534         * lib/.cppi-disable: Remove snprintf.h.
18535         * m4/stdio_h.m4: New file.
18536         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
18537
18538 2007-02-20  Jim Meyering  <jim@meyering.net>
18539
18540         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
18541         used by e.g., mingw.  From Bruno Haible.
18542
18543 2007-02-19  Bruno Haible  <bruno@clisp.org>
18544
18545         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
18546         warnings.
18547         Reported by Ben Pfaff <blp@cs.stanford.edu>.
18548
18549 2007-02-19  Bruno Haible  <bruno@clisp.org>
18550
18551         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
18552         from mingw users.
18553
18554 2007-02-19  Bruno Haible  <bruno@clisp.org>
18555
18556         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
18557         warnings.
18558         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
18559
18560 2007-02-19  Jim Meyering  <jim@meyering.net>
18561
18562         Don't use FD after a successful "fdopendir (fd)".
18563         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
18564         Reset it by calling dirfd on the just-obtained DIR*.
18565
18566         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
18567         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
18568
18569 2007-02-18  Bruno Haible  <bruno@clisp.org>
18570
18571         * lib/readlink.c: Include <unistd.h>.
18572         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
18573         HAVE_READLINK.
18574         * modules/readlink (Depends-on): Add unistd.
18575         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
18576         (Include): Add <unistd.h>.
18577
18578         * lib/getlogin_r.h: Remove file.
18579         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
18580         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
18581         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
18582         HAVE_DECL_GETLOGIN_R.
18583         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
18584         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
18585         (Include): Use <unistd.h> instead of getlogin_r.h.
18586
18587         * lib/getcwd.h: Remove file.
18588         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
18589         * lib/xgetcwd.c: Likewise.
18590         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
18591         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
18592         * modules/getcwd (Files): Remove lib/getcwd.h.
18593         (Depends-on): Add unistd.
18594         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
18595         (Include): Use <unistd.h> instad of getcwd.h.
18596
18597         * lib/ftruncate.c: Include <unistd.h> first.
18598         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
18599         Set HAVE_FTRUNCATE.
18600         * modules/ftruncate (Depends-on): Add unistd.
18601         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
18602
18603         * lib/fchdir.c: Include <unistd.h> first.
18604         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
18605         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
18606         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
18607         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
18608         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
18609
18610         * lib/dup2.c: Include <unistd.h> first.
18611         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
18612         HAVE_DUP2.
18613         * modules/dup2 (Depends-on): Add unistd.
18614         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
18615
18616         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
18617         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
18618         REPLACE_CHOWN. Don't define chown as a macro here.
18619         * modules/chown (Depends-on): Add unistd.
18620         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
18621
18622         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
18623         Add definition for GL_LINK_WARNING.
18624         (chown, dup2): New declarations.
18625         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
18626         link warning.
18627         (ftruncate): New declaration.
18628         (getcwd): New declaration, taken from old getcwd.h.
18629         (getlogin_r): New declaration, taken from old getlogin_r.h.
18630         (readlink): New declaration.
18631         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
18632         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
18633         (gl_PREREQ_UNISTD): Remove macro.
18634         (gl_UNISTD_MODULE_INDICATOR): New macro.
18635         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
18636         many new variables. Don't set UNISTD_H.
18637         * modules/unistd (Description): Change.
18638         (Depends-on): Add link-warning.
18639         (configure.ac): Update.
18640         (Makefile.am): Create unistd.h always. Substitute many new variables
18641         into it.
18642
18643 2007-02-18  Bruno Haible  <bruno@clisp.org>
18644
18645         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
18646         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
18647         HAVE_GETSUBOPT.
18648         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
18649         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
18650         * lib/getsubopt.h: Remove file.
18651         * modules/getsubopt (Files): Remove lib/getsubopt.h.
18652         (Depends-on): Add stdlib.
18653         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
18654         (Includes): Use <stdlib.h> instead of getsubopt.h.
18655         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
18656         Set HAVE_GETSUBOPT.
18657         * lib/getsubopt.c: Don't include getsubopt.h.
18658
18659 2007-02-18  Bruno Haible  <bruno@clisp.org>
18660
18661         * modules/fchdir (Depends-on): Add dup2.
18662
18663 2007-02-18  Bruno Haible  <bruno@clisp.org>
18664
18665         * lib/stdlib_.h: Handle glibc's special invocation convention
18666         specially.
18667
18668 2007-02-18  Bruno Haible  <bruno@clisp.org>
18669
18670         * modules/stdlib-tests: New file.
18671         * tests/test-stdlib.c: New file.
18672
18673         * modules/mkstemp (Files): Remove lib/mkstemp.h.
18674         (Depends-on): Add stdlib.
18675         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
18676         (Includes): Use <stdlib.h> instead of mkstemp.h.
18677         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
18678         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
18679         * lib/mkstemp.c: Don't include mkstemp.h.
18680         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
18681         * lib/stdlib--.h: Don't include mkstemp.h.
18682
18683         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
18684         (Depends-on): Add stdlib.
18685         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
18686         (Includes): Use <stdlib.h> instead of mkdtemp.h.
18687         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
18688         HAVE_MKDTEMP.
18689         * lib/mkdtemp.c: Don't include mkdtemp.h.
18690         * lib/clean-temp.c: Don't include mkdtemp.h.
18691
18692         * modules/exit (Files): Remove lib/exit.h.
18693         (Depends-on): Add stdlib.
18694         (Makefile.am): Remove lib_SOURCES.
18695         (Include): Use <stdlib.h> instead of exit.h.
18696         * lib/argmatch.c: Don't include exit.h.
18697         * lib/execute.c: Likewise.
18698         * lib/pagealign_alloc.c: Likewise.
18699         * lib/pipe.c: Likewise.
18700         * lib/wait-process.c: Likewise.
18701         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
18702         * lib/exitfail.c: Likewise.
18703         * lib/savewd.c: Likewise.
18704         * lib/xsetenv.c: Likewise.
18705
18706         * modules/stdlib: New file.
18707         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
18708         and extra comments about mkstemp().
18709         * lib/exit.h: Remove file.
18710         * lib/mkdtemp.h: Remove file.
18711         * lib/mkstemp.h: Remove file.
18712         * m4/stdlib_h.m4: New file.
18713         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
18714
18715 2007-02-18  Bruno Haible  <bruno@clisp.org>
18716
18717         * modules/math-tests: New file.
18718         * tests/test-math.c: New file.
18719
18720         * modules/math: New file.
18721         * modules/mathl (Files): Remove lib/mathl.h.
18722         (Depends-on): Add math.
18723         (Makefile.am): Don't mention mathl.h.
18724         (Include): Use <math.h> instead of mathl.h.
18725         * lib/math_.h: New file.
18726         * lib/mathl.h: Remove file.
18727         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
18728         mathl.h.
18729         * lib/asinl.c: Likewise.
18730         * lib/atanl.c: Likewise.
18731         * lib/ceill.c: Likewise.
18732         * lib/cosl.c: Likewise.
18733         * lib/expl.c: Likewise.
18734         * lib/floorl.c: Likewise.
18735         * lib/frexpl.c: Likewise.
18736         * lib/ldexpl.c: Likewise.
18737         * lib/logl.c: Likewise.
18738         * lib/sincosl.c: Likewise.
18739         * lib/sinl.c: Likewise.
18740         * lib/sqrtl.c: Likewise.
18741         * lib/tanl.c: Likewise.
18742         * lib/trigl.c: Likewise.
18743         * m4/math_h.m4: New file.
18744         * MODULES.html.sh (Mathematics): Add math.
18745
18746 2007-02-17  Bruno Haible  <bruno@clisp.org>
18747
18748         * modules/wctype-tests: New file.
18749         * tests/test-wctype.c: New file.
18750
18751         * modules/wchar-tests: New file.
18752         * tests/test-wchar.c: New file.
18753
18754         * modules/unistd-tests: New file.
18755         * tests/test-unistd.c: New file.
18756
18757         * modules/time-tests: New file.
18758         * tests/test-time.c: New file.
18759
18760         * modules/sysexits-tests: New file.
18761         * tests/test-sysexits.c: New file.
18762
18763         * modules/sys_time-tests: New file.
18764         * tests/test-sys_time.c: New file.
18765
18766         * modules/sys_stat-tests: New file.
18767         * tests/test-sys_stat.c: New file.
18768
18769         * modules/sys_socket-tests: New file.
18770         * tests/test-sys_socket.c: New file.
18771
18772         * modules/sys_select-tests: New file.
18773         * tests/test-sys_select.c: New file.
18774
18775         * modules/string-tests: New file.
18776         * tests/test-string.c: New file.
18777
18778         * modules/stdbool-tests: New file.
18779         * tests/test-stdbool.c: New file.
18780
18781         * modules/netinet_in-tests: New file.
18782         * tests/test-netinet_in.c: New file.
18783
18784         * modules/inttypes-tests: New file.
18785         * tests/test-inttypes.c: New file.
18786
18787         * modules/fcntl-tests: New file.
18788         * tests/test-fcntl.c: New file.
18789
18790         * modules/byteswap-tests: New file.
18791         * tests/test-byteswap.c: New file.
18792
18793         * modules/arpa_inet-tests: New file.
18794         * tests/test-arpa_inet.c: New file.
18795
18796 2007-02-17  Bruno Haible  <bruno@clisp.org>
18797
18798         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
18799         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
18800         if the corresponding module is not enabled. Emit link warnings if
18801         the function is used nevertheless.
18802         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
18803         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
18804         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
18805         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
18806         * modules/inttypes (Depends-on): Add link-warning.
18807         (Makefile.am): Copy the contents of build-aux/link-warning.h into
18808         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
18809         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
18810         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
18811         * modules/imaxdiv (configure.ac): Likewise.
18812         * modules/strtoimax (configure.ac): Likewise.
18813         * modules/strtoumax (configure.ac): Likewise.
18814
18815 2007-02-17  Bruno Haible  <bruno@clisp.org>
18816
18817         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
18818         gl_STRING_MODULE_INDICATOR_DEFAULTS.
18819         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
18820         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
18821
18822 2007-02-17  Bruno Haible  <bruno@clisp.org>
18823
18824         * modules/link-warning: New file.
18825         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
18826         * lib/string_.h (GL_LINK_WARNING): Remove definition.
18827         * modules/string (Depends-on): Add link-warning.
18828         (Makefile.am): Copy the contents of build-aux/link-warning.h into
18829         string.h.
18830         * MODULES.html.sh (Support for building libraries and executables): Add
18831         link-warning.
18832
18833 2007-02-17  Bruno Haible  <bruno@clisp.org>
18834
18835         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
18836         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
18837         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
18838         long lines.
18839
18840 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
18841             Bruno Haible  <bruno@clisp.org>
18842
18843         * modules/tmpfile: New file.
18844         * lib/tmpfile.c: New file.
18845         * m4/tmpfile.m4: New file.
18846         * MODULES.html.sh (func_all_modules): New section "Input/output".
18847
18848 2007-02-15  Bruno Haible  <bruno@clisp.org>
18849
18850         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
18851         (supports_delete_on_close): New function.
18852         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
18853
18854 2007-02-14  Bruno Haible  <bruno@clisp.org>
18855
18856         * modules/mbspcasecmp-tests: New file.
18857         * tests/test-mbspcasecmp.sh: New file.
18858         * tests/test-mbspcasecmp.c: New file.
18859
18860         New module mbspcasecmp.
18861         * modules/mbspcasecmp: New file.
18862         * lib/mbspcasecmp.c: New file.
18863         * lib/string_.h (strncasecmp): Change warning message.
18864         (mbspcasecmp): New declaration.
18865         * m4/mbspcasecmp.m4: New file.
18866         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
18867         GNULIB_MBSPCASECMP.
18868         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
18869         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
18870
18871 2007-02-14  Bruno Haible  <bruno@clisp.org>
18872
18873         * modules/mbsncasecmp-tests: New file.
18874         * tests/test-mbsncasecmp.sh: New file.
18875         * tests/test-mbsncasecmp.c: New file.
18876
18877         New module mbsncasecmp.
18878         * modules/mbsncasecmp: New file.
18879         * lib/mbsncasecmp.c: New file.
18880         * lib/string_.h (mbsncasecmp): New declaration.
18881         * m4/mbsncasecmp.m4: New file.
18882         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
18883         GNULIB_MBSNCASECMP.
18884         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
18885         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
18886
18887 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
18888
18889         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
18890         Verify that it doesn't overlap with our flags.
18891         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
18892         do not have the desired effect in multibyte locales; instead, use
18893         mbscasecmp.
18894         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
18895         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
18896         we don't require GNU fnmatch ourselves (if our users require it, they
18897         should do so explicitly).
18898
18899         Fix regex code so it doesn't rely on strcasecmp.
18900         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
18901         Otherwise, include gnulib's langinfo.h.
18902         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
18903         undesirable behavior in non-C locales.  Instead, rely on localecharset.
18904         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
18905         * modules/regex (FILES): Remove m4/codeset.m4.
18906         (Depends-on): Add localcharset.  Remove strcase.
18907
18908 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18909
18910         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
18911         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
18912
18913 2007-02-13  Bruno Haible  <bruno@clisp.org>
18914
18915         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
18916         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
18917
18918 2007-02-12  Bruno Haible  <bruno@clisp.org>
18919
18920         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
18921         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
18922         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
18923         time warning rather than a link error.
18924
18925 2007-02-12  Bruno Haible  <bruno@clisp.org>
18926
18927         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
18928         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
18929         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
18930
18931 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
18932
18933         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
18934         args, not 2.
18935
18936 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
18937
18938         New module 'time', so that apps can include <time.h> as per
18939         POSIX and GNU instead of separate include files like time_r.h
18940         and timegm.h.  This implementation tries out a simpler approach
18941         for replacing decls in standard include files (as compared to
18942         the string module), somewhat as an experiment.
18943
18944         * config/srclist.txt: Comment out mktime.c for now.
18945         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
18946         since it doesn't apply any more.  Use generic wording instead.
18947         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
18948         'time'.
18949         * lib/time_.h, m4/time_h.m4, modules/time: New files.
18950         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
18951         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
18952         Don't include <sys/types.h>; no longer needed since we assume C89.
18953         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
18954         * lib/strftime.c: Likewise.
18955         * lib/time_r.c: Likewise.
18956         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
18957         * lib/nanosleep.c: Include <time.h> first, to check interface.
18958         * lib/strptime.c: Likewise.
18959         * lib/time_r.c: Likewise.
18960         * lib/timegm.c: Likewise.
18961         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
18962         needed.
18963         * lib/timegm.c: Don't include timegm.h; no longer needed.
18964         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
18965         time.h now handles any problems in that area.
18966         (struct timespec, nanosleep): Remove; time.h now arranges for these.
18967         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
18968         that time.h defines struct timespec.
18969         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
18970         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
18971         handles that.
18972         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
18973         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
18974         needed.  Set REPLACE_LOCALTIME.
18975         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
18976         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
18977         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
18978         nanosleep; time_h.m4 now does that.  Don't require
18979         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
18980         module handles this now.
18981         * modules/getdate (Depends-on): Remove timespec.  Add time.
18982         * modules/nanosleep (Depends-on): Likewise.
18983         * modules/stat-time (Depends-on): Likewise.
18984         * modules/nanosleep (Include): Include time.h, not timespec.h.
18985         * modules/strptime (Files): Remove lib/strptime.h.
18986         (Depends-on): Add extensions, time.
18987         (Include): Include time.h, not strptime.h.
18988         * modules/time_r (Files): Remove lib/time_r.h.
18989         (Depends-on): Add time.
18990         (Include): Include time.h, not time_r.h.
18991         * modules/timegm: Likewise.
18992         * modules/timespec (Description): Now does timespec-related decls
18993         of our own, instead of struct timespec itself.
18994         (Depends-on): Add time; remove extensions.
18995         (Maintainer): Add self.
18996         * modules/utimecmp (Depends-on): Add time; remove timespec.
18997         * modules/utimens (Depends-on): Likewise.
18998         * modules/xnanosleep (Depends-on): Likewise.
18999
19000 2007-02-11  Bruno Haible  <bruno@clisp.org>
19001
19002         * lib/c-strstr.c: Include allocsa.h.
19003         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
19004         * lib/c-strcasestr.c: Include allocsa.h.
19005         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
19006         * lib/strcasestr.c: Include allocsa.h.
19007         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
19008         * lib/mbsstr.c: Include allocsa.h.
19009         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
19010         allocsa/freesa instead of malloc/free.
19011         * lib/mbscasestr.c: Include allocsa.h.
19012         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
19013         allocsa/freesa instead of malloc/free.
19014         * modules/c-strstr (Depends-on): Add allocsa.
19015         * modules/c-strcasestr (Depends-on): Likewise.
19016         * modules/strcasestr (Depends-on): Likewise.
19017         * modules/mbsstr (Depends-on): Likewise.
19018         * modules/mbscasestr (Depends-on): Likewise.
19019
19020 2007-02-11  Bruno Haible  <bruno@clisp.org>
19021
19022         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
19023
19024         * modules/mbsspn-tests: New file.
19025         * tests/test-mbsspn.sh: New file.
19026         * tests/test-mbsspn.c: New file.
19027
19028 2007-02-11  Bruno Haible  <bruno@clisp.org>
19029
19030         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
19031
19032         * modules/mbspbrk-tests: New file.
19033         * tests/test-mbspbrk.sh: New file.
19034         * tests/test-mbspbrk.c: New file.
19035
19036 2007-02-11  Bruno Haible  <bruno@clisp.org>
19037
19038         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
19039         unneeded cast.
19040
19041         * modules/mbscspn-tests: New file.
19042         * tests/test-mbscspn.sh: New file.
19043         * tests/test-mbscspn.c: New file.
19044
19045 2007-02-11  Bruno Haible  <bruno@clisp.org>
19046
19047         * modules/mbscasecmp-tests: New file.
19048         * tests/test-mbscasecmp.sh: New file.
19049         * tests/test-mbscasecmp.c: New file.
19050
19051 2007-02-11  Bruno Haible  <bruno@clisp.org>
19052
19053         Ensure O(n) worst-case complexity of mbscasestr.
19054         * lib/mbscasestr.c: Include stdbool.h.
19055         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
19056         functions.
19057         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
19058         the bookkeeping indicates that it's worth it.
19059         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
19060
19061         * modules/mbscasestr-tests: New file.
19062         * tests/test-mbscasestr1.c: New file.
19063         * tests/test-mbscasestr2.sh: New file.
19064         * tests/test-mbscasestr2.c: New file.
19065         * tests/test-mbscasestr3.sh: New file.
19066         * tests/test-mbscasestr3.c: New file.
19067         * tests/test-mbscasestr4.sh: New file.
19068         * tests/test-mbscasestr4.c: New file.
19069         * m4/locale-tr.m4: New file.
19070
19071 2007-02-11  Bruno Haible  <bruno@clisp.org>
19072
19073         Ensure O(n) worst-case complexity of mbsstr.
19074         * lib/mbsstr.c: Include stdbool.h.
19075         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
19076         functions.
19077         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
19078         bookkeeping indicates that it's worth it.
19079         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
19080
19081         * modules/mbsstr-tests: New file.
19082         * tests/test-mbsstr1.c: New file.
19083         * tests/test-mbsstr2.sh: New file.
19084         * tests/test-mbsstr2.c: New file.
19085         * tests/test-mbsstr3.sh: New file.
19086         * tests/test-mbsstr3.c: New file.
19087         * m4/locale-fr.m4: New file.
19088
19089 2007-02-11  Bruno Haible  <bruno@clisp.org>
19090
19091         * lib/mbsrchr.c (mbsrchr): Fix bug.
19092
19093         * modules/mbsrchr-tests: New file.
19094         * tests/test-mbsrchr.sh: New file.
19095         * tests/test-mbsrchr.c: New file.
19096
19097 2007-02-11  Bruno Haible  <bruno@clisp.org>
19098
19099         * lib/mbschr.c (mbschr): Fix bug.
19100
19101         * modules/mbschr-tests: New file.
19102         * tests/test-mbschr.sh: New file.
19103         * tests/test-mbschr.c: New file.
19104         * m4/locale-zh.m4: New file.
19105
19106 2007-02-11  Bruno Haible  <bruno@clisp.org>
19107
19108         Support for copying multibyte string iterators.
19109         * lib/mbiter.h: Include <string.h>.
19110         (mbiter_multi_copy): New function.
19111         (mbi_copy): New macro.
19112         * lib/mbuiter.h: Include <string.h>.
19113         (mbuiter_multi_copy): New function.
19114         (mbui_copy): New macro.
19115
19116 2007-02-11  Bruno Haible  <bruno@clisp.org>
19117
19118         New module mbslen.
19119         * modules/mbslen: New file.
19120         * lib/mbslen.c: New file.
19121         * lib/string_.h (mbslen): New declaration.
19122         * m4/mbslen.m4: New file.
19123         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
19124         GNULIB_MBSLEN.
19125         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
19126         * MODULES.html.sh (Internationalization functions): Add mbslen.
19127
19128 2007-02-11  Bruno Haible  <bruno@clisp.org>
19129
19130         Ensure O(n) worst-case complexity of strcasestr substitute.
19131         * lib/strcasestr.c: Include stdbool.h.
19132         (knuth_morris_pratt): New function.
19133         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
19134         bookkeeping indicates that it's worth it.
19135         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
19136
19137         * modules/strcasestr-tests: New file.
19138         * tests/test-strcasestr.c: New file.
19139
19140 2007-02-11  Bruno Haible  <bruno@clisp.org>
19141
19142         Ensure O(n) worst-case complexity of c_strcasestr.
19143         * lib/c-strcasestr.c: Include stdbool.h, string.h.
19144         (knuth_morris_pratt): New function.
19145         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
19146         the bookkeeping indicates that it's worth it.
19147         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
19148
19149         * modules/c-strcasestr-tests: New file.
19150         * tests/test-c-strcasestr.c: New file.
19151
19152 2007-02-11  Bruno Haible  <bruno@clisp.org>
19153
19154         Ensure O(n) worst-case complexity of c_strstr.
19155         * lib/c-strstr.c: Include stdbool.h, string.h.
19156         (knuth_morris_pratt): New function.
19157         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
19158         bookkeeping indicates that it's worth it.
19159         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
19160
19161         * lib/c-strstr.c: Complete rewrite for maintainability.
19162
19163         * modules/c-strstr-tests: New file.
19164         * tests/test-c-strstr.c: New file.
19165
19166 2007-02-11  Bruno Haible  <bruno@clisp.org>
19167
19168         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
19169         5.2.1 and earlier, whereby \055 was treated just like the range
19170         delimiter '-'.
19171         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
19172
19173 2007-02-08  Bruno Haible  <bruno@clisp.org>
19174
19175         * modules/regex (Depends-on): Add stdbool.
19176         Reported by Dalibor Topic <robilad@kaffe.org>.
19177
19178 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
19179
19180         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
19181         Prefer returning from main to exiting from it.
19182         Remove unnecessary parens after sizeof.
19183
19184 2007-02-05  Bruno Haible  <bruno@clisp.org>
19185
19186         New module mbssep.
19187         * modules/mbssep: New file.
19188         * lib/mbssep.c: New file.
19189         * lib/string_.h (strsep): Add a conditional link warning.
19190         (mbssep): New declaration.
19191         * m4/mbssep.m4: New file.
19192         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
19193         GNULIB_MBSSEP.
19194         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
19195         * MODULES.html.sh (Internationalization functions): Add mbssep.
19196
19197 2007-02-05  Bruno Haible  <bruno@clisp.org>
19198
19199         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
19200         Optimize search in case of 1 delimiter.
19201
19202 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
19203
19204         * lib/acl.h: Include sys/types.h before sys/acl.h.
19205
19206 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
19207
19208         Merge upstream fix for glibc bugzilla #3957:
19209
19210         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
19211
19212         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
19213         bit for RE_HAT_LISTS_NOT_NEWLINE.
19214         (build_charclass_op): Remove bogus comment.
19215
19216 2007-02-05  Simon Josefsson  <simon@josefsson.org>
19217
19218         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
19219
19220 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
19221
19222         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
19223         * lib/memmem.c [!defined _LIBC]: Include config.h.
19224
19225 2007-02-04  Bruno Haible  <bruno@clisp.org>
19226
19227         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
19228         warning message.
19229
19230 2007-02-04  Bruno Haible  <bruno@clisp.org>
19231
19232         New module mbstok_r.
19233         * modules/mbstok_r: New file.
19234         * lib/mbstok_r.c: New file.
19235         * lib/string_.h (strtok_r): Change argument names to match the
19236         comments. Add a conditional link warning.
19237         (mbstok_r): New declaration.
19238         * m4/mbstok_r.m4: New file.
19239         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
19240         GNULIB_MBSTOK_R.
19241         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
19242         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
19243
19244 2007-02-04  Bruno Haible  <bruno@clisp.org>
19245
19246         New module mbsspn.
19247         * modules/mbsspn: New file.
19248         * lib/mbsspn.c: New file.
19249         * lib/string_.h (strspn): Add a conditional link warning.
19250         (mbsspn): New declaration.
19251         * m4/mbsspn.m4: New file.
19252         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
19253         GNULIB_MBSSPN.
19254         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
19255         * MODULES.html.sh (Internationalization functions): Add mbsspn.
19256
19257 2007-02-04  Bruno Haible  <bruno@clisp.org>
19258
19259         New module mbspbrk.
19260         * modules/mbspbrk: New file.
19261         * lib/mbspbrk.c: New file.
19262         * lib/string_.h (strpbrk): Add a conditional link warning.
19263         (mbspbrk): New declaration.
19264         * m4/mbspbrk.m4: New file.
19265         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
19266         GNULIB_MBSPBRK.
19267         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
19268         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
19269
19270 2007-02-04  Bruno Haible  <bruno@clisp.org>
19271
19272         New module mbscspn.
19273         * modules/mbscspn: New file.
19274         * lib/mbscspn.c: New file.
19275         * lib/string_.h (strcspn): Add a conditional link warning.
19276         (mbscspn): New declaration.
19277         * m4/mbscspn.m4: New file.
19278         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
19279         GNULIB_MBSCSPN.
19280         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
19281         * MODULES.html.sh (Internationalization functions): Add mbscspn.
19282
19283 2007-02-04  Bruno Haible  <bruno@clisp.org>
19284
19285         New module mbscasestr, reduced goal of strcasestr.
19286         * modules/mbscasestr: New file.
19287         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
19288         (mbscasestr): Renamed from strcasestr.
19289         * lib/strcasestr.c: Don't include mbuiter.h.
19290         (strcasestr): Remove support for multibyte locales.
19291         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
19292         Change the conditional link warning.
19293         (mbscasestr): New declaration.
19294         * m4/mbscasestr.m4: New file.
19295         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
19296         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
19297         REPLACE_STRCASESTR.
19298         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
19299         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
19300         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
19301         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
19302         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
19303         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
19304         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
19305         (Depends-on): Remove mbuiter.
19306         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
19307
19308 2007-02-04  Bruno Haible  <bruno@clisp.org>
19309
19310         Simplify handling of strncasecmp.
19311         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
19312         the conditional link warning.
19313         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
19314         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
19315         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
19316         * modules/strcase (configure.ac): Don't invoke
19317         gl_STRING_MODULE_INDICATOR.
19318         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
19319
19320 2007-02-04  Bruno Haible  <bruno@clisp.org>
19321
19322         New module mbscasecmp, reduced goal of strcasecmp.
19323         * modules/mbscasecmp: New file.
19324         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
19325         (mbscasecmp): Renamed from strcasecmp.
19326         * lib/strcasecmp.c: Don't include mbuiter.h.
19327         (strcasecmp): Remove support for multibyte locales.
19328         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
19329         Change the conditional link warning.
19330         (mbscasecmp): New declaration.
19331         * m4/mbscasecmp.m4: New file.
19332         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
19333         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
19334         REPLACE_STRCASECMP.
19335         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
19336         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
19337         GNULIB_MBSCASECMP.
19338         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
19339         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
19340         * modules/strcase (Files): Remove m4/mbrtowc.m4.
19341         (Depends-on): Remove mbuiter.
19342         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
19343
19344 2007-02-04  Bruno Haible  <bruno@clisp.org>
19345
19346         New module mbsstr. Remove module strstr.
19347         * modules/mbsstr: New file.
19348         * modules/strstr: Remove file.
19349         * lib/mbsstr.c: Renamed from lib/strstr.c.
19350         (mbsstr): Renamed from strstr.
19351         * lib/string_.h (strstr): Remove declaration. Change the conditional
19352         link warning.
19353         (mbsstr): New declaration.
19354         * m4/mbsstr.m4: New file.
19355         * m4/strstr.m4: Remove file.
19356         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
19357         REPLACE_STRSTR.
19358         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
19359         Don't initialize GNULIB_STRSTR.
19360         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
19361         substitute GNULIB_STRSTR and REPLACE_STRSTR.
19362         * MODULES.html.sh (Internationalization functions): Add mbsstr.
19363         (Support for systems lacking ANSI C 89): Remove strstr.
19364
19365 2007-02-04  Bruno Haible  <bruno@clisp.org>
19366
19367         New module mbsrchr.
19368         * modules/mbsrchr: New file.
19369         * lib/mbsrchr.c: New file.
19370         * lib/string_.h (strrchr): Add a conditional link warning.
19371         (mbsrchr): New declaration.
19372         * m4/mbsrchr.m4: New file.
19373         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
19374         GNULIB_MBSRCHR.
19375         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
19376         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
19377
19378 2007-02-04  Bruno Haible  <bruno@clisp.org>
19379
19380         New module mbschr.
19381         * modules/mbschr: New file.
19382         * lib/mbschr.c: New file.
19383         * lib/string_.h (strchr): Add a conditional link warning.
19384         (mbschr): New declaration.
19385         * m4/mbschr.m4: New file.
19386         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
19387         GNULIB_MBSCHR.
19388         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
19389         * MODULES.html.sh (Internationalization functions): Add mbschr.
19390
19391 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
19392
19393         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
19394
19395         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
19396
19397 2007-02-04  Bruno Haible  <bruno@clisp.org>
19398
19399         New module description section 'configure.ac-early'.
19400         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
19401         (func_get_autoconf_early_snippet): New function.
19402         (func_import, func_create_testdir): Use it. Remove special cases for
19403         modules 'extensions' and 'lock'.
19404         * modules/extensions (configure.ac-early): Require
19405         gl_USE_SYSTEM_EXTENSIONS.
19406         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
19407
19408 2007-02-04  Bruno Haible  <bruno@clisp.org>
19409
19410         Make use of gcj-4.3's -fsource and -ftarget option.
19411         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
19412         and if so try the options -fsource and -ftarget.
19413         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
19414         source_version, ftarget_option, target_version arguments.
19415         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
19416         (is_envjavac_oldgcj_14_14_usable): Renamed from
19417         is_envjavac_gcj_14_14_usable.
19418         (is_envjavac_oldgcj_14_13_usable): Renamed from
19419         is_envjavac_gcj_14_13_usable.
19420         (is_gcj_present): Update.
19421         (is_gcj_43, is_gcj43_usable): New functions.
19422         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
19423         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
19424         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
19425         try the options -fsource and -ftarget.
19426
19427 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
19428
19429         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
19430         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
19431         larger value.
19432
19433 2007-02-03  Jim Meyering  <jim@meyering.net>
19434
19435         Give tools a better chance to allocate space for very large buffers.
19436         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
19437
19438         Make pwd and readlink work also when run with an unreadable parent dir
19439         on systems with openat support.
19440         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
19441         provided getcwd function, even when we have openat support.
19442         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
19443
19444 2007-02-02  Bruno Haible  <bruno@clisp.org>
19445
19446         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
19447         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
19448         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
19449         portability problems if one of these functions is only used on specific
19450         platforms.
19451         Reported by Paul Eggert.
19452
19453 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
19454
19455         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
19456         is causing more trouble than it's curing.
19457         * lib/regex_internal.h (__mempcpy): Remove.
19458         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
19459         (and make the code a tad smaller to boot).
19460         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
19461
19462 2007-02-02  Jim Meyering  <jim@meyering.net>
19463
19464         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
19465         section, not in the Makefile.am: one.
19466
19467 2007-02-02  Eric Blake  <ebb9@byu.net>
19468
19469         * lib/strchrnul.c: Always include config.h first.
19470
19471         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
19472         gnulib strstr is not necessary here.
19473
19474 2007-02-02  Simon Josefsson  <simon@josefsson.org>
19475
19476         * m4/socklen.m4: Fix typo.
19477
19478 2007-02-02  Eric Blake  <ebb9@byu.net>
19479
19480         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
19481         * modules/netinet_in (Makefile.am): Likewise.
19482
19483 2007-02-01  Bruno Haible  <bruno@clisp.org>
19484
19485         * lib/string_.h (GL_LINK_WARNING): New macro.
19486         (strcasecmp, strstr, strcasestr): If provided by the system,
19487         conditionally define as a macro that leads to a warning instead of to
19488         an error.
19489         (strncasecmp): Conditionally define as a macro that leads to a warning.
19490
19491 2007-02-01  Karl Berry  <karl@gnu.org>
19492
19493         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
19494
19495 2007-02-01  Bruno Haible  <bruno@clisp.org>
19496
19497         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
19498         renamings.
19499
19500 2007-02-01  Eric Blake  <ebb9@byu.net>
19501
19502         * modules/regex (Depends-on): Revert dependence on mempcpy.
19503         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
19504         module's definition of mempcpy.
19505         Reported by Paul Eggert.
19506
19507 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
19508
19509         * lib/string_.h: If the gnulib module XYZ is not present, undefine
19510         the symbol XYZ before redefining it.  This fixes a problem with
19511         programs that don't use XYZ, when compiled on systems that define
19512         XYZ to something else.
19513
19514 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
19515
19516         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
19517         occurs when "mkdir -m foo" creates a setgid directory that is (1)
19518         writeable to group or other and (2) is intended to have a special
19519         mode bit that is set or cleared.  In such a case, the directory
19520         should be neither group- nor other-writeable until the special
19521         mode bits are right.
19522
19523 2007-01-31  Eric Blake  <ebb9@byu.net>
19524
19525         * modules/mountlist (Depends-on): Add strstr.
19526
19527         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
19528         bug.
19529         * modules/string (Makefile.am): Remove redundant replacement.
19530         * modules/regex (Depends-on): Add mempcpy.
19531
19532 2007-01-31  Bruno Haible  <bruno@clisp.org>
19533
19534         New module description field 'Link'.
19535         * gnulib-tool (func_usage): Document --extract-link-directive.
19536         (sed_extract_prog): Recognize 'Link' directive.
19537         (func_get_link_directive): New function.
19538         (func_import): Show summary of link directives.
19539         Handle --extract-link-directive option.
19540         * modules/acl (Link): New section.
19541         * modules/clock-time (Link): New section.
19542         * modules/euidaccess (Link): New section.
19543         * modules/gettext (Link): New section.
19544         * modules/iconv (Link): New section.
19545         * modules/lock (Link): New section.
19546         * modules/nanosleep (Link): New section.
19547         * modules/readline (Link): New section.
19548
19549 2007-01-27  Bruno Haible  <bruno@clisp.org>
19550
19551         Enforce the use of gnulib modules for unportable <string.h> functions.
19552         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
19553         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
19554         (gl_HEADER_STRING_H_BODY): Require it.
19555         * lib/string_.h: If the gnulib module XYZ is not present, redefine
19556         the symbol XYZ to one that gives a link error.
19557         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
19558         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
19559         * modules/mempcpy (configure.ac): Likewise.
19560         * modules/memrchr (configure.ac): Likewise.
19561         * modules/stpcpy (configure.ac): Likewise.
19562         * modules/stpncpy (configure.ac): Likewise.
19563         * modules/strcase (configure.ac): Likewise.
19564         * modules/strcasestr (configure.ac): Likewise.
19565         * modules/strchrnul (configure.ac): Likewise.
19566         * modules/strdup (configure.ac): Likewise.
19567         * modules/strndup (configure.ac): Likewise.
19568         * modules/strnlen (configure.ac): Likewise.
19569         * modules/strpbrk (configure.ac): Likewise.
19570         * modules/strsep (configure.ac): Likewise.
19571         * modules/strstr (configure.ac): Likewise.
19572         * modules/strtok_r (configure.ac): Likewise.
19573
19574 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
19575
19576         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
19577
19578 2007-01-30  Jim Meyering  <jim@meyering.net>
19579
19580         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
19581
19582 2007-01-29  Bruno Haible  <bruno@clisp.org>
19583
19584         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
19585         * lib/execute.c: Likewise.
19586         * lib/pipe.c: Likewise.
19587         * lib/printf-args.h: Likewise.
19588         * lib/printf-args.c: Likewise.
19589         * lib/printf-parse.c: Likewise.
19590         * lib/vasnprintf.c: Likewise.
19591
19592 2007-01-29  Eric Blake  <ebb9@byu.net>
19593
19594         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
19595         declaration.
19596
19597 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
19598
19599         * lib/strptime.h (strptime): Use 'restrict' for args where
19600         POSIX requires this.
19601         * lib/strptime.c (strptime): Likewise.
19602         Change license notice from LGPL to GPL, since gnulib-tool will
19603         change this as needed.
19604         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
19605         defined.
19606         Include "strptime.h" first, to check interface.
19607         Do not #undef _LIBC and _NL_CURRENT.
19608         Do not include <stdlib.h>; no longer needed.
19609         Include "time_r.h" and declare ptime_locale_status
19610         only if _LIBC is not defined.
19611         (__P): Remove unused macro.
19612         (match_string): Bring back glibc version, but use it only if _LIBC
19613         is defined.
19614         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
19615         Remove unnecessary assertion and abort() call.
19616         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
19617         * m4/strptime.m4: Fix serial number comment.
19618         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
19619         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
19620         (Depends-on): Add time_r.
19621
19622 2007-01-29  Bruno Haible  <bruno@clisp.org>
19623
19624         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
19625         strptime.
19626         * modules/strptime (Depends-on): Add stdbool.
19627         * lib/strptime.h: Include <time.h> always. Add comments.
19628
19629 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
19630
19631         * modules/strptime: New file.
19632         * lib/strptime.h: New file.
19633         * lib/strptime.c: New file.
19634         * m4/strptime.m4: New file.
19635
19636 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
19637
19638         * MODULES.html.sh: New module mpsort.
19639         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
19640
19641         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
19642         a circularity problem with HP-UX ia64 reported by Bob Proulx in
19643         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
19644         All uses changed.
19645         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
19646         All uses changed.
19647         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
19648         to _Restrict_.
19649         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
19650         the parameter matches the prototype.
19651
19652 2007-01-28  Jim Meyering  <jim@meyering.net>
19653
19654         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
19655         sys/time.h here, reverting that part of the previous patch:
19656         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
19657
19658 2007-01-28  Bruno Haible  <bruno@clisp.org>
19659
19660         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
19661         value of $(SYS_TIME_H).
19662         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
19663         remove it conditionally, too. [added by Jim Meyering]
19664         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
19665         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
19666         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
19667         GETTIMEOFDAY_REPLACEMENT to 1.
19668
19669 2007-01-28  Bruno Haible  <bruno@clisp.org>
19670
19671         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
19672         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
19673         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
19674         Set UNISTD_H instead of UNISTD_H2.
19675         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
19676
19677 2007-01-28  Bruno Haible  <bruno@clisp.org>
19678
19679         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
19680         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
19681
19682 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19683
19684         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
19685         (func_create_testdir): Ensure C locale for `grep' and `tr'
19686         character ranges.
19687         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
19688         ACLOCAL_AMFLAGS parsing state machine.
19689
19690 2007-01-27  Bruno Haible  <bruno@clisp.org>
19691
19692         * modules/unistr/base: Update.
19693
19694 2007-01-27  Bruno Haible  <bruno@clisp.org>
19695
19696         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
19697         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
19698         * modules/unistr/u32-mbtouc-unsafe: Renamed from
19699         modules/unistr/u32-mbtouc.
19700         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
19701         * lib/unistr.h: Update.
19702         * lib/linebreak.c: Update.
19703         * modules/unistr/u32-mbtouc: Renamed from
19704         modules/unistr/u32-mbtouc-safe.
19705         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
19706         * lib/unistr.h: Update.
19707         * lib/unistr/u32-to-u8.c: Update.
19708         * lib/unistr/u32-to-u16.c: Update.
19709
19710 2007-01-27  Bruno Haible  <bruno@clisp.org>
19711
19712         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
19713         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
19714         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
19715         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
19716         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
19717         * modules/unistr/u16-mbtouc-unsafe: Renamed from
19718         modules/unistr/u16-mbtouc.
19719         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
19720         * lib/unistr.h: Update.
19721         * lib/linebreak.c: Update.
19722         * modules/linebreak: Update.
19723         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
19724         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
19725         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
19726         * modules/unistr/u16-mbtouc: Renamed from
19727         modules/unistr/u16-mbtouc-safe.
19728         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
19729         * lib/unistr.h: Update.
19730         * lib/unistr/u16-to-u8.c: Update.
19731         * modules/unistr/u16-to-u8: Update.
19732         * lib/unistr/u16-to-u32.c: Update.
19733         * modules/unistr/u16-to-u32: Update.
19734
19735 2007-01-27  Bruno Haible  <bruno@clisp.org>
19736
19737         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
19738         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
19739         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
19740         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
19741         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
19742         * modules/unistr/u8-mbtouc-unsafe: Renamed from
19743         modules/unistr/u8-mbtouc.
19744         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
19745         * lib/unistr.h: Update.
19746         * lib/striconveh.c: Update.
19747         * modules/striconveh: Update.
19748         * lib/linebreak.c: Update.
19749         * modules/linebreak: Update.
19750         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
19751         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
19752         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
19753         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
19754         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
19755         * lib/unistr.h: Update.
19756         * lib/striconveh.c: Update.
19757         * modules/striconveh: Update.
19758         * lib/unistr/u8-to-u16.c: Update.
19759         * modules/unistr/u8-to-u16: Update.
19760         * lib/unistr/u8-to-u32.c: Update.
19761         * modules/unistr/u8-to-u32: Update.
19762
19763 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19764
19765         Sync from Libtool.
19766         * lib/argz.c: Do not include strings.h nor memory.h, include
19767         string.h unconditionally.  Patch by Simon Josefsson.
19768
19769 2007-01-27  Bruno Haible  <bruno@clisp.org>
19770
19771         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
19772         from gl_HEADER_STRING_H_BODY.
19773         (gl_HEADER_STRING_H_BODY): Require it.
19774         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
19775         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
19776         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
19777         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
19778         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
19779         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
19780         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
19781         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
19782         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
19783         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
19784         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
19785         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
19786         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
19787         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
19788         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
19789
19790 2007-01-27  Bruno Haible  <bruno@clisp.org>
19791
19792         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
19793         check_PROGRAMS into noinst_PROGRAMS.
19794         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
19795         check_PROGRAMS in this case.
19796         (func_import): Set for_test to false.
19797         (func_create_testdir): Set for_test to true.
19798
19799 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
19800             Bruno Haible  <bruno@clisp.org>
19801
19802         * modules/strcasestr (Files): Remove lib/strcasestr.h.
19803         (Depends-on): Add string.
19804         (Includes): Use <string.h> instead of strcasestr.h.
19805         * modules/string (Makefile.am): Also substitute the value of
19806         REPLACE_STRCASESTR.
19807         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
19808         assume strcasestr is declared in <string.h> not <strings.h>. Also
19809         set REPLACE_STRCASESTR.
19810         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
19811         REPLACE_STRCASESTR.
19812         * lib/strcasestr.h: Remove file.
19813         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
19814         * lib/string_.h (strcasestr): New declaration.
19815
19816 2007-01-27  Bruno Haible  <bruno@clisp.org>
19817
19818         * lib/string_.h: Use 'extern'.
19819
19820 2007-01-27  Jim Meyering  <jim@meyering.net>
19821
19822         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
19823         of set-but-not-used local, "q".
19824
19825         * lib/mempcpy.c: Include <config.h> before <string.h>.
19826         This fixes a compilation error on HP-UX, due to the system's
19827         "restrict"-using mempcpy prototype.
19828
19829 2007-01-26  Bruno Haible  <bruno@clisp.org>
19830
19831         Small optimization.
19832         * lib/javacomp.c: Include c-strstr.h.
19833          (is_envjavac_gcj): Use c_strstr instead of strstr.
19834         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
19835
19836 2007-01-26  Bruno Haible  <bruno@clisp.org>
19837
19838         * MODULES.html.sh (Unicode string functions): Add the new modules.
19839
19840         * modules/uniconv/u32-strconv-to-locale: New file.
19841         * lib/uniconv/u32-strconv-to-locale.c: New file.
19842
19843         * modules/uniconv/u16-strconv-to-locale: New file.
19844         * lib/uniconv/u16-strconv-to-locale.c: New file.
19845
19846         * modules/uniconv/u8-strconv-to-locale: New file.
19847         * lib/uniconv/u8-strconv-to-locale.c: New file.
19848
19849         * modules/uniconv/u32-strconv-from-locale: New file.
19850         * lib/uniconv/u32-strconv-from-locale.c: New file.
19851
19852         * modules/uniconv/u16-strconv-from-locale: New file.
19853         * lib/uniconv/u16-strconv-from-locale.c: New file.
19854
19855         * modules/uniconv/u8-strconv-from-locale: New file.
19856         * lib/uniconv/u8-strconv-from-locale.c: New file.
19857
19858         * modules/uniconv/u32-strconv-to-enc: New file.
19859         * lib/uniconv/u32-strconv-to-enc.c: New file.
19860         * modules/uniconv/u32-strconv-to-enc-tests: New file.
19861         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
19862
19863         * modules/uniconv/u16-strconv-to-enc: New file.
19864         * lib/uniconv/u16-strconv-to-enc.c: New file.
19865         * lib/uniconv/u-strconv-to-enc.h: New file.
19866         * modules/uniconv/u16-strconv-to-enc-tests: New file.
19867         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
19868
19869         * modules/uniconv/u8-strconv-to-enc: New file.
19870         * lib/uniconv/u8-strconv-to-enc.c: New file.
19871         * modules/uniconv/u8-strconv-to-enc-tests: New file.
19872         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
19873
19874         * modules/uniconv/u32-strconv-from-enc: New file.
19875         * lib/uniconv/u32-strconv-from-enc.c: New file.
19876         * modules/uniconv/u32-strconv-from-enc-tests: New file.
19877         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
19878
19879         * modules/uniconv/u16-strconv-from-enc: New file.
19880         * lib/uniconv/u16-strconv-from-enc.c: New file.
19881         * modules/uniconv/u16-strconv-from-enc-tests: New file.
19882         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
19883
19884         * modules/uniconv/u8-strconv-from-enc: New file.
19885         * lib/uniconv/u8-strconv-from-enc.c: New file.
19886         * lib/uniconv/u-strconv-from-enc.h: New file.
19887         * modules/uniconv/u8-strconv-from-enc-tests: New file.
19888         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
19889
19890         * modules/uniconv/u32-conv-from-enc: New file.
19891         * lib/uniconv/u32-conv-from-enc.c: New file.
19892         * modules/uniconv/u32-conv-from-enc-tests: New file.
19893         * tests/uniconv/test-u32-conv-from-enc.c: New file.
19894
19895         * modules/uniconv/u16-conv-from-enc: New file.
19896         * lib/uniconv/u16-conv-from-enc.c: New file.
19897         * lib/uniconv/u-conv-from-enc.h: New file.
19898         * modules/uniconv/u16-conv-from-enc-tests: New file.
19899         * tests/uniconv/test-u16-conv-from-enc.c: New file.
19900
19901         * modules/uniconv/u8-conv-from-enc: New file.
19902         * lib/uniconv/u8-conv-from-enc.c: New file.
19903         * modules/uniconv/u8-conv-from-enc-tests: New file.
19904         * tests/uniconv/test-u8-conv-from-enc.c: New file.
19905
19906         * modules/uniconv/base: New file.
19907         * lib/uniconv.h: New file.
19908
19909 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
19910
19911         * doc/gnulib-tool.texi (Initial import): Update to match current
19912         behavior with strdup module.
19913         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
19914         * lib/memmem.h: Remove; all uses removed.  This is now done
19915         by <string.h>.
19916         * lib/mempcpy.h: Likewise.
19917         * lib/memrchr.h: Likewise.
19918         * lib/stpcpy.h: Likewise.
19919         * lib/stpncpy.h: Likewise.
19920         * lib/strcase.h: Likewise.
19921         * lib/strchrnul.h: Likewise.
19922         * lib/strdup.h: Likewise.
19923         * lib/strndup.h: Likewise.
19924         * lib/strnlen.h: Likewise.
19925         * lib/strpbrk.h: Likewise.
19926         * lib/strsep.h: Likewise.
19927         * lib/strstr.h: Likewise.
19928         * lib/strtok_r.h: Likewise.
19929         * lib/string_.h: New file.
19930         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
19931         Rely on <string.h> instead.
19932         * lib/canon-host.c: Likewise.
19933         * lib/chdir-long.c: Likewise.
19934         * lib/concatpath.c: Likewise.
19935         * lib/exclude.c: Likewise.
19936         * lib/fchdir.c: Likewise.
19937         * lib/getaddrinfo.c: Likewise.
19938         * lib/getcwd.c: Likewise.
19939         * lib/getsubopt.c: Likewise.
19940         * lib/glob.c: Likewise.
19941         * lib/hard-locale.c: Likewise.
19942         * lib/iconvme.c: Likewise.
19943         * lib/javacomp.c: Likewise.
19944         * lib/mempcpy.c: Likewise.
19945         * lib/memrchr.c: Likewise.
19946         * lib/regex_internal.h: Likewise.
19947         * lib/stpncpy.c: Likewise.
19948         * lib/strcasecmp.c: Likewise.
19949         * lib/strchrnul.c: Likewise.
19950         * lib/strdup.c: Likewise.
19951         * lib/striconv.c: Likewise.
19952         * lib/striconveh.c: Likewise.
19953         * lib/striconveha.c: Likewise.
19954         * lib/strncasecmp.c: Likewise.
19955         * lib/strndup.c: Likewise.
19956         * lib/strnlen.c: Likewise.
19957         * lib/strsep.c: Likewise.
19958         * lib/strstr.c: Likewise.
19959         * lib/strtok_r.c: Likewise.
19960         * lib/userspec.c: Likewise.
19961         * lib/w32spawn.h: Likewise.
19962         * lib/xstrndup.c: Likewise.
19963         * lib/mountlist.c (strstr): Remove decl.
19964         * m4/string_h.m4: New file.
19965         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
19966         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
19967         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
19968         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
19969         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
19970         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
19971         Set REPLACE_STRCASECMP if necessary.
19972         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
19973         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
19974         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
19975         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
19976         HAVE_DECL_STRDUP if necessary.
19977         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
19978         since gl_FUNC_STRNDUP does that now.
19979         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
19980         Check for decl here...
19981         (gl_PREREQ_STRNLEN): ... not here.
19982         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
19983         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
19984         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
19985         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
19986         necessary.
19987         * modules/string: New file.
19988         * modules/memmem (Files): Remove special-purpose include file.
19989         (Depends-on): Add string.
19990         (Include): Include <string.h>, not the removed file.
19991         * modules/mempcpy: Likewise.
19992         * modules/memrchr: Likewise.
19993         * modules/stpcpy: Likewise.
19994         * modules/stpncpy: Likewise.
19995         * modules/strcase: Likewise.
19996         * modules/strchrnul: Likewise.
19997         * modules/strdup: Likewise.
19998         * modules/strndup: Likewise.
19999         * modules/strnlen: Likewise.
20000         * modules/strpbrk: Likewise.
20001         * modules/strsep: Likewise.
20002         * modules/strstr: Likewise.
20003         * modules/strtok_r: Likewise.
20004         * tests/test-dirname.c: Don't include "strdup.h", since
20005         <string.h> now suffices.
20006         * tests/test-memmem.c: Don't include "memmem.h", since
20007         <string.h> now suffices.
20008
20009 2007-01-25  Bruno Haible  <bruno@clisp.org>
20010
20011         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
20012         *resultp is 0.
20013
20014         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
20015         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
20016         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
20017         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
20018
20019         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
20020         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
20021         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
20022         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
20023         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
20024         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
20025
20026 2007-01-24  Bruno Haible  <bruno@clisp.org>
20027
20028         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
20029         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
20030         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
20031         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
20032         gl_FUNC_FTS_CORE.
20033         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
20034         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
20035         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
20036         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
20037         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
20038         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
20039         gl_FUNC_FCHOWNAT.
20040         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
20041         gl_FUNC_STRFTIME.
20042         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
20043         Reported by Ralf Wildenhues.
20044
20045 2007-01-24  Bruno Haible  <bruno@clisp.org>
20046
20047         Drop AC_REQUIRE calls that are redundant with the module dependencies.
20048         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
20049         gl_GETADDRINFO.
20050         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
20051         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
20052         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
20053
20054 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
20055
20056         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
20057         Don't use 'exit'; just return from 'main'.
20058         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
20059
20060         * lib/fnmatch_.h: Readjust white space and comments to match
20061         glibc, to avoid spurious diffs.
20062
20063 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
20064
20065         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
20066         2004-12-01 change by Jakub Jelinek, since this code won't compile
20067         if !LIBC.  Problem reported by Bob Proulx.
20068
20069 2007-01-23  Bruno Haible  <bruno@clisp.org>
20070
20071         * lib/striconveh.c: Include c-strcaseeq.h.
20072         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
20073         * modules/striconveh (Depends-on): Add c-strcaseeq.
20074
20075 2007-01-23  Bruno Haible  <bruno@clisp.org>
20076
20077         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
20078
20079         * modules/c-strcaseeq: New file.
20080         * lib/c-strcaseeq.h: New file.
20081
20082         * modules/streq: New file.
20083         * lib/streq.h: New file.
20084
20085 2007-01-23  Bruno Haible  <bruno@clisp.org>
20086
20087         * modules/striconveha-tests: New file.
20088         * tests/test-striconveha.c: New file.
20089
20090         * lib/striconveha.h: Include <stdbool.h>.
20091         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
20092         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
20093         (mem_iconveha_notranslit): Renamed from mem_iconveha.
20094         (mem_iconveha): New function.
20095         (str_iconveha_notranslit): Renamed from str_iconveha.
20096         (str_iconveha): New function.
20097         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
20098         c-strcase.
20099
20100 2007-01-23  Bruno Haible  <bruno@clisp.org>
20101
20102         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
20103         encodings without forgiving before trying any encoding with handler.
20104         (str_iconveha): Try all encodings without forgiving before trying any
20105         encoding with handler.
20106
20107 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
20108
20109         Import the following changes from libc.
20110
20111         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
20112
20113         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
20114
20115         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
20116
20117         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
20118         normal_bracket label.
20119
20120         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
20121
20122         [BZ #361]
20123         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
20124         to normal_bracket after fetching the next character.
20125
20126 2007-01-22  Bruno Haible  <bruno@clisp.org>
20127
20128         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
20129         argument.
20130         * lib/striconveh.c (iconv_carefully_1): New function.
20131         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
20132         argument.
20133         (str_cd_iconveh): Update.
20134         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
20135         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
20136         * tests/test-striconveh.c (MAGIC): New macro.
20137         (new_offsets): New function.
20138         (main): Test call with and without offsets.
20139
20140 2007-01-22  Bruno Haible  <bruno@clisp.org>
20141
20142         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
20143         * modules/sys_select (Makefile.am): Likewise.
20144         * modules/sys_socket (Makefile.am): Likewise.
20145         * modules/sys_time (Makefile.am): Likewise.
20146
20147 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
20148
20149         * modules/gettimeofday (License): Change from GPL to LGPL, since
20150         gettimeofday is a library function.
20151
20152 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
20153
20154         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
20155
20156 2007-01-21  Bruno Haible  <bruno@clisp.org>
20157
20158         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
20159
20160 2007-01-21  Bruno Haible  <bruno@clisp.org>
20161
20162         * modules/striconveha: New file.
20163         * lib/striconveha.h: New file.
20164         * lib/striconveha.c: New file.
20165         * MODULES.html.sh (Internationalization functions): Add striconveha.
20166         * lib/striconv.c (str_iconv): Optimize the case of an empty input
20167         string.
20168         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
20169
20170 2007-01-21  Bruno Haible  <bruno@clisp.org>
20171
20172         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
20173         * lib/striconveh.c (str_iconveh): Likewise.
20174
20175 2007-01-21  Bruno Haible  <bruno@clisp.org>
20176
20177         * lib/striconveh.h (mem_iconveh): New declaration.
20178         * lib/striconveh.c (mem_iconveh): New function.
20179         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
20180
20181 2007-01-21  Bruno Haible  <bruno@clisp.org>
20182
20183         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
20184
20185         * lib/striconveh.h (mem_cd_iconveh): Change specification.
20186         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
20187         original result buffer.
20188         (str_cd_iconveh): Update.
20189         * tests/test-striconveh.c (main): Update.
20190
20191         * lib/striconv.h (mem_cd_iconv): Change specification.
20192         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
20193         result buffer.
20194         (str_cd_iconv): Update.
20195         * tests/test-striconv.c (main): Update.
20196
20197 2007-01-21  Bruno Haible  <bruno@clisp.org>
20198
20199         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
20200
20201 2007-01-20  Jim Meyering  <jim@meyering.net>
20202
20203         * lib/userspec.c (parse_with_separator): If a user or group string
20204         starts with "+", skip the corresponding name-to-ID look-up, since
20205         such a look-up must fail: user and group names may not include "+".
20206
20207 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
20208
20209         * lib/poll.c: Include sys/time.h and time.h unconditionally,
20210         since we now assume the sys_time module.
20211         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
20212         check for sys/time.h; no longer needed.
20213         * modules/poll (Depends-on): Depend on sys_time.
20214
20215 2007-01-18  Bruno Haible  <bruno@clisp.org>
20216
20217         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
20218         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
20219
20220         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
20221         gettimeofday.
20222
20223         * tests/test-gettimeofday.c: Include <time.h>.
20224         (dummy): Remove variable.
20225
20226         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
20227         gl_HEADER_SYS_TIME_H.
20228         (gl_HEADER_SYS_TIME_H): New macro.
20229
20230         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
20231         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
20232         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
20233         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
20234         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
20235         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
20236         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
20237         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
20238         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
20239         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
20240         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
20241
20242         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
20243         last change; it caused a compilation error when cross-compiling to
20244         Cygwin.
20245
20246 2007-01-18  Jim Meyering  <jim@meyering.net>
20247
20248         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
20249         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
20250         than the race-prone "test -d sys || mkdir sys".
20251         (configure.ac): Use AC_PROG_MKDIR_P.
20252         * modules/sys_select: Likewise.
20253         * modules/sys_socket: Likewise.
20254         * modules/sys_time: Likewise.
20255
20256 2007-01-18  Eric Blake  <ebb9@byu.net>
20257
20258         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
20259         replace gettimeofday.
20260         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
20261         name, to avoid infinite recursion.
20262
20263 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
20264
20265         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
20266         module sys_time.
20267         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
20268         assume timespec.h defines struct timeval.
20269         * lib/settime.c: Likewise.
20270         * lib/utimens.c: Likewise.
20271         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
20272         since we now assume the gettimeofday module.
20273         * lib/tempname.c (__gen_tempname): Likewise.
20274         * lib/gettimeofday.h: Remove.
20275         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
20276         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
20277         Include <time.h>, for 'time()'.
20278         (localtime_buffer_addr): Also use this workaround if
20279         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
20280         to simplify the uses.  All uses changed.
20281         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
20282         that #undef is inside {}, and 'const' follows type name consistently.
20283         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
20284         (gettimeofday): Do not use the maximum possible value for
20285         tv->tv_usec, since that might break usages other than ls.c.
20286         Instead, we'll leave ls.c alone.  This undoes today's patch
20287         by Bruno.  Add a compile-time warning for 1s-clock resolution;
20288         we've never observed the problem but might as well keep the
20289         canary.
20290         * lib/nanosleep.c: Include timespec.h first, for interface check.
20291         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
20292         now assume the sys_time module.
20293         * lib/tempname.c: Likewise.
20294         * lib/timespec.h: Likewise.
20295         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
20296         needed.
20297         * lib/strftime.c: Likewise.
20298         * lib/timespec.h: Likewise.
20299         * lib/posixtm.c: Include posixtm.h first, for interface check.
20300         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
20301         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
20302         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
20303         * lib/sys_time_.h: New file.
20304         * lib/timespec.h (struct timespec): Use long int, not long.
20305         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
20306         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
20307         Remove obsolescent call to AC_HEADER_TIME.
20308         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
20309         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
20310         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
20311         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
20312         Likewise.
20313         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
20314         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
20315         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
20316         into the sys_time module.  Check for gettimeofday just once.
20317         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
20318         for gettimeofday signature to just check the signature.  Merely
20319         compile it, since linking doesn't test signature.  Improve test for
20320         whether gettimeofday.o is actually needed.
20321         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
20322         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
20323         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
20324         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
20325         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
20326         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
20327         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
20328         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
20329         than worrying about sys/time.h.
20330         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
20331         Don't bother worrying about TIME_WITH_SYS_TIME.
20332         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
20333         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
20334         * m4/sys_time_h.m4: New file.
20335         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
20336         Don't include sys/time.h.  Return from main rather than exiting.
20337         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
20338         all uses changed.
20339         * modules/gethrxtime (Depends-on): Add sys_time.
20340         * modules/gettime (Depends-on): Likewise.
20341         * modules/gettimeofday (Depends-on): Likewise.
20342         * modules/nanosleep (Depends-on): Likewise.
20343         * modules/settime (Depends-on): Likewise.
20344         * modules/tempname (Depends-on): Likewise.
20345         * modules/utimens (Depends-on): Likewise.
20346         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
20347         (Include:) Change back to <sys/time.h>.
20348         (Maintainer:) Add self.
20349         * modules/sys_time: New file.
20350         * modules/tempname (Depends-on): Add gettimeofday.
20351         * tests/test-gettimeofday.c: Include <sys/time.h>
20352         rather than gettimeofday.h.
20353
20354 2007-01-17  Bruno Haible  <bruno@clisp.org>
20355
20356         * gnulib-tool (func_get_license): Revert last patch. Instead, let
20357         the license default to GPL.
20358         (func_create_testdir): Don't complain if a module is LGPL and its
20359         tests module depends on GPLed modules.
20360
20361 2007-01-17  Bruno Haible  <bruno@clisp.org>
20362
20363         * lib/gettimeofday.c (gettimeofday): Add code for the case
20364         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
20365         maximum possible value for tv->tv_usec, rather than the minimum one.
20366
20367 2005-10-08  Martin Lambers  <marlam@marlam.de>
20368 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
20369 2007-01-16  Bruno Haible  <bruno@clisp.org>
20370
20371         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
20372         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
20373         gl_FUNC_GETTIMEOFDAY.
20374         (Include): Add gettimeofday.h.
20375         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
20376         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
20377         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
20378         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
20379         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
20380         * lib/gettimeofday.h: New file.
20381         * lib/gettimeofday.c: Include <sys/timeb.h>.
20382         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
20383         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
20384         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
20385         fall back on time().
20386
20387         * tests/test-gettimeofday.c: New file.
20388         * modules/gettimeofday-tests: New file.
20389
20390 2007-01-16  Eric Blake  <ebb9@byu.net>
20391
20392         * modules/fnmatch (Depends-on): Depend on wchar.
20393         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
20394         * m4/fnmatch.m4: Likewise.
20395         * modules/mbchar (Makefile.am): Assume <wchar.h>.
20396         * m4/mbchar.m4: Likewise.
20397         * modules/mbswidth (Depends-on): Depend on wchar.
20398         * lib/mbswidth.c: Assume <wchar.h>.
20399         * m4/mbswidth.m4: Likewise.
20400         * modules/quotearg (Depends-on): Depend on wchar.
20401         * lib/quotearg.c: Assume <wchar.h>.
20402         * m4/quotearg.m4: Likewise.
20403         * modules/regex (Depends-on): Depend on wchar.
20404         * lib/regex_internal.h: Assume <wchar.h>.
20405         * m4/regex.m4: Likewise.
20406         * modules/stdint (Depends-on): Depend on wchar.
20407         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
20408         * m4/stdint.m4: Likewise.
20409         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
20410         * modules/strftime (Depends-on): Depend on wchar.
20411         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
20412         * modules/strtol (Depends-on): Depend on wchar.
20413         * lib/strtol.c: Assume <wchar.h>.
20414         * modules/wcwidth (Depends-on): Depend on wchar.
20415         * lib/wcwidth.h: Assume <wchar.h>.
20416         * m4/wcwidth.m4: Likewise.
20417
20418 2007-01-16  Bruno Haible  <bruno@clisp.org>
20419
20420         * modules/csharpexec-script: New, created from...
20421         * modules/csharpexec: ... this.
20422
20423 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
20424
20425         * modules/javaexec-script: New, created from...
20426         * modules/javaexec: ... this.
20427
20428 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
20429
20430         * modules/poll (Dependencies): Add sys_select.
20431
20432 2007-01-15  Jim Meyering  <jim@meyering.net>
20433
20434         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
20435         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
20436         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
20437         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
20438
20439 2007-01-15  Bruno Haible  <bruno@clisp.org>
20440
20441         * modules/striconveh: New file.
20442         * lib/striconveh.h: New file.
20443         * lib/striconveh.c: New file.
20444         * MODULES.html.sh (Internationalization functions): Add striconveh.
20445
20446         * modules/striconveh-tests: New file.
20447         * tests/test-striconveh.c: New file.
20448
20449 2007-01-15  Bruno Haible  <bruno@clisp.org>
20450
20451         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
20452         not from GNU libiconv or GNU libc.
20453
20454 2007-01-15  Bruno Haible  <bruno@clisp.org>
20455
20456         * doc/gnulib-intro.texi (Copyright): Explain the different license
20457         terms for module descriptions, autoconf macros, tests, documentation.
20458
20459 2007-01-14  Bruno Haible  <bruno@clisp.org>
20460
20461         * modules/striconv-tests: New file.
20462         * tests/test-striconv.c: New file.
20463
20464 2007-01-14  Bruno Haible  <bruno@clisp.org>
20465
20466         * modules/iconv-tests: New file.
20467         * tests/test-iconv.c: New file.
20468
20469 2007-01-14  Bruno Haible  <bruno@clisp.org>
20470
20471         * gnulib-tool (func_get_license): For test modules, use the license of
20472         the main module.
20473
20474 2007-01-14  Bruno Haible  <bruno@clisp.org>
20475
20476         * modules/iconv (Include): Clarify that <iconv.h> can only be included
20477         if iconv is found to exist.
20478
20479 2007-01-14  Bruno Haible  <bruno@clisp.org>
20480
20481         * modules/c-ctype-tests: New file.
20482         * tests/test-c-ctype.c: New file.
20483
20484 2007-01-14  Bruno Haible  <bruno@clisp.org>
20485
20486         * modules/binary-io-tests: New file.
20487         * tests/test-binary-io.sh: New file.
20488         * tests/test-binary-io.c: New file.
20489
20490 2007-01-14  Bruno Haible  <bruno@clisp.org>
20491
20492         * modules/array-oset-tests: New file.
20493         * tests/test-array_oset.c: New file.
20494
20495 2007-01-14  Bruno Haible  <bruno@clisp.org>
20496
20497         * modules/array-list-tests: New file.
20498         * tests/test-array_list.c: New file.
20499
20500 2007-01-14  Bruno Haible  <bruno@clisp.org>
20501
20502         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
20503         and make.
20504         Reported by Simon Josefsson in
20505         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
20506
20507 2007-01-14  Bruno Haible  <bruno@clisp.org>
20508
20509         * modules/allocsa-tests: New file.
20510         * tests/test-allocsa.c: New file.
20511
20512 2007-01-14  Bruno Haible  <bruno@clisp.org>
20513
20514         * modules/fchdir (Depends-on): Add absolute-header.
20515         * modules/unistd (Depends-on): Likewise.
20516
20517 2006-12-30  Bruno Haible  <bruno@clisp.org>
20518
20519         * modules/fchdir: New file.
20520         * modules/unistd (Files): Add lib/unistd_.h.
20521         (Makefile.am): Generate unistd.h from unistd_.h.
20522         * lib/fchdir.c: New file.
20523         * lib/dirent_.h: New file.
20524         * lib/unistd_.h: New file.
20525         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
20526         * m4/fchdir.m4: New file.
20527         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
20528         (gl_HEADER_UNISTD): Invoke it.
20529         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
20530         function.
20531         * lib/backupfile.c (opendir, closedir): Undefine.
20532         * lib/chown.c (open, close): Undefine.
20533         * lib/clean-temp.c (open, close): Undefine.
20534         * lib/copy-file.c (open, close): Undefine.
20535         * lib/execute.c (open, close): Undefine.
20536         * lib/fsusage.c (open, close): Undefine.
20537         * lib/gc-gnulib.c (open, close): Undefine.
20538         * lib/getcwd.c (opendir, closedir): Undefine.
20539         * lib/glob.c (opendir, closedir): Undefine.
20540         * lib/javacomp.c (open, close): Undefine.
20541         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
20542         * lib/openat-proc.c (open, close): Undefine.
20543         * lib/pagealign_alloc.c (open, close): Undefine.
20544         * lib/pipe.c (open, close): Undefine.
20545         * lib/progreloc.c (open, close): Undefine.
20546         * lib/savedir.c (opendir, closedir): Undefine.
20547         * lib/utime.c (open, close): Undefine.
20548         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
20549
20550 2007-01-10  Bruno Haible  <bruno@clisp.org>
20551
20552         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
20553
20554 2007-01-12  Eric Blake  <ebb9@byu.net>
20555
20556         Provide a robust <wchar.h>.  Further simplifications are now
20557         possible in other modules, but not included here.
20558         * modules/wchar: New module.
20559         * m4/wchar.m4: New file.
20560         * lib/wchar_.h: Likewise.
20561         * modules/mbchar (Depends-on): Depend on wchar, as the first use
20562         of the new module.
20563         * MODULES.html.sh (Extended multibyte and wide character utilities):
20564         New section.
20565
20566 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
20567
20568         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
20569         to a reasonable default for memory allocation.
20570         (xreadlink): Don't allocate a huge buffer, to work around a buggy
20571         file system that reports garbage st_size values for symlinks.
20572         Problem reported by Liyang Hu.
20573
20574 2007-01-11  Simon Josefsson  <simon@josefsson.org>
20575
20576         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
20577         Emacs .#* auto-save files).
20578
20579 2007-01-11  Bruno Haible  <bruno@clisp.org>
20580
20581         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
20582         directory.
20583
20584 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
20585
20586         Use @...@ consistently in lib/wctype_.h.
20587         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
20588         on it being set to 1 or 0.
20589         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
20590         go back to AC_SUBSTing it.
20591         * modules/wctype (Makefile.am): Undo previous change.
20592
20593 2007-01-10  Eric Blake  <ebb9@byu.net>
20594
20595         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
20596         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
20597         * modules/wctype (Makefile.am): Likewise.
20598         Reported by Chris McGuire.
20599
20600 2007-01-10  Jim Meyering  <jim@meyering.net>
20601
20602         fts.c: a small readability/maintainability improvement
20603         * lib/fts.c (fts_read): Make this code slightly more readable and
20604         maintainable by hoisting the "sp->fts_cur = p" assignments to
20605         immediately follow the statements that set P.  Derived from
20606         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
20607
20608 2007-01-10  Eric Blake  <ebb9@byu.net>
20609
20610         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
20611         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
20612         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
20613         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
20614         Reported by Chris McGuire.
20615
20616 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20617
20618         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
20619         in sed script.
20620
20621 2007-01-09  Bruno Haible  <bruno@clisp.org>
20622
20623         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
20624         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
20625         variables.
20626         (func_module): Use them.
20627
20628 2007-01-09  Bruno Haible  <bruno@clisp.org>
20629
20630         * modules/unistr/base: New file.
20631         * lib/unistr.h: New file.
20632
20633         * modules/unistr/u8-to-u16: New file.
20634         * lib/unistr/u8-to-u16.c: New file.
20635
20636         * modules/unistr/u8-to-u32: New file.
20637         * lib/unistr/u8-to-u32.c: New file.
20638
20639         * modules/unistr/u16-to-u8: New file.
20640         * lib/unistr/u16-to-u8.c: New file.
20641
20642         * modules/unistr/u16-to-u32: New file.
20643         * lib/unistr/u16-to-u32.c: New file.
20644
20645         * modules/unistr/u32-to-u8: New file.
20646         * lib/unistr/u32-to-u8.c: New file.
20647
20648         * modules/unistr/u32-to-u16: New file.
20649         * lib/unistr/u32-to-u16.c: New file.
20650
20651         * modules/unistr/u8-check: New file.
20652         * modules/unistr/u16-check: New file.
20653         * modules/unistr/u32-check: New file.
20654         * lib/unistr/u8-check.c: New file.
20655         * lib/unistr/u16-check.c: New file.
20656         * lib/unistr/u32-check.c: New file.
20657
20658         * modules/unistr/u8-chr: New file.
20659         * modules/unistr/u16-chr: New file.
20660         * modules/unistr/u32-chr: New file.
20661         * lib/unistr/u8-chr.c: New file.
20662         * lib/unistr/u16-chr.c: New file.
20663         * lib/unistr/u32-chr.c: New file.
20664
20665         * modules/unistr/u8-cmp: New file.
20666         * modules/unistr/u16-cmp: New file.
20667         * modules/unistr/u32-cmp: New file.
20668         * lib/unistr/u8-cmp.c: New file.
20669         * lib/unistr/u16-cmp.c: New file.
20670         * lib/unistr/u32-cmp.c: New file.
20671
20672         * modules/unistr/u8-cpy: New file.
20673         * modules/unistr/u16-cpy: New file.
20674         * modules/unistr/u32-cpy: New file.
20675         * lib/unistr/u8-cpy.c: New file.
20676         * lib/unistr/u16-cpy.c: New file.
20677         * lib/unistr/u32-cpy.c: New file.
20678         * lib/unistr/u-cpy.h: New file.
20679
20680         * modules/unistr/u8-cpy-alloc: New file.
20681         * modules/unistr/u16-cpy-alloc: New file.
20682         * modules/unistr/u32-cpy-alloc: New file.
20683         * lib/unistr/u8-cpy-alloc.c: New file.
20684         * lib/unistr/u16-cpy-alloc.c: New file.
20685         * lib/unistr/u32-cpy-alloc.c: New file.
20686         * lib/unistr/u-cpy-alloc.h: New file.
20687
20688         * modules/unistr/u8-endswith: New file.
20689         * modules/unistr/u16-endswith: New file.
20690         * modules/unistr/u32-endswith: New file.
20691         * lib/unistr/u8-endswith.c: New file.
20692         * lib/unistr/u16-endswith.c: New file.
20693         * lib/unistr/u32-endswith.c: New file.
20694         * lib/unistr/u-endswith.h: New file.
20695
20696         * modules/unistr/u8-mblen: New file.
20697         * modules/unistr/u16-mblen: New file.
20698         * modules/unistr/u32-mblen: New file.
20699         * lib/unistr/u8-mblen.c: New file.
20700         * lib/unistr/u16-mblen.c: New file.
20701         * lib/unistr/u32-mblen.c: New file.
20702
20703         * modules/unistr/u8-mbtouc: New file.
20704         * modules/unistr/u16-mbtouc: New file.
20705         * modules/unistr/u32-mbtouc: New file.
20706         * lib/unistr/u8-mbtouc.c: New file.
20707         * lib/unistr/u16-mbtouc.c: New file.
20708         * lib/unistr/u32-mbtouc.c: New file.
20709
20710         * modules/unistr/u8-mbtouc-safe: New file.
20711         * modules/unistr/u16-mbtouc-safe: New file.
20712         * modules/unistr/u32-mbtouc-safe: New file.
20713         * lib/unistr/u8-mbtouc-safe.c: New file.
20714         * lib/unistr/u16-mbtouc-safe.c: New file.
20715         * lib/unistr/u32-mbtouc-safe.c: New file.
20716
20717         * modules/unistr/u8-move: New file.
20718         * modules/unistr/u16-move: New file.
20719         * modules/unistr/u32-move: New file.
20720         * lib/unistr/u8-move.c: New file.
20721         * lib/unistr/u16-move.c: New file.
20722         * lib/unistr/u32-move.c: New file.
20723         * lib/unistr/u-move.h: New file.
20724
20725         * modules/unistr/u8-next: New file.
20726         * modules/unistr/u16-next: New file.
20727         * modules/unistr/u32-next: New file.
20728         * lib/unistr/u8-next.c: New file.
20729         * lib/unistr/u16-next.c: New file.
20730         * lib/unistr/u32-next.c: New file.
20731
20732         * modules/unistr/u8-prev: New file.
20733         * modules/unistr/u16-prev: New file.
20734         * modules/unistr/u32-prev: New file.
20735         * lib/unistr/u8-prev.c: New file.
20736         * lib/unistr/u16-prev.c: New file.
20737         * lib/unistr/u32-prev.c: New file.
20738
20739         * modules/unistr/u8-set: New file.
20740         * modules/unistr/u16-set: New file.
20741         * modules/unistr/u32-set: New file.
20742         * lib/unistr/u8-set.c: New file.
20743         * lib/unistr/u16-set.c: New file.
20744         * lib/unistr/u32-set.c: New file.
20745         * lib/unistr/u-set.h: New file.
20746
20747         * modules/unistr/u8-startswith: New file.
20748         * modules/unistr/u16-startswith: New file.
20749         * modules/unistr/u32-startswith: New file.
20750         * lib/unistr/u8-startswith.c: New file.
20751         * lib/unistr/u16-startswith.c: New file.
20752         * lib/unistr/u32-startswith.c: New file.
20753         * lib/unistr/u-startswith.h: New file.
20754
20755         * modules/unistr/u8-stpcpy: New file.
20756         * modules/unistr/u16-stpcpy: New file.
20757         * modules/unistr/u32-stpcpy: New file.
20758         * lib/unistr/u8-stpcpy.c: New file.
20759         * lib/unistr/u16-stpcpy.c: New file.
20760         * lib/unistr/u32-stpcpy.c: New file.
20761         * lib/unistr/u-stpcpy.h: New file.
20762
20763         * modules/unistr/u8-stpncpy: New file.
20764         * modules/unistr/u16-stpncpy: New file.
20765         * modules/unistr/u32-stpncpy: New file.
20766         * lib/unistr/u8-stpncpy.c: New file.
20767         * lib/unistr/u16-stpncpy.c: New file.
20768         * lib/unistr/u32-stpncpy.c: New file.
20769         * lib/unistr/u-stpncpy.h: New file.
20770
20771         * modules/unistr/u8-strcat: New file.
20772         * modules/unistr/u16-strcat: New file.
20773         * modules/unistr/u32-strcat: New file.
20774         * lib/unistr/u8-strcat.c: New file.
20775         * lib/unistr/u16-strcat.c: New file.
20776         * lib/unistr/u32-strcat.c: New file.
20777         * lib/unistr/u-strcat.h: New file.
20778
20779         * modules/unistr/u8-strchr: New file.
20780         * modules/unistr/u16-strchr: New file.
20781         * modules/unistr/u32-strchr: New file.
20782         * lib/unistr/u8-strchr.c: New file.
20783         * lib/unistr/u16-strchr.c: New file.
20784         * lib/unistr/u32-strchr.c: New file.
20785
20786         * modules/unistr/u8-strcmp: New file.
20787         * modules/unistr/u16-strcmp: New file.
20788         * modules/unistr/u32-strcmp: New file.
20789         * lib/unistr/u8-strcmp.c: New file.
20790         * lib/unistr/u16-strcmp.c: New file.
20791         * lib/unistr/u32-strcmp.c: New file.
20792
20793         * modules/unistr/u8-strcpy: New file.
20794         * modules/unistr/u16-strcpy: New file.
20795         * modules/unistr/u32-strcpy: New file.
20796         * lib/unistr/u8-strcpy.c: New file.
20797         * lib/unistr/u16-strcpy.c: New file.
20798         * lib/unistr/u32-strcpy.c: New file.
20799         * lib/unistr/u-strcpy.h: New file.
20800
20801         * modules/unistr/u8-strcspn: New file.
20802         * modules/unistr/u16-strcspn: New file.
20803         * modules/unistr/u32-strcspn: New file.
20804         * lib/unistr/u8-strcspn.c: New file.
20805         * lib/unistr/u16-strcspn.c: New file.
20806         * lib/unistr/u32-strcspn.c: New file.
20807         * lib/unistr/u-strcspn.h: New file.
20808
20809         * modules/unistr/u8-strdup: New file.
20810         * modules/unistr/u16-strdup: New file.
20811         * modules/unistr/u32-strdup: New file.
20812         * lib/unistr/u8-strdup.c: New file.
20813         * lib/unistr/u16-strdup.c: New file.
20814         * lib/unistr/u32-strdup.c: New file.
20815         * lib/unistr/u-strdup.h: New file.
20816
20817         * modules/unistr/u8-strlen: New file.
20818         * modules/unistr/u16-strlen: New file.
20819         * modules/unistr/u32-strlen: New file.
20820         * lib/unistr/u8-strlen.c: New file.
20821         * lib/unistr/u16-strlen.c: New file.
20822         * lib/unistr/u32-strlen.c: New file.
20823         * lib/unistr/u-strlen.h: New file.
20824
20825         * modules/unistr/u8-strmblen: New file.
20826         * modules/unistr/u16-strmblen: New file.
20827         * modules/unistr/u32-strmblen: New file.
20828         * lib/unistr/u8-strmblen.c: New file.
20829         * lib/unistr/u16-strmblen.c: New file.
20830         * lib/unistr/u32-strmblen.c: New file.
20831
20832         * modules/unistr/u8-strmbtouc: New file.
20833         * modules/unistr/u16-strmbtouc: New file.
20834         * modules/unistr/u32-strmbtouc: New file.
20835         * lib/unistr/u8-strmbtouc.c: New file.
20836         * lib/unistr/u16-strmbtouc.c: New file.
20837         * lib/unistr/u32-strmbtouc.c: New file.
20838
20839         * modules/unistr/u8-strncat: New file.
20840         * modules/unistr/u16-strncat: New file.
20841         * modules/unistr/u32-strncat: New file.
20842         * lib/unistr/u8-strncat.c: New file.
20843         * lib/unistr/u16-strncat.c: New file.
20844         * lib/unistr/u32-strncat.c: New file.
20845         * lib/unistr/u-strncat.h: New file.
20846
20847         * modules/unistr/u8-strncmp: New file.
20848         * modules/unistr/u16-strncmp: New file.
20849         * modules/unistr/u32-strncmp: New file.
20850         * lib/unistr/u8-strncmp.c: New file.
20851         * lib/unistr/u16-strncmp.c: New file.
20852         * lib/unistr/u32-strncmp.c: New file.
20853
20854         * modules/unistr/u8-strncpy: New file.
20855         * modules/unistr/u16-strncpy: New file.
20856         * modules/unistr/u32-strncpy: New file.
20857         * lib/unistr/u8-strncpy.c: New file.
20858         * lib/unistr/u16-strncpy.c: New file.
20859         * lib/unistr/u32-strncpy.c: New file.
20860         * lib/unistr/u-strncpy.h: New file.
20861
20862         * modules/unistr/u8-strnlen: New file.
20863         * modules/unistr/u16-strnlen: New file.
20864         * modules/unistr/u32-strnlen: New file.
20865         * lib/unistr/u8-strnlen.c: New file.
20866         * lib/unistr/u16-strnlen.c: New file.
20867         * lib/unistr/u32-strnlen.c: New file.
20868         * lib/unistr/u-strnlen.h: New file.
20869
20870         * modules/unistr/u8-strpbrk: New file.
20871         * modules/unistr/u16-strpbrk: New file.
20872         * modules/unistr/u32-strpbrk: New file.
20873         * lib/unistr/u8-strpbrk.c: New file.
20874         * lib/unistr/u16-strpbrk.c: New file.
20875         * lib/unistr/u32-strpbrk.c: New file.
20876         * lib/unistr/u-strpbrk.h: New file.
20877
20878         * modules/unistr/u8-strrchr: New file.
20879         * modules/unistr/u16-strrchr: New file.
20880         * modules/unistr/u32-strrchr: New file.
20881         * lib/unistr/u8-strrchr.c: New file.
20882         * lib/unistr/u16-strrchr.c: New file.
20883         * lib/unistr/u32-strrchr.c: New file.
20884
20885         * modules/unistr/u8-strspn: New file.
20886         * modules/unistr/u16-strspn: New file.
20887         * modules/unistr/u32-strspn: New file.
20888         * lib/unistr/u8-strspn.c: New file.
20889         * lib/unistr/u16-strspn.c: New file.
20890         * lib/unistr/u32-strspn.c: New file.
20891         * lib/unistr/u-strspn.h: New file.
20892
20893         * modules/unistr/u8-strstr: New file.
20894         * modules/unistr/u16-strstr: New file.
20895         * modules/unistr/u32-strstr: New file.
20896         * lib/unistr/u8-strstr.c: New file.
20897         * lib/unistr/u16-strstr.c: New file.
20898         * lib/unistr/u32-strstr.c: New file.
20899         * lib/unistr/u-strstr.h: New file.
20900
20901         * modules/unistr/u8-strtok: New file.
20902         * modules/unistr/u16-strtok: New file.
20903         * modules/unistr/u32-strtok: New file.
20904         * lib/unistr/u8-strtok.c: New file.
20905         * lib/unistr/u16-strtok.c: New file.
20906         * lib/unistr/u32-strtok.c: New file.
20907         * lib/unistr/u-strtok.h: New file.
20908
20909         * modules/unistr/u8-uctomb: New file.
20910         * modules/unistr/u16-uctomb: New file.
20911         * modules/unistr/u32-uctomb: New file.
20912         * lib/unistr/u8-uctomb.c: New file.
20913         * lib/unistr/u16-uctomb.c: New file.
20914         * lib/unistr/u32-uctomb.c: New file.
20915
20916         * MODULES.html.sh (Unicode string functions): Add the new modules.
20917
20918 2007-01-08  Bruno Haible  <bruno@clisp.org>
20919
20920         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
20921         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
20922         subdirectories.
20923
20924 2007-01-08  Karl Berry  <karl@gnu.org>
20925
20926         * doc/error.texi: mention that main() fns must set program_name
20927         when progname is used.
20928
20929 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
20930
20931         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
20932         WCTYPE_H is empty, for the benefit of builds from non-distclean
20933         directories.  Problem reported by Eric Blake in
20934         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
20935
20936 2007-01-08  Bruno Haible  <bruno@clisp.org>
20937
20938         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
20939         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
20940         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
20941         PROVIDE_CANONICALIZE_FILENAME_MODE.
20942         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
20943
20944 2007-01-08  Bruno Haible  <bruno@clisp.org>
20945
20946         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
20947         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
20948         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
20949         * lib/fts.c: Likewise.
20950         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
20951
20952 2006-12-25  Bruno Haible  <bruno@clisp.org>
20953
20954         * modules/utf8-ucs4-safe: New file.
20955         * lib/utf8-ucs4-safe.h: New file.
20956         * lib/unistr/utf8-ucs4-safe.c: New file.
20957
20958         * modules/utf16-ucs4-safe: New file.
20959         * lib/utf16-ucs4-safe.h: New file.
20960         * lib/unistr/utf16-ucs4-safe.c: New file.
20961
20962         * MODULES.html.sh (Unicode string functions): Add the new modules.
20963
20964 2007-01-08  Bruno Haible  <bruno@clisp.org>
20965
20966         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
20967         (Depends-on): Add unitypes.
20968         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
20969         (u8_mbtouc_aux): Move out to separate file.
20970         (u8_mbtouc): Use ucs4_t, uint8_t types.
20971         * lib/unistr/utf8-ucs4.c: New file.
20972
20973         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
20974         (Depends-on): Add unitypes.
20975         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
20976         (u16_mbtouc_aux): Move out to separate file.
20977         (u16_mbtouc): Use ucs4_t, uint16_t types.
20978         * lib/unistr/utf16-ucs4.c: New file.
20979
20980         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
20981         (Depends-on): Add unitypes.
20982         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
20983         (u8_uctomb_aux): Move out to separate file.
20984         (u8_uctomb): Use ucs4_t, uint8_t types.
20985         * lib/unistr/ucs4-utf8.c: New file.
20986
20987         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
20988         (Depends-on): Add unitypes.
20989         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
20990         (u16_uctomb_aux): Move out to separate file.
20991         (u16_uctomb): Use ucs4_t, uint16_t types.
20992         * lib/unistr/ucs4-utf16.c: New file.
20993
20994 2006-12-25  Bruno Haible  <bruno@clisp.org>
20995
20996         * modules/unitypes: New file.
20997         * lib/unitypes.h: New file.
20998         * MODULES.html.sh (func_all_modules): New section "Unicode string
20999         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
21000         this section. Add unitypes.
21001
21002 2007-01-08  Bruno Haible  <bruno@clisp.org>
21003
21004         Avoid variable names that conflict with those from libtool.
21005         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
21006         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
21007         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
21008         library_names_spec to acl_library_names_spec, hardcode_* to
21009         acl_hardcode_*.
21010         Reported by Ralf Wildenhues.
21011
21012 2007-01-08  Bruno Haible  <bruno@clisp.org>
21013
21014         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
21015         definition.
21016         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
21017         definition.
21018         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
21019         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
21020         definition.
21021         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
21022         definition.
21023         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
21024         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
21025         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
21026         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
21027         definition.
21028         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
21029         definition.
21030         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
21031         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
21032         GC_USE_<algorithm>.
21033         * lib/gc-libgcrypt.c: Likewise.
21034         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
21035         * modules/gc-arctwo (configure.ac): Likewise.
21036         * modules/gc-des (configure.ac): Likewise.
21037         * modules/gc-hmac-md5 (configure.ac): Likewise.
21038         * modules/gc-hmac-sha1 (configure.ac): Likewise.
21039         * modules/gc-md2 (configure.ac): Likewise.
21040         * modules/gc-md4 (configure.ac): Likewise.
21041         * modules/gc-md5 (configure.ac): Likewise.
21042         * modules/gc-random (configure.ac): Likewise.
21043         * modules/gc-rijndael (configure.ac): Likewise.
21044         * modules/gc-sha1 (configure.ac): Likewise.
21045
21046 2007-01-08  Bruno Haible  <bruno@clisp.org>
21047
21048         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
21049         macro definition.
21050         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
21051         definition.
21052         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
21053         definition.
21054         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
21055         * modules/fcntl-safer (configure.ac): Likewise.
21056         * modules/fopen-safer (configure.ac): Likewise.
21057         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
21058         GNULIB_FWRITEERROR macro definition.
21059
21060 2007-01-08  Bruno Haible  <bruno@clisp.org>
21061
21062         * m4/gnulib-common.m4: New file.
21063         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
21064         (func_get_filelist): Add m4/gnulib-common.m4.
21065
21066 2007-01-08  Bruno Haible  <bruno@clisp.org>
21067
21068         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
21069         command.
21070
21071 2007-01-08  Jim Meyering  <jim@meyering.net>
21072
21073         Use a more robust test for a "can't happen" condition.
21074         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
21075         narrowed the st_size value.  Presuming the "can't happen" condition
21076         is true, that narrowing could conceivably convert an invalid st_size
21077         value into a valid one.  Instead, use a change based on Matthew
21078         Woehlke's original patch.
21079
21080         Slight readability improvement: use an assert-like macro
21081         in place of literal "abort ()" uses.
21082         * lib/fts.c (fts_assert): Define.
21083         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
21084         Use this macro instead of a bare 'abort'.
21085
21086 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
21087
21088         Don't worry about using IRIX 5.3's wctype.h broken definitions;
21089         simply work around them.
21090         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
21091         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
21092         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
21093         declaring.
21094         Don't bother to define as macros, since the standard doesn't require it.
21095         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
21096         longer worry about IRIX 5.3.
21097         (HAVE_WCTYPE_CTMP_BUG): Remove.
21098
21099 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
21100
21101         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
21102         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
21103         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
21104         Problems reported by Georg Schwarz for IRIX 5.3.
21105
21106         * gnulib-tool (autoconf_minversion): Take the maximum version number
21107         found, not the minimum.  Problem reported by James Youngman.
21108
21109 2007-01-03  Karl Berry  <karl@gnu.org>
21110
21111         * doc/error.texi: new file, explaining interaction with progname.
21112         * doc/gnulib.texi: include it.  Update copyright.
21113
21114 2007-01-03  Simon Josefsson  <simon@josefsson.org>
21115
21116         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
21117         AC_CANONICAL_HOST, to improve autobuild outputs.
21118
21119 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
21120             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
21121
21122         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
21123         sockets, server sockets, and other file descriptors.  Count errors
21124         to compute the return value.  Reorder the code a bit to be easier
21125         to follow.  Don't set event bits that were not requested (except
21126         POLLERR and POLLHUP).
21127
21128 2007-01-01  Bruno Haible  <bruno@clisp.org>
21129
21130         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
21131
21132 2007-01-03  Jim Meyering  <jim@meyering.net>
21133
21134         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
21135
21136 2007-01-02  Bruno Haible  <bruno@clisp.org>
21137
21138         * modules/settime (Include): Require timespec.h.
21139         * modules/nanosleep (Include): Likewise.
21140
21141 2007-01-01  Bruno Haible  <bruno@clisp.org>
21142
21143         * gnulib-tool (func_emit_copyright_notice): Bump year.
21144         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
21145
21146 2007-01-01  Bruno Haible  <bruno@clisp.org>
21147
21148         Improve support for OpenBSD.
21149         * build-aux/config.rpath (libname_spec): Export.
21150         (library_names_spec): New variable. Export.
21151         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
21152         library_names_spec from the config.rpath output. Locate shared library
21153         through the name pattern in library_names_spec.
21154
21155 2007-01-01  Eric Blake  <ebb9@byu.net>
21156
21157         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
21158
21159 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
21160
21161         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
21162         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
21163         assume the C locale, and avoid an "eval" that could cause trouble.
21164         Problem with SORT reported by Bob Proulx.
21165
21166         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
21167         Define.  Trivial patch from Henning Nielsen Lund, originally
21168         sent to bug-grep@gnu.org today.
21169
21170 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
21171
21172         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
21173         struct stat.  Problem reported by Henning Nielsen Lund.
21174         * lib/acl.c: Include acl.h first, to check interface.  Don't
21175         bother to include sys/types.h and sys/stat.h again.
21176
21177 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
21178
21179         Import the following change from libc; problem reported by
21180         Sven Verdoolaege.
21181
21182         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
21183
21184         [BZ #1373]
21185         * lib/argp.h: Remove __NTH for __argp_usage inline function.
21186
21187 2006-12-28  Jim Meyering  <jim@meyering.net>
21188
21189         * build-aux/announce-gen: Do not assume that the package
21190         builds any of tar.gz, tar.bz2, and .xdelta files.
21191         Suggestion from Simon Josefsson.
21192
21193 2006-12-28  Simon Josefsson  <simon@josefsson.org>
21194
21195         * modules/announce-gen: New file.
21196
21197 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
21198
21199         * lib/mbchar.h: Just include <wctype.h>; the wctype module
21200         handles its gotchas now.
21201         * lib/mbswidth.c: Likewise.
21202         * lib/wcwidth.h: Likewise.
21203         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
21204         and iswcntrl; the wctype module does this stuff now.
21205         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
21206         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
21207         * modules/mbchar (Depends-on): Add wctype.
21208         * modules/mbswidth (Depends-on): Likewise.
21209         * modules/wcwidth (Depends-on): Likewise.
21210
21211 2006-12-27  Eric Blake  <ebb9@byu.net>
21212
21213         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
21214         module uses more than what <wctype.h> is required to provide.
21215
21216 2006-12-26  Eric Blake  <ebb9@byu.net>
21217
21218         * gnulib-tool (sed_extract_prog): Avoid space-tab.
21219
21220 2006-12-26  Eric Blake  <ebb9@byu.net>
21221
21222         * modules/absolute-header: New module.
21223         * modules/fcntl (Depends-on): Depend on it.
21224         * modules/inttypes (Depends-on): Likewise.
21225         * modules/stdint (Depends-on): Likewise.
21226         * modules/sys_stat (Depends-on): Likewise.
21227         * modules/wctype (Depends-on): Likewise.
21228         * MODULES.html.sh (Support for building libraries and
21229         executables): Document it.
21230
21231 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
21232
21233         * gnulib-tool (SED): Remove, undoing previous change.
21234         The problem was that it broke coreutils on Solaris, because
21235         "sed --posix" leaked into a makefile.
21236         (sed): New alias, if 'alias' and GNU sed.
21237
21238 2006-12-24  Jim Meyering  <jim@meyering.net>
21239
21240         Work around an fchownat bug in glibc-2.4:
21241         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
21242         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
21243         in spite of the -P option.
21244         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
21245         New macros.
21246         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
21247         * modules/openat (Files): Add lib/fchownat.c.
21248         * lib/openat.c (fchownat): Don't define here.  Move to...
21249         * lib/fchownat.c: ...this new file.
21250
21251 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
21252
21253         Fix bug reported by Bruno Haible in
21254         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
21255         where quotearg.c didn't compile on Mac OS X 10.2 because it
21256         lacks <wchar.h> and wint_t.
21257         * lib/wctype_.h (__wctype_wint_t): New type.
21258         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
21259         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
21260         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
21261         Arg is now of type __wctype_wint_t, not wint_t.
21262         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
21263         substitute HAVE_WINT_T.
21264         * modules/wctype (Files): Add m4/wint_t.m4.
21265         (wctype.h): Substitute HAVE_WINT_T.
21266
21267 2006-12-23  Bruno Haible  <bruno@clisp.org>
21268
21269         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
21270
21271 2006-12-23  Bruno Haible  <bruno@clisp.org>
21272
21273         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
21274         S_ISLNK.
21275         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
21276         mingw.
21277
21278 2006-12-22  Bruno Haible  <bruno@clisp.org>
21279
21280         * lib/copy-file.c: Include acl.h.
21281         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
21282         Close the file descriptors only after being done with copy_acl.
21283         * modules/copy-file (Depends-on): Add acl.
21284
21285 2006-12-22  Bruno Haible  <bruno@clisp.org>
21286
21287         * gnulib-tool (SED): New variable.
21288         Use $SED instead of sed everywhere.
21289
21290 2006-12-22  Bruno Haible  <bruno@clisp.org>
21291
21292         * modules/no-c++: New file.
21293         * m4/no-c++.m4: New file.
21294         * MODULES.html.sh (Support for building libraries and executables):
21295         Add no-c++.
21296
21297 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
21298
21299         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
21300         Include <limits.h>, and use its INT_MAX to rewrite the
21301         j loop so that it does not overflow 'int'.  Problem reported by
21302         Ralf Wildenhues in
21303         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
21304         Play it safe by shifting left by 1 rather than multiplying by 2,
21305         as GCC is less likely to optimize this away when the value
21306         is signed (when it assumes overflow leads to undefined behavior).
21307         Also, don't assume time_t uses two's complement.
21308
21309 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
21310
21311         * MODULES.html.sh: New module wctype.
21312         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
21313         * lib/fnmatch.c: Don't bother to include <wchar.h> before
21314         <wctype.h>, since the new wctype module should fix this.
21315         * lib/quotearg.c: Include <wctype.h> unconditionally, since
21316         the wctype module should arrange for it.
21317         * lib/regex_internal.h: Likewise.
21318         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
21319         since the wctype module should handle this now.
21320         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
21321         * modules/fnmatch (Depends-on): Add wctype.
21322         * modules/quotearg (Depends-on): Likewise.
21323         * modules/regex (Depends-on): Likewise.
21324
21325 2006-12-19  Bruno Haible  <bruno@clisp.org>
21326
21327         * lib/strdup.h [C++]: Wrap definitions in extern "C".
21328         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
21329
21330 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21331
21332         * modules/savewd (Depends-on): Fix dependency on fcntl.
21333
21334 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
21335
21336         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
21337         conforms to C99, rather than relying on the user's environment
21338         setting of STDINT_H.
21339
21340 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
21341         and Eric Blake  <ebb9@byu.net>
21342
21343         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
21344         This is more consistent with the other defines here.
21345         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
21346         Port to z/OS.  Problem reported by Paul Gilmartin.
21347         Change local vars to use gl_ prefix rather than ac_.
21348         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
21349         with other defines.
21350         * modules/double-slash-root: New module.
21351         * modules/dirname (Files): Remove m4/double-slash-root.m4.
21352         (Depends-on): Add double-slash-root.
21353         * MODULES.html.sh (File system functions): Mention new module.
21354
21355 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
21356
21357         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
21358         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
21359         This is for the benefit of gzip, which doesn't do i18n.
21360
21361 2006-12-12  Jim Meyering  <jim@meyering.net>
21362
21363         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
21364         Reported by Andreas Schwab <schwab@suse.de>.
21365
21366 2006-12-12  Bruno Haible  <bruno@clisp.org>
21367
21368         Merge these changes.
21369         2006-09-05  Bruno Haible  <bruno@clisp.org>
21370         * lib/iconvme.c (iconv_string): No need to save and restore errno when
21371         iconv_alloc succeeded.
21372         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
21373         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
21374         test for " && dest " at the end - dest is always != NULL there. Call
21375         iconv with 4xNULL arguments initially, to reset the state. Call iconv
21376         with 2xNULL arguments, also to flush the state storage. Handle the
21377         IRIX iconv behaviour. Realloc the final result, to throw away unused
21378         memory.
21379
21380 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
21381
21382         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
21383         and fchmodat unconditionally, since glibc 2.4 has them.
21384         Problem reported by Arkadiusz Miskiewicz.
21385
21386 2006-12-10  Bruno Haible  <bruno@clisp.org>
21387
21388         * gnulib-tool (func_import): Show the include files only for those
21389         modules that are copied and specified.
21390         Reported by Karl Berry.
21391
21392 2006-12-08  Jim Meyering  <jim@meyering.net>
21393
21394         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
21395         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
21396
21397         * build-aux/announce-gen: Add two new options, both optional:
21398         --bootstrap-tools=TOOL_LIST
21399               a comma-separated list of tools, e.g.,
21400               autoconf,automake,bison,gnulib
21401         --gnulib-snapshot-date=DATE
21402               if gnulib is in the bootstrap tool list,
21403               then report this as the snapshot date.
21404               If not specified, use the current date/time.
21405               If you specify a date here, be sure it's UTC.
21406
21407 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21408
21409         * tests/test-argp-2.sh: Fix test to match actual output.
21410         (func_compare): Fix sed script to be portable.
21411
21412 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
21413
21414         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
21415         workaround for this case.  It is not autoconfigured now; offhand
21416         it's hard to see how to autoconfigure it.
21417
21418 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
21419
21420         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
21421         a directory that is about to be chowned.  Such a directory's
21422         initial file permissions should permit the owner only and this
21423         should not be changed until after the chown, since the group and
21424         other bits would be incorrect if they granted permission before
21425         the chown.
21426
21427         Fix porting problem for iswctype reported by Georg Schwarz in:
21428         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
21429         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
21430         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
21431         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
21432         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
21433
21434 2006-12-03  Jim Meyering  <jim@meyering.net>
21435
21436         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
21437         p->fts_statp may not yet be defined.
21438         (fts_read): Instead, set it in the caller, once p->fts_statp is
21439         sure to be defined, and corresponds to a top-level directory.
21440         This bug made du -x fail.  Here's the coreutils test case:
21441         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
21442         Reported by Mike Frysinger.
21443
21444 2006-12-01  Jim Meyering  <jim@meyering.net>
21445
21446         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
21447         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
21448         Reported by Simon Josefsson.
21449
21450 2006-11-30  Jim Meyering  <jim@meyering.net>
21451
21452         * m4/warning.m4: Use the all-permissive copyright notice
21453         recommended by RMS (rather than LGPL).
21454         * m4/vararrays.m4: Likewise.
21455         * m4/flexmember.m4: Likewise.
21456
21457 2006-11-29  Bruno Haible  <bruno@clisp.org>
21458
21459         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
21460         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
21461         using +=.
21462         Reported by Simon Josefsson <simon@josefsson.org>.
21463
21464 2006-11-28  James Youngman <jay@gnu.org>
21465
21466         * README: Advise users that they might find the bug-gnulib@gnu.org
21467         and autotools-announce@gnu.org mailing lists useful.
21468
21469 2006-11-28  Bruno Haible  <bruno@clisp.org>
21470
21471         * m4/ptrdiff_max.m4: Remove file.
21472
21473 2006-11-21  Bruno Haible  <bruno@clisp.org>
21474
21475         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
21476         _AC_COMPUTE_INT.
21477         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
21478         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
21479         _AC_COMPUTE_INT.
21480         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
21481         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
21482         _AC_COMPUTE_INT.
21483         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
21484
21485 2006-11-28  Jim Meyering  <jim@meyering.net>
21486
21487         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
21488         warning from "gcc -Wshadow" about shadowing the builtin.
21489
21490 2006-11-27  Bruno Haible  <bruno@clisp.org>
21491
21492         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
21493         _AC_COMPUTE_INT.
21494         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
21495
21496 2006-11-27  Bruno Haible  <bruno@clisp.org>
21497             Paul Eggert  <eggert@cs.ucla.edu>
21498
21499         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
21500
21501 2006-11-26  Bruno Haible  <bruno@clisp.org>
21502
21503         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
21504         noinst_LTLIBRARIES.
21505
21506 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
21507             Bruno Haible  <bruno@clisp.org>
21508
21509         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
21510         if compiling with "gcc -ansi".
21511
21512 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
21513
21514         Fix some incompatibilities with gcc -ansi -pedantic.
21515         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
21516         if compiling pedantically with GCC, unless it's C99 or later.
21517         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
21518         it mishandles gcc -ansi -pedantic as well.
21519         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
21520         if gcc -pedantic.
21521         * lib/regexec.c (check_node_accept_bytes): Don't use auto
21522         initializers for struct if -pedantic, unless it's C99 or later.
21523
21524 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
21525
21526         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
21527         Don't close an fd more than once. Identical atimes indicate
21528         success, not failure.
21529
21530 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
21531
21532         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
21533
21534 2006-11-23  Jim Meyering  <jim@meyering.net>
21535
21536         * build-aux/announce-gen: New file.  From coreutils.
21537
21538 2006-11-22  Jim Meyering  <jim@meyering.net>
21539
21540         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
21541         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
21542         (fts_read): Use a temporary to narrow the overused st_size member
21543         before using it in a switch statement.  Reported by Matthew Woehlke.
21544
21545         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
21546         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
21547
21548 2006-11-20  Bruno Haible  <bruno@clisp.org>
21549
21550         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
21551         changequote instead of pairs of brackets.
21552         Reported by Andreas Schwab <schwab@suse.de>.
21553
21554 2006-11-21  Jim Meyering  <jim@meyering.net>
21555
21556         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
21557         so as to remain compatible with older compilers.
21558         Patch from Michael Deutschmann.
21559
21560 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
21561
21562         * MODULES.html.sh (File system functions): Add openat.
21563
21564         * lib/openat.h (rpl_fstatat): New macro, if
21565         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
21566         (fstatat): Define to rpl_fstatat under the same conditions,
21567         unless COMPILING_FSTATAT.
21568         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
21569         seems to have the bug.
21570         * lib/fstatat.c: New file.
21571         * modules/openat (Files): Add it.
21572
21573 2006-11-20  Bruno Haible  <bruno@clisp.org>
21574
21575         * Makefile: New file.
21576
21577 2006-11-20  Jim Meyering  <jim@meyering.net>
21578
21579         The beginnings of syntax-related checks for gnulib.
21580         * lib/Makefile: New file.
21581         * lib/t-idcache: New script.  Ensure that the two halves of
21582         idcache.c stay in sync.
21583
21584         * lib/idcache.c: Adjust comments in user- and group- portions to
21585         be more accurate, and to be consistent with one another.
21586
21587 2006-11-20  Jim Meyering  <jim@meyering.net>
21588
21589         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
21590         continue using the flexible array member (thus, this module performs
21591         half as many malloc calls), with the addition that...
21592         (getgroup, getuser): Consistently record a non-match via an empty
21593         "name" string, and map an empty string match to a NULL return value.
21594         * modules/idcache (Depends-on): Re-add flexmember.
21595
21596         * lib/idcache.c (getuser): Remove all uses of the register keyword.
21597         (getuidbyname, getgroup, getgidbyname): Likewise.
21598
21599         Use cleaner syntax: NULL rather than 0.
21600         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
21601
21602 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
21603
21604         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
21605         It mishandled the case where the group was missing.
21606         Problem reported by Greg Schafer.
21607         * modules/idcache: Likewise.
21608
21609 2006-11-18  Jim Meyering  <jim@meyering.net>
21610
21611         * check-module (%exempt_header): Add exception for some
21612         conditionally-included headers.
21613
21614         * modules/i-ring (Depends-on): Add verify.
21615         (License): Change to LGPL.
21616
21617 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
21618
21619         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
21620         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
21621         and inttostr.h.  Use snprintf rather than uinttostr, so that
21622         LGPLed code doesn't depend on GPLed.
21623
21624 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
21625
21626         * modules/inline (License): Change from GPL to LGPL.
21627
21628 2006-11-17  Jim Meyering  <jim@meyering.net>
21629
21630         * modules/d-type (License): Switch to LGPL.
21631
21632 2006-11-15  Bruno Haible  <bruno@clisp.org>
21633
21634         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
21635
21636 2006-11-15  Eric Blake  <ebb9@byu.net>
21637
21638         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
21639         the module dependency.
21640
21641 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
21642             Bruno Haible  <bruno@clisp.org>
21643
21644         * gnulib-tool (func_create_testdir): Add license consistency check.
21645
21646 2006-11-15  Eric Blake  <ebb9@byu.net>
21647
21648         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
21649         random "(cached)" in configure output.
21650
21651 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21652
21653         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
21654         test for conforming inttypes.h is both announced and cached.
21655
21656         * MODULES.html.sh (seen_modules, seen_files): New variables.
21657         (func_module): Rewrite to use a few less gnulib-tool and sed
21658         invocations.  Avoid a couple of quadratic algorithms for ...
21659         (missed_modules, missed_files): ... these, with ...
21660         (func_append, func_tmpdir): ... these new functions, from
21661         gnulib-tool.  Analogously, install traps for cleanup.
21662
21663         * tests/test-gc.c (main): Remove unused variables.
21664         * tests/test-read-file.c: Include stdlib.h, for 'free'.
21665
21666 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
21667
21668         * modules/inttostr (License): Change to LGPL.
21669
21670 2006-11-14  Eric Blake  <ebb9@byu.net>
21671
21672         * modules/tempname (License): Change to LGPL.
21673
21674 2006-11-14  Eric Blake  <ebb9@byu.net>
21675
21676         * doc/functions.texi (Function Portability): *printf functions on
21677         Cygwin now understand all POSIX size specifiers.
21678
21679 2006-11-14  Bruno Haible  <bruno@clisp.org>
21680
21681         * modules/c-ctype (License): Change to LGPL.
21682
21683 2006-11-12  Bruno Haible  <bruno@clisp.org>
21684
21685         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
21686         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
21687         for GNOME libraries, for which the include files are installed in
21688         subdirectories of $prefix/include.
21689
21690 2006-11-12  Bruno Haible  <bruno@clisp.org>
21691
21692         * m4/lib-link.m4: Require at least autoconf-2.54.
21693         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
21694         name to underscores for the --with option.
21695
21696 2006-11-13  Bruno Haible  <bruno@clisp.org>
21697
21698         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
21699         the tests directory.
21700         Reported by Ralf Wildenhues.
21701
21702 2006-11-13  Bruno Haible  <bruno@clisp.org>
21703
21704         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
21705         (func_emit_initmacro_end): Undo the override here.
21706         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
21707         Works around the famous automake error in coreutils.
21708
21709 2006-11-13  Eric Blake  <ebb9@byu.net>
21710
21711         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
21712         element, not its node.
21713
21714 2006-11-12  Bruno Haible  <bruno@clisp.org>
21715
21716         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
21717         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
21718
21719 2006-11-12  Bruno Haible  <bruno@clisp.org>
21720
21721         * gnulib-tool: New option --local-symlink.
21722         (func_usage): Document it.
21723         (lsymbolic): New variable.
21724         (func_import, func_create_testdir): If --symlink was not specified,
21725         test whether --local-symlink was specified and the file comes from
21726         the local_gnulib_dir.
21727
21728 2006-11-12  Bruno Haible  <bruno@clisp.org>
21729
21730         * gnulib-tool (func_ln): New function.
21731         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
21732
21733 2006-11-12  Bruno Haible  <bruno@clisp.org>
21734
21735         Finish support for source files in subdirectories.
21736         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
21737         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
21738         AUTOMAKE_OPTIONS.
21739         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
21740
21741 2006-11-12  Bruno Haible  <bruno@clisp.org>
21742
21743         * gnulib-tool (func_get_automake_snippet): Synthesize also an
21744         EXTRA_lib_SOURCES augmentation.
21745         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
21746
21747 2006-11-12  Jim Meyering  <jim@meyering.net>
21748
21749         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
21750         file descriptors.  This also averts a failure on systems with
21751         native openat support when a traversed directory lacks "x" access.
21752         * lib/fts_.h: Include "i-ring.h"
21753         (struct FTS) [fts_fd_ring]: New member.
21754         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
21755         (FCHDIR): Add parentheses.
21756         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
21757         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
21758         When descending, rather than simply closing the previous
21759         fts_cwd_fd value, push that file descriptor onto the ring.
21760         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
21761         (fts_open): Initialize the new fd_ring member.
21762         (fts_close): Clear the ring.
21763         (fts_safe_changedir): When possible, use our new fd_ring to skip
21764         the diropen and fstat and dev/ino comparison that would normally
21765         accompany a virtual `chdir ("..")'.
21766
21767         * modules/fts (Depends-on): Add i-ring.
21768         * modules/i-ring: New module.
21769         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
21770         * m4/i-ring.m4: New file.
21771
21772 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21773
21774         * gnulib-tool (func_create_testdir): Fix replacement of
21775         `build-aux' in configure.ac.  Run autotools in gltests
21776         subdirectory.
21777         (func_create_testdir, func_create_megatestdir, test): There is
21778         no need for '--force' in most autotool invocations in a new
21779         tree.  Actually fail the whole test if any of the tools, or the
21780         configure or make stages fail.
21781
21782         Sync from Automake.
21783         * build-aux/gnupload: Revert last change.  Add pointer to upload
21784         instructions of the GNU Maintenance Instructions.
21785         Suggestion by Karl Berry.
21786
21787 2006-11-10  Jim Meyering  <jim@meyering.net>
21788
21789         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
21790
21791 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
21792
21793         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
21794         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
21795         (bind_textdomain_codeset) [! ENABLE_NLS]:
21796         Evaluate all the arguments.  That way, callers get compatible behavior
21797         if the arguments have side effects.  Also, it avoids some GCC
21798         diagnostics in some cases; Joel E. Denny reported problems when Bison
21799         was configured with --enable-gcc-warnigs.
21800
21801 2006-11-10  Jim Meyering  <jim@meyering.net>
21802
21803         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
21804         relevant options in CFLAGS (like -O, -fno-inline) are taken into
21805         account.
21806
21807 2006-11-10  Jim Meyering  <jim@meyering.net>
21808
21809         * modules/inline: New file/module.
21810         * modules/xalloc (Files): Remove m4/inline.m4.
21811         (Depends-on): Add inline, instead.
21812         * modules/oset: Likewise.
21813         * modules/list: Likewise.
21814
21815 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
21816
21817         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
21818         Problem reported by Matthew Woehlke.
21819
21820 2006-11-09  Bruno Haible  <bruno@clisp.org>
21821
21822         * lib/tempname.c (gen_tempname): Remove variant that invokes
21823         __gen_tempname.
21824         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
21825         __gen_tempname.
21826
21827 2006-11-08  Bruno Haible  <bruno@clisp.org>
21828
21829         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
21830         to 'yes' instead of 'cross-compiling'.
21831
21832 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
21833
21834         * lib/quotearg.h (quotearg_free): New decl.
21835         * lib/quotearg.c (quotearg_free): New function.
21836         (slot0, nslots, slotvec0, slotvec):
21837         Now file-scope so that quotearg_free can get at them.
21838
21839 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21840
21841         Sync from Automake.
21842         * build-aux/gnupload: Add missing 'gnu' to example URL.
21843         Report by Karl Berry.
21844
21845 2006-11-08  Bruno Haible  <bruno@clisp.org>
21846
21847         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
21848         Suggested by Paul Eggert.
21849
21850 2006-11-08  Jim Meyering  <jim@meyering.net>
21851
21852         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
21853         It's already included if !_LIBC.
21854         (fts_safe_changedir): Add a comment.
21855
21856 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
21857
21858         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
21859         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
21860         Matthew Woehlke.
21861
21862         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
21863         definitions up, to avoid colliding with change below.
21864         (static_inline) [HAVE_INLINE]: New macro.
21865         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
21866         Provide extern decls when !HAVE_INLINE.  Do not define unless
21867         static_inline is defined, either by us or by xmalloc.c.  Use
21868         static_inline rather than static inline.
21869         (XCALLOC): Optimize sizeof(T) = 1 case.
21870         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
21871
21872 2006-11-07  Bruno Haible  <bruno@clisp.org>
21873
21874         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
21875         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
21876         AC_C_INLINE.
21877         * modules/xalloc (Files): Add m4/inline.m4.
21878
21879 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21880
21881         * README: Fix typo.
21882         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
21883         (Miscellanous Notes): ...from this.
21884
21885 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
21886
21887         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
21888         Mention that offsetof should be used instead of sizeof.
21889         From Bruno Haible.
21890
21891 2006-11-07  Bruno Haible  <bruno@clisp.org>
21892
21893         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
21894
21895 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
21896
21897         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
21898         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
21899         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
21900         (gl_tree_add_before, gl_tree_add_after):
21901         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
21902         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
21903         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
21904         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
21905         (gl_linked_add_after, gl_linked_add_at): Likewise.
21906         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
21907         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
21908         (gl_tree_add_before, gl_tree_add_after): Likewise.
21909         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
21910         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
21911         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
21912
21913 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21914
21915         * lib/gl_oset.h: Use C comment style, not C++ comment style.
21916
21917 2006-11-06  Bruno Haible  <bruno@clisp.org>
21918
21919         * m4/inline.m4: New file.
21920         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
21921         * modules/list (Files): Add m4/inline.m4.
21922         * modules/oset (Files): Likewise.
21923
21924 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
21925
21926         * lib/idcache.c: Include <stddef.h>, for offsetof.
21927         (struct userid.name): Change from char * to a flexible array member.
21928         All uses changed.
21929         * modules/idcache (Depends-on): Add flexmember.
21930
21931         * MODULES.html.sh (Core language properties): New module flexmember.
21932         * modules/flexmember, m4/flexmember.m4: New files.
21933
21934         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
21935         inline functions that are identical with the old xnmalloc_inline,
21936         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
21937         that we can avoid some unnecessary integer multiplications and
21938         divisions in the common case where the element size is known at
21939         compile time.
21940         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
21941         needed.
21942         (xnboundedmalloc): Remove.
21943         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
21944         arguments, for consistency with rest of this header.
21945         (xcharalloc): Rewrite using XNMALLOC.
21946         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
21947         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
21948         versions have been moved to lib/xalloc.h and renamed to be the
21949         non-*_inline versions.
21950         (xmalloc, xrealloc): Implement without reference to the xnmalloc
21951         and xnrealloc functions, since those functions are now inline and
21952         now call us.
21953         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
21954         renaming described above.
21955         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
21956         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
21957         captures the dependency in AC_C_INLINE.
21958
21959         New module canonicalize-lgpl, proposed by Charles Wilson in
21960         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
21961         with a few small changes afterwards.
21962         * MODULES.html.sh (File system functions): New module
21963         canonicalize-lgpl.
21964         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
21965         and canonicalize_file_name.
21966         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
21967         * modules/canonicalize-lgpl: New files.
21968
21969 2006-11-05  Bruno Haible  <bruno@clisp.org>
21970
21971         * gnulib-tool (func_import, func_create_testdir): Create directories
21972         also for files in subdirectories of lib/.
21973
21974 2006-11-05  Bruno Haible  <bruno@clisp.org>
21975
21976         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
21977         ANSI C compliant.
21978
21979 2006-11-03  Bruno Haible  <bruno@clisp.org>
21980
21981         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
21982         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
21983         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
21984         (xnboundedmalloc): New inline function.
21985         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
21986         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
21987         xmalloc.
21988         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
21989         xmalloc.
21990         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
21991         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
21992         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
21993         xmalloc.
21994         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
21995         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
21996         xmalloc.
21997         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
21998         gl_tree_add_after): Use XMALLOC instead of xmalloc.
21999         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
22000         xmalloc.
22001         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
22002         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
22003         gl_tree_add_after): Use XMALLOC instead of xmalloc.
22004         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
22005         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
22006         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
22007         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
22008
22009 2006-11-03  Bruno Haible  <bruno@clisp.org>
22010
22011         * lib/c-ctype.h [C++]: Define functions without name mangling.
22012         * lib/fwriteerror.h [C++]: Likewise.
22013         * lib/gcd.h [C++]: Likewise.
22014         * lib/linebreak.h [C++]: Likewise.
22015
22016 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
22017
22018         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
22019         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
22020         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
22021         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
22022         Check for functions and headers just once.
22023         Check for declaration of canonicalize_file_name.
22024         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
22025
22026 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
22027
22028         * gnulib-tool (func_import): Fix typo in actioncmd.
22029
22030 2006-11-02  Bruno Haible  <bruno@clisp.org>
22031
22032         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
22033         newline sequence in the Makefile.am snippet as a space, like "make"
22034         does.
22035         Reported by Roger Persson <perrog@gmail.com>.
22036
22037 2006-11-01  Bruno Haible  <bruno@clisp.org>
22038
22039         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
22040         already declared in <string.h>.
22041         * lib/strcase.h (strncasecmp): Don't declare it if yes.
22042
22043 2006-11-01  Bruno Haible  <bruno@clisp.org>
22044
22045         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
22046         * lib/strcase.h: Include <string.h>.
22047         (strcasecmp): Define to rpl_strcasecmp here.
22048
22049 2006-11-01  Bruno Haible  <bruno@clisp.org>
22050
22051         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
22052
22053 2006-11-01  Eric Blake  <ebb9@byu.net>
22054
22055         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
22056
22057         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
22058
22059 2006-10-29  Bruno Haible  <bruno@clisp.org>
22060
22061         Make it compile in C++ mode.
22062         * lib/full-write.c (full_rw): Add a cast.
22063
22064 2006-11-01  Bruno Haible  <bruno@clisp.org>
22065
22066         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
22067         be POSIX compliant.
22068         Reported by Roger Persson <perrog@gmail.com>.
22069
22070 2006-11-01  Eric Blake  <ebb9@byu.net>
22071
22072         * lib/getopt_.h: Fix comments.
22073
22074 2006-10-31  Eric Blake  <ebb9@byu.net>
22075
22076         * modules/tmpdir (Depends-on): Add sys_stat.
22077         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
22078         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
22079         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
22080         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
22081         tempname.
22082
22083 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
22084
22085         Avoid some C++ diagnostics reported by Bruno Haible.
22086         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
22087         xmalloc.
22088         (quotearg_alloc): Use xcharalloc rather than xmalloc.
22089         (struct slotvec): Move to top level.
22090         (quotearg_n_options): Rewrite to avoid xmalloc.
22091         * lib/xalloc.h (xcharalloc): New function.
22092         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
22093         [defined __cplusplus]: Add function template that provides result
22094         type propagation.  This part of the change is from Bruno Haible.
22095
22096 2006-10-29  Bruno Haible  <bruno@clisp.org>
22097
22098         Make it compile in C++ mode.
22099         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
22100         * lib/strnlen1.c (strnlen1): Cast memchr result.
22101         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
22102         * lib/clean-temp.c (string_equals, string_hash): Add casts.
22103         (create_temp_dir): Rename local variable 'template'.
22104         (compile_csharp_using_sscli): Add cast.
22105         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
22106         * lib/findprog.c (find_in_path): Likewise.
22107         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
22108         * lib/wait-process.c (register_slave_subprocess): Likewise.
22109
22110 2006-10-22  Bruno Haible  <bruno@clisp.org>
22111
22112         * modules/tsearch: New file.
22113         * lib/tsearch.h: New file.
22114         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
22115         * m4/tsearch.m4: New file.
22116         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
22117
22118 2006-10-29  Eric Blake  <ebb9@byu.net>
22119
22120         * lib/arcfour.c: Assume config.h.
22121         * lib/arctwo.c: Likewise.
22122         * lib/base64.c: Likewise.
22123         * lib/check-version.c: Likewise.
22124         * lib/crc.c: Likewise.
22125         * lib/des.c: Likewise.
22126         * lib/gc-gnulib.c: Likewise.
22127         * lib/gc-libgcrypt.c: Likewise.
22128         * lib/gc-pbkdf2-sha1.c: Likewise.
22129         * lib/getaddrinfo.c: Likewise.
22130         * lib/getdelim.c: Likewise.
22131         * lib/getline.c: Likewise.
22132         * lib/hmac-md5.c: Likewise.
22133         * lib/hmac-sha1.c: Likewise.
22134         * lib/iconvme.c: Likewise.
22135         * lib/md2.c: Likewise.
22136         * lib/md4.c: Likewise.
22137         * lib/memxor.c: Likewise.
22138         * lib/read-file.c: Likewise.
22139         * lib/readline.c: Likewise.
22140         * lib/rijndael-alg-fst.c: Likewise.
22141         * lib/rijndael-api-fst.c: Likewise.
22142         * lib/xgetdomainname.c: Likewise.
22143
22144 2006-10-28  Eric Blake  <ebb9@byu.net>
22145
22146         * lib/xstrndup.c: Assume config.h.
22147
22148 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
22149
22150         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
22151         stat-macros.h is now for our own macros, whereas stat_h is for
22152         macros in the <sys/stat.h> name space.
22153         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
22154         (STAT_MACROS_H): Remove.
22155         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
22156         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
22157         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
22158         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
22159         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
22160         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
22161         Move these macros to ...
22162         * lib/stat_.h: here.  Don't include stat-macros.h.
22163         * lib/canonicalize.c: Don't include stat-macros.h.
22164         * lib/chown.c: Likewise.
22165         * lib/euidaccess.c: Likewise.
22166         * lib/file-type.c: Likewise.
22167         * lib/filemode.c: Likewise.
22168         * lib/glob.c: Likewise.
22169         * lib/isapipe.c: Likewise.
22170         * lib/lchown.c: Likewise.
22171         * lib/lstat.c: Likewise.
22172         * lib/mkdir-p.c: Likewise.
22173         * lib/rmdir.c: Likewise.
22174         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
22175         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
22176         unless mkdir isn't declared, to speed up 'configure'.
22177         Always create sys/stat.h, since it's unlikely any real sys/stat.h
22178         would define all the S_* symbols.
22179         * modules/canonicalize (Depends-on):
22180         Depend on sys_stat, not stat-macros.
22181         * modules/chown: Likewise.
22182         * modules/euidaccess: Likewise.
22183         * modules/filemode: Likewise.
22184         * modules/file-type: Likewise.
22185         * modules/glob: Likewise.
22186         * modules/isapipe: Likewise.
22187         * modules/lchown: Likewise.
22188         * modules/lstat: Likewise.
22189         * modules/mkancesdirs: Likewise.
22190         * modules/rmdir: Likewise.
22191         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
22192         * modules/modechange: Likewise.
22193         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
22194         (configure.ac): Remove gl_STAT_MACROS.
22195         * modules/sys_stat (Depends-on): Remove stat-macros.
22196
22197 2006-10-27  Bruno Haible  <bruno@clisp.org>
22198
22199         * m4/signed.m4: Remove file.
22200         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
22201         invocation.
22202         * modules/vasnprintf (Files): Remove m4/signed.m4.
22203
22204 2006-10-27  Bruno Haible  <bruno@clisp.org>
22205
22206         Update to GNU gettext 0.16.
22207         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
22208         m4/inttypes-h.m4, m4/signed.m4.
22209         * m4/gettext.m4: Update to GNU gettext 0.16.
22210         * m4/intl.m4: New file, from GNU gettext.
22211         * m4/intldir.m4: New file, from GNU gettext.
22212         * config/srclist.txt: Update
22213
22214 2006-10-27  Eric Blake  <ebb9@byu.net>
22215
22216         * MODULES.html.sh: Document tempname.
22217         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
22218         dependencies.
22219         (Files): Move lib/tempname.c...
22220         * modules/tempname: ...to this new module.
22221         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
22222         (gl_PREREQ_TEMPNAME): Move...
22223         * m4/tempname.m4: ...to this new file.
22224         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
22225         * modules/sys_stat (Depends-on): Add stat-macros.
22226         * lib/stat_.h (includes): Pick up stat macros.
22227         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
22228         if stat macros are broken.
22229         * lib/tempname.c (includes): No need to include "stat-macros.h".
22230         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
22231         (direxists, __path_search) [!_LIBC]: Don't compile these in
22232         gnulib; the tmpdir module covers that.
22233         * lib/tempname.h: New file.
22234
22235 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
22236
22237         * COPYING: Explain how gnulib-tool converts licence headers.
22238         Almost all wording by Eric Blake.
22239
22240 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
22241
22242         * lib/mbchar.h (is_basic_table): Make read-only.
22243         * lib/mbchar.c (is_basic_table): Likewise.
22244         Reported by John Darrington.
22245
22246 2006-10-25  Bruno Haible  <bruno@clisp.org>
22247
22248         * lib/progname.h (set_program_name): Undefine before defining.
22249
22250 2006-10-25  Bruno Haible  <bruno@clisp.org>
22251
22252         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
22253         false for non-gcc C++ compilers.
22254         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
22255
22256 2006-10-24  Bruno Haible  <bruno@clisp.org>
22257
22258         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
22259         iconv implementations like Irix iconv.
22260
22261 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
22262
22263         * modules/vararrays: New file.
22264         * m4/vararrays.m4: New file, taken from diffutils.
22265         * MODULES.html.sh: New module vararrays.
22266
22267 2006-10-24  Karl Berry  <karl@gnu.org>
22268
22269         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
22270         Don't call GNU Unix.
22271
22272 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22273
22274         * users.txt: Add Libtool.
22275
22276         Sync from Libtool:
22277
22278         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
22279
22280         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
22281         to gnulib's policy of including config.h unconditionally.
22282
22283 2006-10-24  Bruno Haible  <bruno@clisp.org>
22284
22285         * modules/wcwidth (Files): Add m4/wint_t.m4.
22286         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
22287         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
22288
22289 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
22290
22291         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
22292         to pacify GCC with some -W flags enabled.  Problem reported by
22293         Bruno Haible.
22294
22295 2006-10-24  Jim Meyering  <jim@meyering.net>
22296
22297         * MODULES.html.sh: Remove uinttostr.  It's not a module.
22298         Reported by Karl Berry.
22299
22300 2006-10-23  Bruno Haible  <bruno@clisp.org>
22301
22302         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
22303
22304 2006-10-24  Bruno Haible  <bruno@clisp.org>
22305
22306         * lib/gl_list.h: Use C comment style, not C++ comment style.
22307
22308 2006-10-23  Eric Blake  <ebb9@byu.net>
22309
22310         * lib/getaddrinfo.c (includes): Add missing include.
22311
22312 2006-10-23  Bruno Haible  <bruno@clisp.org>
22313             Paul Eggert  <eggert@cs.ucla.edu>
22314
22315         Ability to rename obstack_free.
22316         * lib/obstack.h (__obstack_free): New macro. Declare instead of
22317         obstack_free.
22318         (obstack_free): Invoke the __obstack_free macro.
22319         * lib/obstack.c (obstack_free): Use __obstack_free macro.
22320
22321 2006-10-23  Bruno Haible  <bruno@clisp.org>
22322             Paul Eggert  <eggert@cs.ucla.edu>
22323
22324         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
22325         __argc, __argv from the declaration. (They are defined as macros on
22326         mingw.)
22327
22328 2006-10-22  Bruno Haible  <bruno@clisp.org>
22329
22330         * doc/gnulib-intro.texi: New file.
22331         * doc/gnulib.texi: Include it.
22332
22333 2006-10-21  Bruno Haible  <bruno@clisp.org>
22334
22335         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
22336         "Introduction", "Miscellanous Notes", "Particular Modules".
22337
22338 2006-10-21  Bruno Haible  <bruno@clisp.org>
22339
22340         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
22341         Change mostlyclean-local rule to avoid sh syntax error from bash
22342         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
22343
22344 2006-10-23  Jim Meyering  <jim@meyering.net>
22345
22346         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
22347         in place of snprintf.
22348
22349         * modules/inttostr (Files): Add lib/uinttostr.c.
22350         * lib/uinttostr.c (inttostr): New file/function.
22351         * lib/inttostr.h (uinttostr): Declare.
22352         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
22353         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
22354         Add uinttostr.
22355         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
22356
22357 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
22358
22359         * lib/canonicalize.c (ELOOP): Define if not already defined.
22360         Problem reported by Bruno Haible in
22361         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
22362
22363 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
22364
22365         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
22366         Problem reported by Perry Smith and Ville Laurikari.
22367
22368         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
22369         uses.
22370
22371 2006-10-19  Bruno Haible  <bruno@clisp.org>
22372
22373         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
22374         for mingw.
22375
22376 2006-10-19  Bruno Haible  <bruno@clisp.org>
22377
22378         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
22379         Needed for mingw.
22380
22381 2006-10-19  Bruno Haible  <bruno@clisp.org>
22382
22383         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
22384
22385 2006-10-19  Bruno Haible  <bruno@clisp.org>
22386
22387         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
22388         it.
22389
22390 2006-10-19  Bruno Haible  <bruno@clisp.org>
22391
22392         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
22393         invocation.
22394
22395 2006-10-19  Bruno Haible  <bruno@clisp.org>
22396
22397         * gnulib-tool (func_create_testdir): Don't include ftruncate and
22398         mountlist by default.
22399
22400 2006-10-16  Bruno Haible  <bruno@clisp.org>
22401
22402         * lib/c-strstr.c: Include c-strstr.h.
22403
22404 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
22405
22406         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
22407         in a slash.
22408
22409 2006-10-18  Bruno Haible  <bruno@clisp.org>
22410
22411         * lib/lock.h [C++]: Wrap definitions in extern "C".
22412
22413 2006-10-18  Bruno Haible  <bruno@clisp.org>
22414
22415         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
22416         gl_LIBOBJS list.
22417
22418 2006-10-18  Bruno Haible  <bruno@clisp.org>
22419
22420         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
22421
22422 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
22423
22424         * lib/xstrtol.h: Include gettext.h.
22425         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
22426         Problem reported by Eric Blake.
22427         * modules/xstrtol (Depends-on): Add gettext-h.
22428
22429 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
22430
22431         * lib/strftime.c (advance): New macro.
22432         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
22433         incomplete type, so you can't add 0 to it.  Problem and patch
22434         reported by Eelco Dolstra for dietlibc.
22435
22436 2006-10-18  Jim Meyering  <jim@meyering.net>
22437
22438         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
22439         type for a local, and rename it: s/up/user_proc/.
22440
22441 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
22442
22443         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
22444         READ_UTMP_USER_PROCESS.
22445         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
22446
22447 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
22448
22449         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
22450         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
22451
22452 2006-10-17  Eric Blake  <ebb9@byu.net>
22453
22454         * lib/sigprocmask.c (sigprocmask): Fix typo.
22455
22456         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
22457
22458         * modules/clean-temp (Makefile.am): Don't add to make output...
22459         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
22460         config.h.
22461
22462 2006-10-17  Bruno Haible  <bruno@clisp.org>
22463
22464         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
22465         differently if DEFAULT_TEXT_DOMAIN is set.
22466
22467 2006-10-16  Bruno Haible  <bruno@clisp.org>
22468
22469         * lib/clean-temp.c: Include fwriteerror.h.
22470
22471 2006-10-16  Bruno Haible  <bruno@clisp.org>
22472
22473         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
22474
22475 2006-10-16  Bruno Haible  <bruno@clisp.org>
22476
22477         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
22478         * lib/sigprocmask.h: Include <sys/types.h>.
22479         (sigset_t): Use the system's definition if present.
22480
22481 2006-10-17  Eric Blake  <ebb9@byu.net>
22482
22483         * lib/xvasprintf.c (includes): Assume config.h.
22484         * lib/xasprintf.c (includes): Likewise.
22485
22486 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
22487
22488         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
22489         at least as wide as intmax_t.
22490
22491 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
22492
22493         (Imported from Automake.)
22494         * build-aux/gnupload: Update to version 1.1 of directive file.
22495
22496 2006-10-16  Eric Blake  <ebb9@byu.net>
22497
22498         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
22499         match Automake 1.10a.
22500
22501 2006-10-14  Bruno Haible  <bruno@clisp.org>
22502
22503         * modules/sigprocmask: New file.
22504         * lib/sigprocmask.h: New file.
22505         * lib/sigprocmask.c: New file.
22506         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
22507         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
22508         request sigprocmask.o.
22509         (gl_PREREQ_SIGPROCMASK): New macro.
22510         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
22511         (Depends-on): Add sigprocmask.
22512         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
22513         gt_SIGNALBLOCKING. Test for 'raise' only once.
22514         * lib/fatal-signal.c: Include sigprocmask.h.
22515         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
22516         unblock_fatal_signals): Define always.
22517         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
22518         sigprocmask.
22519
22520 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
22521
22522         Sync from Automake.
22523         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
22524         which incorrectly sets the mode of an existing destination
22525         directory.  In some cases the unpatched install-sh could do the
22526         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
22527         system.  We hope this is rare in practice, but it's clearly worth
22528         fixing.  Problem reported by Alex Unleashed in
22529         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
22530         Also, don't bother to check for -m bugs unless we're using -m;
22531         suggested by Stepan Kasal.
22532
22533 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22534
22535         Sync from Automake.
22536         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
22537         `-c' flag, so they appear at the same position as in %FASTDEP%
22538         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
22539         which ignores unknown options only after the first non-option.
22540         Bug report against M4 by Nelson H. F. Beebe.
22541
22542 2006-10-13  Jim Meyering  <jim@meyering.net>
22543
22544         Fix a bug in yesterday's change.
22545         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
22546         p->fts_statp->st_dev would be used uninitialized.
22547         Ensures that we always call fts_stat on the very first entry.
22548         Miklos Szeredi reported that find -xdev stopped working.
22549
22550 2006-10-12  Bruno Haible  <bruno@clisp.org>
22551
22552         * gnulib-tool (func_get_automake_snippet): Append an automatically
22553         computed EXTRA_DIST augmentation.
22554         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
22555         * modules/alloca-opt (Makefile.am): Likewise.
22556         * modules/allocsa (Makefile.am): Likewise.
22557         * modules/arcfour (Makefile.am): Likewise.
22558         * modules/arctwo (Makefile.am): Likewise.
22559         * modules/argmatch (Makefile.am): Likewise.
22560         * modules/argz (Makefile.am): Likewise.
22561         * modules/atexit (Makefile.am): Likewise.
22562         * modules/backupfile (Makefile.am): Likewise.
22563         * modules/byteswap (Makefile.am): Likewise.
22564         * modules/c-strtod (Makefile.am): Likewise.
22565         * modules/c-strtold (Makefile.am): Likewise.
22566         * modules/calloc (Makefile.am): Likewise.
22567         * modules/canon-host (Makefile.am): Likewise.
22568         * modules/canonicalize (Makefile.am): Likewise.
22569         * modules/chdir-long (Makefile.am): Likewise.
22570         * modules/chdir-safer (Makefile.am): Likewise.
22571         * modules/check-version (Makefile.am): Likewise.
22572         * modules/chown (Makefile.am): Likewise.
22573         * modules/cloexec (Makefile.am): Likewise.
22574         * modules/close-stream (Makefile.am): Likewise.
22575         * modules/closeout (Makefile.am): Likewise.
22576         * modules/crc (Makefile.am): Likewise.
22577         * modules/csharpexec (Makefile.am): Likewise.
22578         * modules/cycle-check (Makefile.am): Likewise.
22579         * modules/des (Makefile.am): Likewise.
22580         * modules/dev-ino (Makefile.am): Likewise.
22581         * modules/dirfd (Makefile.am): Likewise.
22582         * modules/dirname (Makefile.am): Likewise.
22583         * modules/dup2 (Makefile.am): Likewise.
22584         * modules/eealloc (Makefile.am): Likewise.
22585         * modules/error (Makefile.am): Likewise.
22586         * modules/euidaccess (Makefile.am): Likewise.
22587         * modules/exclude (Makefile.am): Likewise.
22588         * modules/exitfail (Makefile.am): Likewise.
22589         * modules/fcntl-safer (Makefile.am): Likewise.
22590         * modules/fcntl (Makefile.am): Likewise.
22591         * modules/file-type (Makefile.am): Likewise.
22592         * modules/fileblocks (Makefile.am): Likewise.
22593         * modules/filemode (Makefile.am): Likewise.
22594         * modules/filenamecat (Makefile.am): Likewise.
22595         * modules/fnmatch (Makefile.am): Likewise.
22596         * modules/fopen-safer (Makefile.am): Likewise.
22597         * modules/fpending (Makefile.am): Likewise.
22598         * modules/fprintftime (Makefile.am): Likewise.
22599         * modules/free (Makefile.am): Likewise.
22600         * modules/fsusage (Makefile.am): Likewise.
22601         * modules/ftruncate (Makefile.am): Likewise.
22602         * modules/fts (Makefile.am): Likewise.
22603         * modules/gc-arcfour (Makefile.am): Likewise.
22604         * modules/gc-des (Makefile.am): Likewise.
22605         * modules/gc-hmac-md5 (Makefile.am): Likewise.
22606         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
22607         * modules/gc-md4 (Makefile.am): Likewise.
22608         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
22609         * modules/gc-sha1 (Makefile.am): Likewise.
22610         * modules/gc (Makefile.am): Likewise.
22611         * modules/getaddrinfo (Makefile.am): Likewise.
22612         * modules/getcwd (Makefile.am): Likewise.
22613         * modules/getdelim (Makefile.am): Likewise.
22614         * modules/getdomainname (Makefile.am): Likewise.
22615         * modules/getgroups (Makefile.am): Likewise.
22616         * modules/gethostname (Makefile.am): Likewise.
22617         * modules/gethrxtime (Makefile.am): Likewise.
22618         * modules/getline (Makefile.am): Likewise.
22619         * modules/getloadavg (Makefile.am): Likewise.
22620         * modules/getlogin_r (Makefile.am): Likewise.
22621         * modules/getndelim2 (Makefile.am): Likewise.
22622         * modules/getopt (Makefile.am): Likewise.
22623         * modules/getpagesize (Makefile.am): Likewise.
22624         * modules/getpass-gnu (Makefile.am): Likewise.
22625         * modules/getpass (Makefile.am): Likewise.
22626         * modules/getsubopt (Makefile.am): Likewise.
22627         * modules/gettime (Makefile.am): Likewise.
22628         * modules/gettimeofday (Makefile.am): Likewise.
22629         * modules/getugroups (Makefile.am): Likewise.
22630         * modules/getusershell (Makefile.am): Likewise.
22631         * modules/glob (Makefile.am): Likewise.
22632         * modules/group-member (Makefile.am): Likewise.
22633         * modules/hard-locale (Makefile.am): Likewise.
22634         * modules/hash (Makefile.am): Likewise.
22635         * modules/hmac-md5 (Makefile.am): Likewise.
22636         * modules/hmac-sha1 (Makefile.am): Likewise.
22637         * modules/human (Makefile.am): Likewise.
22638         * modules/idcache (Makefile.am): Likewise.
22639         * modules/imaxabs (Makefile.am): Likewise.
22640         * modules/imaxdiv (Makefile.am): Likewise.
22641         * modules/inet_ntop (Makefile.am): Likewise.
22642         * modules/inet_pton (Makefile.am): Likewise.
22643         * modules/intprops (Makefile.am): Likewise.
22644         * modules/inttostr (Makefile.am): Likewise.
22645         * modules/inttypes (Makefile.am): Likewise.
22646         * modules/isapipe (Makefile.am): Likewise.
22647         * modules/javaversion (Makefile.am): Likewise.
22648         * modules/lchmod (Makefile.am): Likewise.
22649         * modules/lchown (Makefile.am): Likewise.
22650         * modules/localcharset (Makefile.am): Likewise.
22651         * modules/long-options (Makefile.am): Likewise.
22652         * modules/lstat (Makefile.am): Likewise.
22653         * modules/malloc (Makefile.am): Likewise.
22654         * modules/mathl (Makefile.am): Likewise.
22655         * modules/mbchar (Makefile.am): Likewise.
22656         * modules/md2 (Makefile.am): Likewise.
22657         * modules/md4 (Makefile.am): Likewise.
22658         * modules/md5 (Makefile.am): Likewise.
22659         * modules/memcasecmp (Makefile.am): Likewise.
22660         * modules/memchr (Makefile.am): Likewise.
22661         * modules/memcmp (Makefile.am): Likewise.
22662         * modules/memcoll (Makefile.am): Likewise.
22663         * modules/memcpy (Makefile.am): Likewise.
22664         * modules/memmem (Makefile.am): Likewise.
22665         * modules/memmove (Makefile.am): Likewise.
22666         * modules/mempcpy (Makefile.am): Likewise.
22667         * modules/memrchr (Makefile.am): Likewise.
22668         * modules/memset (Makefile.am): Likewise.
22669         * modules/memxor (Makefile.am): Likewise.
22670         * modules/mkancesdirs (Makefile.am): Likewise.
22671         * modules/mkdir-p (Makefile.am): Likewise.
22672         * modules/mkdir (Makefile.am): Likewise.
22673         * modules/mkdtemp (Makefile.am): Likewise.
22674         * modules/mkstemp (Makefile.am): Likewise.
22675         * modules/mktime (Makefile.am): Likewise.
22676         * modules/modechange (Makefile.am): Likewise.
22677         * modules/mountlist (Makefile.am): Likewise.
22678         * modules/nanosleep (Makefile.am): Likewise.
22679         * modules/obstack (Makefile.am): Likewise.
22680         * modules/openat (Makefile.am): Likewise.
22681         * modules/pagealign_alloc (Makefile.am): Likewise.
22682         * modules/pathmax (Makefile.am): Likewise.
22683         * modules/physmem (Makefile.am): Likewise.
22684         * modules/poll (Makefile.am): Likewise.
22685         * modules/posixtm (Makefile.am): Likewise.
22686         * modules/posixver (Makefile.am): Likewise.
22687         * modules/putenv (Makefile.am): Likewise.
22688         * modules/quote (Makefile.am): Likewise.
22689         * modules/quotearg (Makefile.am): Likewise.
22690         * modules/raise (Makefile.am): Likewise.
22691         * modules/read-file (Makefile.am): Likewise.
22692         * modules/readline (Makefile.am): Likewise.
22693         * modules/readlink (Makefile.am): Likewise.
22694         * modules/readtokens (Makefile.am): Likewise.
22695         * modules/readutmp (Makefile.am): Likewise.
22696         * modules/realloc (Makefile.am): Likewise.
22697         * modules/regex (Makefile.am): Likewise.
22698         * modules/rename-dest-slash (Makefile.am): Likewise.
22699         * modules/rename (Makefile.am): Likewise.
22700         * modules/rijndael (Makefile.am): Likewise.
22701         * modules/rmdir (Makefile.am): Likewise.
22702         * modules/rpmatch (Makefile.am): Likewise.
22703         * modules/safe-read (Makefile.am): Likewise.
22704         * modules/safe-write (Makefile.am): Likewise.
22705         * modules/same-inode (Makefile.am): Likewise.
22706         * modules/same (Makefile.am): Likewise.
22707         * modules/save-cwd (Makefile.am): Likewise.
22708         * modules/savedir (Makefile.am): Likewise.
22709         * modules/setenv (Makefile.am): Likewise.
22710         * modules/settime (Makefile.am): Likewise.
22711         * modules/sha1 (Makefile.am): Likewise.
22712         * modules/sig2str (Makefile.am): Likewise.
22713         * modules/snprintf (Makefile.am): Likewise.
22714         * modules/stat-macros (Makefile.am): Likewise.
22715         * modules/stat-time (Makefile.am): Likewise.
22716         * modules/stdbool (Makefile.am): Likewise.
22717         * modules/stdint (Makefile.am): Likewise.
22718         * modules/stdlib-safer (Makefile.am): Likewise.
22719         * modules/stpcpy (Makefile.am): Likewise.
22720         * modules/stpncpy (Makefile.am): Likewise.
22721         * modules/strcase (Makefile.am): Likewise.
22722         * modules/strcasestr (Makefile.am): Likewise.
22723         * modules/strchrnul (Makefile.am): Likewise.
22724         * modules/strcspn (Makefile.am): Likewise.
22725         * modules/strdup (Makefile.am): Likewise.
22726         * modules/strerror (Makefile.am): Likewise.
22727         * modules/strftime (Makefile.am): Likewise.
22728         * modules/strndup (Makefile.am): Likewise.
22729         * modules/strnlen (Makefile.am): Likewise.
22730         * modules/strpbrk (Makefile.am): Likewise.
22731         * modules/strsep (Makefile.am): Likewise.
22732         * modules/strstr (Makefile.am): Likewise.
22733         * modules/strtod (Makefile.am): Likewise.
22734         * modules/strtoimax (Makefile.am): Likewise.
22735         * modules/strtok_r (Makefile.am): Likewise.
22736         * modules/strtol (Makefile.am): Likewise.
22737         * modules/strtoll (Makefile.am): Likewise.
22738         * modules/strtoul (Makefile.am): Likewise.
22739         * modules/strtoull (Makefile.am): Likewise.
22740         * modules/strtoumax (Makefile.am): Likewise.
22741         * modules/strverscmp (Makefile.am): Likewise.
22742         * modules/sys_socket (Makefile.am): Likewise.
22743         * modules/sys_stat (Makefile.am): Likewise.
22744         * modules/sysexits (Makefile.am): Likewise.
22745         * modules/time_r (Makefile.am): Likewise.
22746         * modules/timegm (Makefile.am): Likewise.
22747         * modules/timespec (Makefile.am): Likewise.
22748         * modules/tmpfile-safer (Makefile.am): Likewise.
22749         * modules/trim (Makefile.am): Likewise.
22750         * modules/unistd-safer (Makefile.am): Likewise.
22751         * modules/unlinkdir (Makefile.am): Likewise.
22752         * modules/unlocked-io (Makefile.am): Likewise.
22753         * modules/userspec (Makefile.am): Likewise.
22754         * modules/utime (Makefile.am): Likewise.
22755         * modules/utimecmp (Makefile.am): Likewise.
22756         * modules/utimens (Makefile.am): Likewise.
22757         * modules/vasnprintf (Makefile.am): Likewise.
22758         * modules/vasprintf (Makefile.am): Likewise.
22759         * modules/vsnprintf (Makefile.am): Likewise.
22760         * modules/xalloc (Makefile.am): Likewise.
22761         * modules/xgetcwd (Makefile.am): Likewise.
22762         * modules/xnanosleep (Makefile.am): Likewise.
22763         * modules/xreadlink (Makefile.am): Likewise.
22764         * modules/xstrtod (Makefile.am): Likewise.
22765         * modules/xstrtol (Makefile.am): Likewise.
22766         * modules/xstrtold (Makefile.am): Likewise.
22767         * modules/yesno (Makefile.am): Likewise.
22768         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
22769
22770 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
22771
22772         * modules/error (Makefile.am): Distribute files through
22773         EXTRA_DIST, not lib_SOURCES.
22774
22775 2006-10-12  Eric Blake  <ebb9@byu.net>
22776
22777         * modules/error (Makefile.am): Distribute files in /lib.
22778         * modules/obstack (Makefile.am): Likewise.
22779
22780 2006-10-12  Bruno Haible  <bruno@clisp.org>
22781
22782         * modules/acl (Makefile.am): Distribute all files in lib/ through
22783         EXTRA_DIST.
22784         * modules/arcfour (Makefile.am): Likewise.
22785         * modules/arctwo (Makefile.am): Likewise.
22786         * modules/argmatch (Makefile.am): Likewise.
22787         * modules/argz (Makefile.am): Likewise.
22788         * modules/atexit (Makefile.am): Likewise.
22789         * modules/backupfile (Makefile.am): Likewise.
22790         * modules/c-strtod (Makefile.am): Likewise.
22791         * modules/c-strtold (Makefile.am): Likewise.
22792         * modules/calloc (Makefile.am): Likewise.
22793         * modules/canon-host (Makefile.am): Likewise.
22794         * modules/canonicalize (Makefile.am): Likewise.
22795         * modules/chdir-long (Makefile.am): Likewise.
22796         * modules/chdir-safer (Makefile.am): Likewise.
22797         * modules/check-version (Makefile.am): Likewise.
22798         * modules/chown (Makefile.am): Likewise.
22799         * modules/cloexec (Makefile.am): Likewise.
22800         * modules/close-stream (Makefile.am): Likewise.
22801         * modules/closeout (Makefile.am): Likewise.
22802         * modules/crc (Makefile.am): Likewise.
22803         * modules/cycle-check (Makefile.am): Likewise.
22804         * modules/des (Makefile.am): Likewise.
22805         * modules/dirfd (Makefile.am): Likewise.
22806         * modules/dirname (Makefile.am): Likewise.
22807         * modules/dup2 (Makefile.am): Likewise.
22808         * modules/euidaccess (Makefile.am): Likewise.
22809         * modules/exclude (Makefile.am): Likewise.
22810         * modules/exitfail (Makefile.am): Likewise.
22811         * modules/fcntl-safer (Makefile.am): Likewise.
22812         * modules/file-type (Makefile.am): Likewise.
22813         * modules/fileblocks (Makefile.am): Likewise.
22814         * modules/filemode (Makefile.am): Likewise.
22815         * modules/filenamecat (Makefile.am): Likewise.
22816         * modules/fnmatch (Makefile.am): Likewise.
22817         * modules/fopen-safer (Makefile.am): Likewise.
22818         * modules/fpending (Makefile.am): Likewise.
22819         * modules/fprintftime (Makefile.am): Likewise.
22820         * modules/free (Makefile.am): Likewise.
22821         * modules/fsusage (Makefile.am): Likewise.
22822         * modules/ftruncate (Makefile.am): Likewise.
22823         * modules/fts (Makefile.am): Likewise.
22824         * modules/gc (Makefile.am): Likewise.
22825         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
22826         * modules/getaddrinfo (Makefile.am): Likewise.
22827         * modules/getcwd (Makefile.am): Likewise.
22828         * modules/getdelim (Makefile.am): Likewise.
22829         * modules/getdomainname (Makefile.am): Likewise.
22830         * modules/getgroups (Makefile.am): Likewise.
22831         * modules/gethostname (Makefile.am): Likewise.
22832         * modules/gethrxtime (Makefile.am): Likewise.
22833         * modules/getline (Makefile.am): Likewise.
22834         * modules/getloadavg (Makefile.am): Likewise.
22835         * modules/getlogin_r (Makefile.am): Likewise.
22836         * modules/getopt (Makefile.am): Likewise.
22837         * modules/getpass (Makefile.am): Likewise.
22838         * modules/getpass-gnu (Makefile.am): Likewise.
22839         * modules/getsubopt (Makefile.am): Likewise.
22840         * modules/gettime (Makefile.am): Likewise.
22841         * modules/gettimeofday (Makefile.am): Likewise.
22842         * modules/getugroups (Makefile.am): Likewise.
22843         * modules/getusershell (Makefile.am): Likewise.
22844         * modules/glob (Makefile.am): Likewise.
22845         * modules/group-member (Makefile.am): Likewise.
22846         * modules/hard-locale (Makefile.am): Likewise.
22847         * modules/hash (Makefile.am): Likewise.
22848         * modules/hmac-md5 (Makefile.am): Likewise.
22849         * modules/hmac-sha1 (Makefile.am): Likewise.
22850         * modules/human (Makefile.am): Likewise.
22851         * modules/idcache (Makefile.am): Likewise.
22852         * modules/imaxabs (Makefile.am): Likewise.
22853         * modules/imaxdiv (Makefile.am): Likewise.
22854         * modules/inet_ntop (Makefile.am): Likewise.
22855         * modules/inet_pton (Makefile.am): Likewise.
22856         * modules/inttostr (Makefile.am): Likewise.
22857         * modules/isapipe (Makefile.am): Likewise.
22858         * modules/lchown (Makefile.am): Likewise.
22859         * modules/long-options (Makefile.am): Likewise.
22860         * modules/lstat (Makefile.am): Likewise.
22861         * modules/malloc (Makefile.am): Likewise.
22862         * modules/mathl (Makefile.am): Likewise.
22863         * modules/mbchar (Makefile.am): Likewise.
22864         * modules/md2 (Makefile.am): Likewise.
22865         * modules/md4 (Makefile.am): Likewise.
22866         * modules/md5 (Makefile.am): Likewise.
22867         * modules/memcasecmp (Makefile.am): Likewise.
22868         * modules/memchr (Makefile.am): Likewise.
22869         * modules/memcmp (Makefile.am): Likewise.
22870         * modules/memcoll (Makefile.am): Likewise.
22871         * modules/memcpy (Makefile.am): Likewise.
22872         * modules/memmem (Makefile.am): Likewise.
22873         * modules/memmove (Makefile.am): Likewise.
22874         * modules/mempcpy (Makefile.am): Likewise.
22875         * modules/memrchr (Makefile.am): Likewise.
22876         * modules/memset (Makefile.am): Likewise.
22877         * modules/memxor (Makefile.am): Likewise.
22878         * modules/mkancesdirs (Makefile.am): Likewise.
22879         * modules/mkdir (Makefile.am): Likewise.
22880         * modules/mkdir-p (Makefile.am): Likewise.
22881         * modules/mkdtemp (Makefile.am): Likewise.
22882         * modules/mkstemp (Makefile.am): Likewise.
22883         * modules/mktime (Makefile.am): Likewise.
22884         * modules/modechange (Makefile.am): Likewise.
22885         * modules/mountlist (Makefile.am): Likewise.
22886         * modules/nanosleep (Makefile.am): Likewise.
22887         * modules/openat (Makefile.am): Likewise.
22888         * modules/pagealign_alloc (Makefile.am): Likewise.
22889         * modules/physmem (Makefile.am): Likewise.
22890         * modules/poll (Makefile.am): Likewise.
22891         * modules/posixtm (Makefile.am): Likewise.
22892         * modules/posixver (Makefile.am): Likewise.
22893         * modules/putenv (Makefile.am): Likewise.
22894         * modules/quote (Makefile.am): Likewise.
22895         * modules/quotearg (Makefile.am): Likewise.
22896         * modules/raise (Makefile.am): Likewise.
22897         * modules/read-file (Makefile.am): Likewise.
22898         * modules/readline (Makefile.am): Likewise.
22899         * modules/readlink (Makefile.am): Likewise.
22900         * modules/readtokens (Makefile.am): Likewise.
22901         * modules/readutmp (Makefile.am): Likewise.
22902         * modules/realloc (Makefile.am): Likewise.
22903         * modules/regex (Makefile.am): Likewise.
22904         * modules/rename (Makefile.am): Likewise.
22905         * modules/rename-dest-slash (Makefile.am): Likewise.
22906         * modules/rijndael (Makefile.am): Likewise.
22907         * modules/rmdir (Makefile.am): Likewise.
22908         * modules/rpmatch (Makefile.am): Likewise.
22909         * modules/safe-read (Makefile.am): Likewise.
22910         * modules/safe-write (Makefile.am): Likewise.
22911         * modules/same (Makefile.am): Likewise.
22912         * modules/save-cwd (Makefile.am): Likewise.
22913         * modules/savedir (Makefile.am): Likewise.
22914         * modules/setenv (Makefile.am): Likewise.
22915         * modules/settime (Makefile.am): Likewise.
22916         * modules/sha1 (Makefile.am): Likewise.
22917         * modules/sig2str (Makefile.am): Likewise.
22918         * modules/snprintf (Makefile.am): Likewise.
22919         * modules/stdlib-safer (Makefile.am): Likewise.
22920         * modules/stpcpy (Makefile.am): Likewise.
22921         * modules/stpncpy (Makefile.am): Likewise.
22922         * modules/strcase (Makefile.am): Likewise.
22923         * modules/strcasestr (Makefile.am): Likewise.
22924         * modules/strchrnul (Makefile.am): Likewise.
22925         * modules/strcspn (Makefile.am): Likewise.
22926         * modules/strdup (Makefile.am): Likewise.
22927         * modules/strerror (Makefile.am): Likewise.
22928         * modules/strftime (Makefile.am): Likewise.
22929         * modules/strndup (Makefile.am): Likewise.
22930         * modules/strnlen (Makefile.am): Likewise.
22931         * modules/strpbrk (Makefile.am): Likewise.
22932         * modules/strsep (Makefile.am): Likewise.
22933         * modules/strstr (Makefile.am): Likewise.
22934         * modules/strtod (Makefile.am): Likewise.
22935         * modules/strtoimax (Makefile.am): Likewise.
22936         * modules/strtok_r (Makefile.am): Likewise.
22937         * modules/strtol (Makefile.am): Likewise.
22938         * modules/strtoll (Makefile.am): Likewise.
22939         * modules/strtoul (Makefile.am): Likewise.
22940         * modules/strtoull (Makefile.am): Likewise.
22941         * modules/strtoumax (Makefile.am): Likewise.
22942         * modules/strverscmp (Makefile.am): Likewise.
22943         * modules/time_r (Makefile.am): Likewise.
22944         * modules/timegm (Makefile.am): Likewise.
22945         * modules/tmpfile-safer (Makefile.am): Likewise.
22946         * modules/unistd-safer (Makefile.am): Likewise.
22947         * modules/unlinkdir (Makefile.am): Likewise.
22948         * modules/userspec (Makefile.am): Likewise.
22949         * modules/utime (Makefile.am): Likewise.
22950         * modules/utimecmp (Makefile.am): Likewise.
22951         * modules/utimens (Makefile.am): Likewise.
22952         * modules/vasnprintf (Makefile.am): Likewise.
22953         * modules/vasprintf (Makefile.am): Likewise.
22954         * modules/vsnprintf (Makefile.am): Likewise.
22955         * modules/xalloc (Makefile.am): Likewise.
22956         * modules/xgetcwd (Makefile.am): Likewise.
22957         * modules/xnanosleep (Makefile.am): Likewise.
22958         * modules/xreadlink (Makefile.am): Likewise.
22959         * modules/xstrtod (Makefile.am): Likewise.
22960         * modules/xstrtol (Makefile.am): Likewise.
22961         * modules/xstrtold (Makefile.am): Likewise.
22962         * modules/yesno (Makefile.am): Likewise.
22963
22964 2006-10-12  Jim Meyering  <jim@meyering.net>
22965
22966         * m4/getloadavg.m4: Revert the change below.
22967
22968         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
22969         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
22970         fail with a symlink, which is what coreutils' ./bootstrap now
22971         creates by default.
22972
22973 2006-10-12  Bruno Haible  <bruno@clisp.org>
22974
22975         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
22976         mingw.
22977         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
22978         MSVC and mingw explicitly.
22979
22980 2006-10-11  Simon Josefsson  <jas@extundo.com>
22981             Bruno Haible  <bruno@clisp.org>
22982
22983         Add support for multiple gnulib-tool invocations in the scope of a
22984         single configure.ac file.
22985         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
22986         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
22987         with the same contents as the _LIBADD variable.
22988         (func_emit_initmacro_start, func_emit_initmacro_end,
22989         func_emit_initmacro_done): New functions.
22990         (func_import, func_create_testdir): Invoke them. Allow the identifiers
22991         gl_LIBOBJS and gl_LTLIBOBJS.
22992
22993 2006-10-11  Bruno Haible  <bruno@clisp.org>
22994
22995         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
22996         (func_create_testdir): Don't create po/Makefile.am, don't invoke
22997         autoreconf. Instead, invoke autopoint explicitly but move back the
22998         *.m4 files from gnulib.
22999
23000 2006-10-11  Bruno Haible  <bruno@clisp.org>
23001
23002         * gnulib-tool (func_usage): Make module names after --create-testdir
23003         optional.
23004         (func_create_testdir): If no module was specified, use nearly all
23005         modules.
23006
23007 2006-10-12  Jim Meyering  <jim@meyering.net>
23008
23009         Big performance improvement for fts-based tools that use FTS_NOSTAT.
23010         Avoid spurious inode-mismatch problems on non-POSIX file systems.
23011         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
23012         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
23013         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
23014         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
23015         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
23016         (fts_set_stat_required): New function.
23017         (fts_open): Defer the calls to fts_stat, if possible or requested.
23018         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
23019         into fts_stat itself.
23020         (fts_read): Perform any required (deferred) fts_stat call.
23021         (fts_build): Likewise, for the directory we're about to open and read.
23022         In the readdir loop, carefully decide whether each entry will require
23023         an eventual call to fts_stat, using dirent.d_type info if available.
23024         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
23025         a command line argument into this function.  Update all callers.
23026         Map a return value of FTS_DOT to FTS_D for a command line argument.
23027         * modules/fts (Depends-on): Add d-type.  Alphabetize.
23028         Thanks to Miklos Szeredi for his tenacity and for the initial
23029         bug report about "find" failing on a FUSE-based file system.
23030
23031         * lib/fts.c (fts_open): Use consistent indentation.
23032
23033 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
23034
23035         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
23036         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
23037         reported by Jim Meyering.  All uses of cache variables renamed
23038         to match Autoconf's.
23039         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
23040         the other one.
23041
23042         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
23043         Fix misspelling in diagnostic.
23044
23045 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
23046
23047         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
23048         defined.  Problem reported by Matthew Woehlke.
23049
23050         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
23051         Add support for Tandem NonStop R series.
23052         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
23053         Use new macro.
23054
23055         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
23056         (has_trailing_slash): Omit size arg; all callers changed.
23057         Omit 'inline', since it doesn't help performance and we'd
23058         need to configure it.
23059         Don't count //, ///, etc. as having a trailing slash.
23060         As a side effect, this removes a C99ism reported by Matthew Woehlke.
23061         (rpl_rename_dest_slash): On failure, use rename's errno rather
23062         than (in some cases) an incorrect or junk errno.
23063         Simplify code by removing need to compute length; this does
23064         cause it to make two passes instead of one over the file name,
23065         but it's worth it.
23066
23067         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
23068         change, since Autoconf's version may no longer be appropriate now
23069         that we are using CVS Autoconf's version.  Add support for Tandem.
23070
23071 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
23072             Bruno Haible  <bruno@clisp.org>
23073
23074         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
23075         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
23076         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
23077         gl_AC_TYPE_LONG_LONG.
23078
23079         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
23080         instead of HAVE_LONG_LONG.
23081         * lib/printf-args.c (printf_fetchargs): Likewise.
23082         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
23083         * lib/vasnprintf.c (VASNPRINTF): Likewise.
23084         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
23085         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
23086         gl_AC_TYPE_LONG_LONG.
23087
23088 2006-10-11  Bruno Haible  <bruno@clisp.org>
23089
23090         * m4/longlong.m4: Add comments.
23091         * m4/ulonglong.m4: Likewise.
23092
23093 2006-10-10  Bruno Haible  <bruno@clisp.org>
23094
23095         Make it possible to #define stpcpy, strdup to aliases.
23096         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
23097         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
23098
23099 2006-10-10  Bruno Haible  <bruno@clisp.org>
23100
23101         Make it possible to #define gcd to an alias.
23102         * lib/gcd.c: Include config.h.
23103
23104 2006-10-10  Bruno Haible  <bruno@clisp.org>
23105
23106         Make it possible to #define c_isascii to an alias.
23107         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
23108         defined. Undefine the macros before defining them, to avoid gcc
23109         warnings.
23110         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
23111         define NO_C_CTYPE_MACROS early.
23112
23113 2006-10-10  Bruno Haible  <bruno@clisp.org>
23114
23115         Make it possible to #define set_program_name to an alias.
23116         * lib/progname.c: Don't undefine set_program_name; instead, undefine
23117         ENABLE_RELOCATABLE early.
23118
23119 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
23120
23121         Port to Tandem NSK OSS, which has 64-bit signed int but at most
23122         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
23123         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
23124         More generally, don't assume that 64-bit signed int is available
23125         if unsigned int is, and vice versa.
23126         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
23127         unsigned symbols, not on their signed counterparts.
23128         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
23129         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
23130         (UINT64_C, UINTMAX_C):
23131         Likewise.
23132         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
23133         unsigned counterparts.
23134         (Have_long_long, Unsigned): New macros.
23135         (Int): Renamed from INT.
23136         (strtoimax): Use the new macros.
23137         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
23138         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
23139         * modules/inttypes (inttypes.h): Substitute
23140         HAVE_UNSIGNED_LONG_LONG_INT.
23141         * modules/stdint (stdint.h): Likewise.
23142         (Files): Add m4/ulonglong.m4.
23143
23144 2006-10-10  Bruno Haible  <bruno@clisp.org>
23145
23146         Fix a gcc -Wshadow warning.
23147         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
23148         to 'bucket'.
23149         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
23150         gl_linked_indexof_from_to): Likewise.
23151         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
23152         Likewise.
23153         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
23154         Likewise.
23155         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
23156         Reported by Eric Blake.
23157
23158 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
23159
23160         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
23161         for NetBSD.  Problem reported by Bruno Haible.
23162
23163 2006-10-09  Jim Meyering  <jim@meyering.net>
23164
23165         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
23166         Patch from Bruno Haible.
23167
23168 2006-10-09  Jim Meyering  <jim@meyering.net>
23169
23170         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
23171         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
23172         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
23173
23174 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
23175
23176         Don't include <config.h> twice; this doesn't work in some cases,
23177         e.g., when config.h has "#define intmax_t long long int" and
23178         we include <config.h>, <inttypes.h>, <config.h> in that order.
23179         Problem reported by Matthew Woehlke in:
23180         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
23181         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
23182         * lib/fts-cycle.c: Don't include config.h.
23183         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
23184         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
23185         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
23186         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
23187         inttypes.h.
23188         * lib/xstrtoumax.c: Likewise.
23189         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
23190         __strtol and the like, so that this module is more like its siblings.
23191         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
23192         Remove; no longer needed now that we assume gnulib inttypes.h.
23193
23194 2006-10-08  Bruno Haible  <bruno@clisp.org>
23195
23196         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
23197         option.
23198
23199 2006-10-07  Jim Meyering  <jim@meyering.net>
23200
23201         * modules/inttypes (inttypes.h): Revert what seems to have been
23202         an inadvertent part of today's change: use "|", not "/" in the
23203         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
23204
23205 2006-10-07  Bruno Haible  <bruno@clisp.org>
23206
23207         * modules/sublist: New file.
23208
23209 2006-10-07  Bruno Haible  <bruno@clisp.org>
23210
23211         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
23212         * modules/argz (argz.h): Likewise.
23213         * modules/arpa_inet (arpa/inet.h): Likewise.
23214         * modules/byteswap (byteswap.h): Likewise.
23215         * modules/configmake (configmake.h): Likewise.
23216         * modules/fcntl (fcntl.h): Likewise.
23217         * modules/fnmatch (fnmatch.h): Likewise.
23218         * modules/getopt (getopt.h): Likewise.
23219         * modules/glob (glob.h): Likewise.
23220         * modules/inttypes (inttypes.h): Likewise.
23221         * modules/netinet_in (netinet/in.h): Likewise.
23222         * modules/poll (poll.h): Likewise.
23223         * modules/stdbool (stdbool.h): Likewise.
23224         * modules/stdint (stdint.h): Likewise.
23225         * modules/sys_select (sys/select.h): Likewise.
23226         * modules/sys_socket (sys/socket.h): Likewise.
23227         * modules/sys_stat (sys/stat.h): Likewise.
23228         * modules/sysexits (sysexits.h): Likewise.
23229         * modules/unistd (unistd.h): Likewise.
23230         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
23231         Add a "DO NOT EDIT" comment to the generated file.
23232         (func_import): Likewise for gnulib-comp.m4.
23233
23234 2006-10-07  Bruno Haible  <bruno@clisp.org>
23235
23236         * lib/gl_sublist.h: New file.
23237         * lib/gl_sublist.c: New file.
23238
23239 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
23240
23241         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
23242         name (relative to the original working directory) and the file
23243         name component (relative to the temporary working directory).  All
23244         callers changed.
23245         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
23246         * lib/mkdir-p.c (make_dir_parents): Likewise.
23247         * lib/mkdir-p.h (make_dir_parents): Likewise.
23248
23249 2006-10-06  Eric Blake  <ebb9@byu.net>
23250
23251         Define several macros for use by the clean-temp module.
23252         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
23253         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
23254         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
23255
23256         * lib/clean-temp.h (close_stream_temp): New declaration.
23257         * lib/clean-temp.c (includes): Pull in headers according to what
23258         other modules are in use.
23259         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
23260
23261 2006-10-06  Bruno Haible  <bruno@clisp.org>
23262
23263         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
23264         instead of fopen, fwriteerror.
23265
23266 2006-10-06  Bruno Haible  <bruno@clisp.org>
23267
23268         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
23269         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
23270         int.
23271         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
23272         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
23273         Return an error indicator.
23274         Suggested by Eric Blake.
23275
23276 2006-10-06  Bruno Haible  <bruno@clisp.org>
23277
23278         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
23279         Reported by Eric Blake.
23280
23281 2006-10-06  Bruno Haible  <bruno@clisp.org>
23282
23283         * modules/closeout (Description): Mention stderr too.
23284
23285 2006-10-06  Bruno Haible  <bruno@clisp.org>
23286         and Paul Eggert  <eggert@cs.ucla.edu>
23287
23288         * lib/closeout.c (close_stdout): Also close stderr.
23289         * lib/closeout.h: Update comment.
23290
23291 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
23292
23293         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
23294         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
23295         * lib/dirchownmod.c: Include lchown.h.
23296         * lib/lchown.c: Don't include files that lchown.h now includes.
23297         Don't declare chown, since lchown.h now does that.
23298         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
23299         (lchown): Define to rpl_chown if lchown is declared but
23300         does not exist.  Declare using a prototype if lchown is not
23301         declared.  Add a copyright notice.
23302         * lib/mkstemp.h: Include <unistd.h>.
23303         * lib/openat.c: Include lchown.h.
23304
23305         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
23306         we now test for that separately.
23307         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
23308         rather than O_NOFOLLOW, when testing whether it's possible to
23309         avoid a race condition reliably.
23310         * lib/savewd.c (savewd_chdir): Likewise.
23311
23312         Remove macros that are no longer needed now that stdint.h is
23313         reliable.
23314         * lib/fsusage.c (UINTMAX_MAX): Remove.
23315         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
23316         * lib/utimecmp.c (SIZE_MAX): Remove.
23317
23318         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
23319
23320         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
23321         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
23322         O_NOATIME works.
23323
23324 2006-10-05  Bruno Haible  <bruno@clisp.org>
23325
23326         * lib/gl_list.h (gl_sortedlist_search_from_to,
23327         gl_sortedlist_indexof_from_to): New declarations.
23328         (gl_list_implementation): New fields sortedlist_search_from_to,
23329         sortedlist_indexof_from_to.
23330         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
23331         inline functions.
23332         * lib/gl_list.c (gl_sortedlist_search_from_to,
23333         gl_sortedlist_indexof_from_to): New functions.
23334         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
23335         function.
23336         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
23337         (gl_array_sortedlist_search_from_to): New function.
23338         (gl_array_list_implementation): Update.
23339         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
23340         function.
23341         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
23342         (gl_carray_sortedlist_search_from_to): New function.
23343         (gl_carray_list_implementation): Update.
23344         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
23345         gl_linked_sortedlist_indexof_from_to): New functions.
23346         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
23347         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
23348         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
23349         gl_tree_sortedlist_indexof_from_to): New functions.
23350         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
23351         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
23352         Update.
23353         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
23354         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
23355         Update.
23356
23357 2006-10-05  Bruno Haible  <bruno@clisp.org>
23358
23359         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
23360         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
23361         (struct gl_list_implementation): Add fields search_from_to,
23362         indexof_from_to. Remove fields search, indexof.
23363         (gl_list_search): Use the search_from_to method.
23364         (gl_list_search_from, gl_list_search_from_to): New functions.
23365         (gl_list_indexof): Use the indexof_from_to method.
23366         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
23367         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
23368         (gl_list_search_from, gl_list_search_from_to): New functions.
23369         (gl_list_indexof): Use the indexof_from_to method.
23370         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
23371         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
23372         gl_array_indexof. Add start_index, end_index arguments.
23373         (gl_array_search_from_to): Renamed from gl_array_search. Add
23374         start_index, end_index arguments.
23375         (gl_array_remove, gl_array_list_implementation): Update.
23376         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
23377         gl_carray_indexof. Add start_index, end_index arguments.
23378         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
23379         start_index, end_index arguments.
23380         (gl_carray_remove, gl_carray_list_implementation): Update.
23381         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
23382         gl_linked_search. Add start_index, end_index arguments.
23383         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
23384         start_index, end_index arguments.
23385         (gl_linked_remove): Update.
23386         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
23387         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
23388         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
23389         field to 'size_t'.
23390         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
23391         gl_tree_search. Add start_index, end_index arguments.
23392         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
23393         start_index, end_index arguments.
23394         (gl_tree_remove): Update.
23395         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
23396         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
23397         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
23398         function.
23399         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
23400         gl_tree_search. Add start_index, end_index arguments.
23401         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
23402         start_index, end_index arguments.
23403         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
23404         Update.
23405         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
23406
23407 2006-10-05  Bruno Haible  <bruno@clisp.org>
23408
23409         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
23410
23411         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
23412         fwriteerror_temp): New declarations.
23413         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
23414         (descriptors): New variable.
23415         (cleanup): First, close the descriptors.
23416         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
23417         fclose_temp, fwriteerror_temp): New functions.
23418
23419 2006-10-04  Jim Meyering  <jim@meyering.net>
23420
23421         * lib/fts.c (fts_open): Tiny comment change.
23422
23423 2006-10-04  Bruno Haible  <bruno@clisp.org>
23424
23425         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
23426         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
23427         gl_LOCK_BODY.
23428         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
23429         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
23430         gl_LOCK_EARLY_BODY.
23431         (gl_LOCK): Require gl_LOCK_BODY.
23432
23433 2006-10-04  Bruno Haible  <bruno@clisp.org>
23434
23435         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
23436         (gl_oset_search_atleast): New declaration.
23437         (struct gl_oset_implementation): Add field 'search_atleast'.
23438         (gl_oset_search_atleast): New inline function.
23439         * lib/gl_oset.c (gl_oset_search_atleast): New function.
23440         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
23441         (gl_array_oset_implementation): Update.
23442         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
23443         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
23444         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
23445
23446 2006-10-04  Bruno Haible  <bruno@clisp.org>
23447
23448         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
23449
23450 2006-10-03  Bruno Haible  <bruno@clisp.org>
23451
23452         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
23453         from gl_avltreehash_list_implementation.
23454
23455 2006-10-03  Bruno Haible  <bruno@clisp.org>
23456
23457         * lib/gl_oset.c (gl_oset_add): Fix return type.
23458
23459 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
23460
23461         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
23462
23463 2006-10-02  Eric Blake  <ebb9@byu.net>
23464
23465         * modules/strnlen (Depends-on): Add extensions.
23466
23467 2006-10-02  Eric Blake  <ebb9@byu.net>
23468
23469         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
23470         definition in 2.60+.
23471
23472 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
23473
23474         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
23475         checks.
23476
23477 2006-10-02  Bruno Haible  <bruno@clisp.org>
23478
23479         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
23480         to the AUTOMAKE_OPTIONS.
23481         Reported by Jim Meyering.
23482
23483 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
23484
23485         Work around bug in Solaris 10 /proc file system:
23486         /proc/self/fd/NNN/.. isn't the parent directory of
23487         the directory whose file descriptor is NNN.  This needs to
23488         be worked around at run time, not compile time, since a
23489         program might be built on Solaris 8, where things work, and
23490         run on Solaris 10.
23491         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
23492         to use the following interface instead:
23493         (OPENAT_BUFFER_SIZE): New macro.
23494         (openat_proc_name): New function.
23495         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
23496         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
23497         Likewise.
23498         * lib/openat-proc.c: New file.
23499         * modules/openat (Files): Add lib/openat-proc.c.
23500         (Depends-on): Add same-inode, stdbool.
23501         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
23502
23503 2006-09-29  Bruno Haible  <bruno@clisp.org>
23504
23505         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
23506         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
23507         argument. Set stdout_closed before testing for ferror, not after.
23508         (fwriteerror, fwriteerror_no_ebadf): New functions.
23509
23510 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23511
23512         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
23513
23514 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
23515
23516         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
23517         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
23518
23519 2006-09-28  Jim Meyering  <jim@meyering.net>
23520
23521         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
23522         Include <unistd.h>.
23523
23524 2006-09-28  Bruno Haible  <bruno@clisp.org>
23525
23526         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
23527         * modules/linkedhash-list (Depends-on): Likewise.
23528         * modules/rbtreehash-list (Depends-on): Likewise.
23529
23530 2006-09-28  Bruno Haible  <bruno@clisp.org>
23531
23532         * lib/strndup.h: Simplify the redefinition of strndup.
23533         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
23534         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
23535
23536 2006-09-28  Bruno Haible  <bruno@clisp.org>
23537
23538         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
23539         * lib/gl_linkedhash_list.c: Likewise.
23540         * lib/gl_rbtreehash_list.c: Likewise.
23541
23542 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
23543
23544         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
23545         getaddrinfo.
23546
23547         * lib/__fpending.h: Don't include <stdio_ext.h> unless
23548         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
23549         it causes <stdio_ext.h> to cause a compile-time error.
23550         Problem reported by Nelson H. F. Beebe.
23551         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
23552         of HAVE_DECL___PENDING.
23553
23554         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
23555         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
23556         declaration.
23557
23558 2006-09-27  Jim Meyering  <jim@meyering.net>
23559
23560         This file could end up with a definition for a function
23561         named __strndup, rather than rpl_strndup on a system with
23562         incomplete weak_alias support.
23563         * lib/strndup.c (strndup): Rename from __strndup.
23564         Remove #defines that used to map __strndup to strndup.
23565         Don't use K&R prototypes.
23566         Remove LIBC-related code, since this file is not sync'd with glibc.
23567         * lib/strndup.h: Revamp, accordingly.
23568         * m4/strndup.m4: Modernize.
23569
23570 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
23571
23572         * modules/savewd (Depends-on): Add 'raise'.
23573         * lib/savewd.c: Include <signal.h>, for 'raise'.
23574
23575 2006-09-26  Jim Meyering  <jim@meyering.net>
23576
23577         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
23578         when we detect Darwin 8.7.0's acl_get_file bug.
23579         Rearrange to perform the new (below) run-test while $LIBS
23580         contains any acl-related library.  Set USE_ACL at the end.
23581         (gl_ACL_GET_FILE): New function.
23582
23583 2006-09-26  Eric Blake  <ebb9@byu.net>
23584
23585         * lib/verror.c: Include <config.h> unconditionally.
23586
23587 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
23588
23589         * modules/clock-time (Maintainer): Add self.
23590         * modules/getlogin_r (Depends-on): Add extensions.
23591
23592 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23593
23594         * modules/clock-time: New module.
23595         * modules/nanosleep (Depends-on): Add clock-time.
23596         * modules/gethrxtime (Depends-on): Likewise.
23597         * modules/gettime (Depends-on): Likewise.
23598         * modules/settime (Depends-on): Likewise.
23599
23600         * modules/fts-lgpl: Depend on openat.
23601         * modules/mkancesdirs: Depend on savewd.
23602         * modules/mkdir-p: Likewise.
23603
23604 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23605
23606         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
23607
23608         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
23609         `gl_have_arbitrary_file_name_length_limit' to
23610         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
23611         actually works between configure runs.
23612
23613 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23614             Bruno Haible  <bruno@clisp.org>
23615
23616         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
23617
23618 2006-09-25  Jim Meyering  <jim@meyering.net>
23619
23620         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
23621         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
23622
23623 2006-09-25  Eric Blake  <ebb9@byu.net>
23624
23625         * gnulib-tool (func_import, func_create_testdir): Fix typos in
23626         exec's in 2006-09-18 patch when shuffling fds.
23627
23628 2006-09-25  Bruno Haible  <bruno@clisp.org>
23629
23630         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
23631         Reported by Jim Meyering.
23632
23633 2006-09-24  Jim Meyering  <jim@meyering.net>
23634
23635         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
23636         compare a pointer against a literal "0".  That caused failures with
23637         at least HP-UX's hpcc.
23638
23639 2006-09-22  Simon Josefsson  <jas@extundo.com>
23640
23641         * modules/gc-sha1:
23642         * modules/gc-md4:
23643         * modules/gc-hmac-sha1:
23644         * modules/gc-hmac-md5:
23645         * modules/gc-des:
23646         * modules/gc-arcfour: Distribute more files.
23647
23648 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23649
23650         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
23651         (gl_linked_iterator_from_to): Initialize struct completely.
23652         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
23653         (gl_tree_iterator_from_to): Likewise
23654         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
23655         * lib/gl_array_list.c [lint] (gl_array_iterator)
23656         (gl_array_iterator_from_to): Likewise.
23657         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
23658         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
23659         (gl_carray_iterator_from_to): Likewise.
23660
23661         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
23662         * lib/md4.c (md4_process_block): Remove unused variable.
23663         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
23664         parentheses for clarity.
23665
23666 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23667
23668         * modules/bison-i18n (Depends-on): Add gettext.
23669
23670 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23671
23672         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
23673         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
23674         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
23675         also add missing comma that caused broken test.
23676         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
23677         stdlib.h, for `abort'.
23678         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
23679         variables.
23680         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
23681         include unistd.h if present, for `rmdir'.
23682         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
23683         variables.
23684         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
23685         in the process include standard headers for prototypes.
23686         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
23687         gets declared on GNU/Linux.
23688         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
23689         unistd.h, for `rmdir'.
23690         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
23691
23692         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
23693         always true.
23694         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
23695
23696         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
23697
23698 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23699
23700         * gnulib-tool (func_version): Create output all at once.  This
23701         may help avoid triggering unnecessary SIGPIPEs, and at any
23702         rate it doesn't hurt.
23703
23704 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23705             Bruno Haible  <bruno@clisp.org>
23706
23707         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
23708         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
23709         * m4/signed.m4 (bh_C_SIGNED): Likewise.
23710
23711         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
23712         (gl_FUNC_VASPRINTF): Invoke it.
23713
23714 2006-09-22  Bruno Haible  <bruno@clisp.org>
23715
23716         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
23717         getloadavg.c as first argument.
23718
23719 2006-09-22  Bruno Haible  <bruno@clisp.org>
23720
23721         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
23722         at the beginning of the gl_INIT macro.
23723         * modules/getloadavg (configure.ac): Pass $gl_source_base to
23724         gl_GETLOADAVG.
23725
23726 2006-09-22  Bruno Haible  <bruno@clisp.org>
23727
23728         * gnulib-tool (func_create_megatestdir): Don't include the config-h
23729         module.
23730         Suggested by Ralf Wildenhues.
23731
23732 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
23733
23734         Import this patch from libc:
23735
23736         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
23737
23738         * lib/regex_internal.c (re_string_reconstruct): Handle
23739         offset < pstr->valid_raw_len && pstr->offsets_needed case.
23740         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
23741         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
23742         re_string_context_at.
23743
23744         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
23745         now requires it.
23746         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
23747         gl_REGEX now does it for us.
23748         (gl_REGEX): Add test taken from
23749         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
23750
23751         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
23752         Check that large offsets work.  Modernize Autoconf usages.
23753         Prefer "yes" to mean a good thing rather than a bad.
23754         Don't put "#define mkstemp" in config.h, as this might interfere
23755         with standard system headers that "#define mkstemp mkstemp64".
23756
23757         * modules/mkstemp (Depends-on): Add extensions, so that
23758         mkstemp is visible on some platforms.
23759         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
23760         (Include): Change to "mkstemp.h" from <stdlib.h>.
23761         (Files): Add mkstemp.h.
23762
23763         * lib/mkstemp.h: New file, since some standard headers
23764         #define mkstemp.
23765         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
23766         Include "mkstemp.h".
23767         Make the _LIBC code resemble glibc original more,
23768         e.g., use K&R style.
23769         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
23770         (mkstemp): Remove, since mkstemp.h does this for us.
23771         * lib/stdlib--.h: Include mkstemp.h.
23772
23773         Import this patch from libc:
23774
23775         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
23776
23777         * lib/tempname.c (__gen_tempname): Change attempts_min
23778         into a macro.  Use preprocessor to decide how to initialize
23779         attempts [Coverity CID 67].
23780
23781 2006-09-20  Bruno Haible  <bruno@clisp.org>
23782
23783         * lib/mkdtemp.c: Import from libc.
23784         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
23785                 * sysdeps/posix/tempname.c (__gen_tempname): Change
23786                 attempts_min into a macro.  Use preprocessor to decide how to
23787                 initialize attempts [Coverity CID 67].
23788         2001-11-27  Paul Eggert  <eggert@twinsun.com>
23789                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
23790                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
23791
23792 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23793
23794         * gnulib-tool (func_exit): New function, to allow to pass the
23795         exit status portably through the trap.  Use everywhere.
23796         (--help, --version): Signal a write error.
23797         (trap): catch SIGPIPE, for write errors.
23798         Exit at the end of the trap, with the correct exit status.
23799
23800 2006-09-19  Karl Berry  <karl@gnu.org>
23801
23802         * doc/gnulib.texi: note about the license texinfo files.
23803
23804 2006-09-19  Eric Blake  <ebb9@byu.net>
23805
23806         * gnulib-tool: Avoid space-tab.
23807
23808 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
23809
23810         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
23811         that prevented coreutils 6.1 from building.  Problem reported
23812         by Petter Reinholdtsen.
23813
23814 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
23815
23816         * gnulib-tool (avoidlist): Fix typo that broke options like
23817         --avoid=lock that are used by coreutils bootstrap.
23818
23819 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
23820
23821         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
23822         more systematically.
23823
23824 2006-09-18  Jim Meyering  <jim@meyering.net>
23825
23826         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
23827
23828 2006-09-18  Bruno Haible  <bruno@clisp.org>
23829
23830         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
23831
23832 2006-09-18  Bruno Haible  <bruno@clisp.org>
23833
23834         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
23835         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
23836         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
23837         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
23838         * m4/gettext.m4: Require autoconf >= 2.52.
23839         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
23840         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
23841         of gl_cv_header_inttypes_h.
23842
23843 2006-09-18  Bruno Haible  <bruno@clisp.org>
23844
23845         * lib/javaversion.c: Include configmake.h.
23846
23847 2006-09-18  Bruno Haible  <bruno@clisp.org>
23848
23849         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
23850         avoid that the while loops be executed in a subshell.
23851
23852 2006-09-18  Bruno Haible  <bruno@clisp.org>
23853
23854         * MODULES.html.sh (func_module): Break long lines.
23855         Suggested by Bruce Korb <bkorb@gnu.org>.
23856
23857 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23858
23859         Speed up by a factor of 1.12.
23860         * gnulib-tool (nl): New variable.
23861         (func_import): Rewrite include directive extraction to only read each
23862         directive once.
23863
23864 2006-09-17  Bruno Haible  <bruno@clisp.org>
23865
23866         * modules/javaversion (Makefile.am): Remove DEFS setting.
23867         (Depends-on): Add configmake, for PKGDATADIR definition.
23868
23869 2006-09-17  Bruno Haible  <bruno@clisp.org>
23870
23871         * gnulib-tool (func_create_testdir): Rewrite all files at once.
23872
23873 2006-09-17  Bruno Haible  <bruno@clisp.org>
23874
23875         * gnulib-tool (func_append): New function, stolen from libtool.m4.
23876         (func_modules_transitive_closure, func_modules_add_dummy,
23877         func_modules_to_filelist, func_import, func_create_testdir,
23878         func_create_megatestdir, ...): Use it wherever possible.
23879         Suggested by Ralf Wildenhues.
23880
23881 2006-09-16  Karl Berry  <karl@gnu.org>
23882
23883         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
23884         to avoid sectioning errors.
23885         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
23886         [ifinfo]: blank line after @center-ed titles.
23887         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
23888         Spell FSF address consistently with others.
23889         (These changes approved by rms.)
23890
23891 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23892
23893         Speed up by a factor of 1.61.
23894         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
23895         already checked module names again.
23896
23897 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23898
23899         Speed up by a factor of 1.13.
23900         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
23901         for new_files, and the input to func_add_or_update.
23902
23903 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23904
23905         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
23906         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
23907
23908 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
23909
23910         * modules/mkancesdirs (Depends-on): Add fcntl.
23911         * modules/savewd: New file.
23912         * MODULES.html.sh (File system functions): Add savewd.
23913
23914         * modules/configmake (Makefile.am): Add support for the
23915         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
23916
23917 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
23918
23919         * m4/savewd.m4: New file.
23920
23921 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
23922
23923         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
23924         (dirchownmod): New arg FD.  All callers changed.
23925         Use FD rather than opening the directory ourself, as opening is
23926         now the caller's responsibility.
23927         * lib/dirchownmod.h: Likewise.
23928         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
23929         hosts that require <sys/types.h> before <sys/stat.h>.  Include
23930         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
23931         (test_dir): Remove.
23932         (mkancesdirs): Return length of prefix of FILE that has already
23933         been made, or -2 if there is a child doing the work.  Redo
23934         algorithm so that it is O(N) rather than O(N**2).  Optimize away
23935         ".", and treat ".." specially since it might stray back into
23936         already-created areas.  Use a subprocess if necessary.  New arg
23937         WD; all users changed.  MAKE_DIR function should now return 1
23938         if it creates a directory that is not readable.  Return -2 if
23939         a child process is spun off.
23940         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
23941         Adjust signature to match code.
23942         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
23943         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
23944         all users changed.
23945         * lib/savewd.c, lib/savewd.h: New files.
23946
23947 2006-09-15  Jim Meyering  <jim@meyering.net>
23948
23949         * modules/rename-dest-slash: New module.
23950         * MODULES.html.sh (posix_compat): Add it here.
23951
23952         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
23953
23954 2006-09-15  Jim Meyering  <jim@meyering.net>
23955
23956         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
23957         file.
23958
23959         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
23960
23961 2006-09-15  Jim Meyering  <jim@meyering.net>
23962
23963         * lib/rename-dest-slash.c (has_trailing_slash): Use
23964         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
23965         (rpl_rename_dest_slash): Perform the cheaper trailing slash
23966         test before testing whether SRC is a directory.
23967         Suggestions from Bruno Haible.
23968
23969         Avoid a warning about an unused variable.
23970         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
23971         into the #ifdef block where it's used.
23972
23973         * lib/rename-dest-slash.c: New file.
23974
23975 2006-09-14  Bruno Haible  <bruno@clisp.org>
23976
23977         * lib/allocsa.c: Include <config.h> unconditionally.
23978         * lib/asnprintf.c: Likewise.
23979         * lib/asprintf.c: Likewise.
23980         * lib/c-strcasecmp.c: Likewise.
23981         * lib/c-strcasestr.c: Likewise.
23982         * lib/c-strncasecmp.c: Likewise.
23983         * lib/c-strstr.c: Likewise.
23984         * lib/classpath.c: Likewise.
23985         * lib/clean-temp.c: Likewise.
23986         * lib/concatpath.c: Likewise.
23987         * lib/copy-file.c: Likewise.
23988         * lib/csharpcomp.c: Likewise.
23989         * lib/csharpexec.c: Likewise.
23990         * lib/execute.c: Likewise.
23991         * lib/fatal-signal.c: Likewise.
23992         * lib/findprog.c: Likewise.
23993         * lib/fwriteerror.c: Likewise.
23994         * lib/gl_array_list.c: Likewise.
23995         * lib/gl_array_oset.c: Likewise.
23996         * lib/gl_avltree_list.c: Likewise.
23997         * lib/gl_avltree_oset.c: Likewise.
23998         * lib/gl_avltreehash_list.c: Likewise.
23999         * lib/gl_carray_list.c: Likewise.
24000         * lib/gl_linked_list.c: Likewise.
24001         * lib/gl_linkedhash_list.c: Likewise.
24002         * lib/gl_list.c: Likewise.
24003         * lib/gl_oset.c: Likewise.
24004         * lib/gl_rbtree_list.c: Likewise.
24005         * lib/gl_rbtree_oset.c: Likewise.
24006         * lib/gl_rbtreehash_list.c: Likewise.
24007         * lib/imaxabs.c: Likewise.
24008         * lib/imaxdiv.c: Likewise.
24009         * lib/javacomp.c: Likewise.
24010         * lib/javaexec.c: Likewise.
24011         * lib/javaversion.c: Likewise.
24012         * lib/linebreak.c: Likewise.
24013         * lib/localcharset.c: Likewise.
24014         * lib/lock.c: Likewise.
24015         * lib/mbchar.c: Likewise.
24016         * lib/mbswidth.c: Likewise.
24017         * lib/mkdtemp.c: Likewise.
24018         * lib/pipe.c: Likewise.
24019         * lib/printf-args.c: Likewise.
24020         * lib/printf-parse.c: Likewise.
24021         * lib/progname.c: Likewise.
24022         * lib/progreloc.c: Likewise.
24023         * lib/readlink.c: Likewise.
24024         * lib/sh-quote.c: Likewise.
24025         * lib/stpcpy.c: Likewise.
24026         * lib/stpncpy.c: Likewise.
24027         * lib/strcasecmp.c: Likewise.
24028         * lib/strcasestr.c: Likewise.
24029         * lib/strcspn.c: Likewise.
24030         * lib/striconv.c: Likewise.
24031         * lib/strncasecmp.c: Likewise.
24032         * lib/strnlen1.c: Likewise.
24033         * lib/strstr.c: Likewise.
24034         * lib/strtok_r.c: Likewise.
24035         * lib/tls.c: Likewise.
24036         * lib/tmpdir.c: Likewise.
24037         * lib/unicodeio.c: Likewise.
24038         * lib/unsetenv.c: Likewise.
24039         * lib/vasnprintf.c: Likewise.
24040         * lib/vasprintf.c: Likewise.
24041         * lib/wait-process.c: Likewise.
24042         * lib/xallocsa.c: Likewise.
24043         * lib/xsetenv.c: Likewise.
24044         * lib/xstriconv.c: Likewise.
24045
24046 2006-09-13  Simon Josefsson  <jas@extundo.com>
24047
24048         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
24049         that internally, suggested by Ralf Wildenhues
24050         <Ralf.Wildenhues@gmx.de>.
24051
24052 2006-09-13  Simon Josefsson  <jas@extundo.com>
24053
24054         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
24055         @LIBOBJS@.
24056         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
24057
24058 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
24059
24060         * lib/_fpending.c: Include <config.h> unconditionally, since we no
24061         longer worry about uses that don't define HAVE_CONFIG_H.
24062         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
24063         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
24064         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
24065         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
24066         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
24067         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
24068         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
24069         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
24070         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
24071         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
24072         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
24073         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
24074         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
24075         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
24076         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
24077         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
24078         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
24079         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
24080         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
24081         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
24082         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
24083         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
24084         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
24085         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
24086         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
24087         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
24088         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
24089         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
24090         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
24091         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
24092         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
24093         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
24094         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
24095         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
24096         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
24097         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
24098         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
24099         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
24100         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
24101         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
24102         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
24103         Likewise.
24104
24105 2006-09-13  Eric Blake  <ebb9@byu.net>
24106
24107         * lib/getopt.c: Fix typo in last commit.
24108
24109 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
24110
24111         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
24112         dgettext.
24113
24114 2006-09-12  Jim Meyering  <jim@meyering.net>
24115
24116         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
24117         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
24118         Reported by Nelson H. F. Beebe.
24119
24120 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
24121
24122         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
24123         program_invocation_name and program_invocation_short_name are
24124         initialized.
24125         * lib/argp-namefrob.h: Move declarations of program_invocation_name
24126         and program_invocation_short_name to argp.h, so they are visible
24127         to user programs.
24128         * lib/argp.h: Likewise
24129
24130 2006-09-10  Bruno Haible  <bruno@clisp.org>
24131
24132         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
24133         m4/inttypes_h.m4, m4/uintmax_t.m4.
24134
24135 2006-09-10  Bruno Haible  <bruno@clisp.org>
24136
24137         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
24138         gl_AC_TYPE_UINTMAX_T.
24139
24140 2006-09-10  Bruno Haible  <bruno@clisp.org>
24141
24142         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
24143
24144 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
24145
24146         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
24147         convention.  Text proposed by Bruno Haible.
24148         (struct argp_option): Document the use of N_() wrappers.
24149
24150         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
24151         '\v', and translate the two parts separately, instead of feeding
24152         the whole string to gettext.  This allows to exclude
24153         '\v' from the strings visible to the translator by writing doc
24154         strings as N_("..") "\v" N_("..").
24155
24156 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
24157
24158         * config/srclist.txt: Undo latest change; the bug was fixed.
24159
24160 2006-09-09  Bruno Haible  <bruno@clisp.org>
24161
24162         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
24163         assignments if building a library without libtool.
24164         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
24165         in func_emit_lib_Makefile_am.
24166         (func_import): When building a static library libfoo.a, arrange to
24167         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
24168         (func_create_testdir): Likewise.
24169         * modules/gc (configure.ac, Makefile.am): If building statically,
24170         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
24171         * modules/iconvme (configure.ac, Makefile.am): Likewise.
24172         * modules/striconv (configure.ac, Makefile.am): Likewise.
24173         Based on a suggestion by Ralf Wildenhues.
24174
24175 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
24176
24177         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
24178         Check for unistd.h too, since Autoconf doesn't assume POSIX.
24179         Also:
24180
24181         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
24182         Add year_2050_test to catch glibc bug 2821
24183         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
24184
24185         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
24186         Prefer #ifdef to #if.
24187
24188         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
24189         Return from 'main' instead of calling 'exit'.
24190
24191 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
24192
24193         * lib/mktime.c (guess_time_tm): Fix bug where mktime
24194         returned the maximum time_t value rather than (time_t) -1.
24195         Problem originally reported by William Bardwell
24196         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
24197
24198         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
24199         Moved to here ...
24200         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
24201         ... from here.
24202
24203 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
24204
24205         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
24206         2821 is fixed.
24207
24208 2006-09-08  Jim Meyering  <jim@meyering.net>
24209
24210         Don't make generated files read-only.  That would bother too many
24211         people.  However, do retain the ability to work when targets are
24212         read-only: remove the destination and temporary files before writing
24213         them (when generated via sed or echo), or by using the -f option for
24214         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
24215         * modules/alloca-opt, modules/argz, modules/arpa_inet:
24216         * modules/byteswap, modules/configmake, modules/fcntl:
24217         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
24218         * modules/localcharset, modules/netinet_in, modules/poll:
24219         * modules/stdbool, modules/stdint, modules/sys_select:
24220         * modules/sys_socket, modules/sys_stat, modules/sysexits:
24221
24222 2006-09-08  Jim Meyering  <jim@meyering.net>
24223
24224         Avoid new build failure on FreeBSD 6.0.
24225         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
24226         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
24227         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
24228
24229 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24230
24231         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
24232
24233 2006-09-07  Jim Meyering  <jim@meyering.net>
24234
24235         Fix global typo in last change: use chmod u-w, not chmod u-x.
24236         Spotted by Paul Eggert and Bruce Korb.
24237         * modules/alloca-opt, modules/argz, modules/arpa_inet:
24238         * modules/byteswap, modules/configmake, modules/fcntl:
24239         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
24240         * modules/localcharset, modules/netinet_in, modules/poll:
24241         * modules/stdbool, modules/stdint, modules/sys_select:
24242         * modules/sys_socket, modules/sys_stat, modules/sysexits:
24243
24244 2006-09-06  Jim Meyering  <jim@meyering.net>
24245
24246         Make generated files be read-only.
24247         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
24248         Ensure that each generated file is now read-only.
24249         * modules/argz: Likewise.
24250         * modules/arpa_inet: Likewise.
24251         * modules/byteswap: Likewise.
24252         * modules/configmake: Likewise.
24253         * modules/fcntl: Likewise.
24254         * modules/fnmatch: Likewise.
24255         * modules/getopt: Likewise.
24256         * modules/glob: Likewise.
24257         * modules/inttypes: Likewise.
24258         * modules/netinet_in: Likewise.
24259         * modules/poll: Likewise.
24260         * modules/stdbool: Likewise.
24261         * modules/stdint: Likewise.
24262         * modules/sys_select: Likewise.
24263         * modules/sys_socket: Likewise.
24264         * modules/sys_stat: Likewise.
24265         * modules/sysexits: Likewise.
24266         * modules/localcharset: Same as above, but continue using temporary
24267         file named "t-$@" (why different?) rather than the "$@-t" used
24268         everywhere else.
24269
24270         * modules/sysexits (Makefile.am): Replace literal occurrences
24271         of "sysexit.h" more readable, and more consistent, "$@".
24272
24273 2006-09-06  Bruno Haible  <bruno@clisp.org>
24274
24275         * modules/striconv: New file.
24276         * modules/xstriconv: New file.
24277         * MODULES.html.sh (Internationalization functions): Add striconv,
24278         xstriconv.
24279
24280 2006-09-06  Bruno Haible  <bruno@clisp.org>
24281
24282         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
24283         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
24284         not using libtool correctly.
24285
24286 2006-09-06  Bruno Haible  <bruno@clisp.org>
24287
24288         * lib/striconv.h: New file.
24289         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
24290         iconvstring.c.
24291         * lib/xstriconv.h: New file.
24292         * lib/xstriconv.c: New file.
24293
24294 2006-09-06  Bruno Haible  <bruno@clisp.org>
24295
24296         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
24297         lib_..._LDFLAGS.
24298
24299 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24300
24301         * lib/argz_.h: Sync from Libtool.
24302
24303         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
24304                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
24305
24306         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
24307
24308 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
24309
24310         * modules/trim: New file.
24311
24312 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
24313
24314         * lib/trim.h: New file.
24315         * lib/trim.c: New file.
24316
24317 2006-09-05  Bruno Haible  <bruno@clisp.org>
24318
24319         * MODULES.html.sh (String handling): Add trim.
24320
24321 2006-09-04  Karl Berry  <karl@gnu.org>
24322
24323         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
24324         until next release.
24325
24326 2006-09-03  Bruno Haible  <bruno@clisp.org>
24327
24328         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
24329         correctly.
24330
24331 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
24332
24333         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
24334         not gl_GETLOADAVG.  Omit unneeded semicolons.
24335         Problems reported by Ralf Wildenhues in
24336         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
24337         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
24338         at the end, which is the usual gnulib style.
24339
24340         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
24341         of doing all the work ourselves.
24342         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
24343         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
24344
24345 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
24346
24347         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
24348         Problem reported by Ralf Wildenhues in
24349         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
24350
24351         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
24352         HAVE_STRUCT_STATFS_F_FSTYPENAME.
24353
24354 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
24355
24356         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
24357         yesterday's patch by changing test -n to test -z.
24358
24359 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
24360
24361         * modules/getloadavg (Files): Add m4/getloadavg.m4.
24362         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
24363         the former is now obsolescent.
24364
24365         * modules/chdir-long (Depends-on): Add fcntl.
24366
24367 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
24368
24369         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
24370         obsolescent, and programs should use gnulib instead.
24371         * m4/getloadavg.m4: New file, with contents taken from Autoconf
24372         but with prefixes changed.
24373
24374 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
24375
24376         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
24377         or stdbool.h, because they might not exist while configuring.
24378
24379         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
24380         Don't include unistd.h or limits.h; not needed, since chdir-long.h
24381         does that for us.
24382         (O_DIRECTORY): Remove.
24383
24384 2006-08-31  Eric Blake  <ebb9@byu.net>
24385
24386         * gnulib-tool: Don't let emacs change spaces to TAB.
24387
24388 2006-08-31  Bruno Haible  <bruno@clisp.org>
24389
24390         * gnulib-tool: When calling func_import more than once, do it in a
24391         subshell.
24392         Reported by Eric Blake <ebb9@byu.net>.
24393
24394 2006-08-31  Bruno Haible  <bruno@clisp.org>
24395
24396         * gnulib-tool (nl): Remove variable.
24397         (sed_transform_lib_file): Use more robust test for config-h module.
24398         (func_import): Fix typo in 2006-08-25 patch.
24399
24400 2006-08-31  Bruno Haible  <bruno@clisp.org>
24401
24402         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
24403         specified, augment Makefile.am variables instead of assigning them.
24404
24405 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
24406
24407         Work around a bug in both the Linux and SunOS 64-bit kernels:
24408         nanosleep mishandles sleeps for longer than 2**31 seconds.
24409         Problem reported by Frank v Waveren in
24410         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
24411         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
24412         Check for nanosleep bug.
24413         (LIB_NANOSLEEP): Append clock_gettime library if needed.
24414
24415 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
24416
24417         Work around a bug in both the Linux and SunOS 64-bit kernels:
24418         nanosleep mishandles sleeps for longer than 2**31 seconds.
24419         Problem reported by Frank v Waveren in
24420         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
24421         * lib/nanosleep.c (BILLION): New constant.
24422         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
24423         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
24424         implementation.
24425
24426 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
24427
24428         * modules/nanosleep (Depends-on): Add gettime.
24429
24430 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
24431         and Simon Josefsson  <jas@extundo.com>
24432         and Oskar Liljeblad  <oskar@osk.mine.nu>
24433
24434         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
24435         * gnulib-tool (func_import): New license type 'unmodifiable license
24436         text'.
24437         * modules/fdl: Use it.  Longer description.
24438         * module/gpl, module/lgpl: New files.
24439
24440 2006-08-30  Jim Meyering  <jim@meyering.net>
24441
24442         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
24443         shadowing the parameter.
24444
24445 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24446
24447         Sync from Libtool:
24448
24449         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24450
24451         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
24452         sharing with gnulib.  Report by Eric Blake.
24453
24454 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
24455
24456         * modules/isapipe: New file.
24457         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
24458
24459 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
24460
24461         * modules/configmake (Makefile.am): Add a comment, and omit
24462         the CONFIGMAKE_ prefix from generated macro names.  Suggested
24463         by Bruno Haible.
24464
24465 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
24466
24467         * m4/isapipe.m4: New file.
24468
24469 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
24470
24471         * lib/isapipe.c, lib/isapipe.h: New files.
24472
24473 2006-08-29  Jim Meyering  <jim@meyering.net>
24474
24475         * modules/configmake (Makefile.am): Make configmake.h depend on
24476         Makefile.  Otherwise, a stale configmake.h could hang around.
24477
24478 2006-08-29  Eric Blake  <ebb9@byu.net>
24479
24480         * lib/error.c (error_at_line, print_errno_message): Match libc, after
24481         resolution of upstream bug 3044.
24482
24483 2006-08-29  Bruno Haible  <bruno@clisp.org>
24484
24485         * modules/localcharset (Depends-on): Add configmake.
24486         (Makefile.am): Remove setting of LIBDIR through DEFS.
24487
24488 2006-08-29  Bruno Haible  <bruno@clisp.org>
24489
24490         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
24491         defined.
24492
24493 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
24494
24495         * modules/fcntl: New file.
24496         * modules/chdir-safer (Depends-on): Add fcntl.
24497         * modules/fts: Likewise.
24498         * modules/mkdir-p: Likewise.
24499
24500         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
24501         This undoes the most recent change, since we're now addressing the
24502         problem in a different way.
24503
24504         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
24505         into output, since the output might be called Makefile.am even
24506         if $makefile_name is something different.
24507         (func_import): Use $makefile_am rather than
24508         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
24509         empty.
24510
24511         * modules/inttypes (Files): Add m4/inttypes-h.m4.
24512
24513 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
24514
24515         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
24516         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
24517         recent change to stdint.m4, since we're now addressing the problem in a
24518         different way.
24519
24520 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
24521
24522         * m4/fcntl_h.m4: New file.
24523
24524 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
24525
24526         * lib/fcntl_.h: New file.
24527         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
24528         the fcntl module.
24529         * lib/dirchownmod.c: Likewise.
24530         * lib/fts.c: Likewise.
24531
24532         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
24533         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
24534         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
24535         just before including <inttypes.h>, to avoid circular inclusion.
24536
24537 2006-08-28  Jim Meyering  <jim@meyering.net>
24538
24539         * doc/visibility.texi: Actually read and correct the grammar of the
24540         sentence affected by yesterday's change.
24541
24542 2006-08-28  Eric Blake  <ebb9@byu.net>
24543
24544         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
24545         needs wrapper.
24546
24547 2006-08-28  Eric Blake  <ebb9@byu.net>
24548
24549         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
24550
24551 2006-08-28  Eric Blake  <ebb9@byu.net>
24552
24553         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
24554
24555 2006-08-28  Bruno Haible  <bruno@clisp.org>
24556
24557         * modules/c-strstr: New file, from GNU gettext.
24558         * MODULES.html.sh (String handling): Add c-strstr.
24559
24560 2006-08-28  Bruno Haible  <bruno@clisp.org>
24561
24562         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
24563         macros.
24564         Reported by Eric Blake.
24565
24566 2006-08-28  Bruno Haible  <bruno@clisp.org>
24567
24568         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
24569         (VASNPRINTF): Return a string of length > INT_MAX without failing.
24570         * lib/vasprintf.c: Include errno.h, limits.h.
24571         (EOVERFLOW): New fallback definition.
24572         (vasprintf): Test here whether the string length is > INT_MAX.
24573         * lib/vsnprintf.c: Include errno.h, limits.h.
24574         (EOVERFLOW): New fallback definition.
24575         (vsnprintf): Fix bug when generated string was too long for the buffer.
24576         Test here whether the string length is > INT_MAX.
24577
24578 2006-08-28  Bruno Haible  <bruno@clisp.org>
24579
24580         * lib/inttypes_.h (SCNX*): Remove definitions.
24581         Reported by Eric Blake.
24582
24583 2006-08-28  Bruno Haible  <bruno@clisp.org>
24584
24585         * lib/c-strstr.h: New file, from GNU gettext.
24586         * lib/c-strstr.c: New file, from GNU gettext.
24587
24588 2006-08-28  Bruno Haible  <bruno@clisp.org>
24589
24590         * gnulib-tool: Reorder some statements.
24591
24592 2006-08-28  Bruno Haible  <bruno@clisp.org>
24593
24594         * gnulib-tool: New option --makefile-name.
24595         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
24596         $makefile_name.
24597         (func_import): Write $makefile_name to the cache file, and read it from
24598         there unless explicitly specified. Use $makefile_name as file name
24599         instead of Makefile.am. Adjust the recommendations accordingly.
24600
24601 2006-08-28  Bruno Haible  <bruno@clisp.org>
24602
24603         * gnulib-tool (func_verify_module): Check against misapplying patch.
24604
24605 2006-08-28  Bruno Haible  <bruno@clisp.org>
24606
24607         * gnulib-tool (func_relativize, func_relconcat): New functions.
24608         Give an error if --local-dir is given with --update.
24609         Remove trailing slashes from $local_gnulib_dir.
24610         (func_import): Store the relativized $local_gnulib_dir in
24611         gnulib-cache.m4, and read it from there if not specified explicitly.
24612
24613 2006-08-28  Bruno Haible  <bruno@clisp.org>
24614
24615         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
24616         is the current directory. Respect also $local_gnulib_dir.
24617
24618 2006-08-28  Bruno Haible  <bruno@clisp.org>
24619             Simon Josefsson  <jas@extundo.com>
24620
24621         BeOS portability.
24622         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
24623
24624 2006-08-27  Jim Meyering  <jim@meyering.net>
24625
24626         * doc/visibility.texi: Remove duplicate word: "pointer".
24627
24628 2006-08-26  Bruno Haible  <bruno@clisp.org>
24629
24630         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
24631         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
24632         (Makefile.am): Create inttypes.h from inttypes_.h.
24633         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
24634
24635         * modules/imaxabs: New file.
24636
24637         * modules/imaxdiv: New file.
24638
24639 2006-08-26  Bruno Haible  <bruno@clisp.org>
24640
24641         * m4/inttypes.m4: New file.
24642         * m4/_inttypes_h.m4: Remove file.
24643         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
24644         PRI_MACROS_BROKEN.
24645         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
24646
24647         * m4/imaxabs.m4: New file.
24648
24649         * m4/imaxdiv.m4: New file.
24650
24651 2006-08-26  Bruno Haible  <bruno@clisp.org>
24652
24653         * lib/inttypes_.h: New file.
24654         * lib/inttypes.h: Remove file.
24655         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
24656
24657         * lib/imaxabs.c: New file.
24658
24659         * lib/imaxdiv.c: New file.
24660
24661 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
24662
24663         New config-h module, so that "make" output needn't be cluttered
24664         by -DHAVE_CONFIG_H.
24665         * MODULES.html.sh (Support for building libraries and executables):
24666         Add config-h.
24667         * modules/config-h: New file.
24668         * gnulib-tool (nl, sed_transform_lib_file): New vars.
24669         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
24670         the config-h module is used.
24671
24672         New configmake module, so that "make" output needn't be cluttered
24673         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
24674         * MODULES.html.sh (Support for building libraries and executables):
24675         Add configmake.
24676         * modules/configmake: New file.
24677
24678 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
24679
24680         * m4/config-h.m4: New file.
24681
24682 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
24683
24684         * config/srclist.txt: Add elisp-comp.
24685
24686 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
24687
24688         * MODULES.html.sh (Support for building libraries and executables):
24689         Add elisp-comp.
24690         * build-aux/elisp-comp: New file.
24691         * modules/elisp-comp: New file.
24692
24693 2006-08-24  Bruno Haible  <bruno@clisp.org>
24694
24695         * gnulib-tool (func_create_testdir): Use non-default values of
24696         sourcebase and m4base.
24697
24698 2006-08-24  Bruno Haible  <bruno@clisp.org>
24699
24700         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
24701         HTML structure.
24702
24703 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
24704
24705         * modules/openat (Depends-on): Add lchown.
24706
24707 2006-08-23  Bruno Haible  <bruno@clisp.org>
24708
24709         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
24710         of gl_LOCK_EARLY instead of gl_LOCK.
24711
24712 2006-08-23  Bruno Haible  <bruno@clisp.org>
24713
24714         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
24715         on OSF/1 to no.
24716         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
24717
24718 2006-08-23  Bruno Haible  <bruno@clisp.org>
24719
24720         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
24721         as unusable.
24722
24723         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
24724         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
24725         (gl_LOCK): New macro.
24726
24727 2006-08-22  Simon Josefsson  <jas@extundo.com>
24728
24729         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
24730         to md5 module.
24731
24732 2006-08-22  Simon Josefsson  <jas@extundo.com>
24733
24734         * MODULES.html.sh: Add "Support for maintaining and release
24735         projects".
24736
24737         * build-aux/gnupload: New file, from coreutils.
24738
24739 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
24740
24741         Avoid the need for AC_LIBSOURCES in m4 macros.
24742         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
24743         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
24744         * modules/check-version (EXTRA_DIST): Add check-version.h.
24745         * modules/crc (EXTRA_DIST): Add crc.h.
24746         * modules/des (EXTRA_DIST): Add des.h.
24747         * modules/gc (EXTRA_DIST): Add gc.h.
24748         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
24749         * modules/getline (EXTRA_DIST): Add getline.h.
24750         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
24751         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
24752         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
24753         * modules/md2 (EXTRA_DIST): Add md2.h.
24754         * modules/md4 (EXTRA_DIST): Add md4.h.
24755         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
24756         * modules/read-file (EXTRA_DIST): Add read-file.h.
24757         * modules/readline (EXTRA_DIST): Add readline.h.
24758         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
24759         rijndael-api-fst.h.
24760
24761 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
24762
24763         * m4/rijndael.m4 (gl_ARCFOUR):
24764         * m4/arctwo.m4 (gl_ARCTWO):
24765         * m4/check-version.m4 (gl_CHECK_VERSION):
24766         * m4/crc.m4 (gl_CRC):
24767         * m4/des.m4 (gl_DES):
24768         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
24769         * m4/gc.m4 (gl_GC):
24770         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
24771         * m4/getline.m4 (gl_FUNC_GETLINE):
24772         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
24773         * m4/hmac-md5.m4 (gl_HMAC_MD5):
24774         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
24775         * m4/md2.m4 (gl_MD2):
24776         * m4/md4.m4 (gl_MD4):
24777         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
24778         * m4/read-file.m4 (gl_FUNC_READ_FILE):
24779         * m4/readline.m4 (gl_FUNC_READLINE):
24780         * m4/rijndael.m4 (gl_RIJNDAEL):
24781         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
24782         to get the necessary .h files and whatnot.
24783
24784 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
24785
24786         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
24787         gnulib rather than the other way around.
24788         * config/srclistvars.sh (COREUTILS): Remove.
24789
24790 2006-08-22  Jim Meyering  <jim@meyering.net>
24791
24792         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
24793
24794         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
24795
24796 2006-08-22  Eric Blake  <ebb9@byu.net>
24797
24798         * modules/regexprops-generic: New file.
24799         * MODULES.html.sh (Support for building documentation): List it.
24800
24801 2006-08-22  Eric Blake  <ebb9@byu.net>
24802
24803         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
24804         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
24805         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
24806         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
24807
24808 2006-08-22  Bruno Haible  <bruno@clisp.org>
24809
24810         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
24811         and lib_LTLIBRARIES like the other lib_* variables.
24812
24813 2006-08-22  Bruno Haible  <bruno@clisp.org>
24814
24815         * build-aux/x-to-1.in: New file, from GNU gettext.
24816
24817 2006-08-22  Bruno Haible  <bruno@clisp.org>
24818
24819         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
24820         <utmpx.h> exists.
24821
24822 2006-08-22  Bruno Haible  <bruno@clisp.org>
24823
24824         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
24825         <utmpx.h> exists.
24826
24827 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
24828
24829         BeOS portability.
24830         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
24831         exist.
24832         Problem reported by Bruno Haible.
24833
24834 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
24835
24836         Avoid the need for AC_LIBSOURCES in m4 macros.
24837         * modules/acl (EXTRA_DIST): Add acl.h.
24838         * modules/argmatch (Files): Add m4/argmatch.m4.
24839         (configure.ac): Add gl_ARGMATCH.
24840         (EXTRA_DIST): Renamed from lib_SOURCES, for
24841         consistency with the other modules.  Remove argmatch.c.
24842         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
24843         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
24844         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
24845         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
24846         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
24847         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
24848         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
24849         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
24850         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
24851         * modules/closeout (EXTRA_DIST): Add closeout.h.
24852         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
24853         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
24854         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
24855         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
24856         dirname.h; remove basename.c and stripslash.c.
24857         * modules/exclude (EXTRA_DIST): Add exclude.h.
24858         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
24859         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
24860         * modules/file-type (EXTRA_DIST): Add file-type.h.
24861         * modules/filemode (EXTRA_DIST): Add filemode.h.
24862         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
24863         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
24864         * modules/fpending (EXTRA_DIST): Add __fpending.h.
24865         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
24866         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
24867         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
24868         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
24869         * modules/getdate (EXTRA_DIST): Add getdate.c.
24870         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
24871         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
24872         * modules/getpass (EXTRA_DIST): Add getpass.h.
24873         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
24874         * modules/group-member (EXTRA_DIST): Add group-member.h.
24875         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
24876         * modules/hash (EXTRA_DIST): Add hash.h.
24877         * modules/human (EXTRA_DIST): Add human.h.
24878         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
24879         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
24880         * modules/lchown (EXTRA_DIST): Add lchown.h.
24881         * modules/long-options (EXTRA_DIST): Add long-options.h.
24882         * modules/lstat (EXTRA_DIST): Add lstat.h.
24883         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
24884         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
24885         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
24886         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
24887         * modules/memxor (EXTRA_DIST): Add memxor.h.
24888         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
24889         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
24890         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
24891         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
24892         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
24893         * modules/physmem (EXTRA_DIST): Add physmem.h.
24894         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
24895         * modules/posixver (EXTRA_DIST): Add posixver.h.
24896         * modules/quote (EXTRA_DIST): Add quote.h.
24897         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
24898         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
24899         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
24900         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
24901         regex_internal.h regexec.c.
24902         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
24903         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
24904         * modules/same (EXTRA_DIST): Add same.h.
24905         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
24906         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
24907         * modules/savedir (EXTRA_DIST): Add savedir.h.
24908         * modules/sha1 (EXTRA_DIST): Add sha1.h.
24909         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
24910         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
24911         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
24912         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
24913         * modules/strdup (EXTRA_DIST): Add strdup.h.
24914         * modules/strftime (EXTRA_DIST): Add strftime.h.
24915         * modules/strndup (EXTRA_DIST): Add strndup.h.
24916         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
24917         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
24918         * modules/time_r (EXTRA_DIST): Add time_r.h.
24919         * modules/timespec (EXTRA_DIST): Add timespec.h.
24920         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
24921         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
24922         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
24923         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
24924         * modules/userspec (EXTRA_DIST): Add userspec.h.
24925         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
24926         * modules/utimens (EXTRA_DIST): Add utimens.h.
24927         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
24928         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
24929         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
24930         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
24931         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
24932         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
24933         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
24934         * modules/yesno (EXTRA_DIST): Add yesno.h.
24935
24936 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
24937
24938         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
24939
24940         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
24941         * m4/dev-ino.m4, same-inode.m4: Remove.
24942
24943         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
24944         * m4/acl.m4 (AC_FUNC_ACL):
24945         * m4/backupfile.m4 (gl_BACKUPFILE):
24946         * m4/c-strtod.m4 (gl_C99_STRTOLD):
24947         * m4/canon-host.m4 (gl_CANON_HOST):
24948         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
24949         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
24950         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
24951         * m4/cloexec.m4 (gl_CLOEXEC):
24952         * m4/close-stream.m4 (gl_CLOSE_STREAM):
24953         * m4/closeout.m4 (gl_CLOSEOUT):
24954         * m4/dirfd.m4 (gl_FUNC_DIRFD):
24955         * m4/dirname.m4 (gl_DIRNAME):
24956         * m4/exclude.m4 (gl_EXCLUDE):
24957         * m4/exitfail.m4 (gl_EXITFAIL):
24958         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
24959         * m4/file-type.m4 (gl_FILE_TYPE):
24960         * m4/filemode.m4 (gl_FILEMODE):
24961         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
24962         * m4/fpending.m4 (gl_FUNC_FPENDING):
24963         * m4/fprintftime.m4 (gl_FPRINTFTIME):
24964         * m4/fts.m4 (gl_FUNC_FTS):
24965         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
24966         * m4/getdate.m4 (gl_GETDATE):
24967         * m4/gethrxtime.m4 (gl_GETHRXTIME):
24968         * m4/getpagesize.m4 (gl_GETPAGESIZE):
24969         * m4/getpass.m4 (gl_FUNC_GETPASS):
24970         * m4/gettime.m4 (gl_GETTIME):
24971         * m4/getugroups.m4 (gl_GETUGROUPS):
24972         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
24973         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
24974         * m4/hard-locale.m4 (gl_HARD_LOCALE):
24975         * m4/hash.m4 (gl_HASH):
24976         * m4/idcache.m4 (gl_IDCACHE):
24977         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
24978         * m4/lchown.m4 (gl_FUNC_LCHOWN):
24979         * m4/long-options.m4 (gl_LONG_OPTIONS):
24980         * m4/lstat.m4 (gl_FUNC_LSTAT):
24981         * m4/md5.m4 (gl_MD5):
24982         * m4/memcasecmp.m4 (gl_MEMCASECMP):
24983         * m4/memcoll.m4 (gl_MEMCOLL):
24984         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
24985         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
24986         * m4/memxor.m4 (gl_MEMXOR):
24987         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
24988         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
24989         * m4/modechange.m4 (gl_MODECHANGE):
24990         * m4/mountlist.m4 (gl_MOUNTLIST):
24991         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
24992         * m4/openat.m4 (gl_FUNC_OPENAT):
24993         * m4/pathmax.m4 (gl_PATHMAX):
24994         * m4/physmem.m4 (gl_PHYSMEM):
24995         * m4/posixtm.m4 (gl_POSIXTM):
24996         * m4/posixver.m4 (gl_POSIXVER):
24997         * m4/quote.m4 (gl_QUOTE):
24998         * m4/quotearg.m4 (gl_QUOTEARG):
24999         * m4/readtokens.m4 (gl_READTOKENS):
25000         * m4/readutmp.m4 (gl_READUTMP):
25001         * m4/regex.m4 (gl_REGEX):
25002         * m4/safe-read.m4 (gl_SAFE_READ):
25003         * m4/safe-write.m4 (gl_SAFE_WRITE):
25004         * m4/same.m4 (gl_SAME):
25005         * m4/save-cwd.m4 (gl_SAVE_CWD):
25006         * m4/savedir.m4 (gl_SAVEDIR):
25007         * m4/settime.m4 (gl_SETTIME):
25008         * m4/sha1.m4 (gl_SHA1):
25009         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
25010         * m4/stat-macros.m4 (gl_STAT_MACROS):
25011         * m4/stat-time.m4 (gl_STAT_TIME):
25012         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
25013         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
25014         * m4/strdup.m4 (gl_FUNC_STRDUP):
25015         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
25016         * m4/strndup.m4 (gl_FUNC_STRNDUP):
25017         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
25018         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
25019         * m4/time_r.m4 (gl_TIME_R):
25020         * m4/timespec.m4 (gl_TIMESPEC):
25021         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
25022         * m4/unlinkdir.m4 (gl_UNLINKDIR):
25023         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
25024         * m4/userspec.m4 (gl_USERSPEC):
25025         * m4/utimecmp.m4 (gl_UTIMECMP):
25026         * m4/utimens.m4 (gl_UTIMENS):
25027         * m4/xalloc.m4 (gl_XALLOC):
25028         * m4/xgetcwd.m4 (gl_XGETCWD):
25029         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
25030         * m4/xreadlink.m4 (gl_XREADLINK):
25031         * m4/xstrtod.m4 (gl_XSTRTOD):
25032         * m4/yesno.m4 (gl_YESNO):
25033         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
25034         to get the necessary .h files and whatnot.
25035
25036 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
25037             Bruno Haible  <bruno@clisp.org>
25038
25039         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
25040         /bin/sh understanding of '!' conditional negation.
25041
25042 2006-08-21  Jim Meyering  <jim@meyering.net>
25043
25044         * modules/openat (Depends-on): Really alphabetize.
25045
25046         * modules/acl (Depends-on): Add error and quote.
25047
25048         * check-module (find_included_lib_files): Add at-func.c to the
25049         ok-to-include-more-than-once white list.
25050
25051         * modules/openat (Depends-on): Add lstat.  Alphabetize.
25052
25053 2006-08-21  Bruno Haible  <bruno@clisp.org>
25054
25055         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
25056         Emit a pkgdata_DATA variable only if some snippets add contents to it.
25057         Reported by Martin Lambers <marlam@marlam.de>.
25058
25059 2006-08-21  Bruno Haible  <bruno@clisp.org>
25060
25061         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
25062         specify an installation location, don't emit a noinst_LIBRARIES or
25063         noinst_LTLIBRARIES assignment.
25064
25065 2006-08-21  Bruno Haible  <bruno@clisp.org>
25066
25067         BeOS portability.
25068         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
25069         BeOS has mbrtowc() but no <wctype.h>.
25070
25071 2006-08-21  Bruno Haible  <bruno@clisp.org>
25072
25073         BeOS portability.
25074         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
25075         exist.
25076
25077 2006-08-21  Bruno Haible  <bruno@clisp.org>
25078
25079         BeOS portability.
25080         * lib/mbchar.h: Include <wctype.h> only if it exists.
25081
25082 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
25083
25084         Remove files that are no longer needed by their respective modules.
25085         * m4/obstack.m4: Remove.
25086         * m4/strerror_r.m4: Remove.
25087         * m4/uint32_t.m4: Remove.
25088         * m4/uintptr_t.m4: Remove.
25089         * m4/ullong_max.m4: Remove.
25090         * m4/xstrtoimax.m4: Remove.
25091         * m4/xstrtoumax.m4: Remove.
25092
25093         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
25094         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
25095         dependencies now capture this.
25096
25097         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
25098         Do not use AC_LIBSOURCES, since gnulib modules now do this.
25099         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
25100         * m4/human.m4 (gl_HUMAN): Likewise.
25101         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
25102         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
25103
25104         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
25105
25106         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
25107         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
25108         stdint.
25109         * m4/human.m4 (gl_HUMAN): Likewise.
25110         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
25111         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
25112         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
25113         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
25114         * m4/xstrtol (gl_XSTRTOL): Likewise.
25115
25116         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
25117         AC_TYPE_LONG_LONG_INT.
25118         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
25119         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
25120         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
25121         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
25122
25123         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
25124         on stdbool.
25125
25126         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
25127         (gl_PREREQ_XSTRTOUL): Remove.
25128
25129         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
25130
25131         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
25132         mode.
25133
25134 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
25135
25136         Add and change modules to make it easier for coreutils to use
25137         gnulib-tool.
25138         * modules/backupfile (Files): Remove m4/d-ino.m4.
25139         (Depends-on): Add d-ino.
25140         * modules/cycle-check (Depends-on): Add stdint.
25141         (lib_SOURCES): Add cycle-check.h.
25142         * modules/d-ino: New module.
25143         * modules/d-type: New module.
25144         * modules/error (Files): Remove m4/strerror_r.m4.
25145         * modules/filemode (Files): Add m4/st_dm_mode.m4.
25146         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
25147         m4/inttypes_h.m4, m4/uintmax_t.m4.
25148         (Depends-on): Add stdint.
25149         (lib_SOURCES): Add fsusage.h.
25150         * modules/getcwd (Files): Remove d-ino.m4.
25151         (Depends-on): Add d-ino.
25152         * modules/getndelim2 (Depends-on): Add stdint.
25153         * modules/glob (Files): Remove m4/d-type.m4.
25154         (Depends-on): Add d-type.
25155         * modules/host-os: New module.
25156         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
25157         m4/inttypes_h.m4, m4/uintmax_t.m4.
25158         * Depends-on: Add stdint.
25159         (lib_SOURCES): Add human.h.
25160         * modules/inttostr (Files): Remove m4/intmax_t.m4,
25161         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
25162         m4/uintmax_t.m4, m4/ulonglong.m4.
25163         (Depends-on): Add stdint.
25164         (EXTRA_DIST): Add inttostr.h.
25165         * modules/lchmod: New module.
25166         * modules/link-follow: New module.
25167         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
25168         (Depends-on): Add lchmod.
25169         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
25170         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
25171         (Depends-on): Add stdint.
25172         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
25173         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
25174         (Depends-on): Add stdint.
25175         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
25176         * modules/perl: New module.
25177         * modules/regex (Depends-on): Add stdint.
25178         * modules/rmdir-errno: New module.
25179         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
25180         m4/intmax_t.m4.
25181         (Depends-on): Add stdint.
25182         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
25183         m4/uintmax_t.m4.
25184         (Depends-on): Add stdint.
25185         * modules/unlink-busy: New module.
25186         * modules/utimecmp (Depends-on): Add stdint.
25187         * modules/uptime: New module.
25188         * modules/winsz-ioctl: New module.
25189         * modules/winsz-termios: New module.
25190         * modules/xnanosleep (Depends-on): Add nanosleep.
25191         * modules/ullong_max: Remove.
25192         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
25193         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
25194         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
25195         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
25196         (Depends-on): Add inttypes.
25197         (lib_SOURCES): Add xstrtol.h.
25198         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
25199         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
25200         * MODULES.html.sh: Move 'assert' into the assert section.
25201         Move 'dummy' into the linking section.
25202         Remove ullong_max.
25203         Add section for compatibility checks for POSIX:2001 functions,
25204         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
25205         winsz-ioctl, and winsz-termios into it.
25206         Add lchmod.
25207         Add top-level Misc section and put host-os, perl, and uptime
25208         into it.
25209
25210 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
25211
25212         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
25213         now assume the stdint module.  Do not include inttypes.h.
25214         * lib/fsusage.h: Likewise.
25215         * lib/getndelim2.c: Likewise.
25216         * lib/human.h: Likewise.
25217         * lib/inttostr.h: Likewise.
25218         * lib/obstack.c: Likewise.
25219         * lib/regex_internal.h: Likewise.
25220         * lib/tempname.c: Likewise.
25221         * lib/utimecmp.c: Likewise.
25222         * lib/xstrtol.h: Likewise.
25223
25224         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
25225
25226         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
25227         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
25228         * lib/xtime.h: Likewise.
25229
25230 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
25231
25232         * modules/openat (Files): Add lib/fchmodat.c.
25233         Fixes problem reported by Jay Youngman.
25234
25235 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
25236
25237         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
25238         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
25239
25240 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
25241             Bruno Haible  <bruno@clisp.org>
25242
25243         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
25244         and is a script that invokes bison. Tighten the code. Add comments.
25245
25246 2006-08-18  Jim Meyering  <jim@meyering.net>
25247
25248         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
25249         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
25250         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
25251         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
25252
25253 2006-08-18  Bruno Haible  <bruno@clisp.org>
25254
25255         * modules/bison-i18n: New file.
25256         * MODULES.html.sh (Internationalization functions): Add it.
25257
25258 2006-08-18  Bruno Haible  <bruno@clisp.org>
25259
25260         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
25261         sys/statvfs.h. When getmntinfo was found, check its declaration and
25262         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
25263
25264 2006-08-18  Bruno Haible  <bruno@clisp.org>
25265
25266         * m4/bison-i18n.m4: New file, from bison.
25267
25268 2006-08-18  Bruno Haible  <bruno@clisp.org>
25269
25270         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
25271         (ME_DUMMY): Treat "kernfs" as a dummy.
25272         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
25273
25274 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
25275
25276         Update from coreutils.
25277
25278         2006-08-15  Jim Meyering  <jim@meyering.net>
25279
25280         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
25281
25282         2006-01-17  Jim Meyering  <jim@meyering.net>
25283
25284         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
25285
25286         2006-01-11  Jim Meyering  <jim@meyering.net>
25287
25288         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
25289         Check for the lchmod function.
25290
25291 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
25292
25293         Update from coreutils.
25294
25295         * lib/__fpending.h: Add copyright notice.
25296         * lib/fprintftime.h: Likewise.
25297         * lib/savedir.c: Use (C) in copyright notice.
25298         * lib/savedir.h: Likewise.
25299
25300         2006-08-15  Jim Meyering  <jim@meyering.net>
25301
25302         * lib/at-func.c: New file, with the logic of all emulated at-functions.
25303         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
25304         in support of the EXPECTED_ERRNO macro.
25305         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
25306         definitions.  Instead, define the appropriate symbols and include
25307         "at-func.c".
25308         * lib/mkdirat.c (mkdirat): Likewise.
25309         * lib/fchmodat.c (fchmodat): Likewise.
25310         (ENOSYS): Remove definition.
25311         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
25312         it.  Don't include "unistd--.h" -- it wasn't ever used.
25313
25314         2006-01-17  Jim Meyering  <jim@meyering.net>
25315
25316         Rewrite fts.c not to change the current working directory,
25317         by using openat, fstatat, fdopendir, etc..
25318
25319         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
25320         (HAVE_OPENAT_SUPPORT): Define.
25321         [_LIBC] (fchdir): Don't undef or define; no longer used.
25322         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
25323         Now, this `function' always succeeds, and consumes its file descriptor
25324         parameter -- so callers must not close such FDs.  Update callers.
25325         (diropen_fd, opendirat, cwd_advance_fd): New functions.
25326         (diropen): Add parameter, SP.  Adjust all callers.
25327         Implement using diropen_fd, rather than open.
25328         (fts_open): Initialize new member, fts_cwd_fd.
25329         Remove fts_rft-setting code.
25330         (fts_close): Close fts_cwd_fd, if necessary.
25331         (__opendir2): Define in terms of opendir or opendirat,
25332         depending on whether the FST_NOCHDIR flag is set.
25333         (fts_build): Since fts_safe_changedir consumes its FD, and since
25334         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
25335         and close the dup'd file descriptor upon failure.
25336         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
25337         (fts_safe_changedir): Tweak semantics to reflect that this function
25338         now calls cwd_advance_fd and hence consumes its FD argument.
25339         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
25340         [struct FTS] (fts_rft): Remove now-unused member.
25341         [struct FTS] (fts_cycle.state): Improve comment.
25342
25343         * lib/openat.c (openat_needs_fchdir): New function.
25344         * lib/openat.h (openat_needs_fchdir): Declare it.
25345
25346 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
25347
25348         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
25349         Problem and fix reported by Pádraig Brady in
25350         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
25351
25352 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
25353
25354         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
25355
25356 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
25357
25358         * lib/memcoll.c (memcoll): Optimize for the common case where the
25359         arguments are bytewise equal.
25360
25361 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
25362
25363         * doc/regexprops-generic.texi: Add a copyright notice.
25364
25365 2006-08-15  Bruno Haible  <bruno@clisp.org>
25366
25367         * modules/tmpdir (License): Change to LGPL.
25368
25369 2006-08-15  Bruno Haible  <bruno@clisp.org>
25370
25371         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
25372         module.
25373
25374 2006-08-14  Simon Josefsson  <jas@extundo.com>
25375
25376         * config/srclist.txt: Add gnupload.
25377
25378 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
25379
25380         Change copyright notice from LGPL 2 to GPL 2, since that's the
25381         standard form used in the gnulib repository.
25382         * tests/test-lock.c: Likewise.
25383         * tests/test-stdint.c: Likewise.
25384         * tests/test-tls.c: Likewise.
25385
25386         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
25387         prelude-manager.  User shorter URLs for GNU projects, without '?'.
25388         Add copyright notice.
25389
25390         * check-module: Add copyright notice.  Output a copyright
25391         notice if "--version" is specified.
25392         * modules/COPYING: New file.
25393         * tests/test-getaddrinfo.c: Add copyright notice.
25394         * tests/test-verify.c: Likewise.
25395
25396 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
25397
25398         Change copyright notice from LGPL 2 to GPL 2, since that's the
25399         standard form used in the gnulib repository.
25400         * lib/lock.c: LGPL -> GPL.
25401         * lib/lock.h: Likewise.
25402         * lib/strnlen1.c: Likewise.
25403         * lib/strnlen1.h: Likewise.
25404         * lib/tls.c: Likewise.
25405         * lib/tls.h: Likewise.
25406         * lib/tmpdir.c: Likewise.
25407
25408         * lib/TODO: Remove; this belongs only in coreutils.
25409
25410 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
25411
25412         Add copyright notices to long-enough files that lack them, since
25413         otherwise the files aren't clearly free.  Use the same notice that
25414         getdate.texi already uses.
25415         * doc/alloca-opt.texi: Add copyright notice.
25416         * doc/alloca.texi: Likewise.
25417         * doc/ctime.texi: Likewise.
25418         * doc/functions.texi: Likewise.
25419         * doc/gcd.texi: Likewise.
25420         * doc/gnulib-tool.texi: Likewise.
25421         * doc/inet_ntoa.texi: Likewise.
25422         * doc/visibility.texi: Likewise.
25423
25424         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
25425         * doc/quote.texi: Add copyright notice.
25426
25427         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
25428         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
25429         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
25430         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
25431         is now obsolete, and give a pointer to the Sun list.
25432         Add copyright notice.
25433
25434 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
25435
25436         * config/srclistvars.sh: Add copyright notice.
25437
25438 2006-08-14  Eric Blake  <ebb9@byu.net>
25439
25440         Import the following change from libc:
25441
25442         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
25443
25444         Upstream bug 2997.
25445         * lib/misc/error.c: Add space between program name and message if file
25446         name is missing.
25447
25448 2006-08-12  Karl Berry  <karl@gnu.org>
25449
25450         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
25451         remove, these originate in gnulib now.
25452
25453 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25454
25455         * doc/Makefile (standards.info standards.html standards.dvi):
25456         Also depend on make-stds.texi.
25457
25458 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
25459
25460         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
25461         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
25462
25463         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
25464         in wchar_t.  Problem reported by Eric Blake.
25465
25466         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
25467         LEN is smaller than SIZE.  Suggested by Bruno Haible.
25468         Also, help the compiler to keep LEN in a register.
25469
25470 2006-08-11  Eric Blake  <ebb9@byu.net>
25471
25472         * users.txt: Sort.  Add tar.
25473
25474 2006-08-11  Bruno Haible  <bruno@clisp.org>
25475
25476         * users.txt: New file.
25477
25478 2006-08-11  Bruno Haible  <bruno@clisp.org>
25479
25480         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
25481         before <wchar.h>. Needed for OSF/1 and BSD/OS.
25482
25483 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
25484
25485         * modules/snprintf (Depends-on): Remove minmax.
25486         (Maintainer): Add self and Bruno.
25487
25488 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
25489
25490         * lib/.cppi-disable: Add snprintf.h, socket_.h.
25491         * lib/snprintf.c: Include <errno.h> and <limits.h>.
25492         (EOVERFLOW): Define if the system does not.
25493         Do not include "minmax.h"; it wasn't used.
25494         (snprintf): Don't assume size_t promotes to an unsigned type.
25495         Fix bug when generated string was too long for the buffer: the
25496         buffer's contents are supposed to be the initial prefix of the
25497         output.  Don't assume vasnprintf returns EOVERFLOW if the size
25498         exceeds INT_MAX; do the check ourselves.
25499
25500         Import the following changes from libc:
25501
25502         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
25503
25504         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
25505         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
25506         set wc to the byte which couldn't be converted.
25507         (re_string_reconstruct): Don't clear valid_raw_len before calling
25508         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
25509         tip_context using re_string_context_at.
25510
25511         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
25512
25513         * lib/posix/regex.h: g++ still cannot handled [restrict].
25514
25515         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
25516
25517         * lib/posix/regex.h: Remove special handling for VMS.
25518
25519 2006-08-10  Jim Meyering  <jim@meyering.net>
25520
25521         * modules/same-inode: New module.
25522         * modules/dev-ino: New module.
25523         * modules/cycle-check: Depend on these modules, rather than simply
25524         including their .h files.
25525         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
25526         required via m4/cycle-check.m4.
25527         * modules/same: Depend on new same-inode module, rather than
25528         including same-inode.h.
25529         * modules/chdir-safer: New file.
25530
25531         * modules/chown (Depends-on): Add stat-macros.
25532
25533 2006-08-10  Jim Meyering  <jim@meyering.net>
25534
25535         * m4/cycle-check.m4: New file.
25536         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
25537         * m4/dev-ino.m4, m4/same-inode.m4: New files.
25538
25539 2006-08-10  Eric Blake  <ebb9@byu.net>
25540
25541         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
25542         in from original proposal.
25543
25544 2006-08-10  Eric Blake  <ebb9@byu.net>
25545         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
25546
25547         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
25548         namespace.
25549
25550 2006-08-10  Bruno Haible  <bruno@clisp.org>
25551
25552         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
25553         as well.
25554
25555 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
25556
25557         Sync from coreutils.
25558
25559         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
25560
25561         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
25562         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
25563
25564 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
25565
25566         * modules/restrict: Remove; no longer needed now that we assume
25567         Autoconf 2.59 or later.
25568         * MODULES.html.sh: Remove 'restrict'.
25569         * modules/argp (Depends-on): Remove 'restrict'.
25570         * modules/base64 (Depends-on): Likewise.
25571         * modules/gc (Depends-on): Likewise.
25572         * modules/getaddrinfo (Depends-on): Likewise.
25573         * modules/glob (Depends-on): Likewise.
25574         * modules/inet_ntop (Depends-on): Likewise.
25575         * modules/inet_pton (Depends-on): Likewise.
25576         * modules/memxor (Depends-on): Likewise.
25577         * modules/regex (Depends-on): Likewise.
25578         * modules/strtok_r (Depends-on): Likewise.
25579         * modules/time_r (Depends-on): Likewise.
25580
25581 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
25582
25583         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
25584         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
25585         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
25586         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
25587         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
25588         * m4/memxor.m4 (gl_MEMXOR): Likewise.
25589         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
25590         gl_C_RESTRICT replaced by AC_C_RESTRICT.
25591
25592         Merge from coreutils.
25593         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
25594         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
25595         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
25596         * m4/time_r.m4 (gl_TIME_R): Likewise.
25597
25598 2006-08-09  Karl Berry  <karl@gnu.org>
25599
25600         * config/srclist.txt: no more gettext-tools, per Bruno.
25601
25602 2006-08-08  Eric Blake  <ebb9@byu.net>
25603
25604         * modules/verror: New module.
25605         * MODULES.html.sh: Document it.
25606
25607 2006-08-08  Eric Blake  <ebb9@byu.net>
25608
25609         * lib/verror.h, lib/verror.c: New files.
25610
25611 2006-08-08  Eric Blake  <ebb9@byu.net>
25612
25613         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
25614         verror_at_line output complies with GNU Coding Standards even when
25615         file is NULL.
25616
25617 2006-08-07  Bruno Haible  <bruno@clisp.org>
25618
25619         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
25620         versions of AIX.
25621         Reported by Ralf Wildenhues.
25622
25623 2006-08-07  Bruno Haible  <bruno@clisp.org>
25624
25625         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
25626         in an AC_DEFUN. Needed so that the autoconf snippets can use
25627         AC_REQUIRE.
25628
25629 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25630
25631         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
25632         Initialize pkgdata_DATA.
25633         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
25634         overriding it.
25635
25636 2006-08-06  Eric Blake  <ebb9@byu.net>
25637
25638         * lib/error.h: Fold in some upstream changes from glibc.
25639         * lib/error.c: Likewise.
25640
25641 2006-08-04  Bruno Haible  <bruno@clisp.org>
25642
25643         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
25644         Make the mostlyclean-local rule depend on mostlyclean-generic.
25645         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
25646
25647 2006-07-31  Bruno Haible  <bruno@clisp.org>
25648
25649         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
25650         <stdlib.h>, <string.h>.
25651
25652 2006-07-30  Bruno Haible  <bruno@clisp.org>
25653
25654         * modules/readlink (License): Change to LGPL.
25655
25656 2006-07-30  Bruno Haible  <bruno@clisp.org>
25657
25658         * modules/javaversion (Makefile.am): Distribute javaversion.java and
25659         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
25660         set PKGDATADIR to point to it.
25661
25662 2006-07-30  Bruno Haible  <bruno@clisp.org>
25663
25664         * modules/csharpexec (configure.ac): Comment out macro invocation.
25665         * modules/javaexec (configure.ac): Likewise.
25666         * modules/javacomp-script (configure.ac): Likewise.
25667
25668         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
25669
25670 2006-07-30  Bruno Haible  <bruno@clisp.org>
25671
25672         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
25673         linked-list.
25674
25675 2006-07-30  Bruno Haible  <bruno@clisp.org>
25676
25677         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
25678
25679 2006-07-30  Bruno Haible  <bruno@clisp.org>
25680
25681         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
25682         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
25683         get removed.
25684
25685 2006-07-29  Bruno Haible  <bruno@clisp.org>
25686
25687         Make it possible for gnulib-tool to work with locally modified or
25688         augmented gnulib repositories.
25689         * gnulib-tool (func_usage): Document --local-dir option.
25690         (local_gnulib_dir): New variable.
25691         Handle --local-dir option.
25692         (func_lookup_file): New function.
25693         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
25694         (func_get_description, func_get_filelist, func_get_description,
25695         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
25696         func_get_automake_snippet, func_get_include_directive,
25697         func_get_license, func_get_maintainer): Use func_lookup_file.
25698         (func_import, func_create_testdir): Use func_lookup_file.
25699
25700 2006-07-29  Bruno Haible  <bruno@clisp.org>
25701
25702         * modules/setenv (Depends-on): Add unistd.
25703
25704 2006-07-29  Bruno Haible  <bruno@clisp.org>
25705
25706         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
25707
25708 2006-07-29  Bruno Haible  <bruno@clisp.org>
25709
25710         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
25711
25712 2006-07-29  Bruno Haible  <bruno@clisp.org>
25713
25714         * gnulib-tool (import, update): If there is no Makefile.am, look at
25715         aclocal.m4, instead of bailing out.
25716
25717 2006-07-29  Bruno Haible  <bruno@clisp.org>
25718
25719         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
25720         Categorize the options by when they are useful.
25721
25722 2006-07-29  Bruno Haible  <bruno@clisp.org>
25723
25724         * gnulib-tool (func_usage): Document option --no-libtool.
25725         Handle option --no-libtool.
25726         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
25727         for changed semantics of $libtool variable.
25728         (func_import): Likewise. If libtool is not used, show this through
25729         an option --no-libtool.
25730         (func_create_testdir): Update.
25731
25732 2006-07-29  Bruno Haible  <bruno@clisp.org>
25733
25734         * gnulib-tool (func_import): Extend error message about missing
25735         --doc-base.
25736
25737 2006-07-29  Bruno Haible  <bruno@clisp.org>
25738
25739         * gnulib-tool (func_import): Don't create the $docbase directory if
25740         there is no file to store there.
25741
25742 2006-07-29  Bruno Haible  <bruno@clisp.org>
25743
25744         * gnulib-tool (autoconf_minversion): If a --dir option is given and
25745         relevant, look for configure.ac there, not in the current directory.
25746         Also use a simple search for AC_PREREQ, not "autoconf --trace".
25747
25748 2006-07-29  Bruno Haible  <bruno@clisp.org>
25749
25750         * gnulib-tool (SORT): New variable.
25751         (func_usage): Undocument --assume-autoconf option.
25752         Remove --assume-autoconf option handling.
25753         (autoconf_minversion): Determine from the contents of configure.ac.
25754         (func_import): Remove autoconf_minversion handling.
25755         Suggested by Eric Blake.
25756
25757 2006-07-29  Bruno Haible  <bruno@clisp.org>
25758
25759         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
25760
25761 2006-07-29  Bruno Haible  <bruno@clisp.org>
25762
25763         * config/srclist.txt (*setenv.[ch]): Remove rules.
25764
25765 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
25766
25767         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
25768
25769 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
25770
25771         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
25772         arpa/inet.h.
25773
25774 2006-07-28  Simon Josefsson  <jas@extundo.com>
25775
25776         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
25777         * modules/inet_pton (Depends-on): Likewise.
25778
25779 2006-07-28  Simon Josefsson  <jas@extundo.com>
25780
25781         * m4/netinet_in_h.m4: New file.
25782
25783 2006-07-28  Simon Josefsson  <jas@extundo.com>
25784
25785         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
25786         #include's.
25787
25788 2006-07-28  Simon Josefsson  <jas@extundo.com>
25789
25790         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
25791         #include's.
25792
25793 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
25794
25795         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
25796         setgid on directories only if they set these bits.
25797         * lib/modechange.h: Remove obsolete comment about masks.
25798
25799 2006-07-28  Eric Blake  <ebb9@byu.net>
25800
25801         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
25802         macro expansion.
25803
25804 2006-07-28  Bruno Haible  <bruno@clisp.org>
25805
25806         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
25807
25808 2006-07-28  Bruno Haible  <bruno@clisp.org>
25809
25810         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
25811
25812 2006-07-28  Bruno Haible  <bruno@clisp.org>
25813
25814         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
25815         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
25816         Define fallbacks.
25817         Avoids link error on FreeBSD 4.x.
25818         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
25819
25820         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
25821         encoding.
25822         * lib/mbswidth.c (iswcntrl): Likewise.
25823
25824 2006-07-27  Bruno Haible  <bruno@clisp.org>
25825
25826         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
25827         test.
25828
25829 2006-07-27  Bruno Haible  <bruno@clisp.org>
25830
25831         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
25832         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
25833         defined.
25834
25835 2006-07-26  Eric Blake  <ebb9@byu.net>
25836
25837         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
25838
25839 2006-07-26  Eric Blake  <ebb9@byu.net>
25840
25841         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
25842         like mingw that lack mkstemp.
25843         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
25844         avoid compilation warning on mingw.
25845
25846 2006-07-26  Bruno Haible  <bruno@clisp.org>
25847
25848         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
25849         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
25850         INT_FAST*_MIN, INTPTR_MIN.
25851
25852 2006-07-25  Bruno Haible  <bruno@clisp.org>
25853
25854         * modules/version-etc (Depends-on): Add stdarg.
25855
25856 2006-07-25  Bruno Haible  <bruno@clisp.org>
25857
25858         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
25859         complex commands.
25860
25861 2006-07-25  Bruno Haible  <bruno@clisp.org>
25862
25863         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
25864         defined in <stdarg.h> or config.h.
25865
25866 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
25867
25868         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
25869         (gl_STDIO_SAFER): Remove.
25870
25871 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
25872
25873         * MODULES.html.sh (File stream based Input/Output):
25874         Add fopen-safer, tmpfile-safer; remove stdio-safer.
25875         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
25876         * modules/fopen-safer, modules/tmpfile-safer: New files.
25877         * modules/stdio-safer: Remove.
25878
25879 2006-07-24  Bruno Haible  <bruno@clisp.org>
25880
25881         * modules/tmpdir: New file.
25882         * MODULES.html.sh (File system functions): Add it.
25883
25884 2006-07-24  Bruno Haible  <bruno@clisp.org>
25885
25886         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
25887         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
25888
25889 2006-07-24  Bruno Haible  <bruno@clisp.org>
25890
25891         * modules/clean-temp: New file.
25892
25893 2006-07-24  Bruno Haible  <bruno@clisp.org>
25894
25895         * m4/tmpdir.m4: New file, from GNU gettext.
25896
25897 2006-07-24  Bruno Haible  <bruno@clisp.org>
25898
25899         * lib/tmpdir.h: New file, from GNU gettext.
25900         * lib/tmpdir.c: New file, from GNU gettext.
25901
25902 2006-07-24  Bruno Haible  <bruno@clisp.org>
25903
25904         * lib/clean-temp.h: New file, from GNU gettext.
25905         * lib/clean-temp.c: New file, from GNU gettext.
25906
25907 2006-07-23  Eric Blake  <ebb9@byu.net>
25908
25909         * modules/stdio-safer (Files): Add tmpfile-safer.c.
25910         (Depends-on): Add binary-io.
25911
25912 2006-07-23  Eric Blake  <ebb9@byu.net>
25913
25914         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
25915
25916 2006-07-23  Eric Blake  <ebb9@byu.net>
25917
25918         * lib/tmpfile-safer.c: New file.
25919         * lib/stdio-safer.h (fopen_safer): Add prototype.
25920         * lib/stdio--.h (tmpfile): Make safer.
25921
25922 2006-07-23  Bruno Haible  <bruno@clisp.org>
25923
25924         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
25925         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
25926         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
25927         gl_linked_remove_at): Use it.
25928
25929 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
25930         and Simon Josefsson <jas@extundo.com>
25931
25932         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
25933
25934         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
25935
25936 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
25937
25938         * modules/close-stream: New file.
25939         * modules/closeout (Description): Make it clear that it exits
25940         with a diagnostic on error.
25941         (Depends-on): Add close-stream.  Remove fpending, stdbool.
25942         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
25943
25944 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
25945
25946         * m4/close-stream.m4: New file.
25947
25948 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
25949
25950         * lib/close-stream.c, lib/close-stream.h: New files.
25951
25952 2006-07-22  Bruno Haible  <bruno@clisp.org>
25953
25954         Merge from GNU gettext 0.15.
25955
25956         2006-05-01  Bruno Haible  <bruno@clisp.org>
25957
25958                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
25959
25960         2006-07-22  Bruno Haible  <bruno@clisp.org>
25961
25962                 * modules/javaversion: New file.
25963                 * MODULES.html.sh (Java): Add javaversion.
25964
25965         2006-03-12  Bruno Haible  <bruno@clisp.org>
25966
25967                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
25968
25969         2005-12-04  Bruno Haible  <bruno@clisp.org>
25970
25971                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
25972                 (untested).
25973
25974         2006-06-21  Bruno Haible  <bruno@clisp.org>
25975
25976                 Avoid warnings from recent versions of mcs.
25977                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
25978                 -o, -L, -r any more. Use options documented since mcs-1.0
25979                 instead. Similarly for -g.
25980
25981         2005-12-04  Bruno Haible  <bruno@clisp.org>
25982
25983                 * build-aux/csharpcomp.sh.in: Suffix for resources is
25984                 .resources, not .resource.
25985
25986         2005-07-09  Bruno Haible  <bruno@clisp.org>
25987
25988                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
25989                 add a .dll suffix.
25990                 Reported by Mark Junker <mjscod@gmx.de>.
25991
25992         2006-07-22  Bruno Haible  <bruno@clisp.org>
25993
25994                 * modules/gettext: Upgrade to gettext-0.15.
25995                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
25996                 m4/visibility.m4.
25997                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
25998
25999 2006-07-22  Bruno Haible  <bruno@clisp.org>
26000
26001         Merge from GNU gettext 0.15.
26002
26003         2006-03-25  Bruno Haible  <bruno@clisp.org>
26004
26005                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
26006
26007         2006-07-21  Bruno Haible  <bruno@clisp.org>
26008
26009                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
26010                 "1.1".
26011
26012         2006-05-09  Bruno Haible  <bruno@clisp.org>
26013
26014                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
26015                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
26016                 for the conftestver execution.
26017
26018         2006-05-01  Bruno Haible  <bruno@clisp.org>
26019
26020                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
26021                 optional target-version argument. Verify that the compiler
26022                 groks source of the specified source-version, or add -source
26023                 option as necessary. Verify that the compiler produces
26024                 bytecode in the specified target-version, or add -target and
26025                 -source options as necessary. Make the result of the test
26026                 available as variable CONF_JAVAC. Also log error output in
26027                 config.log.
26028
26029         2006-03-11  Bruno Haible  <bruno@clisp.org>
26030
26031                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
26032
26033         2006-05-09  Bruno Haible  <bruno@clisp.org>
26034
26035                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
26036                 CLASSPATH_SEPARATOR to a semicolon.
26037
26038         2006-03-12  Bruno Haible  <bruno@clisp.org>
26039
26040                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
26041                 available as variable CONF_JAVA, for subsequent autoconf
26042                 tests. Also log error output in config.log.
26043
26044         2006-07-19  Bruno Haible  <bruno@clisp.org>
26045
26046                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
26047                 that getline works on glibc2 systems. Needed to avoid trouble
26048                 in relocatable.c.
26049                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
26050
26051         2005-12-04  Bruno Haible  <bruno@clisp.org>
26052
26053                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
26054                 launcher (untested).
26055
26056         2005-12-04  Bruno Haible  <bruno@clisp.org>
26057
26058                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
26059
26060         2006-07-22  Bruno Haible  <bruno@clisp.org>
26061
26062                 * gettext.m4: Update from GNU gettext-0.15.
26063                 * nls.m4: Likewise.
26064                 * po.m4: Likewise.
26065                 * inttypes-pri.m4: Likewise.
26066                 * inttypes-h.m4: Renamed from inttypes.m4.
26067                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
26068
26069 2006-07-22  Bruno Haible  <bruno@clisp.org>
26070
26071         Merge from GNU gettext 0.15.
26072
26073         2005-07-05  Bruno Haible  <bruno@clisp.org>
26074
26075                 * printf-args.c (printf_fetchargs): Work around broken
26076                 definition of wint_t on mingw.
26077
26078         2005-02-12  Bruno Haible  <bruno@clisp.org>
26079
26080                 * xallocsa.h: Add extern "C" for C++.
26081
26082         2006-05-17  Bruno Haible  <bruno@clisp.org>
26083
26084                 Cygwin portability.
26085                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
26086
26087         2006-04-30  Bruno Haible  <bruno@clisp.org>
26088
26089                 * progreloc.c: Include <mach-o/dyld.h> if available.
26090                 (find_executable): Use _NSGetExecutablePath when possible.
26091
26092         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
26093
26094                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
26095                 function.
26096
26097         2005-12-29  Bruno Haible  <bruno@clisp.org>
26098
26099                 * progreloc.c (set_program_name_and_installdir): Fix
26100                 compilation error.
26101
26102         2005-12-04  Bruno Haible  <bruno@clisp.org>
26103
26104                 Cygwin portability.
26105                 * progreloc.c: Include <windows.h> also on Cygwin.
26106                 (find_executable): Add support for Cygwin.
26107                 (set_program_name_and_installdir): Handle also platforms with
26108                 nonempty EXEEXT.
26109
26110         2006-07-11  Bruno Haible  <bruno@clisp.org>
26111
26112                 * javacomp.c: Fix a comment.
26113                 Reported by Jim Meyering.
26114
26115         2006-04-30  Bruno Haible  <bruno@clisp.org>
26116
26117                 * javacomp.h (compile_java_class): Add source_version,
26118                 target_version arguments.
26119                 * javacomp.c: Rewritten to choose only a compiler that
26120                 respects the specified source_version and target_version.
26121
26122         2006-06-27  Bruno Haible  <bruno@clisp.org>
26123
26124                 Assume correct S_ISDIR macro.
26125                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
26126
26127         2006-07-22  Bruno Haible  <bruno@clisp.org>
26128
26129                 * javaversion.h: New file, from GNU gettext.
26130                 * javaversion.c: New file, from GNU gettext.
26131                 * javaversion.java: New file, from GNU gettext.
26132                 * javaversion.class: New file, from GNU gettext.
26133
26134         2006-05-17  Bruno Haible  <bruno@clisp.org>
26135
26136                 Cygwin portability.
26137                 * javaexec.c (execute_java_class): Test for jview program
26138                 also on Cygwin.
26139
26140         2006-04-09  Bruno Haible  <bruno@clisp.org>
26141
26142                 * fatal-signal.c: Don't include string.h.
26143                 (at_fatal_signal): Use a copying loop instead of memcpy.
26144
26145         2005-12-04  Bruno Haible  <bruno@clisp.org>
26146
26147                 * csharpexec.c: Add support for 'clix' launcher (untested).
26148                 (execute_csharp_using_sscli): New function.
26149                 (execute_csharp_program): Call it.
26150
26151         2006-06-21  Bruno Haible  <bruno@clisp.org>
26152
26153                 Avoid warnings from recent versions of mcs.
26154                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
26155                 -o, -L, -r any more. Use options documented since mcs-1.0
26156                 instead. Similarly for -g.
26157
26158         2005-07-09  Bruno Haible  <bruno@clisp.org>
26159
26160                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
26161                 add a .dll suffix.
26162                 Reported by Mark Junker <mjscod@gmx.de>.
26163
26164         2006-06-17  Bruno Haible  <bruno@clisp.org>
26165
26166                 * config.charset: Update for NetBSD 3.0.
26167
26168         2006-05-17  Bruno Haible  <bruno@clisp.org>
26169
26170                 Cygwin portability.
26171                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
26172
26173         2006-05-16  Bruno Haible  <bruno@clisp.org>
26174
26175                 * localcharset.c [CYGWIN]: Include <windows.h>.
26176                 (get_charset_aliases): For Cygwin, return the same CPxxx
26177                 aliases list as under WIN32.
26178                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
26179                 the environment variables. Fall back to GetACP().
26180
26181         2006-04-05  Bruno Haible  <bruno@clisp.org>
26182
26183                 * config.charset: Update Juan Manuel Guerrero's address.
26184
26185         2005-02-12  Bruno Haible  <bruno@clisp.org>
26186
26187                 * allocsa.h: Add extern "C" for C++.
26188
26189         2005-02-10  Bruno Haible  <bruno@clisp.org>
26190
26191                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
26192                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
26193
26194         2006-07-22  Bruno Haible  <bruno@clisp.org>
26195
26196                 * gettext.h: Update to GNU gettext-0.15.
26197
26198 2006-07-22  Bruno Haible  <bruno@clisp.org>
26199
26200         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
26201         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
26202         lib-prefix.m4, longdouble.m4, ssize_t.m4.
26203
26204 2006-07-21  Eric Blake  <ebb9@byu.net>
26205
26206         * modules/stdlib-safer: New file.
26207         * MODULES.html.sh (File stream based Input/Output): Add
26208         stdlib-safer.
26209
26210 2006-07-21  Eric Blake  <ebb9@byu.net>
26211
26212         * lib/stdlib-safer.h: New file from coreutils, required by
26213         stdlib--.h.
26214
26215 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
26216
26217         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
26218
26219 2006-07-20  Bruno Haible  <bruno@clisp.org>
26220
26221         * gnulib-tool: Recognize new option --assume-autoconf.
26222         (autoconf_minversion): New variable.
26223         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
26224
26225 2006-07-20  Bruno Haible  <bruno@clisp.org>
26226
26227         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
26228
26229 2006-07-19  Derek R. Price  <derek@ximbiot.com>
26230
26231         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
26232         Reindent and repaginate.
26233
26234 2006-07-19  Derek Price  <derek@ximbiot.com>
26235
26236         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
26237         Correct grammar.
26238
26239 2006-07-17  Bruno Haible  <bruno@clisp.org>
26240
26241         * modules/list: New file.
26242         * modules/array-list: New file.
26243         * modules/carray-list, modules/carray-list-tests: New files.
26244         * modules/linked-list, modules/linked-list-tests: New files.
26245         * modules/avltree-list, modules/avltree-list-tests: New files.
26246         * modules/rbtree-list, modules/rbtree-list-tests: New files.
26247         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
26248         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
26249         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
26250         * modules/oset: New file.
26251         * modules/array-oset: New file.
26252         * modules/avltree-oset, modules/avltree-oset-tests: New files.
26253         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
26254         * tests/test-carray_list.c: New file.
26255         * tests/test-linked_list.c: New file.
26256         * tests/test-avltree_list.c: New file.
26257         * tests/test-rbtree_list.c: New file.
26258         * tests/test-linkedhash_list.c: New file.
26259         * tests/test-avltreehash_list.c: New file.
26260         * tests/test-rbtreehash_list.c: New file.
26261         * tests/test-avltree_oset.c: New file.
26262         * tests/test-rbtree_oset.c: New file.
26263         * MODULES.html.sh (Container data structures): New section.
26264
26265 2006-07-17  Bruno Haible  <bruno@clisp.org>
26266
26267         * m4/gl_list.m4: New file.
26268
26269 2006-07-17  Bruno Haible  <bruno@clisp.org>
26270
26271         * lib/gl_list.h: New file.
26272         * lib/gl_list.c: New file.
26273         * lib/gl_array_list.h: New file.
26274         * lib/gl_array_list.c: New file.
26275         * lib/gl_carray_list.h: New file.
26276         * lib/gl_carray_list.c: New file.
26277         * lib/gl_linked_list.h: New file.
26278         * lib/gl_linked_list.c: New file.
26279         * lib/gl_anylinked_list1.h: New file.
26280         * lib/gl_anylinked_list2.h: New file.
26281         * lib/gl_avltree_list.h: New file.
26282         * lib/gl_avltree_list.c: New file.
26283         * lib/gl_anyavltree_list1.h: New file.
26284         * lib/gl_anyavltree_list2.h: New file.
26285         * lib/gl_rbtree_list.h: New file.
26286         * lib/gl_rbtree_list.c: New file.
26287         * lib/gl_anyrbtree_list1.h: New file.
26288         * lib/gl_anyrbtree_list2.h: New file.
26289         * lib/gl_anytree_list1.h: New file.
26290         * lib/gl_anytree_list2.h: New file.
26291         * lib/gl_linkedhash_list.h: New file.
26292         * lib/gl_linkedhash_list.c: New file.
26293         * lib/gl_anyhash_list1.h: New file.
26294         * lib/gl_anyhash_list2.h: New file.
26295         * lib/gl_avltreehash_list.h: New file.
26296         * lib/gl_avltreehash_list.c: New file.
26297         * lib/gl_rbtreehash_list.h: New file.
26298         * lib/gl_rbtreehash_list.c: New file.
26299         * lib/gl_anytreehash_list1.h: New file.
26300         * lib/gl_anytreehash_list2.h: New file.
26301
26302         * lib/gl_oset.h: New file.
26303         * lib/gl_oset.c: New file.
26304         * lib/gl_array_oset.h: New file.
26305         * lib/gl_array_oset.c: New file.
26306         * lib/gl_avltree_oset.h: New file.
26307         * lib/gl_avltree_oset.c: New file.
26308         * lib/gl_rbtree_oset.h: New file.
26309         * lib/gl_rbtree_oset.c: New file.
26310         * lib/gl_anytree_oset.h: New file.
26311
26312 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
26313
26314         * m4/mkancesdirs.m4: New file.
26315         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
26316         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
26317         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
26318         it.
26319
26320 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
26321
26322         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
26323         * lib/mkancesdirs.h: New files.
26324         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
26325         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
26326         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
26327         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
26328         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
26329         callers changed.  Revamp internals significantly, by not
26330         attempting to create directories that are temporarily more
26331         permissive than the final results.  Do not attempt to use
26332         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
26333         This removes some race conditions, fixes some bugs, and simplifies
26334         things.  Use new dirchownmod function to do owner and mode changes.
26335         * lib/mkdir-p.h: Likewise.
26336         * lib/modechange.c (octal_to_mode): New function.
26337         (struct mode_change): New member mentioned.
26338         (make_node_op_equals): New arg mentioned.  All callers changed.
26339         (mode_compile): Keep track of which mode bits the user has explicitly
26340         mentioned.
26341         (mode_adjust): New arg DIR, so that we implement the X op correctly.
26342         New arg PMODE_BITS, to keep track of which mode bits the user
26343         mentioned; it treats S_ISUID and S_ISGID speciall.
26344         All callers changed.
26345         * lib/modechange.h: Likewise.
26346
26347 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
26348
26349         * MODULES.html.sh: Add mkancestors.
26350         * modules/mkancesdirs: New module.
26351         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
26352         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
26353         The chdir-safer and afs files are now orphans; I'll remove them
26354         unless someone speaks up.
26355         Add lib/dirchownmod.c, lib/dirchownmod.h.
26356         (Depends-on): Remove alloca, chown, save-cwd, dirname.
26357         Add lchown, mkancesdirs.
26358         (Maintainer): Add self.
26359
26360 2006-07-15  Karl Berry  <karl@gnu.org>
26361
26362         * gnulib-tool: help message wording/arrangement.
26363
26364 2006-07-14  Simon Josefsson  <jas@extundo.com>
26365
26366         * doc/gnulib.texi (Libtool and Windows): New section.
26367
26368 2006-07-12  Simon Josefsson  <jas@extundo.com>
26369
26370         * modules/gendocs (License): Fix license, approved by Karl.
26371
26372 2006-07-12  Eric Blake  <ebb9@byu.net>
26373
26374         * MODULES.html.sh: Add gendocs.
26375
26376 2006-07-11  Eric Blake  <ebb9@byu.net>
26377
26378         * modules/fdl: New module, to install doc/fdl.texi.
26379         * MODULES.html.sh: Add new section for documentation modules.
26380         * gnulib-tool: Avoid space-tab.
26381         (--doc-base): New option, to manage files from doc.
26382
26383 2006-07-11  Eric Blake  <ebb9@byu.net>
26384
26385         * m4/absolute-header.m4: Fix comments to match recent change.
26386
26387 2006-07-11  Eric Blake  <ebb9@byu.net>
26388
26389         * gnulib-tool: List --doc-base before --tests-base.
26390
26391 2006-07-11  Derek R. Price  <derek@ximbiot.com>
26392
26393         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
26394
26395 2006-07-11  Bruno Haible  <bruno@clisp.org>
26396
26397         * README: Mention where to put documentation.
26398
26399 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26400
26401         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
26402
26403 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
26404
26405         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
26406         to stdint.m4.
26407
26408 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
26409
26410         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
26411         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
26412         "no/such/file/stdint.h" when there is no such file, so that
26413         the resulting C code can be parsed by dodgy compilers.
26414         Problems reported by Bob Proulx.
26415
26416 2006-07-10  Derek R. Price  <derek@ximbiot.com>
26417
26418         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
26419         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
26420         macros into the GNU _D_EXACT_NAMLEN.
26421         * lib/savedir.c:  Likewise.
26422         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
26423
26424 2006-07-10  Derek R. Price  <derek@ximbiot.com>
26425         and Paul Eggert  <eggert@cs.ucla.edu>
26426
26427         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
26428         * m4/savedir.m4:
26429         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
26430         macros into the GNU _D_EXACT_NAMLEN.
26431
26432 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
26433
26434         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
26435         around the absolute name, to work around a problem with the HP-UX
26436         11.23 native C compiler, reported by Bob Proulx.
26437
26438 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
26439
26440         * doc/maintain.texi, make-stds.texi: Sync from
26441         <http://savannah.gnu.org/projects/gnustandards>.
26442
26443 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
26444
26445         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
26446
26447 2006-07-09  Jim Meyering  <jim@meyering.net>
26448
26449         * m4/glob.m4: Remove a doubled word in a comment.
26450
26451 2006-07-09  Jim Meyering  <jim@meyering.net>
26452
26453         * lib/argp-pv.c: Remove a doubled word in a comment.
26454         * lib/check-version.c (check_version): Likewise.
26455         * lib/javacomp.c (compile_java_class): Likewise.
26456
26457 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
26458
26459         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
26460         for the benefit of people using Autoconf 2.60.  If you want to
26461         support older Autoconf versions you can copy m4/onceonly_2_57.m4
26462         (or m4/onceonly.m4, if pre-2.57) manually.
26463
26464 2006-07-08  Jim Meyering  <jim@meyering.net>
26465
26466         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
26467         comment.
26468         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
26469         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
26470         comment.
26471
26472 2006-07-08  Jim Meyering  <jim@meyering.net>
26473
26474         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
26475
26476 2006-07-07  Simon Josefsson  <jas@extundo.com>
26477
26478         * tests/test-crc.c: Change expected crc value, the test vector
26479         were probably computed using the old broken crc.c?
26480
26481 2006-07-06  Simon Josefsson  <jas@extundo.com>
26482
26483         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
26484         now the canonical place for the M4 file).
26485
26486         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
26487         from the sys_socket dependency now.
26488
26489         * modules/inet_pton (Files): Ditto.
26490
26491         * modules/inet_ntop (Files): Ditto.
26492
26493 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
26494
26495         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
26496         not gl_PREREQ_GETUSERSHELL.
26497
26498 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26499
26500         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
26501         with only one argument, for Autoconf 2.60.
26502         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
26503         expand to nothing, so add a shell command to avoid syntax error.
26504         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
26505
26506 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26507
26508         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
26509
26510 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
26511
26512         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
26513         no longer needed.  Check for isblank decl.
26514         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
26515         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
26516         of existence.
26517
26518 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
26519
26520         * lib/getloadavg.c: Use __VMS, not VMS.
26521         * lib/getopt.c: Likewise.
26522         * lib/getpagesize.h: Likewise.
26523         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
26524         and probably does not work.
26525
26526 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
26527
26528         * lib/.cppi-disable: Add wcwidth.
26529         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
26530         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
26531         (ISGRAPH): Remove.  All uses changed to isgraph.
26532         (FOLD) [!defined _LIBC]: Remove special case.
26533         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
26534         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
26535         HAVE_ISBLANK.
26536         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
26537         case.
26538
26539 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
26540
26541         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
26542         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
26543         brackets.  Other minor changes to suppress some compiler
26544         warnings.
26545
26546 2006-07-06  Derek R. Price  <derek@ximbiot.com>
26547         and Paul Eggert  <eggert@cs.ucla.edu>
26548
26549         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
26550         of invoking obsolescent AC_HEADER_DIRENT macro.
26551         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
26552         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
26553         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
26554         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
26555         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
26556         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
26557         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
26558         * m4/readdir.m4: Remove; no longer needed.
26559
26560 2006-07-06  Derek R. Price  <derek@ximbiot.com>
26561         and Paul Eggert  <eggert@cs.ucla.edu>
26562
26563         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
26564         Don't worry about this obsolete case any more.
26565         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
26566         directories.
26567         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
26568         worry about this obsolete case any more.
26569         * lib/fts.c: Likewise.
26570         * lib/getcwd.c: Likewise.
26571         * lib/glob.h: Likewise.
26572         * lib/savedir.c: Likewise.
26573
26574 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
26575
26576         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
26577         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
26578         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
26579         needed.
26580         All uses removed.
26581         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
26582         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
26583         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
26584         needed.
26585         * m4/getdate.m4 (gl_GETDATE): Likewise.
26586         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
26587         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
26588         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
26589         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
26590         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
26591         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
26592         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
26593         needed.
26594
26595 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
26596
26597         * lib/memcasecmp.c: Include <limits.h>.
26598         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
26599         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
26600         Don't assume isdigit succeeds only on '0' through '9'.
26601
26602 2006-07-05  Eric Blake  <ebb9@byu.net>
26603
26604         * modules/getaddrinfo (Depends-on): Add snprintf.
26605
26606 2006-07-05  Eric Blake  <ebb9@byu.net>
26607
26608         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
26609         to avoid 'header present but could not be compiled' on cygwin.
26610
26611 2006-07-05  Eric Blake  <ebb9@byu.net>
26612
26613         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
26614         missing from netdb.h.
26615         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
26616
26617 2006-07-05  Derek R. Price  <derek@ximbiot.com>
26618
26619         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
26620         no longer needed.
26621         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
26622         * m4/getdate.m4 (gl_GETDATE): Likewise.
26623         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
26624         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
26625         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
26626         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
26627         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
26628
26629 2006-07-05  Derek R. Price  <derek@ximbiot.com>
26630
26631         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
26632         All uses of is_space replaced by isspace.
26633         * lib/exit.h: Don't talk about STDC_HEADERS.
26634         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
26635         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
26636         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
26637         replaced by isprint etc.
26638         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
26639         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
26640         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
26641         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
26642         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
26643         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
26644
26645 2006-07-05  Bruno Haible  <bruno@clisp.org>
26646
26647         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
26648         the function exists, before testing against AIX.
26649         Reported by Martin Lambers <marlam@marlam.de>.
26650
26651 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
26652
26653         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
26654         From Mark D. Baushke.
26655
26656 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
26657
26658         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
26659         to the absolute name, not just one, to bypass Sun C 5.8's
26660         "warning: #include of /usr/include/... may be non-portable".
26661
26662 2006-07-04  Eric Blake  <ebb9@byu.net>
26663
26664         * modules/dirname-tests: New test module.
26665         * tests/test-dirname.c: New file, replacing dirname.c
26666         TEST_DIRNAME section that was recently deleted.
26667
26668 2006-07-04  Bruno Haible  <bruno@clisp.org>
26669
26670         Assume ANSI C header files and <ctype.h> functions.
26671         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
26672         (mbsnwidth): Use isprint, iscntrl instead.
26673
26674 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
26675
26676         Merge from coreutils.
26677         * MODULES.html.sh: Add xstrtold.
26678         * modules/xstrtold: New file.
26679         * modules/cycle-check (Files): Add lib/same-inode.h.
26680         * modules/dirname (Files): Add m4/double-slash-root.m4.
26681         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
26682         * modules/mkdir-p (Files): Add lib/same-inode.h.
26683         * modules/same (Files): Add lib/same-inode.h.
26684
26685 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
26686
26687         * m4/absolute-header.m4: Renamed from full-header-path.m4.
26688         This is to keep the terminology clean; POSIX talks about
26689         "absolute pathnames", not "full pathnames", but the GNU
26690         Coding Standards say to use "path" for something else;
26691         so use "absolute" to keep both sides happy.
26692         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
26693         Set gl_absolute_header, not gl_full_header_path.
26694         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
26695         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
26696         All uses changed.
26697
26698         Merge from coreutils.
26699
26700         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
26701
26702         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
26703         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
26704         want to require the building of c-strtod.o.
26705         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
26706         needs -lm directly.
26707         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
26708
26709         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
26710
26711         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
26712         --as-needed option if available.  Problem reported by Albert Chin in
26713         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
26714         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
26715         cc merely issues a bunch of annoying warnings for --as-needed
26716         (this problem was reported by Bob Proulx).  Also, try linking with
26717         -lm to detect a bug in binutils 2.16 (this problem was reported
26718         by Ralf Wildenhues).
26719
26720         2006-06-18  Jim Meyering  <jim@meyering.net>
26721
26722         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
26723         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
26724         macro.
26725         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
26726         also check for glibc-2.4's abort-inducing bug.
26727
26728         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
26729         Low-probability clean-up should be to use rmdir to get rid of
26730         the just-created directory, not unlink.
26731
26732         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
26733         configure fail, and request a bug report to inform us about it.
26734         Add a comment that, barring reports to the contrary, in 2007 we'll
26735         assume ftruncate is universally available.
26736
26737         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
26738
26739         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
26740
26741         2006-03-12  Jim Meyering  <jim@meyering.net>
26742
26743         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
26744         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
26745         * m4/same.m4 (gl_SAME): Likewise.
26746         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
26747
26748         2006-03-11  Eric Blake  <ebb9@byu.net>
26749
26750         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
26751         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
26752         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
26753         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
26754
26755 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
26756
26757         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
26758         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
26759         reported by Mark D. Baushke, one in
26760         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
26761
26762         Merge from coreutils.
26763
26764         * lib/.cppi-disable: Add stdint_.h.
26765         * lib/.cvsignore: Add stdint.h.
26766
26767         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
26768
26769         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
26770         both double and long double versions.
26771         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
26772         * lib/xstrtold.c: New file.
26773         * lib/xstrtod.h (xstrtold): New decl.
26774
26775         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
26776
26777         * lib/filemode.c (setst): Remove.
26778         (strmode): Rewrite to avoid setst.  This makes the code shorter,
26779         (arguably) clearer, and the generated code is a bit smaller on my
26780         Debian GNU/Linux stable x86 host.
26781
26782         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
26783
26784         * lib/filemode.c: Include "filemode.h" first, to test the interface.
26785         Assume that filemode.h includes sys/types.h and sys/stat.h.
26786         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
26787         (ftypelet): Reorder to put common cases first, for efficiency.
26788         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
26789         to do 'M'.
26790         (strmode): Renamed from mode_string, and now stores 12 bytes instead
26791         of 10, for compatibility with FreeBSD.  All callers changed.
26792         (filemodestring): Now stores 12 bytes instead of 10, and sets file
26793         types that can't be deduced solely from st_mode.  First arg is now a
26794         const pointer.
26795         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
26796         (strmode): Renamed from mode_string.
26797         (filemodestring): New decl.
26798         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
26799         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
26800         needed.
26801         (S_ISPORT, S_ISWHT): New macros, if not already defined.
26802
26803         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
26804
26805         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
26806         fsusage.h now does that.  Include fsusage.h first, to test interface.
26807         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
26808         at most one method (the old code could have generated decls that
26809         didn't conform to C89, not that this was ever exercised).
26810         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
26811
26812         2006-03-19  Jim Meyering  <jim@meyering.net>
26813
26814         Work even in a chroot where d_ino values for entries in "/"
26815         don't match the stat.st_ino values for the same names.
26816         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
26817         number, iterate through all entries again, using lstat instead.
26818         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
26819         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
26820
26821         * lib/getcwd.c (__getcwd): Clarify a comment.
26822         Use memcpy in place of a call to strcpy.
26823
26824         2006-03-12  Jim Meyering  <jim@meyering.net>
26825
26826         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
26827         matches that of the current directory (which we're about to chdir ".."
26828         out of), then save the dev-ino of the parent, instead.
26829
26830         * lib/same-inode.h (SAME_INODE): New file/macro.
26831         * lib/chdir-safer.c (SAME_INODE): Remove definition.
26832         Include "same-inode.h", instead.
26833         * lib/same.c: Likewise.
26834         * lib/cycle-check.h: Include "same-inode.h".
26835         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
26836         * lib/cycle-check.c (SAME_INODE): Remove definition.
26837         * lib/root-dev-ino.h: Include "same-inode.h".
26838
26839         2006-03-11  Eric Blake  <ebb9@byu.net>
26840
26841         * lib/same.c (same_name): s/base_name/last_component/
26842         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
26843         * lib/filenamecat.c (file_name_concat): Likewise.
26844
26845         2006-03-11  Eric Blake  <ebb9@byu.net>,
26846                     Paul Eggert  <eggert@cs.ucla.edu>
26847
26848         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
26849         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
26850         drive prefix.
26851         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
26852         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
26853         (last_component): New method.
26854         * lib/dirname.c (dir_len): Determine when drive letters need a
26855         subsequent slash.  Preserve // when it is special.
26856         (dir_name): Don't append dot when drive letter is absolute.
26857         [TEST_DIRNAME]: Move into a full-blown gnulib test.
26858         * lib/basename.c (base_name): New semantics - malloc the result.
26859         Preserve // when it is special.  Preserve relative files that look
26860         like drive letters.
26861         (base_len): Preserve // when it is special.
26862         (last_component): New method, similar to old base_name semantics.
26863         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
26864         base_name.  Strip redundant slashes from ///.
26865
26866 2006-07-03  Jim Meyering  <jim@meyering.net>
26867
26868         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
26869         macro is used before the first cycle_check call.
26870
26871 2006-07-03  Eric Blake  <ebb9@byu.net>
26872
26873         * modules/dirname (Depends-on): Add xstrndup.
26874
26875 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
26876
26877         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
26878         test cases, so that config.log is a bit easier to follow.
26879
26880 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
26881
26882         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
26883         both are 64 bits, since this seems to be the tradition, and this
26884         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
26885         we ever run into a host that prefers long long to long in this
26886         case, we'll need another configure-time test.  Problem reported by
26887         Jim Meyering.
26888
26889 2006-07-02  Eric Blake  <ebb9@byu.net>
26890
26891         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
26892
26893 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
26894
26895         * modules/inttypes (Depends-on): No longer depends on stdint.
26896         * modules/stdint (Description): Say more about assumptions.
26897         Say that the fast types might differ.  Say macros are used.
26898         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
26899         (Makefile.am): Revise list of substituted symbols to match
26900         new stdint.m4.
26901         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
26902         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
26903         * tests/test-stdint.c (verify_same_types)
26904         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
26905         the code conforms to C99/C89.
26906         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
26907         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
26908
26909 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
26910
26911         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
26912         but fix a bug, by requiring at least 64 bits.
26913         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
26914         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
26915         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
26916         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG) Likewise.
26917
26918         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
26919         changes.  Make 2.59 a prerequisite.  Check and substitute for
26920         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
26921         inttypes.h.  Do not use special include files; just use the
26922         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
26923         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
26924         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
26925         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
26926         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
26927         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
26928         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
26929         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
26930         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
26931         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
26932         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
26933         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
26934         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
26935         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
26936         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
26937         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
26938         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
26939         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
26940         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
26941         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
26942         WINT_MAX.  Check for C99 conformance more strictly, by detecting
26943         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
26944         not check for things that C99 does not require, e.g., int8_t.  If
26945         a test isn't needed unless <stdint.h> isn't working, and is
26946         unlikely to be needed for any other reason, then don't do it
26947         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
26948         size_t, since we assume C89 freestanding at least.  Do not check
26949         for sig_atomic_t, wchar_t, or wint_t, since the code now does
26950         the right thing even if the types are not defined.  Instead use:
26951         (gl_STDINT_TYPE_PROPERTIES): New macro.
26952         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
26953         testing whether <sys/types.h> clashes, as Autoconf does this for
26954         us now.  All uses removed.
26955         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
26956         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
26957         (gl_CHECK_TYPE_SAME):
26958         Remove; no longer needed.
26959         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
26960         exists, since we'll return 0 anyway in that case.
26961         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
26962
26963 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
26964
26965         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
26966         possible collision with system files.
26967         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
26968         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
26969         WCHAR_MIN and WCHAR_MAX in this case.
26970         (<stddef.h>): Do not include; no longer needed.
26971         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
26972         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
26973         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
26974         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
26975         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
26976         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
26977         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
26978         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
26979         !defined(__c99))]: Include in this case too, since it's harmless
26980         now.
26981         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
26982         dangerous to do so.
26983         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
26984         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
26985         (_STDINT_MIN, _STDINT_MAX): New macros.
26986         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
26987         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
26988         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
26989         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
26990         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
26991         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
26992         macros, not typedefs; this simplifies things quite a bit.
26993         Use long int for all types narrower than int64_t.
26994         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
26995         Define in terms of long long int or int64_t or long int,
26996         not int64_t or int32_t.  This saves some compile-time testing.
26997         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
26998         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
26999         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
27000         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
27001         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
27002         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
27003         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
27004         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
27005         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
27006         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
27007         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
27008         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
27009         undef any previous version and define our own version, for
27010         simplicity and consistency with the new macros for types.
27011         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
27012         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
27013         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
27014         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
27015         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
27016         @WINT_T_SUFFIX@ to keep things simple here.
27017         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
27018         Simplify by assuming typical 8/16/32/64 host, since we're
27019         already doing that elsewhere anyway.
27020         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
27021         and assume long long int is 64 bits if available.  This
27022         speeds up 'configure'.
27023
27024 2006-07-01  Eric Blake  <ebb9@byu.net>
27025
27026         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
27027         Reported by Andreas Buening.
27028
27029 2006-07-01  Eric Blake  <ebb9@byu.net>
27030
27031         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
27032
27033 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
27034
27035         * lib/getaddrinfo.c: fixed typo
27036
27037 2006-06-29  Jim Meyering  <jim@meyering.net>
27038
27039         * modules/strftime (Maintainer): Add my name, since with the
27040         FPRINTFTIME changes strftime.c has forked from glibc.
27041
27042 2006-06-29  Eric Blake  <ebb9@byu.net>
27043
27044         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
27045
27046 2006-06-29  Eric Blake  <ebb9@byu.net>
27047
27048         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
27049
27050 2006-06-29  Eric Blake  <ebb9@byu.net>
27051
27052         * lib/stat_.h: New file.
27053
27054 2006-06-29  Eric Blake  <ebb9@byu.net>
27055
27056         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
27057         unused static function.
27058
27059 2006-06-29  Eric Blake  <ebb9@byu.net>
27060
27061         * doc/functions.texi (Function Portability): Document missing lstat
27062         on mingw.
27063
27064 2006-06-29  Eric Blake  <ebb9@byu.net>
27065
27066         * MODULES.html.sh: Add sys_stat.
27067         * modules/sys_stat: New module.
27068         * modules/mkstemp (Depends-on): Add sys_stat.
27069
27070 2006-06-29  Derek R. Price  <derek@ximbiot.com>
27071
27072         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
27073
27074 2006-06-29  Derek R. Price  <derek@ximbiot.com>
27075
27076         * m4/c-bs-a.m4: Removed.
27077
27078 2006-06-29  Derek R. Price  <derek@ximbiot.com>
27079
27080         * lib/strftime.c: Assume strftime() exists.
27081
27082 2006-06-29  Derek Price  <derek@ximbiot.com>
27083
27084         * modules/c-bs-a: Removed - \a is C89.
27085         * MODULES.html.sh: Remove c-bs-a.
27086
27087 2006-06-29  Bruno Haible  <bruno@clisp.org>
27088
27089         * modules/wcwidth (License): Change to LGPL.
27090
27091 2006-06-28  Simon Josefsson  <jas@extundo.com>
27092
27093         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
27094         on _WIN32.
27095
27096         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
27097         getnameinfo.
27098
27099 2006-06-28  Simon Josefsson  <jas@extundo.com>
27100
27101         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
27102
27103 2006-06-28  Simon Josefsson  <jas@extundo.com>
27104
27105         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
27106         functions there.  It will succeed on Windows XP, but on Windows
27107         2000 and (presumably) earlier, it will fail, and use the internal
27108         re-implementation.
27109         (use_win32_p): New function.
27110         (getaddrinfo): Use strtoul on servname, to support numeric ports.
27111         Support AI_NUMERICSERV to disable getservbyname.
27112         (getnameinfo): New function, only supports
27113         NI_NUMERICHOST|NI_NUMERICSERV for now.
27114
27115         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
27116         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
27117         getnameinfo.
27118
27119 2006-06-28  Eric Blake  <ebb9@byu.net>
27120
27121         * modules/wcwidth: New file.
27122         * modules/mbchar (Depends-on): Add wcwidth.
27123         * modules/mbswidth (Depends-on): Add wcwidth.
27124         * MODULES.html.sh: Add wcwidth.
27125
27126 2006-06-28  Eric Blake  <ebb9@byu.net>
27127
27128         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
27129         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
27130
27131 2006-06-28  Eric Blake  <ebb9@byu.net>
27132
27133         * lib/xvasprintf.h: Fix comments.
27134
27135 2006-06-28  Eric Blake  <ebb9@byu.net>
27136
27137         * lib/mbchar.h (wcwidth): Include wcwidth.h.
27138         * lib/mbswidth.c (wcwidth): Move from here...
27139         * lib/wcwidth.h: ...to this new file.
27140
27141 2006-06-28  Derek R. Price  <derek@ximbiot.com>
27142
27143         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
27144
27145         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
27146         it's obsolete.
27147         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
27148
27149 2006-06-28  Derek R. Price  <derek@ximbiot.com>
27150
27151         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
27152         Autoconf 2.60 says this stuff was obsolete.
27153
27154 2006-06-28  Bruno Haible  <bruno@clisp.org>
27155
27156         * modules/wcwidth (Files): Add m4/wchar_t.m4.
27157
27158 2006-06-28  Bruno Haible  <bruno@clisp.org>
27159
27160         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
27161         gt_TYPE_WCHAR_T.
27162
27163 2006-06-28  Bruno Haible  <bruno@clisp.org>
27164
27165         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
27166         declaration for wcwidth.
27167         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
27168
27169 2006-06-28  Bruno Haible  <bruno@clisp.org>
27170
27171         * lib/mkdtemp.c [MINGW]: Include <io.h>.
27172         (mkdir): Define using _mkdir.
27173
27174 2006-06-28  Bruno Haible  <bruno@clisp.org>
27175
27176         * lib/getaddrinfo.h: Fix POSIX URL.
27177         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
27178         _WIN32.
27179         (use_win32_p): Make static.
27180         (getaddrinfo): Reject service name if it is empty or does not consist
27181         solely of decimal digits, or if its value is > 65535.
27182         (getnameinfo): Remove useless casts.
27183
27184 2006-06-27  Simon Josefsson  <jas@extundo.com>
27185
27186         * modules/sys_select: New file, suggested by Bruno Haible, Paul
27187         Eggert and Martin Lambers.
27188
27189 2006-06-27  Simon Josefsson  <jas@extundo.com>
27190
27191         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
27192         Eggert and Martin Lambers.
27193
27194 2006-06-27  Bruno Haible  <bruno@clisp.org>
27195
27196         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
27197         result to 0, not to empty.
27198         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
27199
27200 2006-06-27  Bruno Haible  <bruno@clisp.org>
27201
27202         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
27203
27204 2006-06-26  Simon Josefsson  <jas@extundo.com>
27205
27206         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
27207         present.
27208
27209 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
27210
27211         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
27212         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
27213         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
27214
27215 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
27216
27217         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
27218
27219 2006-06-26  Bruno Haible  <bruno@clisp.org>
27220
27221         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
27222
27223 2006-06-26  Bruno Haible  <bruno@clisp.org>
27224
27225         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
27226
27227 2006-06-26  Bruno Haible  <bruno@clisp.org>
27228
27229         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
27230         SGI C compiler in pre-C99 mode.
27231         Suggested by Mark D. Baushke and Larry Jones.
27232
27233 2006-06-26  Bruno Haible  <bruno@clisp.org>
27234
27235         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
27236         WCHAR_MAX.
27237         Reported by Mark D. Baushke and Larry Jones.
27238
27239 2006-06-26  Bruno Haible  <bruno@clisp.org>
27240
27241         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
27242         in pre-C99 mode.
27243         Suggested by Mark D. Baushke and Larry Jones.
27244
27245 2006-06-23  Simon Josefsson  <jas@extundo.com>
27246             Bruno Haible  <bruno@clisp.org>
27247
27248         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
27249         Emit mostlyclean-local rule.
27250         (func_emit_tests_Makefile_am): Likewise.
27251         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
27252
27253 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
27254
27255         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
27256
27257 2006-06-23  Bruno Haible  <bruno@clisp.org>
27258
27259         * tests/test-stdint.c: Update to match ISO C 99 Technical
27260         Corrigendum 1.
27261
27262 2006-06-23  Bruno Haible  <bruno@clisp.org>
27263
27264         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
27265
27266 2006-06-23  Bruno Haible  <bruno@clisp.org>
27267
27268         * lib/stdint_.h: Treat IRIX like OpenBSD.
27269
27270 2006-06-23  Bruno Haible  <bruno@clisp.org>
27271
27272         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
27273         ISO C 99 Technical Corrigendum 1.
27274
27275 2006-06-22  Simon Josefsson  <jas@extundo.com>
27276
27277         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
27278         MinGW.
27279
27280 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
27281
27282         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
27283         needed.  Some compiler complained about some of them.  Problem reported
27284         by Larry Jones in
27285         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
27286
27287 2006-06-21  Simon Josefsson  <jas@extundo.com>
27288
27289         * tests/test-getaddrinfo.c: New file.
27290
27291         * modules/getaddrinfo-tests: New file.
27292
27293         * MODULES.html.sh: Add inet_pton.
27294
27295         * modules/inet_pton: New file.
27296
27297 2006-06-21  Simon Josefsson  <jas@extundo.com>
27298
27299         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
27300         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
27301         of using the (limited) gnulib implementation on Windows XP.
27302
27303         * m4/inet_pton.m4: New file.
27304
27305 2006-06-21  Simon Josefsson  <jas@extundo.com>
27306
27307         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
27308         variable.
27309
27310         * lib/socket_.h: Don't define WINVER.
27311
27312         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
27313         slightly modified to work in gnulib.
27314
27315 2006-06-21  Simon Josefsson  <jas@extundo.com>
27316
27317         * doc/gnulib.texi (Windows sockets): Add.
27318
27319 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
27320
27321         * lib/read-file.c (fread_file): Start with buffer allocation of
27322         0 bytes rather than 1 byte; this simplifies the code.
27323         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
27324         code to free buffer and save/restore errno.
27325         (internal_read_file): Remove unused local.
27326
27327 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
27328
27329         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
27330         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
27331         Problem reported by Denis Excoffier in
27332         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
27333
27334 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
27335
27336         * modules/sys_socket, modules/socklen: Include sys/types since
27337         FreeBSD 4.x's sys/socket.h needs it.
27338
27339 2006-06-19  Simon Josefsson  <jas@extundo.com>
27340
27341         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
27342
27343 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
27344
27345         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
27346
27347 2006-06-19  Bruno Haible  <bruno@clisp.org>
27348
27349         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
27350         and FULL_PATH_INTTYPES_H in angle brackets.
27351         Reported by Mark D. Baushke <mdb@gnu.org>.
27352
27353 2006-06-17  Eric Blake  <ebb9@byu.net>
27354
27355         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
27356         errno.
27357
27358 2006-06-17  Bruno Haible  <bruno@clisp.org>
27359
27360         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
27361         <sys/inttypes.h>.
27362
27363 2006-06-17  Bruno Haible  <bruno@clisp.org>
27364
27365         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
27366         whether errno is declared. Assume <errno.h> declares errno.
27367
27368 2006-06-17  Bruno Haible  <bruno@clisp.org>
27369
27370         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
27371
27372 2006-06-17  Bruno Haible  <bruno@clisp.org>
27373
27374         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
27375         problem on Solaris 2.5.1.
27376
27377 2006-06-16  Eric Blake  <ebb9@byu.net>
27378
27379         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
27380         * lib/unicodeio.c [!defined errno]: Likewise.
27381         * lib/strtol.c [!defined errno]: Likewise.
27382         * lib/strtod.c [!defined errno]: Likewise.
27383
27384 2006-06-15  Eric Blake  <ebb9@byu.net>
27385
27386         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
27387
27388 2006-06-15  Eric Blake  <ebb9@byu.net>
27389
27390         * config/srclist.txt (ssize_t.m4): Lose sync.
27391
27392 2006-06-15  Bruno Haible  <bruno@clisp.org>
27393
27394         * modules/stdint (Files): Include m4/full-header-path.m4,
27395         m4/size_max.m4, m4/wchar_t.m4.
27396         (Makefile.am): Many more substitutions.
27397         * modules/stdint-tests: New file.
27398         * tests/test-stdint.c: New file.
27399
27400 2006-06-15  Bruno Haible  <bruno@clisp.org>
27401
27402         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
27403         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
27404         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
27405         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
27406         gl_CHECK_TYPE_SAME): New macros.
27407
27408 2006-06-15  Bruno Haible  <bruno@clisp.org>
27409
27410         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
27411
27412 2006-06-15  Bruno Haible  <bruno@clisp.org>
27413
27414         * lib/stdint_.h: Rewritten to be fully auto-configured.
27415         Fixes bug on HP-UX/IA64.
27416
27417 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
27418
27419         * lib/getdate.y (__attribute__): Don't define if already defined.
27420         Problem reported by Larry Jones.
27421         * lib/utimens.c (__attribute__): Likewise.
27422
27423 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
27424
27425         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
27426         reported by Andreas Schwab.
27427
27428 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27429             Bruno Haible  <bruno@clisp.org>
27430
27431         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
27432         check for the declaration of strnlen and a run test that exposes the
27433         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
27434         rpl_strndup.
27435
27436 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27437             Bruno Haible  <bruno@clisp.org>
27438
27439         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
27440
27441 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27442
27443         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
27444         compile test, for Tru64 4.0D.
27445
27446 2006-05-28  Karl Berry  <karl@gnu.org>
27447
27448         * config/srclist.txt (printf-args.c): lose sync.
27449
27450 2006-05-26  Martin Lambers  <marlam@marlam.de>
27451
27452         * lib/getpass.c: Updates the test for the native W32 API, and adds
27453         missing includes, thus fixing compilation warnings.
27454
27455 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
27456
27457         * lib/exclude.c (exclude_fnmatch): New function.
27458         (excluded_file_name): Call exclude_fnmatch.
27459         * lib/exclude.h (excluded_file_name): New prototype
27460
27461 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
27462
27463         * lib/tempname.c (small_open, large_open): New macros.
27464         (__open, __open64) [!_LIBC]: Remove.
27465         (__gen_tempname): Use small_open and large_open instead of __open
27466         and __open64.  This fixes a portability bug on HP-UX 11.11i
27467         reported by Simon Wing-Tang in
27468         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
27469
27470 2006-05-24  Bruno Haible  <bruno@clisp.org>
27471
27472         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
27473         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
27474         Reported by Thorsten Maerz <torte@netztorte.de> via
27475         Aaron Stone <aaron@serendipity.cx>.
27476
27477 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
27478
27479         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
27480         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
27481         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
27482         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
27483         not really conditional on the cache.
27484         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
27485
27486 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
27487
27488         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
27489         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
27490         (my_usleep): Don't mishandle maximum value.
27491
27492 2006-05-19  Jim Meyering  <jim@meyering.net>
27493
27494         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
27495
27496 2006-05-17  Bruno Haible  <bruno@clisp.org>
27497
27498         Cygwin portability.
27499         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
27500
27501 2006-05-17  Bruno Haible  <bruno@clisp.org>
27502
27503         * lib/stdint_.h: Fix recognition of Cygwin.
27504
27505 2006-05-15  Bruno Haible  <bruno@clisp.org>
27506
27507         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
27508         on libtool patch by Ralf Wildenhues.
27509
27510 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
27511
27512         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
27513         test for C99 conformance; (bool) 0.5 is an integer constant
27514         expression, but (bool) -0.5 is not.  Problem reported by Fedor
27515         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
27516
27517 2006-05-11  Simon Josefsson  <jas@extundo.com>
27518
27519         * m4/xvasprintf.m4: Fix obvious typo.
27520
27521 2006-05-11  Jim Meyering  <jim@meyering.net>
27522
27523         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
27524         James Lemley.
27525
27526 2006-05-10  Simon Josefsson  <jas@extundo.com>
27527
27528         * lib/md4.c: Typo fix, update copyright years.
27529         (K1, K2): Don't use L because it turn computations into 64-bit on
27530         64-bit platforms.
27531
27532 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
27533
27534         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
27535         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
27536         unwanted sign propagation, e.g., on hosts with 64-bit int.
27537         There still are some problems with reeelly weird theoretical hosts
27538         (e.g., 33-bit int) but it's not worth worrying about now.
27539         * lib/sha1.c (rol): Likewise.
27540         (K1, K2, K3, K4): Remove unnecessary L suffix.
27541
27542 2006-05-10  Bruno Haible  <bruno@clisp.org>
27543
27544         * lib/des.c: Cast to avoid warnings.
27545
27546 2006-05-09  Bruno Haible  <bruno@clisp.org>
27547
27548         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
27549         (Depends-on): Depend also on xsize, stdarg.
27550         (configure.ac): Add gl_XVASPRINTF.
27551
27552 2006-05-09  Bruno Haible  <bruno@clisp.org>
27553
27554         * m4/xvasprintf.m4: New file.
27555
27556 2006-05-09  Bruno Haible  <bruno@clisp.org>
27557
27558         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
27559         (EOVERFLOW): Define fallback value.
27560         (xstrcat): New function.
27561         (xvasprintf): Recognize the special case of a string concatenation.
27562
27563 2006-05-08  Eric Blake  <ebb9@byu.net>
27564
27565         * gnulib-tool (func_version): Base copyright year on CVS date.
27566         (func_emit_copyright_notice): New function.
27567         (func_emit_lib_Makefile_am): Use it.
27568         (func_emit_tests_Makefile_am): Likewise.
27569         (func_import): Likewise.
27570
27571 2006-05-08  Bruno Haible  <bruno@clisp.org>
27572
27573         * modules/stdarg: New file.
27574         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
27575
27576 2006-05-08  Bruno Haible  <bruno@clisp.org>
27577
27578         * m4/stdarg.m4: New file, from GNU gettext.
27579
27580 2006-05-08  Bruno Haible  <bruno@clisp.org>
27581
27582         * config/srclist.txt (build-aux/config.rpath): different from latest
27583         release.
27584
27585 2006-05-08  Bruno Haible  <bruno@clisp.org>
27586
27587         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
27588
27589 2006-05-05  Jim Meyering  <jim@meyering.net>
27590
27591         * m4/warning.m4: New file, derived from bison's file by the same name.
27592
27593 2006-05-03  Bruno Haible  <bruno@clisp.org>
27594
27595         * lib/stdint_.h: Shorter URL.
27596         * lib/inttypes.h: Likewise.
27597
27598 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
27599
27600         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
27601
27602 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
27603
27604         * lib/verify.h: Document the internals better.  Most of this change
27605         was written by Bruno Haible.
27606
27607 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
27608
27609         * doc/verify.texi: New file, partly based on a proposal by
27610         Bruno Haible.
27611
27612 2006-05-02  Bruno Haible  <bruno@clisp.org>
27613
27614         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
27615         test from here...
27616         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
27617
27618 2006-04-29  Bruno Haible  <bruno@clisp.org>
27619
27620         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
27621         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
27622
27623 2006-04-29  Bruno Haible  <bruno@clisp.org>
27624
27625         * gnulib-tool: Make --update option actually work.
27626
27627 2006-04-29  Bruno Haible  <bruno@clisp.org>
27628
27629         * doc/gcd.texi: New file.
27630         * doc/gnulib.texi: Include it.
27631
27632 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
27633
27634         * lib/getdate.y (get_date): When adding relative date, start with the
27635         initial time, not with the result of the first mktime call.
27636
27637 2006-04-25  Bruno Haible  <bruno@clisp.org>
27638
27639         * gnulib-tool (func_import): Output the include directives in three
27640         blocks, sorted separately.
27641         Reported by Ben Pfaff <blp@cs.stanford.edu>.
27642
27643 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
27644
27645         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
27646         to define main with arguments, for C++.  Reported by Eric Blake.
27647         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
27648         Prefer 'int main ()' to 'int main (void)', for C++.
27649         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
27650         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
27651         for 'main', for C99 and C++.
27652
27653 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
27654
27655         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
27656         Don't assume that exit status -1 is valid.
27657         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
27658         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
27659         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
27660         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
27661         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
27662         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
27663         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
27664         functions can be used without declaring them, or that you can
27665         exit with status -1.
27666         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
27667
27668 2006-04-24  Karl Berry  <karl@gnu.org>
27669
27670         * config/srclist.txt (longdouble.m4): sync lost.
27671
27672 2006-04-24  Eric Blake  <ebb9@byu.net>
27673
27674         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
27675
27676 2006-04-24  Bruno Haible  <bruno@clisp.org>
27677
27678         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
27679         poll() implementation in AIX.
27680         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
27681
27682 2006-04-24  Bruno Haible  <bruno@clisp.org>
27683
27684         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
27685         assigned exactly once.
27686
27687 2006-04-23  Claudio Fontana  <claudio@gnu.org>
27688             Bruno Haible  <bruno@clisp.org>
27689
27690         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
27691         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
27692         for AM_CPPFLAGS.
27693
27694 2006-04-23  Bruno Haible  <bruno@clisp.org>
27695
27696         * modules/copy-file: Depend on unistd.
27697         * modules/execute: Likewise.
27698         * modules/fatal-signal: Likewise.
27699         * modules/findprog: Likewise.
27700         * modules/mkdtemp : Likewise.
27701         * modules/pipe: Likewise.
27702         * modules/wait-process: Likewise.
27703
27704 2006-04-23  Bruno Haible  <bruno@clisp.org>
27705
27706         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
27707         condition was already detected.
27708         Reported by Ben Pfaff <blp@cs.stanford.edu>.
27709
27710 2006-04-23  Bruno Haible  <bruno@clisp.org>
27711
27712         * lib/copy-file.c: Include <unistd.h> unconditionally.
27713         * lib/execute.c: Likewise.
27714         * lib/fatal-signal.c: Likewise.
27715         * lib/findprog.c: Likewise.
27716         * lib/mkdtemp.c: Likewise.
27717         * lib/pipe.h: Likewise.
27718         * lib/pipe.c: Likewise.
27719         * lib/wait-process.h: Likewise.
27720
27721 2006-04-23  Bruno Haible  <bruno@clisp.org>
27722
27723         * gnulib-tool (func_usage): Fix --import description. Document
27724         --update.
27725         (func_import): Create temporary file in a temporary directory, if
27726         --dry-run is specified. Silence errors from 'grep' when there are no
27727         m4 files in $m4dir.
27728         (func_create_testdir): Silence errors from 'grep' when there are no
27729         m4 files in $m4dir.
27730         Reported by Karl Berry <karl@freefriends.org>.
27731
27732 2006-04-20  Bruno Haible  <bruno@clisp.org>
27733
27734         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
27735         one argument, so that the code will be portable to Autoconf 2.60.
27736         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
27737         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
27738         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
27739
27740 2006-04-19  Derek Price  <derek@ximbiot.com>
27741             Eric Blake  <ebb9@byu.net>
27742
27743         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
27744         rather than "/full/path.h".  Update comment to match.  Shorten &
27745         generalize m4_translit call via AS_TR_CPP.
27746
27747 2006-04-19  Derek Price  <derek@ximbiot.com>
27748             Eric Blake  <ebb9@byu.net>
27749
27750         * lib/inttypes.h: Correct grammar in comment.
27751
27752 2006-04-18  Derek Price  <derek@ximbiot.com>
27753             Paul Eggert  <eggert@cs.ucla.edu>
27754
27755         * modules/inttypes: New file.
27756         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
27757
27758 2006-04-18  Derek Price  <derek@ximbiot.com>
27759             Paul Eggert  <eggert@cs.ucla.edu>
27760
27761         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
27762         New files.
27763
27764 2006-04-18  Derek Price  <derek@ximbiot.com>
27765             Paul Eggert  <eggert@cs.ucla.edu>
27766
27767         * lib/inttypes.h: New file.
27768         * lib/strtoimax.c: Assume <inttypes.h>.
27769
27770 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
27771
27772         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
27773         isn't mounted.  Problem reported by Kir Kolyshkin.
27774
27775 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
27776
27777         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
27778         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
27779         Derek R. Price.
27780         * lib/regex.h (RE_DUP_MAX): Update comment to match current
27781         implementation.
27782
27783 2006-04-12  Eric Blake  <ebb9@byu.net>
27784
27785         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
27786         is now done automatically by the corresponding Autoconf macro.
27787
27788 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
27789
27790         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
27791         time_r.h.
27792
27793 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
27794
27795         Merge regex changes from libc, removing some of our
27796         POSIX-conformance changes that were rejected and redoing them in a
27797         less-intrusive way.
27798
27799         * lib/regcomp.c (re_compile_internal, init_dfa):
27800         Length arg is now size_t, not Idx.  All uses changed.
27801         (peek_token): Forward decl now says internal_function.
27802         (__re_error_msgid, __re_error_msgid_idx):
27803         Now static rather than extern with attribute_hidden.
27804         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
27805         For some reason libc prefers K&R style defns for external functions.
27806         (regerror) [!defined _LIBC]: Likewise.
27807         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
27808         (seek_collating_symbol_entry, lookup_collation_sequence_value):
27809         (build_range_exp, build_collating_symbol):
27810         Use K&R-style defn.
27811         (re_compile_fastmap): Use '\0' to memset, not 0.
27812         (utf8_sb_map): Make the calculations more obvious.
27813         (init_dfa, parse_bracket_exp, build_charclass_op):
27814         Call calloc and cast result, as glibc does.
27815         (init_word_char, fetch_token, peek_token, peek_token_bracket):
27816         (build_range_exp, build_collating_symbol):
27817         Now internal functions.
27818
27819         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
27820
27821         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
27822         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
27823         Don't depend on VMS; depend on __VMS instead, for POSIX
27824         namespace cleanness.
27825         (regoff_t): Define to ssize_t, not long int.
27826
27827         Remove the REG_ macros named below.  Instead, make the old names
27828         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
27829         __USE_GNU_REGEX.
27830         (REG_BACKSLASH_ESCAPE_IN_LISTS):
27831         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
27832         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
27833         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
27834         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
27835         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
27836         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
27837         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
27838         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
27839         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
27840         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
27841         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
27842         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
27843         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
27844         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
27845         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
27846         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
27847         (REG_NREGS):
27848         Remove.  All uses replaced by the old RE_* names.
27849         (RE_BACKSLASH_ESCAPE_IN_LISTS):
27850         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
27851         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
27852         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
27853         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
27854         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
27855         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
27856         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
27857         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
27858         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
27859         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
27860         Don't bother having these macros be independent of each others'
27861         values, since they no longer exist in the POSIX name space.
27862
27863         Rename the following member names back to their old names,
27864         unless !__USE_GNU_REGEX.  All uses changed back.
27865         (buffer): Renamed from re_buffer.
27866         (allocated): Renamed from re_allocated.
27867         (used): Renamed from re_used.
27868         (syntax): Renamed from re_syntax.
27869         (fastmap): Renamed from re_fastmap.
27870         (translate): Renamed from re_translate.
27871         (can_be_null): Renamed from re_can_be_null.
27872         (regs_allocated): Renamed from re_regs_allocated.
27873         (fastmap_accurate): Renamed from re_fastmap_accurate.
27874         (no_sub): Renamed from re_no_sub.
27875         (not_bol): Renamed from re_not_bol.
27876         (not_eol): Renamed from re_not_eol.
27877         (newline_anchor): Renamed from re_newline_anchor.
27878         (num_regs): Renamed from rm_num_regs.
27879         (start): Renamed from rm_start.
27880         (end): Renamed from rm_end.
27881
27882         (free_state): Move up a bit.
27883
27884         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
27885         #define to be empty.
27886         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
27887         when that is what is intended.
27888         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
27889         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
27890         (MAX): New macro.
27891         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
27892         All uses changed back to re_malloc, etc.  It's now the caller's
27893         responsibility to check for overflow; all callers changed.
27894         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
27895         (re_x2nrealloc): Remove.
27896         (free_state): Remove decl.
27897
27898         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
27899         (re_set_registers, re_exec):
27900         Use K&R-style defn.
27901
27902         2006-01-31  Roland McGrath  <roland@redhat.com>
27903
27904         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
27905         Reported by Mike Frysinger <vapier@gentoo.org>.
27906
27907         2006-01-15  Andreas Jaeger  <aj@suse.de>
27908
27909         [BZ #1950]
27910         * lib/regex_internal.c (re_string_reconstruct): Adjust for
27911         build_wcs_upper_buffer change.
27912         (build_wcs_upper_buffer): Change return type.
27913
27914         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
27915
27916         * lib/regex_internal.h: Include <stdint.h> if available.
27917
27918         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
27919
27920         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
27921
27922         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
27923
27924         * lib/regcomp.c: Adjust for changed secondary hash function.
27925
27926         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
27927
27928         * lib/regex.h: Pretty printing.
27929         Clean up namespace a bit.
27930
27931         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
27932
27933         * lib/regexec.c (update_cur_sifted_state, check_arrival,
27934         check_arrival_add_next_nodes): Avoid using uninitialized variable.
27935
27936         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
27937                     Ulrich Drepper  <drepper@redhat.com>
27938
27939         [BZ #1302]
27940         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
27941         changed.
27942         (bitset_word_t): Renamed from bitset_word.  All uses changed.
27943
27944         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
27945
27946         [BZ #281]
27947         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
27948         * lib/regcomp.c: Remove unnecessary uses of
27949         unsigned RE_TRANSLATE_TYPE.
27950         * lib/regex_internal.h: Likewise.
27951         * lib/regex_internal.c: Likewise.
27952         * lib/regexec.c: Likewise.
27953         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
27954
27955         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
27956
27957         * lib/regexec.c (find_recover_state): Remove unnecessary
27958         initialization.
27959         (transit_state_bkref): Make DFA a const pointer.
27960         (get_subexp): Likewise.
27961         (check_arrival): Likewise.
27962         (update_cur_sifted_state): Likewise.
27963         (re_search_internal): Likewise.
27964         (prune_impossible_nodes): Likewise.
27965         (acquire_init_state_context): Likewise.
27966         (proceed_next_node): Likewise.
27967         (set_regs): Likewise.
27968         (free_fail_stack_return): Likewise.
27969         (check_arrival_expand_ecl): Mark DFA parameter as const.
27970         (check_arrival_expand_ecl_sub): Likewise.
27971         (check_subexp_limits): Likewise.
27972         (sub_epsilon_src_nodes):  Likewise.
27973         (add_epsilon_src_nodes):  Likewise.
27974         (merge_state_array): Likewise.
27975         (update_regs): Likewise.
27976         (build_trtable): Likewise.
27977         (sift_states_backward): Mark MCTX parameter as const.
27978         (build_sifted_states): Likewise.
27979         (update_cur_sifted_state): Likewise.
27980         (sift_states_mkref): Likewise.
27981         (check_arrival_expand_ecl): Mark eclosure as const.
27982         (check_dst_limits_calc_pos_1): Likewise.
27983         * lib/regex_internal.h (re_match_context_t): Make dfa a const
27984         pointer.
27985
27986         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
27987
27988         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
27989         (transit_state_sb): Likewise.
27990         (transit_state_mb): Likewise.
27991         (sift_states_iter_mb): Likewise.
27992         (check_arrival_add_next_nodes): Likewise.
27993         (check_node_accept_bytes): Change first parameter to pointer-to-const.
27994         [_LIBC] (re_search_2_stub): Use mempcpy.
27995
27996         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
27997         mbrtowc for very simple UTF-8 case.
27998
27999         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
28000         a pointer-to-const.
28001         (re_acquire_state_context): Likewise.
28002         * lib/regex_internal.h: Adjust prototypes.
28003
28004         * lib/regex.c: Prevent using C++ compilers.
28005
28006         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
28007         (re_acquire_state_context): Likewise.
28008
28009 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
28010
28011         * modules/regex (Depends-on): Add ssize_t.
28012
28013 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
28014
28015         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
28016         translation table.
28017
28018 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
28019
28020         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
28021
28022 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
28023             Bruno Haible  <bruno@clisp.org>
28024
28025         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
28026         <sys/types.h> and <inttypes.h>.
28027
28028 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28029
28030         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
28031         `__error_t_defined', so argp.h will not typedef the former.
28032
28033 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
28034
28035         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
28036         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
28037         glibc names.  Even if glibc is changed to conform to POSIX, the
28038         traditional names will be available anyway, since regex depends on
28039         the extensions module.  Also, fix a longstanding typo in the
28040         implementation of Spencer ERE test #75 from grep 2.3.  Problems
28041         reported by Emanuele Giaquinta.  Also, change sense of cached
28042         variable, so that the message makes sense.
28043
28044 2006-03-24  Simon Josefsson  <jas@extundo.com>
28045
28046         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
28047         including some doc fixes.
28048         (base64_encode_alloc): Fix +1 bug on allocation failures.
28049
28050 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28051
28052         * lib/base64.c (base64_encode): Do not read past end of array with
28053         unsanitized input on systems with CHAR_BIT > 8.
28054
28055 2006-03-24  Eric Blake  <ebb9@byu.net>
28056
28057         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
28058
28059 2006-03-22  Karl Berry  <karl@gnu.org>
28060
28061         * config/srclist.txt (*setenv.[ch]): get from coreutils.
28062         * config/srclistvars.sh (COREUTILS): new var.
28063
28064 2006-03-17  Jim Meyering  <jim@meyering.net>
28065
28066         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
28067         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
28068
28069 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
28070
28071         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
28072         no longer needs it.  Instead, check that regoff_t is as least
28073         as wide as ptrdiff_t.
28074
28075         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
28076         so that our regex.h stays compatible with the installed regex.
28077         This is helpful for installers who configure --without-included-regex.
28078         Problem reported by Emanuele Giaquinta.
28079
28080 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
28081
28082         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
28083         Typedef to long int, not to off_, as POSIX will likely change
28084         in that direction.
28085
28086 2006-03-15  Eric Blake  <ebb9@byu.net>
28087
28088         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
28089
28090 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
28091
28092         * lib/argp-help.c (validate_uparams): Fix typo
28093         * lib/argp-parse.c (argp_default_options): Consistently begin help
28094         messages with a lowercase letter.
28095
28096 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
28097
28098         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
28099         overrun buffers and shouldn't be used (much as gets shouldn't be
28100         used).
28101         * lib/time_r.c (asctime_r, ctime_r): Likewise.
28102
28103 2006-03-08  Simon Josefsson  <jas@extundo.com>
28104
28105         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
28106         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
28107
28108 2006-03-08  Simon Josefsson  <jas@extundo.com>
28109
28110         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
28111         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
28112
28113 2006-03-08  Simon Josefsson  <jas@extundo.com>
28114
28115         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
28116         signal that configure disabled the device.
28117
28118 2006-03-08  Simon Josefsson  <jas@extundo.com>
28119
28120         * build-aux/maint.mk: Fix refresh-po, to handle no translated
28121         languages.
28122
28123 2006-03-07  Simon Josefsson  <jas@extundo.com>
28124
28125         * modules/getopt (Depends-on): Add unistd.
28126
28127         * modules/unistd: New file.
28128
28129 2006-03-07  Simon Josefsson  <jas@extundo.com>
28130
28131         * modules/gc-random: New file.
28132
28133 2006-03-07  Simon Josefsson  <jas@extundo.com>
28134
28135         * m4/unistd_h.m4: New file.
28136
28137 2006-03-07  Simon Josefsson  <jas@extundo.com>
28138
28139         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
28140         test to be side-effect free by storing the result in the cache
28141         variable gl_cv_lib_readline, and moving the assignment of
28142         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
28143         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
28144
28145 2006-03-07  Simon Josefsson  <jas@extundo.com>
28146
28147         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
28148         error on missing devices (the functions will return an error).
28149
28150         * m4/gc.m4: Move random stuff to gc-random.m4
28151
28152 2006-03-07  Simon Josefsson  <jas@extundo.com>
28153
28154         * lib/unistd_.h: New file.
28155
28156 2006-03-07  Simon Josefsson  <jas@extundo.com>
28157
28158         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
28159
28160 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
28161
28162         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
28163         Problem reported by Juan Manuel Guerrero.
28164
28165 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
28166
28167         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
28168         the unistd module.
28169         * lib/getlogin_r.c: Likewise.
28170         * lib/getlogin_r.h: Likewise.
28171         * lib/glob.c: Likewise.
28172         * lib/pagealign_alloc.c: Likewise.
28173         * lib/unistd_.h: Remove; no longer needed.
28174
28175 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
28176
28177         * MODULES.html.sh (Support for systems lacking POSIX:2001):
28178         Add unistd.
28179         * modules/c-stack (Depends-on): Add unistd.
28180         * modules/getlogin_r: Likewise.
28181         * modules/glob: Likewise.
28182         * modules/pagealign_alloc: Likewise.
28183         * modules/unistd (Files): Remove lib/unistd_.h.
28184         (EXTRA_DIST): Remove.
28185         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
28186         need unistd_.h.
28187         (MOSTLYCLEANFILES): Remove unistd.h-t.
28188
28189 2006-03-03  Simon Josefsson  <jas@extundo.com>
28190
28191         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
28192
28193 2006-03-03  Simon Josefsson  <jas@extundo.com>
28194
28195         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
28196         libidn and bison.
28197
28198 2006-03-03  Simon Josefsson  <jas@extundo.com>
28199
28200         * build-aux/maint.mk: Add indent target.
28201
28202 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
28203
28204         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
28205         our replacement poll.h in any case, to avoid a differing
28206         declaration from a system header.  Seen on AIX.
28207
28208 2006-03-01  Simon Josefsson  <jas@extundo.com>
28209
28210         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
28211         <kasal@ucw.cz>.
28212
28213 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
28214
28215         * modules/gettime (Depends-on): Add extensions module.
28216         * modules/nanosleep (Depends-on): Likewise.
28217         * modules/settime (Depends-on): Likewise.
28218
28219 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
28220
28221         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
28222         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
28223         pedantically.
28224         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
28225         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
28226
28227         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
28228         not "==".  Reported by Ralf Wildenhues.
28229
28230 2006-03-01  Karl Berry  <karl@gnu.org>
28231
28232         * doc/Copyright/request-*: new files, synced from gnuorg.
28233
28234 2006-03-01  Karl Berry  <karl@gnu.org>
28235
28236         * config/srclist.txt (Copyright/*): new entries.
28237
28238 2006-02-28  Simon Josefsson  <jas@extundo.com>
28239
28240         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
28241
28242 2006-02-27  Simon Josefsson  <jas@extundo.com>
28243
28244         * lib/base64.h: Indent #define's.  From Jim Meyering
28245         <jim@meyering.net>.
28246
28247 2006-02-27  Jim Meyering  <jim@meyering.net>
28248
28249         Revert the change of 2006-02-24, so these files can continue
28250         to be sync'd from gettext.
28251         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
28252         of `config.h'.
28253
28254 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
28255
28256         * modules/intprops: New file.
28257         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
28258         Add intprops.
28259         * modules/getloadavg (Files): Remove lib/intprops.h.
28260         (Depends-on): Add intprops.
28261         * modules/human: Likewise.
28262         * modules/inttostr: Likewise.
28263         * modules/openat: Likewise.
28264         * modules/sig2str: Likewise.
28265         * modules/userspec: Likewise.
28266         * modules/utimecmp: Likewise.
28267         * modules/xnanosleep: Likewise.
28268         * modules/xstrtol: Likewise.
28269
28270 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
28271
28272         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
28273         * modules/lock-tests (TESTS): Use $(EXEEXT).
28274         * modules/tls-tests: Likewise.
28275         * modules/argp-tests: Likewise.
28276         (check_PROGRAMS): New var, replacing...
28277         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
28278
28279 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28280
28281         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
28282         `config.h'.
28283
28284 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
28285
28286         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
28287
28288 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28289
28290         Sync from coreutils.
28291         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
28292         gl_CHDIR_SAFER.
28293
28294 2006-02-22  Jim Meyering  <jim@meyering.net>
28295
28296         Sync from coreutils.
28297         * m4/chdir-safer.m4: New file.
28298
28299 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
28300
28301         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
28302         AT_FDCWD exceeds INT_MAX.
28303         * lib/openat.h (AT_FDCWD): Likewise.
28304
28305 2006-02-17  Eric Blake  <address@hidden>
28306
28307         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
28308
28309 2006-02-16  Simon Josefsson  <jas@extundo.com>
28310
28311         * modules/getaddrinfo (Depends-on): Add sys_socket.
28312
28313 2006-02-15  Simon Josefsson  <jas@extundo.com>
28314
28315         * build-aux/maint.mk: Add dsyntax-check rule.
28316
28317 2006-02-15  Eric Blake  <ebb9@byu.net>
28318
28319         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
28320         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
28321         'present but cannot compile' warnings on cygwin.
28322         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
28323         use ws2tcpip.h if sys/socket.h works.
28324         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
28325         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
28326
28327 2006-02-14  Simon Josefsson  <jas@extundo.com>
28328
28329         * modules/maintainer-makefile (Files): Rename.
28330
28331         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
28332         and (the local) Makefile.cfg to maint-cfg.mk.
28333
28334         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
28335         to the latter.
28336
28337         * modules/maintainer-makefile: New module.
28338
28339         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
28340         severaly stripped to make it possible to build it up from scratch
28341         with reliable tests.
28342
28343         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
28344         fixes to permit overriding the default actions when configure and
28345         makefile are not available.
28346
28347 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
28348
28349         Sync from coreutils.
28350         * modules/lstat (Depends-on): Don't depend on xalloc.
28351         (License): Change from GPL to LGPL, since this is now simply a
28352         replacement for a libc function.
28353
28354 2006-02-14  Jim Meyering  <jim@meyering.net>
28355
28356         Sync from coreutils.
28357
28358         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
28359         failure on deficient systems, and simplify gnulib lgpl dependencies.
28360         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
28361         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
28362
28363         * lib/xalloc-die.c: Remove unused definition of N_.
28364
28365 2006-02-14  Jim Meyering  <jim@meyering.net>
28366
28367         Sync from coreutils.
28368         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
28369         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
28370         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
28371         double-quote uses of that variable, to accommodate the rare case in
28372         which getmntent is available in none of the libraries checked.  This
28373         happens at least on FreeBSD 5.0.
28374
28375 2006-02-13  Simon Josefsson  <jas@extundo.com>
28376
28377         * gnulib-tool (Usage): Fix --import, from
28378         karl@freefriends.org (Karl Berry).
28379
28380 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
28381
28382         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
28383
28384 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
28385
28386         * lib/argp-namefrob.h: Restore changes accidentally lost during the
28387         "autoupdate" on 2005-12-12.
28388
28389 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
28390
28391         * modules/closeout (Depends-on): Remove atexit.
28392
28393 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
28394
28395         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
28396         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
28397
28398 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
28399
28400         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
28401         __EXTENSIONS__ if this causes compilation to fail.  Problem
28402         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
28403         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
28404
28405 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
28406
28407         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
28408         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
28409         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
28410         All uses changed.
28411
28412 2006-01-26  Simon Josefsson  <jas@extundo.com>
28413
28414         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
28415         prototype is visible on mingw32.
28416
28417         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
28418         for mingw32.
28419
28420         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
28421         mingw32).
28422
28423 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
28424
28425         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
28426         attempt to open for write; this always fails, at least on POSIX
28427         hosts.  This reinstates the 2006-01-09 change, which was
28428         inadvertently removed.
28429
28430 2006-01-26  Bruno Haible  <bruno@clisp.org>
28431
28432         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
28433         Reported by Paul Eggert.
28434
28435 2006-01-26  Bruno Haible  <bruno@clisp.org>
28436             Paul Eggert  <eggert@cs.ucla.edu>
28437
28438         * lib/stdbool_.h (_Bool)
28439         [(! (defined __cplusplus || defined __BEOS__)
28440           && !defined __GNUC__
28441           && !(defined __HP_cc || defined __xlc__
28442                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
28443                || defined __sgi))]:
28444         #define to signed char in these cases too; this simplifies
28445         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
28446         etc., separately) and makes it more conservative.
28447
28448 2006-01-25  Simon Josefsson  <jas@extundo.com>
28449
28450         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
28451         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
28452         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
28453
28454 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
28455
28456         * lib/argp-namefrob.h: Bugfix. Remove stray #
28457
28458 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
28459
28460         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
28461         so that we test the test.
28462         Check for yet another HP-UX cc bug involving *bool |= bool.
28463
28464 2006-01-25  Karl Berry  <karl@gnu.org>
28465
28466         * config/srclist.txt (vasnprintf.c): sync lost.
28467
28468 2006-01-25  Jim Meyering  <jim@meyering.net>
28469
28470         Sync from the stable (b5) branch of coreutils:
28471
28472         * lib/fts.c (fts_children): Don't let close() clobber errno from
28473         failed fchdir().
28474
28475         * lib/fts.c (fts_stat): When following a symlink-to-directory,
28476         don't necessarily interpret stat-fails+lstat-succeeds as indicating
28477         a dangling symlink.  That can also happen at least for ELOOP.
28478         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
28479         FYI, this bug predates the inclusion of fts.c in coreutils.
28480
28481         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
28482         in their own block, so pre-c99 compilers don't object.
28483
28484         Avoid the double-free (first in fts_read, second in fts_close) that
28485         would occur when an `active' directory is made inaccessible (e.g.,
28486         via chmod a-x) during a traversal.
28487         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
28488         before returning.  Reproduce this failure by
28489         mkdir -p a/b; cd a; chmod a-x . b
28490         Reported by Stavros Passas.
28491
28492 2006-01-25  Jim Meyering  <jim@meyering.net>
28493
28494         * lib/fileblocks.c: Remove more useless parentheses.
28495         * lib/readutmp.h: Likewise.
28496
28497 2006-01-25  Bruno Haible  <bruno@clisp.org>
28498
28499         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
28500         warnings.
28501         Reported by Paul Eggert.
28502
28503 2006-01-25  Bruno Haible  <bruno@clisp.org>
28504
28505         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
28506         rid of a trap command. For Solaris sh.
28507         Reported by Mark D. Baushke <mdb@gnu.org>.
28508
28509 2006-01-24  Simon Josefsson  <jas@extundo.com>
28510
28511         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
28512         Bruno.
28513
28514 2006-01-24  Karl Berry  <karl@gnu.org>
28515
28516         * config/srclist.txt (argp-namefrob.h): sync lost.
28517
28518 2006-01-24  Jim Meyering  <jim@meyering.net>
28519
28520         * modules/openat (Files): Add lib/intprops.h.
28521         From Mark D. Baushke.
28522
28523 2006-01-24  Jim Meyering  <jim@meyering.net>
28524
28525         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
28526         Reported by Mark D. Baushke.
28527
28528 2006-01-24  Jim Meyering  <jim@meyering.net>
28529
28530         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
28531
28532 2006-01-24  Bruno Haible  <bruno@clisp.org>
28533
28534         * modules/strnlen (Maintainer): Change from glibc to all.
28535
28536 2006-01-24  Bruno Haible  <bruno@clisp.org>
28537
28538         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
28539         Patch by Paul Eggert.
28540
28541 2006-01-24  Bruno Haible  <bruno@clisp.org>
28542
28543         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
28544         already has it.
28545         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
28546         2005-11-26.
28547
28548         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
28549         'signed char' to avoid problems with the built-in _Bool type.
28550         Reported by Paul Eggert on 2005-11-26.
28551
28552 2006-01-24  Bruno Haible  <bruno@clisp.org>
28553
28554         * gnulib-tool (func_import): Avoid constructing complicated sed
28555         expressions inside backquote.
28556         Report and solution by Mark D. Baushke <mdb@gnu.org>.
28557
28558 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
28559
28560         These changes imported from libc.
28561         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
28562         test and two separate function calls.
28563         * lib/strndup.c (__strndup): Add libc_hidden_def.
28564
28565 2006-01-23  Simon Josefsson  <jas@extundo.com>
28566
28567         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
28568         Remove the test_*_SOURCES variable: automake infers it by default.
28569         * modules/tls-tests: Likewise.
28570
28571 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
28572
28573         Work around porting bugs reported by Dieter in
28574         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
28575         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
28576         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
28577         Include "getopt.h" first, to check interface.
28578         (getenv): Declare only if defined HAVE_DECL_GETENV &&
28579         !HAVE_DECL_GETENV.
28580         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
28581         (__strndup): Revert to K&R-style function dfns, the glibc style.
28582         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
28583         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
28584         Include strnlen.h first, to get prototype properly.
28585         (strnlen): Renamed from __strnlen.
28586         Remove weak alias.
28587
28588 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
28589
28590         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
28591
28592 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
28593
28594         * config/srclist.txt: Adjust to reflect glibc reorganization.
28595         This affects only comments.
28596
28597 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
28598
28599          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
28600          Reported by Bruce Korb <bkorb@gnu.org>.
28601
28602 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
28603
28604         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
28605         to pacify gcc -Wswitch-default.
28606
28607 2006-01-22  Bruno Haible  <bruno@clisp.org>
28608
28609         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
28610         temporary buffer for sprintf, take into account the precision also
28611         for 'd', 'i', 'u', 'o', 'x', 'X'.
28612
28613 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
28614
28615         * modules/argp-tests: New module
28616         * tests/test-argp.c: New file
28617         * tests/test-argp-2.sh: New file
28618
28619 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
28620
28621         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
28622         (__argp_base_name): Removed
28623         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
28624         typo.
28625         (__argp_base_name): Provide macro definition or extern declaration
28626         depending on the configuration
28627
28628 2006-01-20  Simon Josefsson  <jas@extundo.com>
28629
28630         * modules/inet_ntop (Depends-on): Depend on sys_socket.
28631
28632 2006-01-20  Simon Josefsson  <jas@extundo.com>
28633
28634         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
28635
28636 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
28637
28638         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
28639         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
28640         Suggested by Bruno Haible.
28641
28642 2006-01-20  Karl Berry  <karl@gnu.org>
28643
28644         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
28645         until changes propagate, I guess.
28646
28647 2006-01-19  Simon Josefsson  <jas@extundo.com>
28648
28649         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
28650
28651 2006-01-19  Simon Josefsson  <jas@extundo.com>
28652
28653         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
28654
28655 2006-01-19  Simon Josefsson  <jas@extundo.com>
28656
28657         * gnulib-tool: Set check_PROGRAMS.
28658
28659         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
28660         modules/des-tests, modules/gc-arcfour-tests,
28661         modules/gc-arctwo-tests, modules/gc-des-tests,
28662         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
28663         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
28664         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
28665         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
28666         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
28667         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
28668         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
28669         test_*_SOURCES.
28670
28671 2006-01-18  Simon Josefsson  <jas@extundo.com>
28672
28673         * modules/socklen (Depends-on): Depend on sys_socket.
28674
28675 2006-01-18  Simon Josefsson  <jas@extundo.com>
28676
28677         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
28678         modules/des-tests, modules/gc-arcfour-tests,
28679         modules/gc-arctwo-tests, modules/gc-des-tests,
28680         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
28681         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
28682         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
28683         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
28684         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
28685         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
28686         $(EXEEXT) to automake TESTS variable, for mingw32.
28687
28688 2006-01-17  Simon Josefsson  <jas@extundo.com>
28689
28690         * modules/socklen (Include): Need sys/socket.h.
28691
28692 2006-01-17  Bruno Haible  <bruno@clisp.org>
28693
28694         * modules/ssize_t (Include): Add <sys/types.h>.
28695
28696 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
28697
28698         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
28699         it's not portable and it doesn't work with cross-compiles.
28700         Problem reported by Bruno Haible.  Fix missing-$ typo in
28701         'test "gl_cv_ignore_unused_libraries" ...' that prevented
28702         -zignore from being used with Sun's C compiler.
28703
28704 2006-01-12  Simon Josefsson  <jas@extundo.com>
28705
28706         * lib/base64.c: Fix warning, reported by Bruno Haible
28707         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
28708
28709 2006-01-12  Bruno Haible  <bruno@clisp.org>
28710
28711         * modules/ldd: New file.
28712         * build-aux/ldd.sh.in: New file.
28713         * MODULES.html.sh (Support for building libraries and executables): Add
28714         ldd.
28715
28716 2006-01-12  Bruno Haible  <bruno@clisp.org>
28717
28718         * m4/ldd.m4: New file.
28719
28720 2006-01-12  Bruno Haible  <bruno@clisp.org>
28721
28722         * gnulib-tool (func_import, func_create_testdir): Don't go into an
28723         endless loop while replacing $auxdir with build-aux.
28724
28725 2006-01-11  Simon Josefsson  <jas@extundo.com>
28726
28727         * lib/stdint_.h (SIZE_MAX): Add missing (.
28728
28729 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
28730
28731         Sync from coreutils.
28732         * lib/md5.c: Fix commentary typos.
28733         (alignof, UNALIGNED_P): No need for a GCC-specific version.
28734         * lib/md5.h (__attribute__): Remove; unused.
28735         * lib/sha1.c: Fix commentary to match md5 better.
28736         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
28737         so that we don't need to worry about alignment.  All uses changed.
28738         This merges the 2005-10-28 md5 change into sha1.
28739
28740 2006-01-11  Jim Meyering  <jim@meyering.net>
28741
28742         Sync from coreutils.
28743         * lib/md5.c (OP): Fix spacing.
28744
28745 2006-01-11  Bruno Haible  <bruno@clisp.org>
28746
28747         Ensure automatic ordering between gl_LOCK and gl_ARGP.
28748         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
28749         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
28750
28751 2006-01-11  Bruno Haible  <bruno@clisp.org>
28752
28753         Ensure automatic ordering between gl_LOCK and gl_ARGP.
28754         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
28755         the "early" section as well.
28756
28757 2006-01-11  Bruno Haible  <bruno@clisp.org>
28758
28759         Avoid "ar: no archive members specified" error on MacOS X.
28760         * gnulib-tool (func_modules_add_dummy): New function.
28761         (func_import, func_create_testdir): Invoke it.
28762
28763 2006-01-11  Bruno Haible  <bruno@clisp.org>
28764
28765         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
28766         with $auxdir in AC_CONFIG_FILES statements.
28767
28768 2006-01-11  Bruno Haible  <bruno@clisp.org>
28769
28770         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
28771         Initialize also noinst_HEADERS to empty.
28772
28773 2006-01-11  Bruno Haible  <bruno@clisp.org>
28774
28775         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
28776         variables.
28777         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
28778         autoreconf.
28779
28780 2006-01-11  Bruno Haible  <bruno@clisp.org>
28781
28782         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
28783         overridable by the user.
28784         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
28785
28786 2006-01-10  Simon Josefsson  <jas@extundo.com>
28787
28788         * modules/sys_socket: New file.
28789
28790 2006-01-10  Simon Josefsson  <jas@extundo.com>
28791
28792         * m4/sys_socket_h.m4: New file.
28793
28794 2006-01-10  Simon Josefsson  <jas@extundo.com>
28795
28796         * lib/socket_.h: New file.
28797
28798 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
28799
28800         * modules/readutmp (Maintainer): Add myself.
28801
28802 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
28803
28804         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
28805         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
28806         People who are still concerned with buggy memcmp implementations
28807         can invoke gl_FUNC_MEMCMP themselves.
28808
28809 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
28810
28811         * lib/regex_internal.h (BITSET_WORD_BITS):
28812         Work around a bug in 64-bit PGC (before version 6.1-2), where the
28813         preprocessor mishandles large unsigned values as if they were signed.
28814         Problem reported by Claudio Fontana in
28815         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
28816
28817 2006-01-10  Jim Meyering  <jim@meyering.net>
28818
28819         Avoid the double-free (first in fts_read, second in fts_close) that
28820         would occur when an `active' directory is made inaccessible (e.g.,
28821         via chmod a-x) during a traversal.
28822         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
28823         before returning.  Reproduce this failure by
28824         mkdir -p a/b; cd a; chmod a-x . b
28825         Reported by Stavros Passas.
28826
28827         Sync from coreutils.
28828         * lib/sha1.c: Tweak grammar in a comment.
28829
28830 2006-01-10  Jim Meyering  <jim@meyering.net>
28831
28832         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
28833         Patch by Joerg Sonnenberger.
28834
28835 2006-01-10  Bruno Haible  <bruno@clisp.org>
28836
28837         * modules/readutmp: Depend on module free.
28838         * modules/strtok_r: Depend on module restrict.
28839
28840 2006-01-10  Bruno Haible  <bruno@clisp.org>
28841
28842         * modules/gettext (configure.ac): Add an invocation of
28843         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
28844
28845 2006-01-10  Bruno Haible  <bruno@clisp.org>
28846
28847         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
28848         Reported by Werner Lemberg <wl@gnu.org>.
28849
28850 2006-01-10  Bruno Haible  <bruno@clisp.org>
28851
28852         * lib/localcharset.c: Update from GNU gettext.
28853
28854 2006-01-10  Bruno Haible  <bruno@clisp.org>
28855
28856         * lib/argp.h (__const): Remove macro. Use const instead.
28857         * lib/argp-fmtstream.h (__const): Likewise.
28858         * lib/glob_.h (__const): Remove macro.
28859         * lib/glob-libc.h: Use const instead of __const.
28860
28861 2006-01-10  Bruno Haible  <bruno@clisp.org>
28862
28863         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
28864         variable.
28865         Needed to avoid an automake error regarding the 'gettext' module.
28866
28867 2006-01-09  Simon Josefsson  <jas@extundo.com>
28868
28869         * modules/inet_ntop (Depends-on): Add restrict.
28870
28871 2006-01-09  Simon Josefsson  <jas@extundo.com>
28872
28873         * modules/gc-rijndael-tests (License): Put under LGPL.
28874
28875         * modules/gc-des-tests (License): Likewise.
28876
28877         * modules/gc-arcfour-tests (License): Likewise.
28878
28879         * modules/gc-arctwo-tests (License): Likewise.
28880
28881         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
28882
28883         * modules/gc-hmac-sha1-tests (Files): Likewise.
28884
28885         * modules/gc-hmac-md5-tests (License): Likewise.
28886
28887         * modules/gc-sha1-tests (License): Likewise.
28888
28889         * modules/gc-md5-tests (License): Likewise.
28890
28891         * modules/gc-md4-tests (License): Likewise.
28892
28893         * modules/gc-md2-tests (License): Likewise.
28894
28895         * modules/gc-tests (License): Likewise.
28896
28897         * modules/des-tests (License): Likewise.
28898
28899         * modules/md4-tests (License): Likewise.
28900
28901         * modules/md2-tests (License): Likewise.
28902
28903 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
28904
28905         Sync from coreutils:
28906
28907         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
28908         * modules/lib-ignore: New file.
28909         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
28910         chdir-safer.m4, lchmod.m4.
28911         * modules/openat: Add mkdirat.c, openat-priv.h.
28912
28913 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
28914
28915         Sync from coreutils.
28916         * m4/lib-ignore.m4: New file.
28917         * m4/lchmod.m4: New file.
28918
28919 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
28920
28921         Sync from coreutils.
28922         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
28923         for write access: POSIX says that must fail.
28924         * lib/fts.c (diropen): Likewise.
28925         * lib/save-cwd.c (save_cwd): Likewise.
28926         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
28927         well, for minor improvements on hosts that lack O_DIRECTORY.
28928         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
28929         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
28930         Fall back on chown if open failed with EACCES.
28931
28932         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
28933         Report an error at compile-time if only a 1-second nominal clock
28934         resolution is found.
28935
28936         * lib/lchmod.h: New file.
28937         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
28938         (make_dir_parents): Use lchown rather than chown, and
28939         lchmod rather than chmod.
28940
28941         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
28942         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
28943         "proc" reported by n0dalus.
28944
28945         * lib/mountlist.c: Include <limits.h>.
28946         (dev_from_mount_options)
28947         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
28948         New function.  It no longer assumes "dev=" has the System V meaning
28949         on Linux (since it doesn't).  It also parses "dev=" more carefully.
28950         (read_file_system_list)
28951         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
28952         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
28953         dev= in that case.
28954
28955         * lib/posixtm.h (PDS_PRE_2000): New macro.
28956         * lib/posixtm.c (year): Arg is now syntax_bits rather than
28957         allow_century.  All usages changed.  Reject dates outside the range
28958         1969-1999 if PDS_PRE_2000 is used.
28959
28960 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
28961
28962         Sync from coreutils.
28963         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
28964         (Time of day items): Mention the possibility of leap seconds.
28965         Problem reported by Dr. David Alan Gilbert.
28966
28967 2006-01-09  Jim Meyering  <jim@meyering.net>
28968
28969         Sync from coreutils.
28970
28971         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
28972
28973         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
28974
28975         * lib/modechange.c (mode_compile): Reject an invalid mode string
28976         that starts with an octal digit.  From Andreas Gruenbacher.
28977
28978         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
28979         and dup to open_safer and dup_safer, respectively.
28980         (openat_permissive): Fix typo in comment.
28981
28982         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
28983         "gettext.h"; either no longer needed or are guaranteed by openat.h.
28984         (_): Remove; no longer needed.
28985         (openat): Renamed from rpl_openat; no need for rpl_openat
28986         since openat.h renames openat for us.
28987         Replace most of the body with a call to openat_permissive,
28988         to avoid duplicate code.
28989         Port to (probably hypothetical) environments were mode_t is
28990         wider than int.
28991         (openat_permissive): Require mode arg, so that we can check
28992         types better.  Put it just after flags.  Change cwd failure
28993         indicator from pointer-to-bool to pointer-to-errno-value.
28994         All callers changed.
28995         Invoke openat_save_fail and/or openat_restore_fail if
28996         cwd_errno is null, so that openat can call us.
28997         (openat_permissive, fdopendir, fstatat, unlinkat):
28998         Simplify errno handling to avoid some duplicate code,
28999         as it's OK to set errno on success.
29000         * lib/openat.h: Revamp code so that function macros depend on
29001         __OPENAT_PREFIX only, not also on AT_FDCWD.
29002         (openat_ro): Remove.  Caller changed to use openat_permissive.
29003         (openat_permissive): Now a macro, if not a function.
29004         (openat_restore_fail, openat_save_fail): Now always functions,
29005         since mkdirat needs them even if __OPENAT_PREFIX is defined.
29006
29007         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
29008         and openat.c.
29009         * lib/mkdirat.c: Include openat-priv.h.
29010         Remove definitions of macros defined therein.
29011         * lib/openat.c: Likewise.
29012
29013         * lib/mkdirat.c (mkdirat): New file and function.
29014         * lib/openat.h (mkdirat): Declare.
29015
29016         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
29017
29018         * lib/openat.h (openat_permissive): Declare.
29019         (openat_ro): Define.
29020
29021         * lib/openat.c (EXPECTED_ERRNO): New macro.
29022         (openat_permissive): New function -- used in remove.c rewrite.
29023         (all functions): Set errno just before returning, only if there
29024         was an actual failure.
29025         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
29026
29027         Emulate openat-family functions using Linux's procfs, if possible.
29028         Idea and some code based on Ulrich Drepper's glibc changes.
29029
29030         * lib/openat.c: (BUILD_PROC_NAME): New macro.
29031         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
29032         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
29033         before falling back on save_cwd and restore_cwd.
29034         (fdopendir, fstatat, unlinkat): Likewise.
29035
29036         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
29037         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
29038
29039         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
29040         as second argument to va_arg.  Otherwise, some versions of gcc
29041         warn that `if this code is reached, the program will abort'.
29042
29043 2006-01-09  Jim Meyering  <jim@meyering.net>
29044
29045         Sync from coreutils.
29046         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
29047         Require openat-priv.h.
29048
29049 2006-01-09  Bruno Haible  <bruno@clisp.org>
29050
29051         * modules/strnlen (Include): Use strnlen.h.
29052
29053 2006-01-09  Bruno Haible  <bruno@clisp.org>
29054
29055         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
29056
29057 2006-01-09  Bruno Haible  <bruno@clisp.org>
29058
29059         * lib/sysexit_.h (EX_OK): New macro.
29060         Suggested by Martin Lambers <marlam@marlam.de>.
29061
29062 2006-01-09  Bruno Haible  <bruno@clisp.org>
29063
29064         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
29065         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
29066
29067 2006-01-09  Bruno Haible  <bruno@clisp.org>
29068
29069         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
29070         numbers.
29071
29072 2006-01-09  Bruno Haible  <bruno@clisp.org>
29073
29074         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
29075         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
29076         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
29077         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
29078
29079 2006-01-09  Bruno Haible  <bruno@clisp.org>
29080
29081         * build-aux/javacomp.sh.in: New file, moved from lib/.
29082         * modules/javacomp-script (Files): Update.
29083         (configure.ac): Add AC_CONFIG_FILES invocation.
29084         (EXTRA_DIST): Remove variable.
29085
29086         * build-aux/javaexec.sh.in: New file, moved from lib/.
29087         * modules/javaexec (Files): Update.
29088         (configure.ac): Add AC_CONFIG_FILES invocation.
29089         (EXTRA_DIST): Remove javaexec.sh.in.
29090
29091         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
29092         * modules/csharpcomp-script (Files): Update.
29093         (configure.ac): Add AC_CONFIG_FILES invocation.
29094         (EXTRA_DIST): Remove variable.
29095
29096         * build-aux/csharpexec.sh.in: New file, moved from lib/.
29097         * modules/csharpexec (Files): Update.
29098         (configure.ac): Add AC_CONFIG_FILES invocation.
29099         (EXTRA_DIST): Remove csharpexec.sh.in.
29100
29101 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
29102
29103         Sync from coreutils.
29104
29105         Add POSIX ACL support
29106         * lib/acl.h (copy_acl, set_acl): Add declarations.
29107         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
29108         systems other than Linux.
29109         (chmod_or_fchmod): New function: use fchmod when possible,
29110         and chmod otherwise.
29111         (file_has_acl): Add a POSIX ACL implementation, with a
29112         Linux-specific subcase.
29113         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
29114         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
29115         acls are unsupported.
29116         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
29117         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
29118         are unsupported.
29119
29120 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
29121
29122         Sync from coreutils.
29123         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
29124
29125 2006-01-07  Bruno Haible  <bruno@clisp.org>
29126
29127         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
29128         gl_EARLY.
29129
29130 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
29131
29132         * lib/strftime.c (tzname): Don't declare if it is already #defined.
29133         Problem reported for Mingw by Mark Junker.
29134
29135 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
29136
29137         * README: Gnulib normally doesn't generate a tarball.
29138
29139 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
29140
29141         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
29142         long int, not int, for nanosecond counts, so that people who are
29143         used to POSIX struct timespec won't be surprised.  Reported by Jim
29144         Meyering.
29145
29146 2005-12-28  Bruno Haible  <bruno@clisp.org>
29147
29148         * build-aux/config.rpath: Update from GNU gettext.
29149
29150 2005-12-16  Jim Meyering  <jim@meyering.net>
29151
29152         * modules/fprintftime: New module.
29153         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
29154
29155 2005-12-16  Jim Meyering  <jim@meyering.net>
29156
29157         * m4/fprintftime.m4: New file.
29158
29159 2005-12-16  Jim Meyering  <jim@meyering.net>
29160
29161         * lib/fprintftime.c, lib/fprintftime.h: New files.
29162
29163 2005-12-15  Simon Josefsson  <jas@extundo.com>
29164
29165         * modules/socklen (configure.ac): Fix M4 macro name, to align with
29166         new m4/socklen.m4.
29167
29168 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
29169
29170         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
29171         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
29172
29173 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
29174
29175         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
29176         * lib/argp-help.c (fill_in_uparams): Check if the constructed
29177         struct uparams is valid. Fall back to the default values if it is
29178         not.
29179
29180 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
29181
29182         * modules/argp (Files): Add argp-pin.c
29183         (Depends-on): dirname
29184         (lib_SOURCES): Add argp-pin.c
29185
29186 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
29187
29188         * m4/argp.m4:  Check if program_invocation_name and
29189         program_invocation_short_name are declared and define appropriate
29190         macros if they are not.
29191
29192 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
29193
29194         * lib/argp-help.c (__argp_base_name): New function
29195         (__argp_short_program_name): Rewrite using __argp_base_name
29196         * lib/argp-namefrob.h: Define program_invocation_name and
29197         program_invocation_short_name if requested
29198         (__argp_base_name): Add prototype
29199         * lib/argp-parse.c (argp_def): Use gettext wrappers
29200         (argp_default_parser): Use __argp_base_name
29201         * lib/argp-pin.c: New file. Defines program_invocation_name and
29202         program_invocation_short_name on systems that lack them.
29203
29204 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
29205
29206         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
29207         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
29208         porting problem reported by Georg Schwarz in
29209         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
29210
29211 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
29212
29213         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
29214         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
29215         porting problem reported by Georg Schwarz in
29216         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
29217
29218 2005-12-05  Bruno Haible  <bruno@clisp.org>
29219
29220         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
29221         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
29222         Reported by Mark Junker <mjscod@gmx.de>.
29223
29224 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
29225
29226         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
29227         Use implementation from Albert Chin, with some
29228         comments/corrections by Stepan Kasal and myself.
29229
29230 2005-12-02  Bruno Haible  <bruno@clisp.org>
29231
29232         * gnulib-tool (func_import): Accept GPLed build tool modules when
29233         --lgpl is given.
29234         * modules/csharpcomp-script: New file.
29235         * modules/csharpcomp: Depend on it.
29236         * modules/javacomp-script: New file.
29237         * modules/javacomp: Depend on it.
29238         Suggested by Simon Josefsson.
29239
29240 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
29241
29242         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
29243         statement, to work around an HP-UX 10.20 compiler bug reported by
29244         Peter O'Gorman.
29245
29246 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
29247
29248         * modules/savedir (Depends-on): Add openat.
29249
29250 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
29251
29252         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
29253         (uintmax_t) [defined uintmax_t]: Do not declare.
29254         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
29255         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
29256         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
29257         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
29258         sake of portability to weird hosts that C allows (though we don't
29259         know of any practical examples).
29260
29261         * lib/savedir.h (fdsavedir): New decl.
29262         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
29263         contains most of the former guts of savedir.
29264         (savedir): Use savedirstream.
29265         Include "openat.h".
29266
29267 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
29268
29269         * modules/obstack (Files): Add m4/ulonglong.m4.
29270         Problem reported by Davide Angelocola.
29271
29272 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
29273
29274         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
29275         coreutils no longer futzes with rounding modes.
29276
29277 2005-11-14  Jim Meyering  <jim@meyering.net>
29278
29279         * lib/mkstemp-safer.c: Include <config.h>, required for possible
29280         replacement of mkstemp.
29281
29282 2005-11-10  Simon Josefsson  <jas@extundo.com>
29283
29284         * lib/readline.c: Remove EOL.
29285
29286 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
29287
29288         * modules/gethrxtime (Depends-on): Add gettime.
29289
29290 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
29291
29292         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
29293         or gettimeofday; no longer needed.
29294
29295 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
29296
29297         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
29298         time business.
29299         (gethrxtime) [! (HAVE_NANOUPTIME
29300         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
29301         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
29302         our own approximation.
29303
29304 2005-11-08  Eric Blake  <ebb9@byu.net>
29305
29306         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
29307
29308 2005-11-08  Eric Blake  <ebb9@byu.net>
29309
29310         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
29311
29312 2005-11-04  Bruno Haible  <bruno@clisp.org>
29313
29314         * gnulib-tool: Implement --update mode.
29315
29316 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
29317
29318         Fix porting problem reported by Theodoros V. Kalamatianos.
29319         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
29320         Don't assume that futimes failing means we must fail.
29321
29322 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
29323
29324         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
29325         variables to suggest the intended function of the PATH_MAX check.
29326
29327 2005-10-30  Kean Johnston  <jkj@sco.com>
29328
29329         Trivial changes to support SCO systems.
29330         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
29331         as PATH_MAX.
29332         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
29333         where __ptr is null when no I/O is pending.
29334
29335 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
29336
29337         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
29338         leave errno alone.  Problem reported by Dmitry V. Levin.
29339
29340 2005-10-28  Simon Josefsson  <jas@extundo.com>
29341
29342         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
29343         Test more.
29344
29345         * tests/test-gc-md2.c, tests/test-md2.c: New files.
29346
29347         * modules/md2, modules/md2-tests: New files.
29348
29349 2005-10-28  Simon Josefsson  <jas@extundo.com>
29350
29351         * m4/inet_ntop.m4: More tests.
29352
29353         * m4/gc-md2.m4, md2.m4: New file.
29354
29355 2005-10-28  Simon Josefsson  <jas@extundo.com>
29356
29357         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
29358         "restrict" keywords, as per POSIX.  Protect the function
29359         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
29360         Don't use K&R prototypes.  Check the sprintf return values.
29361         Re-define EAFNOSUPPORT if not present.  Indent.
29362
29363         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
29364         suggested by Bruno Haible <bruno@clisp.org>.
29365
29366         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
29367
29368         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
29369
29370         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
29371         libgcrypt).
29372
29373         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
29374
29375         * lib/md2.h, lib/md2.c: New files.
29376
29377 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
29378
29379         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
29380         errno alone.  Problem reported by Frederic Jolliton.
29381
29382 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
29383
29384         * modules/verify (License): Change from GPL to LGPL.  This is a
29385         tiny module and there are apparently near-equivalents that are
29386         under the BSD license.
29387
29388 2005-10-24  Simon Josefsson  <jas@extundo.com>
29389
29390         * modules/sha1: Relicense to LGPL.
29391
29392 2005-10-24  Simon Josefsson  <jas@extundo.com>
29393
29394         * lib/md4.h: Shrink buffer size, now that we changed the type.
29395
29396 2005-10-23  Simon Josefsson  <jas@extundo.com>
29397
29398         * gnulib-tool (func_import): Fix --tests-base.
29399
29400 2005-10-22  Simon Josefsson  <jas@extundo.com>
29401
29402         * modules/arcfour (Depends-on): Need stdint.
29403
29404 2005-10-22  Simon Josefsson  <jas@extundo.com>
29405
29406         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
29407         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
29408
29409 2005-10-22  Simon Josefsson  <jas@extundo.com>
29410
29411         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
29412         suggested by Bruno Haible <bruno@clisp.org>.
29413
29414 2005-10-22  Simon Josefsson  <jas@extundo.com>
29415
29416         * lib/crc.h: Include stddef.h, for size_t.
29417
29418 2005-10-22  Simon Josefsson  <jas@extundo.com>
29419
29420         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
29421         arcfour_context struct (simplify test vector testing in GNU
29422         Shishi).
29423
29424 2005-10-21  Simon Josefsson  <jas@extundo.com>
29425
29426         * modules/des, modules/des-tests: New files.
29427
29428         * modules/gc-des, modules/gc-des-tests: New files.
29429
29430         * tests/test-des.c, tests/test-gc-des.c: New file.
29431
29432 2005-10-21  Simon Josefsson  <jas@extundo.com>
29433
29434         * modules/arctwo, modules/arctwo-tests: New files.
29435
29436         * tests/test-arctwo.c: New file.
29437
29438         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
29439
29440         * tests/test-gc-arctwo.c: New file.
29441
29442 2005-10-21  Simon Josefsson  <jas@extundo.com>
29443
29444         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
29445         Bruno Haible <bruno@clisp.org>.
29446
29447         * m4/gc-des.m4: New file.
29448
29449 2005-10-21  Simon Josefsson  <jas@extundo.com>
29450
29451         * m4/arctwo.m4: New file.
29452
29453         * m4/gc-arctwo.m4: New file.
29454
29455 2005-10-21  Simon Josefsson  <jas@extundo.com>
29456
29457         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
29458         block.
29459
29460 2005-10-21  Simon Josefsson  <jas@extundo.com>
29461
29462         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
29463         <bruno@clisp.org>.
29464
29465         * lib/hmac-sha1.c (hmac_sha1): Likewise.
29466
29467         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
29468         Bruno Haible <bruno@clisp.org>.
29469
29470         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
29471         <bruno@clisp.org>.
29472
29473 2005-10-21  Simon Josefsson  <jas@extundo.com>
29474
29475         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
29476
29477 2005-10-21  Simon Josefsson  <jas@extundo.com>
29478
29479         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
29480
29481 2005-10-21  Simon Josefsson  <jas@extundo.com>
29482
29483         * lib/des.h, lib/des.c: New files.
29484
29485         * lib/gc-gnulib.c: Support DES.c
29486
29487 2005-10-21  Simon Josefsson  <jas@extundo.com>
29488
29489         * lib/arctwo.h, lib/arctwo.c: New files.
29490
29491         * lib/gc-gnulib.c: Support ARCTWO.
29492
29493 2005-10-21  Simon Josefsson  <jas@extundo.com>
29494
29495         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
29496         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
29497
29498 2005-10-21  Simon Josefsson  <jas@extundo.com>
29499
29500         * gnulib-tool (func_import, func_create_testdir): Define automake
29501         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
29502         Makefile.am snippet),
29503         suggested by Bruno Haible <bruno@clisp.org>.
29504
29505         * modules/gc (Makefile.am): Use it.
29506
29507 2005-10-21  Bruno Haible  <bruno@clisp.org>
29508
29509         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
29510         patch.
29511
29512 2005-10-19  Simon Josefsson  <jas@extundo.com>
29513
29514         * tests/test-gc-rijndael.c: New file.
29515
29516         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
29517
29518 2005-10-19  Simon Josefsson  <jas@extundo.com>
29519
29520         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
29521         interface too.
29522
29523 2005-10-19  Simon Josefsson  <jas@extundo.com>
29524
29525         * tests/test-gc-arcfour.c: New file.
29526
29527         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
29528
29529 2005-10-19  Simon Josefsson  <jas@extundo.com>
29530
29531         * modules/gc-md4, modules/gc-md4-tests: New file.
29532
29533         * tests/test-gc-md4.c: New file.
29534
29535 2005-10-19  Simon Josefsson  <jas@extundo.com>
29536
29537         * m4/gc-md4.m4: New file.
29538
29539 2005-10-19  Simon Josefsson  <jas@extundo.com>
29540
29541         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
29542         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
29543         <kasal@ucw.cz>.
29544
29545 2005-10-19  Simon Josefsson  <jas@extundo.com>
29546
29547         * m4/gc-arcfour.m4: New file.
29548
29549         * m4/gc-rijndael.m4: New file.
29550
29551 2005-10-19  Simon Josefsson  <jas@extundo.com>
29552
29553         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
29554
29555 2005-10-19  Simon Josefsson  <jas@extundo.com>
29556
29557         * lib/gc-gnulib.c: Support ARCFOUR.
29558
29559 2005-10-19  Simon Josefsson  <jas@extundo.com>
29560
29561         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
29562         support.
29563
29564         * lib/gc.h: Add ECB enum type.
29565
29566         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
29567
29568 2005-10-18  Simon Josefsson  <jas@extundo.com>
29569
29570         * tests/test-md5.c: New file.
29571
29572         * modules/md5-tests: New file.
29573
29574 2005-10-18  Simon Josefsson  <jas@extundo.com>
29575
29576         * tests/test-md4.c: New file.
29577
29578         * modules/md4, modules/md4-tests: New files.
29579
29580 2005-10-18  Simon Josefsson  <jas@extundo.com>
29581
29582         * m4/md4.m4: New file.
29583
29584 2005-10-18  Simon Josefsson  <jas@extundo.com>
29585
29586         * lib/md4.h, lib/md4.c: New files, based on md5.?.
29587
29588 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
29589
29590         * gnulib-tool (func_create_testdir): Omit the second check whether
29591         BUILT_SOURCES in nonempty.
29592
29593 2005-10-17  Simon Josefsson  <jas@extundo.com>
29594
29595         * tests/test-rijndael.c: New file.
29596
29597 2005-10-17  Simon Josefsson  <jas@extundo.com>
29598
29599         * modules/sha1: Depend on stdint instead of md5.
29600
29601         * modules/md5: Depend on stdint, remove uint32_t.
29602
29603 2005-10-17  Simon Josefsson  <jas@extundo.com>
29604
29605         * modules/gc-sha1-tests: New file.
29606
29607         * tests/test-gc-sha1.c: New file.
29608
29609 2005-10-17  Simon Josefsson  <jas@extundo.com>
29610
29611         * m4/md5.m4: Remove call to uint32_t.m4.
29612
29613 2005-10-17  Simon Josefsson  <jas@extundo.com>
29614
29615         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
29616
29617         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
29618         md5.h.
29619
29620         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
29621
29622         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
29623
29624 2005-10-17  Simon Josefsson  <jas@extundo.com>
29625
29626         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
29627
29628 2005-10-17  Simon Josefsson  <jas@extundo.com>
29629
29630         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
29631
29632 2005-10-17  Simon Josefsson  <jas@extundo.com>
29633
29634         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
29635
29636         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
29637
29638 2005-10-17  Bruno Haible  <bruno@clisp.org>
29639
29640         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
29641         that it can also be used in a test.
29642
29643 2005-10-16  Bruno Haible  <bruno@clisp.org>
29644
29645         * gnulib-tool (func_emit_tests_Makefile_am): Also define
29646         TESTS_ENVIRONMENT, so that individual tests can augment it.
29647
29648         * gnulib-tool (func_create_testdir): Use an intermediate target for
29649         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
29650         macros, like $(ALLOCA_H), which cannot be passed through the command
29651         line.
29652
29653 2005-10-15  Simon Josefsson  <jas@extundo.com>
29654
29655         * modules/rijndael-tests: New file.
29656
29657         * modules/rijndael: New file.
29658
29659 2005-10-15  Simon Josefsson  <jas@extundo.com>
29660
29661         * m4/rijndael.m4: New file.
29662
29663 2005-10-15  Simon Josefsson  <jas@extundo.com>
29664
29665         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
29666
29667         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
29668
29669 2005-10-14  Simon Josefsson  <jas@extundo.com>
29670
29671         * tests/test-arcfour.c: New file.
29672
29673         * modules/arcfour, modules/arcfour-tests: New files.
29674
29675 2005-10-14  Simon Josefsson  <jas@extundo.com>
29676
29677         * m4/arcfour.m4: New file.
29678
29679 2005-10-14  Simon Josefsson  <jas@extundo.com>
29680
29681         * lib/arcfour.h, lib/arcfour.c: New files.
29682
29683 2005-10-14  Roland McGrath  <roland@redhat.com>
29684
29685         Import from libc.  [BZ #1331]
29686         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
29687         macro argument.
29688         Reported by Matej Vela <vela@debian.org>.
29689
29690 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
29691
29692         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
29693         include <wchar.h>; no longer needed.
29694
29695 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
29696
29697         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
29698
29699 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
29700         and  Ulrich Drepper  <drepper@redhat.com>
29701
29702         Import from libc.
29703         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
29704         instead of inline stream orientation test and two separate
29705         function calls.  Pay no attention to USE_IN_LIBIO.
29706
29707 2005-10-13  Simon Josefsson  <jas@extundo.com>
29708
29709         * modules/gc-hmac-md5-tests: New file.
29710
29711         * tests/test-gc-hmac-sha1.c: New file.
29712
29713         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
29714
29715         * modules/gc-hmac-md5-tests: New file.
29716
29717         * tests/test-gc-md5.c: New file.
29718
29719         * modules/gc-md5-tests: New file.
29720
29721 2005-10-13  Simon Josefsson  <jas@extundo.com>
29722
29723         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
29724         Move memory allocation outside of loop.
29725
29726 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
29727
29728         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
29729         intermediate directory is in a read-only file system.  Problem
29730         reported by Eric Blake.
29731
29732 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
29733
29734         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
29735
29736 2005-10-12  Simon Josefsson  <jas@extundo.com>
29737
29738         * tests/test-hmac-sha1.c: New file.
29739
29740         * modules/hmac-sha1-tests: New file.
29741
29742         * modules/hmac-sha1: New file.
29743
29744 2005-10-12  Simon Josefsson  <jas@extundo.com>
29745
29746         * modules/gc-sha1: New file.
29747
29748 2005-10-12  Simon Josefsson  <jas@extundo.com>
29749
29750         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
29751
29752         * tests/test-gc-pbkdf2-sha1.c: New file.
29753
29754 2005-10-12  Simon Josefsson  <jas@extundo.com>
29755
29756         * modules/gc-md5, modules/gc-hmac-md5: New files.
29757
29758         * modules/gc (Files): Remove md5, memxor and hmac files.
29759
29760 2005-10-12  Simon Josefsson  <jas@extundo.com>
29761
29762         * m4/gc-pbkdf2-sha1.m4: New file.
29763
29764         * m4/gc-hmac-sha1.m4: New file.
29765
29766         * m4/gc-sha1: New file.
29767
29768         * m4/hmac-sha1.m4: New file.
29769
29770 2005-10-12  Simon Josefsson  <jas@extundo.com>
29771
29772         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
29773
29774         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
29775
29776 2005-10-12  Simon Josefsson  <jas@extundo.com>
29777
29778         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
29779         suggested by Bruno Haible <bruno@clisp.org>.
29780
29781 2005-10-12  Simon Josefsson  <jas@extundo.com>
29782
29783         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
29784
29785 2005-10-12  Simon Josefsson  <jas@extundo.com>
29786
29787         * lib/gc-pbkdf2-sha1.c: New file.
29788
29789         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
29790
29791 2005-10-12  Simon Josefsson  <jas@extundo.com>
29792
29793         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
29794
29795         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
29796
29797 2005-10-12  Simon Josefsson  <jas@extundo.com>
29798
29799         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
29800         GC_USE_HMAC_MD5, respectively.
29801
29802         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
29803         (gc_md5): Fix typo.
29804
29805         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
29806
29807         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
29808
29809         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
29810
29811 2005-10-12  Bruno Haible  <bruno@clisp.org>
29812
29813         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
29814         Reported by Stepan Kasal <kasal@ucw.cz>.
29815
29816 2005-10-11  Simon Josefsson  <jas@extundo.com>
29817
29818         * tests/test-crc.c: New file.
29819
29820         * modules/crc, modules/crc-tests: New files.
29821
29822 2005-10-11  Simon Josefsson  <jas@extundo.com>
29823
29824         * m4/crc.m4: New file.
29825
29826 2005-10-11  Simon Josefsson  <jas@extundo.com>
29827
29828         * lib/gc.h: Add gc_hash and gc_hash_buffer.
29829
29830         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
29831
29832         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
29833
29834 2005-10-11  Simon Josefsson  <jas@extundo.com>
29835
29836         * lib/crc.h, lib/crc.c: New files.
29837
29838         * lib/gc.h (gc_hash_buffer): Add doc.
29839
29840 2005-10-11  Bruno Haible  <bruno@clisp.org>
29841
29842         * modules/c-strcasestr: New file.
29843         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
29844
29845 2005-10-11  Bruno Haible  <bruno@clisp.org>
29846
29847         * modules/c-strcase: New file.
29848         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
29849
29850 2005-10-11  Bruno Haible  <bruno@clisp.org>
29851
29852         * lib/strcasecmp.c: Include limits.h.
29853         (strcasecmp): Avoid integer overflow on exotic platforms.
29854         * lib/strncasecmp.c: Include limits.h.
29855         (strncasecmp): Avoid integer overflow on exotic platforms.
29856         Reported by Paul Eggert.
29857
29858 2005-10-11  Bruno Haible  <bruno@clisp.org>
29859
29860         * lib/c-strcasestr.h: New file, from GNU gettext.
29861         * lib/c-strcasestr.c: New file, from GNU gettext.
29862
29863 2005-10-11  Bruno Haible  <bruno@clisp.org>
29864
29865         * lib/c-strcase.h: New file, from GNU gettext.
29866         * lib/c-strcasecmp.c: New file, from GNU gettext.
29867         * lib/c-strncasecmp.c: New file, from GNU gettext.
29868
29869 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
29870
29871         * modules/mempcpy (License): GPL -> LGPL.
29872         * modules/strchrnul (License): Likewise.
29873         * modules/sysexits (License): Likewise.
29874
29875 2005-10-08  Simon Josefsson  <jas@extundo.com>
29876
29877         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
29878
29879 2005-10-07  Simon Josefsson  <jas@extundo.com>
29880
29881         * m4/memxor.m4: Remove gl_C_RESTRICT call.
29882
29883 2005-10-06  Simon Josefsson  <jas@extundo.com>
29884
29885         * tests/test-hmac-md5.c: New file.
29886
29887         * modules/hmac-md5-tests: New file.
29888
29889         * modules/hmac-md5: New file.
29890
29891 2005-10-06  Simon Josefsson  <jas@extundo.com>
29892
29893         * m4/hmac-md5.m4: New file.
29894
29895         * m4/memxor.m4: Require gl_C_RESTRICT.
29896
29897 2005-10-06  Simon Josefsson  <jas@extundo.com>
29898
29899         * lib/memxor.c (memxor): Avoid casts and warnings.
29900
29901 2005-10-06  Simon Josefsson  <jas@extundo.com>
29902
29903         * lib/hmac-md5.c: New file.
29904
29905         * lib/hmac.h: New file.
29906
29907 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
29908
29909         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
29910         promotes to int, not unsigned int, to catch the AIX 5.3
29911         compiler bug.
29912
29913 2005-10-05  Simon Josefsson  <jas@extundo.com>
29914
29915         * modules/memxor: New file.
29916
29917         * modules/iconv (Files): Move config.rpath to havelib, it is used
29918         there.
29919
29920         * modules/havelib (Files): Add config.rpath.
29921
29922 2005-10-05  Simon Josefsson  <jas@extundo.com>
29923
29924         * m4/memxor.m4: New file.
29925
29926 2005-10-05  Simon Josefsson  <jas@extundo.com>
29927
29928         * lib/memxor.c (memxor): Fix compiler error.
29929
29930         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
29931         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
29932
29933         * lib/memxor.h, lib/memxor.c: New files.
29934
29935         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
29936         we assume all systems have it, suggested by Jim Meyering
29937         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
29938         any systems lack sys/socket.h; mingw32 is known to lack it, but we
29939         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
29940         same reasons.
29941
29942 2005-10-05  Simon Josefsson  <jas@extundo.com>
29943
29944         * config/srclist.txt: Add glibc bug 1423 for md5.h.
29945
29946 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
29947
29948         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
29949         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
29950         needed, since the source code now assumes these .h files.
29951
29952 2005-10-05  Derek Price  <derek@ximbiot.com>
29953
29954         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
29955
29956 2005-10-05  Bruno Haible  <bruno@clisp.org>
29957
29958         * modules/stdint (License): Change to LGPL.
29959
29960 2005-10-04  Simon Josefsson  <jas@extundo.com>
29961
29962         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
29963         D. Baushke" <mdb@gnu.org>.
29964
29965 2005-10-04  Bruno Haible  <bruno@clisp.org>
29966
29967         * lib/verify.h (verify_true): Provide alternative definition for C++.
29968
29969 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
29970
29971         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
29972         (SSIZE_MAX): New macro, if not already defined.
29973         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
29974         than 2 GiB.
29975
29976 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
29977
29978         Sync from coreutils.
29979         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
29980         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
29981         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
29982         ULLONG_MAX doesn't work with 2.7.2.1.
29983
29984 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
29985
29986         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
29987         From Ben Pfaff.
29988
29989         * modules/exclude (Depends-on): Depend on verify.
29990         * modules/strtoimax (Depends-on): Likewise.
29991         * modules/utimecmp (Depends-on): Likewise.
29992
29993 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
29994
29995         * lib/exclude.c: Include verify.h.
29996         (verify): Remove.  All callers changed to use verify.h's version.
29997         * lib/strtoimax.c: Likewise.
29998         * lib/utimecmp.c: Likewis.e
29999
30000         Sync from coreutils.
30001         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
30002         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
30003         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
30004         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
30005         bother returning ENOSYS if settimeofday or stime fails; just let
30006         them return whatever errno they want to return.
30007         * lib/utimens.c: Include unistd.h, for dup2.
30008         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
30009         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
30010
30011 2005-10-02  Jim Meyering  <jim@meyering.net>
30012
30013         Sync from coreutils.
30014         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
30015         from glibc-2.2.5 that fails for read-only files.
30016
30017 2005-10-02  Jim Meyering  <jim@meyering.net>
30018
30019         Sync from coreutils.
30020         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
30021         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
30022         `#if HAVE_CONFIG_H'.
30023         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
30024         Remove AT_FDCWD test.
30025         Do not consume the fd unless successful.
30026         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
30027         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
30028         block, so that we don't even try to compile it if settimeofday is
30029         available.  This works around a compilation failure on OSF1 V5.1,
30030         due to stime requiring a `long int*' while tv_sec is `int'.
30031
30032 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
30033
30034         Sync from coreutils.
30035         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
30036         against `yes', rather than just testing for nonempty.
30037
30038 2005-10-01  Simon Josefsson  <jas@extundo.com>
30039
30040         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
30041         and Darwin.
30042
30043         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
30044         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
30045         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
30046         freeaddrinfo and gai_strerror are declared by the POSIX headers.
30047         Check if struct addrinfo is declared.
30048
30049 2005-10-01  Simon Josefsson  <jas@extundo.com>
30050
30051         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
30052         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
30053         AI_* and EAI_* definitions.  Protect function declarations.
30054
30055 2005-10-01  Jim Meyering  <jim@meyering.net>
30056
30057         Sync from coreutils.
30058
30059         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
30060         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
30061         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
30062         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
30063         in the inet and nsl libraries.  Required on Solaris 5.7.
30064
30065 2005-10-01  Jim Meyering  <jim@meyering.net>
30066
30067         Sync from coreutils.
30068         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
30069         in the inet and nsl libraries.  Required on Solaris 5.7.
30070
30071 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
30072
30073         * lib/getdelim.c (getdelim): Remove unused variables.
30074
30075 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
30076
30077         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
30078         so that the code works even with ancient cpp.  Portability problem
30079         with GCC 2.7.2.1 reported by Thomas M.Ott.
30080
30081 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
30082
30083         * modules/regex (Depends-on): Add strcase.
30084
30085         * modules/gethostname (Licence): Change from GPL to LGPL, since
30086         gethostname.c is a trivial implementation of a standard library
30087         function.
30088         * modules/poll (License): Change from GPL to LGPL, since it's
30089         derived from LGPL code.
30090
30091 2005-09-27  Jim Meyering  <jim@meyering.net>
30092
30093         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
30094         HAVE_CONFIG_H.
30095
30096         * lib/intprops.h (signed_type_or_expr__): Define.
30097         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
30098         for unsigned types.
30099
30100 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
30101
30102         * lib/verify.h (verify_expr): Remove, replacing with:
30103         (verify_true): New macro that returns true instead of void.
30104         (verify_type__): Remove.
30105         (verify): Use verify_true rather than verify_type__.
30106
30107 2005-09-26  Bruno Haible  <bruno@clisp.org>
30108
30109         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
30110         is necessary.
30111         (lib_SOURCES): Remove mbchar.c.
30112         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
30113         (Files): Add m4/mbrtowc.m4.
30114         * modules/mbiter: Likewise.
30115         * modules/mbuiter: Likewise.
30116
30117 2005-09-26  Bruno Haible  <bruno@clisp.org>
30118
30119         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
30120         compile mbchar.c if they are not both present.
30121         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
30122         * m4/mbiter.m4 (gl_MBITER): Likewise.
30123         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
30124         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
30125         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
30126
30127 2005-09-25  Jim Meyering  <jim@meyering.net>
30128
30129         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
30130         also uses socklen_t.
30131
30132 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
30133
30134         * lib/utimens.c (ENOSYS): Define if not already defined.
30135         (futimens): Support having a null PATH if the file descriptor
30136         is nonnegative.
30137
30138         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
30139         Remove.
30140         (__attribute): Define to empty unless GCC 3.1 or later.
30141         This works around a core dump on OpenBSD 3.4, which has GCC
30142         2.95.3, which dumps core when given __attribute__(()).  It also
30143         simplifies other tests, since we really don't want to bother with
30144         worrying about which ancient version of GCC supported what.
30145         Original problem reported by Yoann Vandoorselaere, with part of
30146         the fix suggested by Derek Price.
30147
30148 2005-09-24  Jim Meyering  <jim@meyering.net>
30149
30150         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
30151         so we can once again use a positive bitfield width of 1 -- now we
30152         don't have to explain why we were using a bitfield width of 2.
30153
30154 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
30155
30156         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
30157         and similarly for the other external symbols.  Problem reported
30158         by James Gallager.
30159
30160         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
30161         bug reported by Jim Meyering.
30162
30163         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
30164         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
30165         not needed, since socklen is a prerequisite module.
30166
30167 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
30168
30169         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
30170         Problem reported by Eric Blake.
30171         (getaddrinfo): Initialize se so that it's not garbage.
30172         Redo internal storage allocation so that it doesn't make unportable
30173         assumptions about alignment.
30174         Fix a memory leak.
30175
30176         * lib/utimens.c (futimens): Use futimesat if available.
30177         Prefer it to futimes since it doesn't have the futimes bug.
30178
30179         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
30180         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
30181         Instead, declare a function that returns a pointer to an array,
30182         and use verify_type__ to declare the size of the array.
30183         Problem and germ of a solution reported by Bruno Haible.
30184         (verify_type__): Use 2, not 1, for bitfield size, to avoid
30185         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
30186
30187 2005-09-23  Jim Meyering  <jim@meyering.net>
30188
30189         Sync from coreutils.
30190         Correct build failure (socklen_t not defined) on at least
30191         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
30192         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
30193
30194 2005-09-23  Jim Meyering  <jim@meyering.net>
30195
30196         * modules/getaddrinfo (Depends-on): Add socklen.
30197
30198 2005-09-23  Bruno Haible  <bruno@clisp.org>
30199
30200         * tests/test-verify.c: New file.
30201
30202 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
30203
30204         Sync from coreutils.
30205
30206         * modules/argmatch (Depends-on): Add verify.
30207         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
30208         unistd-safer.
30209         * modules/save-cwd (Depends-on): Likewise.
30210
30211         * modules/openat (Files): Add lib/openat-die.c.
30212         (Depends-on): Remove error, exitfail.
30213         Add dirname.
30214
30215         * modules/verify: New file.
30216         * MODULES.html.sh (Diagnostics <assert.h>): New section,
30217         with "verify" module.
30218
30219 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
30220
30221         Sync from coreutils.
30222
30223         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
30224         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
30225         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
30226         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
30227         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
30228         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
30229         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
30230         Don't bother checking for string.h, stdlib.h, unistd.h.
30231         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
30232         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
30233         module's job.
30234         * m4/jm-macros.m4 (gl_MACROS): Likewise.
30235         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
30236
30237         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
30238         (gl_GETDATE): Use it.
30239
30240         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
30241
30242 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
30243
30244         Sync from coreutils.
30245
30246         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
30247         stat-time.h.
30248         * lib/argmatch.h: Include verify.h
30249         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
30250         (ARGMATCH_ASSERT): Remove; unused.
30251         * lib/canonicalize.c: Assume STDC_HEADERS.
30252         * lib/exclude.c: Include "strcase.h".
30253         * lib/regex_internal.h [!defined _LIBC]: Likewise.
30254         * lib/getusershell.c: Include stdio--.h rather than stdio.h
30255         and stdio-safer.h.
30256         (getusershell): Call fopen, not fopen_safer.
30257         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
30258         Do not include unistd-safer.h.
30259         (save_cwd): Don't call fd_safer; no longer needed
30260         now that we include fcntl--.h.
30261
30262         * lib/getdate.y (relative_time): New type.
30263         (RELATIVE_TIME_0): New constant.
30264         (parser_control): Use relative_time instead of doing it ourselves.
30265         (%union): Add new relative_time rel member.
30266         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
30267         Now typeless.
30268         (relunit, relunit_snumber): Now of type rel.
30269         (zone, rel, relunit, get_date): Adjust to above changes.
30270
30271         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
30272         Do not include unistd-safer.h.
30273         (getloadavg): Don't call fd_safer; no longer needed
30274         now that we include fcntl--.h.
30275
30276         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
30277         (make_dir_parents): Treat ENOSYS like EEXIST.
30278
30279         Improve quality of diagnostics on restore_cwd failure.
30280         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
30281         (make_dir_parents): Last arg is now int * (for errno), not bool *.
30282         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
30283         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
30284         each time through the loop.  Do not diagnose restore_cwd failure;
30285         that is the caller's job (and perhaps the caller does not care).
30286
30287         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
30288         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
30289         If the file already exists but is not a directory, don't bother
30290         to try to make its parents.
30291         Close potential file descriptor leak if we can't chdir("/") (!).
30292         Don't always return true if chdir($PWD) fails; return true only
30293         if the requested action was done successfully (except for the
30294         chdir($PWD)).
30295         Don't log final directory unless we actually made it.
30296         Refactor to avoid duplicate code to fix up permissions.
30297         Don't attempt to fix up parent permissions if chdir($PWD) fails.
30298
30299         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
30300         to make it a bit faster and (I hope) clearer.
30301         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
30302         Fix bug in formats like %2N.
30303
30304         * lib/verify.h: New file.
30305
30306 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
30307
30308         Sync from coreutils.
30309         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
30310
30311 2005-09-22  Jim Meyering  <jim@meyering.net>
30312
30313         Sync from coreutils.
30314
30315         * m4/lstat.m4 (gl_FUNC_LSTAT):
30316         Use AC_LIBSOURCES to require lstat.c and lstat.h.
30317         Remove obsolete comment.
30318         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
30319         * m4/xstrtod.m4: Likewise.
30320
30321         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
30322
30323 2005-09-22  Jim Meyering  <jim@meyering.net>
30324
30325         Sync from coreutils.
30326
30327         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
30328
30329         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
30330         the .tm_year member, since otherwise gcc-4.0 would now warn about
30331         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
30332
30333         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
30334         order to avoid an unsuppressible warning from gcc on 64-bit systems.
30335
30336         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
30337         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
30338         when run in a time zone for which daylight savings time is in effect
30339         for the starting date.
30340
30341         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
30342         stop us from restricting permissions of just-created absolute-named
30343         directories.
30344         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
30345         to restore initial working directory.
30346         * lib/mkdir-p.c (make_dir_parents): New parameter:
30347         different_working_dir, to tell caller if/when we change the working
30348         directory and are unable to return to the initial one.
30349         * lib/mkdir-p.h (make_dir_parents): Update prototype.
30350         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
30351         `return false'.  This fixes a bug introduced on 2004-07-30.
30352
30353         * lib/openat.c (fdopendir): Be sure to close the supplied
30354         file descriptor before returning.  This makes our replacement
30355         implementation a little closer to Solaris's, where fdopendir
30356         ties the file descriptor to the returned DIR* pointer.
30357         * lib/openat.c (unlinkat): New function.
30358         * lib/openat.h (unlinkat): Add prototype.
30359         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
30360         (openat_restore_fail): Rename from openat_restore_die.
30361         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
30362
30363         Provide an alternative to exiting immediately upon save_cwd or
30364         restore_cwd failure.  Now, an application can arrange e.g.,
30365         to perform a longjump in that case.
30366         * lib/openat.c: Include dirname.h.
30367         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
30368         (rpl_openat, fdopendir, fstatat): Call openat_save_die
30369         and openat_restore_die rather than calling error directly.
30370         Don't include "error.h" or "exitfail.h"; they're no longer needed.
30371
30372         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
30373         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
30374         define.
30375
30376         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
30377         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
30378                             int utc, int nanoseconds);
30379         Background:
30380         date should not have to allocate a megabyte of virtual memory to
30381         handle a format argument like +%1048575T.  When implemented with
30382         strftime, it must allocate such a buffer, use strftime to fill it
30383         in, print it, then free it.
30384         With fprintftime, it simply prints everything and exits.
30385         With no need for memory allocation, that's one fewer way to fail.
30386         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
30387         optional field width, not before, so we accept %9:z, not %:9z.
30388         (my_strftime): Be sure to use L_('x') for literals.
30389
30390         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
30391         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
30392         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
30393         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
30394         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
30395         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
30396         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
30397         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
30398         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
30399         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
30400         * lib/xgethostname.c, lib/xreadlink.c:
30401         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
30402
30403         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
30404         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
30405         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
30406         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
30407         and don't include <sys/file.h>).
30408
30409 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
30410
30411         Sync from coreutils.
30412
30413         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
30414         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
30415         [!LDAV_DONE]: Avoid unused variable warning.
30416
30417 2005-09-21  Bruno Haible  <bruno@clisp.org>
30418
30419         * lib/unicodeio.h (unicode_to_mb): New declaration.
30420
30421 2005-09-20  Derek Price  <derek@ximbiot.com>
30422
30423         * lib/getaddrinfo.c: Don't include <netdb.h> included from
30424         getaddrinfo.h.
30425
30426 2005-09-20  Bruno Haible  <bruno@clisp.org>
30427
30428         * gnulib-tool: Remove trailing slashes from the values specified for
30429         --source-base, --m4-base, --tests-base, --aux-dir.
30430         Suggested by Simon Josefsson <jas@extundo.com>.
30431
30432 2005-09-20  Bruno Haible  <bruno@clisp.org>
30433
30434         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
30435         func_modules_to_filelist, func_import, func_create_testdir): Make all
30436         sorting results locale-independent, so that gnulib-cache.m4 doesn't
30437         change when gnulib-tool is invoked in a different locale.
30438
30439 2005-09-19  Simon Josefsson  <jas@extundo.com>
30440
30441         * m4/socklen.m4: Fix typo.
30442
30443 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30444
30445         Use a consistent style for including <config.h>.
30446         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
30447         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
30448         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
30449         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
30450         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
30451         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
30452         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
30453         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
30454         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
30455         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
30456         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
30457         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
30458         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
30459         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
30460         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
30461         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
30462         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
30463         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
30464         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
30465         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
30466         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
30467         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
30468         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
30469         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
30470         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
30471         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
30472         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
30473         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
30474         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
30475         lib/xstrtoumax.c, lib/yesno.c:
30476         Standardize inclusion of config.h.
30477         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
30478         lib/inttostr.h:  Removed inclusion of config.h from header files.
30479         * lib/inttostr.c:  Adjusted in-tree users.
30480         * lib/timespec.h: Remove superfluous warning to include config.h.
30481         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
30482         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
30483         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
30484         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
30485         config.h with HAVE_CONFIG_H.
30486
30487 2005-09-19  Jim Meyering  <jim@meyering.net>
30488
30489         * modules/pathmax (License): Change to LGPL.
30490
30491 2005-09-19  Derek Price  <derek@ximbiot.com>
30492
30493         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
30494
30495 2005-09-19  Bruno Haible  <bruno@clisp.org>
30496
30497         * gnulib-tool (import): Provide default for --tests-base.
30498
30499 2005-09-19  Bruno Haible  <bruno@clisp.org>
30500
30501         * doc/quote.texi: New file, extracted from gnulib.texi.
30502         * doc/ctime.texi: New file, extracted from gnulib.texi.
30503         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
30504         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
30505         * doc/gnulib.texi: Include them.
30506
30507 2005-09-18  Bruno Haible  <bruno@clisp.org>
30508
30509         Portability fix.
30510         * gnulib-tool (func_readlink): New function.
30511         (func_ln_if_changed): Use it.
30512
30513 2005-09-18  Bruno Haible  <bruno@clisp.org>
30514
30515         * gnulib-tool: Support --with-tests also with --import.
30516         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
30517         (func_import): Use variables $testsbase and $inctests. Emit a
30518         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
30519         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
30520         SUBDIRS += $testsdir.
30521         (func_create_testdir): Update.
30522
30523 2005-09-18  Bruno Haible  <bruno@clisp.org>
30524
30525         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
30526         instead of $dry_run.
30527         (func_cp_if_changed, func_mv_if_changed): Remove functions.
30528         (func_ln_if_changed): Don't handle dry-run here.
30529         (func_import): In dry-run mode, detect more precisely which actions
30530         would be performed, and don't use "...ing" verbs.
30531
30532 2005-09-18  Bruno Haible  <bruno@clisp.org>
30533
30534         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
30535         (func_import): Use join on two temporary files instead of three nested
30536         loops, in order to determine which files are new or old.
30537
30538 2005-09-18  Bruno Haible  <bruno@clisp.org>
30539
30540         * gnulib-tool (func_import): Comment out code that spits out the
30541         new files with --dry-run.
30542
30543 2005-09-18  Bruno Haible  <bruno@clisp.org>
30544
30545         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
30546
30547 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
30548
30549         * lib/stat-time.h: New file.
30550         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
30551         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
30552         in a different way.
30553         (timespec_cmp): New function.
30554         * lib/utimecmp.c: Include stat-time.h.
30555         (SYSCALL_RESOLUTION): Depend on whether various struct stat
30556         members exist, not on the obsolescent ST_MTIM_NSEC.
30557         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
30558
30559 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
30560
30561         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
30562
30563 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
30564
30565         * MODULES.html.sh (File system functions): Add stat-time.
30566         * modules/stat-time: New file.
30567         * modules/timespec (Files): Remove m4/st_mtim.m4; this
30568         is now done in a different way, by the stat-time module.
30569         * modules/utimecmp (Depends-on): Add stat-time.
30570
30571 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
30572
30573         * m4/st_mtim.m4: Remove.  Superseded by...
30574         * m4/stat-time.m4: New file.
30575         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
30576         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
30577
30578 2005-09-15  Derek Price  <derek@ximbiot.com>
30579
30580         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
30581
30582 2005-09-15  Derek Price  <derek@ximbiot.com>
30583
30584         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
30585         * lib/regex_internal.c: Ditto, using this...
30586         (__GNUC_PREREQ): ...new macro.
30587         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
30588         using...
30589         (__GNUC_PREREQ): ...this new macro.
30590
30591         * lib/strstr.h: Include string.h. Define strstr as a macro here.
30592
30593 2005-09-15  Derek Price  <derek@ximbiot.com>
30594             Paul Eggert  <eggert@cs.ucla.edu>
30595
30596         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
30597         changes, consolidating in...
30598         * lib/regex_internal.h: ...this file.
30599
30600 2005-09-13  Jim Meyering  <jim@meyering.net>
30601
30602         * lib/canon-host.c: Filter through gnu indent and reword comments
30603         slightly.
30604         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
30605
30606 2005-09-13  Derek Price  <derek@ximbiot.com>
30607
30608         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
30609         failure.
30610         Reported by Jim Meyering  <jim@meyering.net>.
30611
30612 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
30613
30614         * lib/base64.c: Typo.
30615         (base64_encode): Put b64str in initialized data section.
30616
30617 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
30618
30619         Merge glibc and coreutils changes into gnulib, plus a few
30620         extra fixes.
30621         * lib/md5.c: Use #error rather than a string.
30622         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
30623         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
30624         (__attribute__): Define to empty for non recent-GCC.
30625         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
30626         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
30627         Renamed from their non-__ counterparts, with new macros replacing
30628         them if not _LIBC.  Add __THROW attribute.
30629         (rol): Remove.
30630         (struct md5_ctx): Align buffer if using GCC.
30631         * lib/sha1.h (struct sha1_ctx): Likewise.
30632         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
30633         The old name was backwards.
30634         (NOTSWAP): Remove; not used.
30635         (rol): New macro, moved here from md5.h.
30636         (sha1_process_block): Remove a FIXME that doesn't make sense.
30637
30638 2005-09-12  Derek Price  <derek@ximbiot.com>
30639
30640         Return usable errors from canon-host.
30641         * lib/canon-host.h: New file.
30642         * lib/canon-host.c (canon_host): Wrap...
30643         (canon_host_r): ...this new function, which now relies exclusively on
30644         getaddrinfo.
30645         (ch_strerror): New function.
30646         (last_cherror): New global.
30647         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
30648         interface.
30649         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
30650         void *.
30651         (freeaddrinfo): Free ai->ai_canonname when set.
30652
30653 2005-09-12  Derek Price  <derek@ximbiot.com>
30654
30655         Make canon-host require getaddrinfo.
30656         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
30657         AC_LIBSOURCE canon-host.h.  Call...
30658         (gl_PREREQ_CANON_HOST): ...this new function, which requires
30659         gl_GETADDRINFO.
30660         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
30661
30662 2005-09-12  Derek Price  <derek@ximbiot.com>
30663
30664         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
30665         LGPL.
30666         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
30667
30668 2005-09-12  Derek Price  <derek@ximbiot.com>
30669
30670         * lib/gai_strerror.c: Include config.h when available.  Include
30671         getaddrinfo.h before other headers to test interface.
30672         Reported by Larry Jones <lawrence.jones@ugs.com>.
30673
30674 2005-09-12  Derek Price  <derek@ximbiot.com>
30675             Paul Eggert  <eggert@cs.ucla.edu>
30676
30677         * modules/glob (Files): Add glob-libc.h.
30678
30679 2005-09-12  Derek Price  <derek@ximbiot.com>
30680             Paul Eggert  <eggert@cs.ucla.edu>
30681
30682         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
30683         glob_.h, glob-libc.h.
30684         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
30685
30686 2005-09-12  Derek Price  <derek@ximbiot.com>
30687             Paul Eggert  <eggert@cs.ucla.edu>
30688
30689         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
30690         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
30691         protecting things that should be done only in gnulib contexts.
30692         * lib/glob_.h: New file, containing only the glob things needed for
30693         gnulib.
30694         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
30695         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
30696         (glob, globfree, glob_pattern_p): Now defined simply in terms of
30697         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
30698         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
30699         and to respect the namespace rules better.
30700
30701 2005-09-08  Simon Josefsson  <jas@extundo.com>
30702
30703         * modules/socklen: New file.
30704
30705 2005-09-08  Simon Josefsson  <jas@extundo.com>
30706
30707         * m4/socklen.m4: New file.
30708
30709 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
30710
30711         * modules/utimens (Files): Add m4/utimbuf.m4, since
30712         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
30713         Reported by Sergey Poznyakoff.
30714
30715 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
30716
30717         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
30718         definitions, since that's the preferred style in glibc.
30719         Fix a minor spacing issue, and update copyright notice to match
30720         glibc's.
30721
30722 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
30723
30724         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
30725
30726 2005-09-06  Simon Josefsson  <jas@extundo.com>
30727
30728         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
30729         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
30730
30731 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
30732
30733         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
30734         warning.
30735
30736 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
30737
30738         * config/srclist.txt: Add glibc bug 1302.
30739
30740 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
30741
30742         Change bitset word type from unsigned int to unsigned long int,
30743         as this has better performance on typical 64-bit hosts.
30744         Port bitset code to hosts with unusual word sizes.
30745         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
30746         (build_collating_symbol):
30747         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
30748         argument is a bitset.  This is merely a style issue, but it makes
30749         it clearer that an entire array is expected.
30750         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
30751         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
30752         Port to the case where bitset_word is not the same as unsigned int.
30753         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
30754         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
30755         Likewise.
30756         * lib/regexec.c (check_dst_limits_calc_pos_1,
30757         check_subexp_matching_top):
30758         (build_trtable, group_nodes_into_DFAstates):
30759         Likewise.
30760         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
30761         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
30762         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
30763         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
30764         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
30765         * lib/regcomp.c (optimize_subexps, lower_subexp):
30766         Work even if bitset_word has holes in its bitwise representation.
30767         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
30768         * lib/regexec.c (check_dst_limits_calc_pos_1,
30769         check_subexp_matching_top):
30770         Likewise.
30771         * lib/regex_internal.c (re_string_reconstruct):
30772         Don't assume UCHAR_MAX == 255.
30773         * lib/regex_internal.h (bitset_set_all): Likewise.
30774         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
30775         All uses changed.
30776         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
30777         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
30778         All uses changed.
30779         (BITSET_WORD_MAX): New macro.
30780         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
30781         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
30782         (bitset_empty, bitset_copy):
30783         Prefer sizeof (bitset) to multiplying it out ourselves.
30784         (bitset_not_merge): Remove; unused.
30785         (bitset_contain): Return bool, not unsigned int with one bit on.
30786         All callers changed.
30787         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
30788         alignment than re_node_set; do this by defining a new internal
30789         type struct dests_alloc and using it to allocate memory.
30790
30791 2005-09-05  Bruno Haible  <bruno@clisp.org>
30792
30793         * gnulib-tool (func_import): Fix comparison in handling of symbolic
30794         links.
30795
30796 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
30797
30798         * modules/size_max (Makefile.am): Add size_max.h
30799
30800 2005-09-04  Derek Price  <derek@ximbiot.com>
30801
30802         * gnulib-tool (func_import): Fix reversed $symbolic logic.
30803
30804 2005-09-03  Simon Josefsson  <jas@extundo.com>
30805
30806         * gnulib-tool: Fix typo.
30807
30808 2005-09-03  Simon Josefsson  <jas@extundo.com>
30809
30810         * config/srclist.txt: Add glibc bug 1293.
30811
30812 2005-09-03  Derek Price  <derek@ximbiot.com>
30813
30814         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
30815         From Larry Jones <lawrence.jones@ugs.com>.
30816
30817 2005-09-02  Simon Josefsson  <jas@extundo.com>
30818
30819         * modules/socklen: New file.
30820
30821 2005-09-02  Simon Josefsson  <jas@extundo.com>
30822
30823         * modules/havelib: New module.
30824
30825         * modules/gettext, modules/iconv, modules/lock, modules/readline:
30826         Use havelib.
30827
30828 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
30829
30830         Check for arithmetic overflow when calculating sizes, to prevent
30831         some buffer-overflow issues.  These patches are conservative, in the
30832         sense that when I couldn't determine whether an overflow was possible,
30833         I inserted a run-time check.
30834         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
30835         macros.
30836         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
30837         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
30838         (re_xnrealloc, re_x2nrealloc): New inline functions.
30839         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
30840         parse_bracket_exp):
30841         (build_equiv_class, build_charclass): Check for arithmetic overflow
30842         in size expression calculations.
30843         * lib/regex_internal.c (re_string_realloc_buffers):
30844         (build_wcs_upper_buffer, re_node_set_add_intersect):
30845         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
30846         (re_dfa_add_node, register_state): Likewise.
30847         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
30848         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
30849         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
30850         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
30851
30852 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
30853
30854         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
30855         m4/ulonglong.m4.  Problem reported by Martin Lambers.
30856
30857 2005-09-02  Bruno Haible  <bruno@clisp.org>
30858
30859         Support for lib vs. lib64 distinction on biarch platforms.
30860         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
30861         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
30862         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
30863
30864 2005-09-02  Bruno Haible  <bruno@clisp.org>
30865
30866         * gnulib-tool (import): In the other first-use case, provide defaults
30867         as well.
30868
30869 2005-09-02  Bruno Haible  <bruno@clisp.org>
30870
30871         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
30872         patches not yet found in the latest gettext release.
30873
30874 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
30875
30876         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
30877         to avoid a collision with bits/local_lim.h in glibc.
30878         All uses changed.  Problem reported by Dmitry V. Levin in
30879         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
30880
30881         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
30882         bugs in int versus size_t comparisons.
30883         (re_string_context_at): Fix bug where the code assumed that
30884         Idx is signed.
30885
30886         Use bool where appropriate.
30887         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
30888         All callers changed.
30889         (calc_eclosure_iter): Likewise, for ROOT arg.
30890         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
30891         (build_charclass_op): Likewise, for NON_MATCH arg.
30892         * lib/regex_internal.c (re_string_allocate, re_string_construct):
30893         (re_string_construct_common): Likewise, for ICASE arg.
30894         * lib/regexec.c (re_search_2_stub, re_search_stub):
30895         Likewise, for RET_LEN arg.
30896         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
30897         (set_regs): Likewise, for FL_BACKTRACK arg.
30898         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
30899         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
30900         (calc_eclosure_iter, parse_bracket_exp):
30901         Use bool for internal variables that are booleans.
30902         * lib/regexec.c (re_search_internal, check_matching,
30903         proceed_next_node):
30904         (set_regs, build_sifted_states, sift_states_bkref):
30905         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
30906         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
30907         (find_collation_sequence_value):
30908         Likewise.
30909         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
30910         (re_node_set_compare):
30911         Return bool, not int. All callers changed.
30912         * lib/regexec.c (check_halt_node_context, check_dst_limits):
30913         (build_trtable, check_node_accept): Likewise.
30914         * lib/regex_internal.h: Include stdbool.h.
30915
30916         Fix bugs uncovered when converting to bool.
30917         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
30918         failure instead of charging ahead blindly.
30919         * lib/regex_internal.c (register_state): Likewise.
30920         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
30921         for freeing internal storage.
30922         (group_nodes_into_DFA_states): Use unsigned int, not int, for
30923         bitset pieces used as boolean, to avoid undefined behavior
30924         on hosts that do int overflow checking.
30925
30926 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
30927
30928         * config/srclist.txt: Add glibc bugs 1285-1287.
30929
30930 2005-09-01  Jim Meyering  <jim@meyering.net>
30931
30932         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
30933         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
30934         Require gl_STAT_MACROS, too.
30935
30936 2005-09-01  Bruno Haible  <bruno@clisp.org>
30937
30938         * gnulib-tool (import): In the first-use case, provide defaults.
30939
30940 2005-09-01  Bruno Haible  <bruno@clisp.org>
30941
30942         * gnulib-tool (func_import): Remove the .tmp files.
30943
30944 2005-09-01  Bruno Haible  <bruno@clisp.org>
30945
30946         * gnulib-tool (func_import): Fix handling of symbolic links.
30947
30948 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
30949
30950         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
30951         old glibc regex code mishandles strings longer than 2**31 bytes.
30952         This patch fixes this when the regex code is used in gnulib
30953         (i.e., outside glibc).
30954
30955         This patch should not affect the use of the regex code inside
30956         glibc.  No doubt this problem also needs to be handled for glibc
30957         as well, but the result will be an incompatible change to the
30958         glibc ABI, and the old ABI will have to be supported too.  That
30959         can be the the subject for another patch.
30960
30961         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
30962         governing whether the rest of this patch is active.  By default,
30963         the macro is disabled and the patch has no effect.
30964         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
30965         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
30966         (struct re_pattern_buffer, re_search, re_search_2, re_match):
30967         (re_match_2, re_set_registers): Use the new types.
30968         * lib/regex_internal.h (Idx, re_hashval_t): New types.
30969         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
30970         New macros.
30971         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
30972         (re_string_context_at, bin_tree_t, re_dfastate_t):
30973         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
30974         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
30975         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
30976         (re_string_char_size_at, re_string_wchar_at):
30977         (re_string_elem_size_at):
30978         Use the new types and macros to port to 64-bit hosts.
30979         Use unsigned types for internal values, so that the code
30980         mostly works even for arrays larger than SSIZE_MAX.
30981         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
30982         (search_duplicated_node, calc_eclosure_iter, fetch_number):
30983         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
30984         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
30985         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
30986         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
30987         (calc_inveclosure, parse_dup_op, build_range_exp):
30988         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
30989         (fetch_number, create_token_tree, mark_opt_subexp):
30990         Likewise.
30991         * lib/regex_internal.c (re_string_construct_common,
30992         create_ci_newstate):
30993         (create_cd_newstate, re_string_allocate, re_string_construct):
30994         (re_string_realloc_buffers, build_wcs_upper_buffer):
30995         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
30996         (re_string_reconstruct, re_string_peek_byte_case):
30997         (re_string_fetch_byte_case, re_string_context_at):
30998         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
30999         (re_node_set_init_copy, re_node_set_add_intersect):
31000         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
31001         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
31002         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
31003         (re_acquire_state, re_acquire_state_context, register_state):
31004         Likewise.
31005         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
31006         search_cur_bkref_entry):
31007         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
31008         (re_search_internal, re_search_2_stub, re_search_stub)
31009         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
31010         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
31011         (update_cur_sifted_state, check_dst_limits):
31012         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
31013         (check_subexp_limits, sift_states_bkref, merge_state_array):
31014         (check_subexp_matching_top, get_subexp, get_subexp_sub):
31015         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
31016         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
31017         (expand_bkref_cache, check_node_accept_bytes):
31018         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
31019         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
31020         (acquire_init_state_context, check_halt_node_context):
31021         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
31022         (sift_states_backward, clean_state_log_if_needed):
31023         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
31024         (find_recover_state, transit_state_sb, transit_state_mb):
31025         (transit_state_bkref, build_trtable, match_ctx_clean):
31026         Likewise.
31027         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
31028         to work around an assumption that REG_MISSING is negative.
31029
31030         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
31031         (seek_collating_symbol_entry) [defined _LIBC]:
31032         (lookup_collation_sequence_value) [defined _LIBC]:
31033         (build_range_exp, build_collating_symbol) [defined _LIBC]:
31034         Use prototypes rather than old-style function definitions.
31035         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
31036         (transit_state_sb) [0]:
31037         (find_collation_sequence_value) [defined _LIBC]: Likewise.
31038
31039         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
31040         rm_eo.
31041
31042         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
31043         (optimize_subexps, lower_subexp):
31044         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
31045         since the signed shift might overflow.  Use 1u<<31 instead.
31046         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
31047         Likewise.
31048         * lib/regexec.c (check_dst_limits_calc_pos_1,
31049         check_subexp_matching_top): Likewise.
31050
31051         * lib/regcomp.c (optimize_subexps, lower_subexp):
31052         Use CHAR_BIT rather than 8, for clarity.
31053         * lib/regexec.c (check_dst_limits_calc_pos_1):
31054         (check_subexp_matching_top): Likewise.
31055         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
31056         have to worry about portability issues when shifting it left.
31057         Remove no-longer-needed test for table_size > 0.
31058         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
31059         in a word, as the resulting behavior is undefined.
31060         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
31061         in one case, a <= should have been an <, and in another case the
31062         whole test was missing.
31063         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
31064         the standard name CHAR_BIT.
31065         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
31066         this is not true on one's complement and signed-magnitude hosts.
31067
31068         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
31069         next_last_offset.
31070         (struct re_dfa_t): Remove unused member states_alloc.
31071         * lib/regcomp.c (init_dfa): Don't initialize unused members.
31072
31073 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
31074
31075         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
31076         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
31077         and large-file glibc and in 32-bit large-file Solaris.
31078
31079 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
31080
31081         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
31082         lengths fit in regoff_t; this isn't true if regoff_t is the same
31083         width as size_t.
31084         * lib/regex.c (re_search_internal): 5th arg is LAST_START
31085         (= START + RANGE) instead of RANGE.  This avoids overflow
31086         problems when regoff_t is the same width as size_t.
31087         All callers changed.
31088         (re_search_2_stub): Check for overflow when adding the
31089         sizes of the two strings.
31090         (re_search_stub): Check for overflow when adding START
31091         to RANGE; if it occurs, substitute the extreme value.
31092
31093 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
31094
31095         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
31096
31097 2005-08-31  Jim Meyering  <jim@meyering.net>
31098
31099         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
31100         a pointer-to-const.
31101         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
31102         (register_state): Likewise.
31103         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
31104         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
31105         (group_nodes_into_DFAstates): Likewise.
31106
31107 2005-08-31  Jim Meyering  <jim@meyering.net>
31108
31109         * check-module: Add a FIXME comment.
31110
31111 2005-08-31  Eric Blake  <ebb9@byu.net>
31112
31113         * modules/unistd-safer (Files): Add unistd--.h.
31114         * modules/stdio-safer (Files): Add stdio--.h.
31115
31116 2005-08-31  Derek Price  <derek@ximbiot.com>
31117
31118         * lib/getdelim.c (getdelim): Return EOF on EOF.
31119         Reported by Larry Jones <lawrence.jones@ugs.com>.
31120
31121 2005-08-31  Bruno Haible  <bruno@clisp.org>
31122
31123         Avoid unnecessary diffs in the generated lib/Makefile.am.
31124         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
31125         the generated files.
31126         (func_import): Don't set cmd.
31127
31128 2005-08-31  Bruno Haible  <bruno@clisp.org>
31129
31130         * lib/strstr.c: Include <stddef.h>, for NULL.
31131         * lib/strcasestr.c: Likewise.
31132         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
31133
31134 2005-08-31  Bruno Haible  <bruno@clisp.org>
31135
31136         * gnulib-tool: New option --macro-prefix.
31137         (func_import): Use macro_prefix.
31138         (import): Handle option --macro-prefix.
31139
31140 2005-08-31  Bruno Haible  <bruno@clisp.org>
31141
31142         * gnulib-tool (import): Rename most ac_* variables to cached_*.
31143         Also use new variables cached_lgpl, cached_libtool.
31144
31145 2005-08-31  Bruno Haible  <bruno@clisp.org>
31146
31147         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
31148         always instantiating them.
31149
31150 2005-08-31  Bruno Haible  <bruno@clisp.org>
31151
31152         * gnulib-tool (func_import): Read the previous cached settings
31153         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
31154         earlier added by gnulib but are now dropped. Warn when a gnulib file
31155         overwrites a non-gnulib file.
31156
31157 2005-08-31  Bruno Haible  <bruno@clisp.org>
31158
31159         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
31160         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
31161         projects that don't keep autogenerated files in CVS. Put into
31162         actioncmd only the specified modules, not the transitive closure.
31163
31164 2005-08-31  Bruno Haible  <bruno@clisp.org>
31165
31166         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
31167         Create directories that shall be filled.
31168         (import): Don't look for gl_* macros in configure.ac. Recurse across
31169         all directories containing a gnulib-cache.m4 files, if meaningful.
31170
31171 2005-08-31  Bruno Haible  <bruno@clisp.org>
31172
31173         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
31174         (import): Set seen_libtool when we see gl_LIBTOOL.
31175
31176 2005-08-31  Bruno Haible  <bruno@clisp.org>
31177
31178         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
31179         declaration macro definitions from generated gnulib.m4.
31180
31181 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
31182
31183         * lib/iconvme.h: Add prototype for iconv_alloc.
31184
31185 2005-08-29  Simon Josefsson  <jas@extundo.com>
31186
31187         * lib/iconvme.c: Fix errno.
31188
31189 2005-08-29  Bruno Haible  <bruno@clisp.org>
31190
31191         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
31192         that it works when the directory contains spaces.
31193
31194 2005-08-29  Bruno Haible  <bruno@clisp.org>
31195
31196         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
31197
31198 2005-08-29  Bruno Haible  <bruno@clisp.org>
31199
31200         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
31201         Emit more advice.
31202
31203 2005-08-29  Bruno Haible  <bruno@clisp.org>
31204         and Stepan Kasal  <kasal@ucw.cz>
31205
31206         * check-module: If more parameters are given, check each of them
31207         separately; add more exceptions, as noted by Jim Meyering.
31208         (check_module): New procedure.
31209         (%exempt_header): Now contains all exceptions.
31210
31211 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
31212
31213         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
31214
31215 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
31216
31217         * lib/iconvme.c: Split iconv_string into iconv_alloc.
31218
31219 2005-08-28  Bruno Haible  <bruno@clisp.org>
31220
31221         * m4/gnulib-tool.m4: New file.
31222
31223 2005-08-27  Jim Meyering  <jim@meyering.net>
31224
31225         * modules/unistd-safer (Files): Add pipe-safer.c.
31226         * modules/fcntl-safer (Files): Add creat-safer.c.
31227
31228 2005-08-27  Jim Meyering  <jim@meyering.net>
31229
31230         * m4/stdlib-safer.m4: New file.  From coreutils.
31231         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
31232         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
31233         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
31234         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
31235         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
31236
31237 2005-08-27  Jim Meyering  <jim@meyering.net>
31238
31239         * lib/fopen-safer.c: Merge minor changes from coreutils.
31240         * lib/dup-safer.c: Likewise.
31241         * lib/fd-safer.c: Likewise.
31242
31243         Merge from coreutils.
31244         * lib/stdio--.h: New file.
31245         * lib/stdlib--.h: New file.
31246         * lib/mkstemp-safer.c: New file.
31247
31248         GNU tar needs these.
31249         * lib/pipe-safer.c: New file.
31250         * lib/creat-safer.c: New file.
31251         * lib/fcntl--.h (creat): Define to creat_safer.
31252         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
31253         * lib/unistd--.h (pipe): Define to pipe_safer.
31254         * lib/unistd-safer.h: Declare pipe_safer.
31255
31256 2005-08-26  Simon Josefsson  <jas@extundo.com>
31257
31258         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
31259         Haible <bruno@clisp.org>.
31260
31261 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
31262
31263         * lib/regex_internal.h: Remove all references to
31264         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
31265         or better.
31266         (bitset_not, bitset_merge, bitset_not_merge):
31267         (bitset_mask, re_string_allocate, re_string_construct):
31268         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
31269         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
31270         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
31271         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
31272         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
31273         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
31274         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
31275         (re_acquire_state_context):
31276         Remove unnecessary forward decls.
31277         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
31278         Put __attribute at function definition,
31279         now that the function decl has been removed.
31280         * lib/regex_internal.c (re_string_peek_byte_case):
31281         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
31282         Likewise.
31283
31284 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
31285
31286         * m4/regex.m4: Add AC_PREREQ(2.50).
31287         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
31288
31289 2005-08-25  Simon Josefsson  <jas@extundo.com>
31290
31291         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
31292         __fsetlocking.
31293
31294 2005-08-25  Simon Josefsson  <jas@extundo.com>
31295
31296         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
31297         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
31298         GLIBC specific code.
31299
31300 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
31301
31302         Make regex safe for g++.  This fixes one real bug (an "err"
31303         that should have been "*err").  g++ problem reported by
31304         Sam Steingold.
31305         * lib/regex_internal.h (re_calloc): New macro, consistent with
31306         re_malloc etc.  All callers of calloc changed to use re_calloc.
31307         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
31308         not int.  All callers changed.
31309         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
31310         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
31311         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
31312         (find_recover_state): Change "err" to "*err"; this fixes what
31313         appears to be a real bug.
31314         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
31315         versus int.
31316
31317 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
31318
31319         * modules/regex (Depends-on): Add malloc, since the code
31320         assumes that !malloc(0) means failure.
31321
31322 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
31323
31324         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
31325
31326         alloca modernization/simplification for regex.
31327         * lib/regex.c: Remove portability cruft for alloca.  This no longer
31328         needs to be at the start of the file, and can be moved into
31329         regex_internal.h and simplified.
31330         * lib/regex_internal.h: Include <alloca.h>.
31331         (__libc_use_alloca) [!defined _LIBC]: New macro.
31332         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
31333         now works outside glibc.
31334
31335 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
31336
31337         * config/srclist.txt: Add glibc bugs 1241, 1245.
31338
31339 2005-08-25  Jim Meyering  <jim@meyering.net>
31340
31341         * lib/open-safer.c: Include <config.h>.
31342         Otherwise, we'd lose LARGEFILE support in any file using
31343         e.g. "fcntl--.h"
31344
31345 2005-08-25  Bruno Haible  <bruno@clisp.org>
31346
31347         * m4/minmax.m4: Require autoconf 2.52.
31348         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
31349         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
31350         alternatives of translit over the alphabet.
31351         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
31352
31353 2005-08-24  Simon Josefsson  <jas@extundo.com>
31354
31355         * tests/test-getpass.c: New file.
31356
31357 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
31358
31359         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
31360         for GNU regex features.
31361
31362 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
31363
31364         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
31365         * lib/regex.h (regerror): Likewise.
31366
31367         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
31368         requires this.  (The code never needed it.)
31369
31370         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
31371         All uses of recently-renamed identifiers changed to use the new,
31372         POSIX-compliant names.  The code will build and run just fine
31373         without these changes, but it's better to eat our own dog food
31374         and use the standard-conforming names.
31375
31376         * lib/regex.h: Fix a multitude of POSIX name space violations.
31377         These changes have an effect only for programs that define
31378         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
31379         do not change anything for programs compiled in the normal way.
31380         Also, there is no effect on the ABI.
31381
31382         (_REGEX_SOURCE): New macro.
31383         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
31384         defined and _GNU_SOURCE is not; this fixes a name space violation.
31385
31386         Rename the following macros to obey POSIX requirements.
31387         The old names are still visible as macros if _REGEX_SOURCE is defined.
31388         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
31389         RE_BACKSLASH_ESCAPE_IN_LISTS.
31390         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
31391         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
31392         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
31393         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
31394         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
31395         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
31396         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
31397         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
31398         (REG_INTERVALS): renamed from RE_INTERVALS.
31399         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
31400         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
31401         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
31402         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
31403         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
31404         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
31405         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
31406         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
31407         RE_UNMATCHED_RIGHT_PAREN_ORD.
31408         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
31409         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
31410         (REG_DEBUG): renamed from RE_DEBUG.
31411         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
31412         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
31413         unusual, since we can't clash with the POSIX REG_ICASE.
31414         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
31415         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
31416         (REG_NO_SUB): renamed from RE_NO_SUB.
31417         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
31418         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
31419         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
31420         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
31421         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
31422         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
31423         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
31424         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
31425         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
31426         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
31427         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
31428         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
31429         RE_SYNTAX_POSIX_MINIMAL_BASIC.
31430         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
31431         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
31432         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
31433         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
31434         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
31435         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
31436         (REG_FIXED): Renamed from REGS_FIXED.
31437         (REG_NREGS): Renamed from RE_NREGS.
31438
31439         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
31440         of other REG_* macros, since POSIX says the user is allowed to
31441         #undef these macros selectively.
31442
31443         (reg_errcode_t): Update comment stating what other tables need
31444         to be consistent.
31445
31446         Rename the following enum values to obey POSIX requirements.
31447         The old names are still visible as macros.
31448         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
31449         is not defined, since GNU is supposed to be a superset of POSIX as
31450         much as possible, and since we want reg_errcode_t to be a signed
31451         type for implementation consistency.
31452         (_REG_NOERROR): Renamed from REG_NOERROR.
31453         (_REG_NOMATCH): Renamed from REG_NOMATCH.
31454         (_REG_BADPAT): Renamed from REG_BADPAT.
31455         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
31456         (_REG_ECTYPE): Renamed from REG_ECTYPE.
31457         (_REG_EESCAPE): Renamed from REG_EESCAPE.
31458         (_REG_ESUBREG): Renamed from REG_ESUBREG.
31459         (_REG_EBRACK): Renamed from REG_EBRACK.
31460         (_REG_EPAREN): Renamed from REG_EPAREN.
31461         (_REG_EBRACE): Renamed from REG_EBRACE.
31462         (_REG_BADBR): Renamed from REG_BADBR.
31463         (_REG_ERANGE): Renamed from REG_ERANGE.
31464         (_REG_ESPACE): Renamed from REG_ESPACE.
31465         (_REG_BADRPT): Renamed from REG_BADRPT.
31466         (_REG_EEND): Renamed from REG_EEND.
31467         (_REG_ESIZE): Renamed from REG_ESIZE.
31468         (_REG_ERPAREN): Renamed from REG_ERPAREN.
31469         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
31470         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
31471         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
31472         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
31473
31474         (_REG_RE_NAME, _REG_RM_NAME): New macros.
31475         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
31476         changed.  But support the old name if the new one is not defined
31477         and if _REGEX_SOURCE.
31478
31479         Change the following member names in struct re_pattern_buffer.
31480         The old names are still supported if !_REGEX_SOURCE.
31481         The new names are always supported, regardless of _REGEX_SOURCE.
31482         (re_buffer): Renamed from buffer.
31483         (re_allocated): Renamed from allocated.
31484         (re_used): Renamed from used.
31485         (re_syntax): Renamed from syntax.
31486         (re_fastmap): Renamed from fastmap.
31487         (re_translate): Renamed from translate.
31488         (re_can_be_null): Renamed from can_be_null.
31489         (re_regs_allocated): Renamed from regs_allocated.
31490         (re_fastmap_accurate): Renamed from fastmap_accurate.
31491         (re_no_sub): Renamed from no_sub.
31492         (re_not_bol): Renamed from not_bol.
31493         (re_not_eol): Renamed from not_eol.
31494         (re_newline_anchor): Renamed from newline_anchor.
31495
31496         Change the following member names in struct re_registers.
31497         The old names are still supported if !_REGEX_SOURCE.
31498         The new names are always supported, regardless of _REGEX_SOURCE.
31499         (rm_num_regs): Renamed from num_regs.
31500         (rm_start): Renamed from start.
31501         (rm_end): Renamed from end.
31502
31503         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
31504         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
31505         Prepend __ to parameter names.
31506
31507         Undo yesterday's changes.
31508
31509 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
31510
31511         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
31512         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
31513         lib/regex.c.
31514
31515 2005-08-24  Jim Meyering  <jim@meyering.net>
31516
31517         Sync from coreutils.
31518         * m4/fcntl-safer.m4: New file.
31519
31520         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
31521         and object files for this module.
31522
31523 2005-08-24  Jim Meyering  <jim@meyering.net>
31524
31525         Sync from coreutils.
31526         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
31527
31528 2005-08-24  Jim Meyering  <jim@meyering.net>
31529
31530         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
31531         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
31532
31533 2005-08-24  Jim Meyering  <jim@meyering.net>
31534
31535         * modules/fcntl-safer: New module.
31536         * modules/fts (Depends-on): Add fcntl-safer.
31537         * MODULES.html.sh (File descriptor based Input/Output):
31538         Add fcntl-safer.
31539
31540 2005-08-24  Bruno Haible  <bruno@clisp.org>
31541
31542         Support for unit test modules.
31543         * modules/README: Mention tests modules.
31544         * modules/TEMPLATE-TESTS: New file.
31545         * gnulib-tool: New options --extract-tests-module, --with-tests and
31546         --tests-base (unused for the moment).
31547         (testsbase, inctests): New variables.
31548         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
31549         (func_verify_module): Exclude TEMPLATE-TESTS.
31550         (func_verify_nontests_module, func_verify_tests_module): New functions.
31551         (func_get_dependencies): Add implicit dependency for tests modules.
31552         (func_get_tests_module): New function.
31553         (func_modules_transitive_closure): When --with-tests was specified,
31554         include the unit tests as well, unless explicitly avoided.
31555         (func_emit_lib_Makefile_am): Ignore the tests modules here.
31556         (func_emit_tests_Makefile_am): New function.
31557         (func_create_testdir): When --with-tests was specified, emit a
31558         tests/ directory.
31559         * MODULES.html.sh (Future developments): Update.
31560
31561 2005-08-24  Bruno Haible  <bruno@clisp.org>
31562
31563         * modules/tls-tests: New file.
31564         * tests/test-tls.c: New file, from GNU gettext.
31565
31566 2005-08-24  Bruno Haible  <bruno@clisp.org>
31567
31568         * modules/lock-tests: New file.
31569         * tests/test-lock.c: New file, from GNU gettext.
31570
31571 2005-08-24  Bruno Haible  <bruno@clisp.org>
31572
31573         * lib/lock.h: Add multiple inclusion guard.
31574         * lib/tls.h: Add multiple inclusion guard.
31575
31576 2005-08-24  Bruno Haible  <bruno@clisp.org>
31577
31578         * gnulib-tool: Add support for the --aux-dir option to
31579         --create-testdir, --create-megatestdir, --test, --megatest.
31580         (func_create_testdir, func_create_megatestdir): Optionally emit a
31581         AC_CONFIG_AUX_DIR directive.
31582         (create-testdir, create-megatestdir, test, megatest): Provide a
31583         default value for $auxdir.
31584
31585 2005-08-24  Bruno Haible  <bruno@clisp.org>
31586
31587         * gnulib-tool (import): Use compound statement instead of subshell
31588         where possible.
31589
31590 2005-08-24  Bruno Haible  <bruno@clisp.org>
31591
31592         * gnulib-tool (import): Change --aux-dir default to "build-aux".
31593
31594 2005-08-24  Bruno Haible  <bruno@clisp.org>
31595
31596         * gnulib-tool (func_version): Update.
31597
31598 2005-08-24  Bruno Haible  <bruno@clisp.org>
31599
31600         * gnulib-tool (func_import, func_create_testdir,
31601         func_create_megatestdir): Quote all autoconf macro arguments.
31602
31603 2005-08-24  Bruno Haible  <bruno@clisp.org>
31604
31605         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
31606         option --force, because --force causes the aclocal.m4 of each
31607         subdirectory to be newer than the corresponding config.h.in.
31608
31609 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
31610
31611         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
31612         All contents moved to gl_REGEX.
31613         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
31614         assume that it does.
31615
31616 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
31617
31618         * lib/regex.h (REG_NOSYS)
31619         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
31620         Define, since POSIX requires it as of 2001.
31621         (_REG_ENOSYS)
31622         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
31623         New private symbol, used to keep the enum signed in all cases.
31624         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
31625         Youngman in
31626         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
31627
31628         * lib/regex_internal.c (re_string_skip_chars, register_state):
31629         (calc_state_hash):
31630         Remove forward decls; no longer needed now that we use prototypes.
31631         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
31632         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
31633         (clean_state_log_if_needed): Likewise.
31634
31635 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
31636
31637         * config/srclist.txt: Add glibc bugs 1231-1233.
31638
31639 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
31640
31641         Fix problems reported by Sam Steingold in
31642         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
31643         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
31644         assumed that reg_errcode_t is a signed type, which is not
31645         necessarily true if _XOPEN_SOURCE is not defined.
31646         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
31647         since some compilers warn about it otherwise.
31648
31649 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
31650
31651         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
31652         (init_word_char, create_initial_state, duplicate_node_closure):
31653         (fetch_token, peek_token_bracket, build_range_exp):
31654         (build_collating_symbol): Remove forward decls; no longer needed
31655         now that we use prototypes.
31656
31657         * lib/regcomp.c:
31658         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
31659         (re_compile_fastmap_iter, regcomp, regerror, regfree):
31660         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
31661         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
31662         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
31663         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
31664         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
31665         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
31666         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
31667         (build_range_exp, build_collating_symbol, parse_bracket_exp):
31668         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
31669         (build_charclass, build_charclass_op, fetch_number, create_tree):
31670         (create_token_tree, mark_opt_subexp, duplicate_tree):
31671         Use prototypes rather than old-style definitions.
31672
31673         * lib/regex_internal.c:
31674         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
31675         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
31676         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
31677         (re_string_reconstruct, re_string_peek_byte_case):
31678         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
31679         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
31680         (re_node_set_init_copy, re_node_set_add_intersect):
31681         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
31682         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
31683         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
31684         (re_acquire_state, re_acquire_state_context, register_state):
31685         (create_ci_newstate, create_cd_newstate, free_state):
31686         Likewise.
31687         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
31688         re_search_2):
31689         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
31690         (re_search_internal, prune_impossible_nodes):
31691         (acquire_init_state_context, check_matching, static):
31692         (check_halt_node_context, check_halt_state_context, proceed_next_node):
31693         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
31694         (update_regs, sift_states_backward, build_sifted_states):
31695         (clean_state_log_if_needed, merge_state_array):
31696         (update_cur_sifted_state, add_epsilon_src_nodes):
31697         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
31698         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
31699         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
31700         (find_recover_state, check_subexp_matching_top, transit_state_mb):
31701         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
31702         (check_arrival, check_arrival_add_next_nodes):
31703         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
31704         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
31705         (check_node_accept_bytes, check_node_accept, extend_buffers):
31706         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
31707         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
31708         (sift_ctx_init):
31709         Likewise.
31710
31711         * lib/regex_internal.h:
31712         (re_string_allocate, re_string_construct, re_string_reconstruct):
31713         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
31714         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
31715         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
31716         (re_string_context_at, re_string_peek_byte_case):
31717         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
31718         is defined, since we now use prototypes always.
31719
31720         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
31721         C89 or better.  All uses removed.
31722
31723 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
31724
31725         * config/srclist.txt: Add glibc bugs 1220-1227.
31726
31727 2005-08-20  Jim Meyering  <jim@meyering.net>
31728
31729         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
31730         of unused local, dfa.
31731
31732 2005-08-20  Bruno Haible  <bruno@clisp.org>
31733
31734         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
31735
31736 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
31737
31738         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
31739         (re_node_set_insert_last, re_dfa_add_node):
31740         Rename local variables to avoid GCC shadowing warnings.
31741
31742 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
31743
31744         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
31745         [defined lint]: Suppress bogus uninitialized-variable warnings.
31746
31747         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
31748         and let the caller return REG_ESPACE if out of space.  This
31749         removes an uninitialied-variable warning with GCC 4.0.1, and also
31750         avoids taking the address of a local variable.  All callers
31751         changed.
31752
31753 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
31754
31755         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
31756         $LIBCSRC/posix/regexec.c.
31757         Add glibc bug 1217 for regcomp.c.
31758
31759 2005-08-19  Jim Meyering  <jim@meyering.net>
31760
31761         * lib/regexec.c (proceed_next_node): Redo local variables to
31762         avoid GCC shadowing warnings.
31763
31764 2005-08-18  Bruno Haible  <bruno@clisp.org>
31765
31766         * lib/strstr.c (strstr): Fix return value in multibyte case.
31767         * lib/strcasestr.c (strcasestr): Likewise.
31768
31769 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
31770
31771         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
31772
31773 2005-08-17  Jim Meyering  <jim@meyering.net>
31774
31775         Make the %s format (seconds since the epoch) work for a negative
31776         number and when used with a zero-padded field width, e.g. %015s.
31777
31778         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
31779         label so that it precedes the code to set `digits'.  Otherwise,
31780         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
31781         print `00-22'.  Now, it prints `-0022', as it should.
31782
31783 2005-08-17  Bruno Haible  <bruno@clisp.org>
31784
31785         * modules/strstr (Files): Add m4/mbrtowc.m4.
31786         (Depends-on): Add mbuiter.
31787
31788 2005-08-17  Bruno Haible  <bruno@clisp.org>
31789
31790         * modules/strcasestr: New file.
31791         * MODULES.html.sh (String handling, based on ANSI C 89): Add
31792         strcasestr.
31793
31794 2005-08-17  Bruno Haible  <bruno@clisp.org>
31795
31796         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
31797
31798 2005-08-17  Bruno Haible  <bruno@clisp.org>
31799
31800         * modules/mbuiter: New file.
31801         * MODULES.html.sh (Extended multibyte and wide character utilities):
31802         Add mbuiter.
31803
31804 2005-08-17  Bruno Haible  <bruno@clisp.org>
31805
31806         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
31807         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
31808
31809 2005-08-17  Bruno Haible  <bruno@clisp.org>
31810
31811         * m4/strcasestr.m4: New file.
31812
31813 2005-08-17  Bruno Haible  <bruno@clisp.org>
31814
31815         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
31816         * lib/strstr.c: Completely rewritten, with multibyte locale support.
31817
31818 2005-08-17  Bruno Haible  <bruno@clisp.org>
31819
31820         * lib/strcasestr.h: New file.
31821         * lib/strcasestr.c: New file.
31822
31823 2005-08-17  Bruno Haible  <bruno@clisp.org>
31824
31825         * lib/strcasecmp.c: Use mbuiter.h.
31826
31827 2005-08-17  Bruno Haible  <bruno@clisp.org>
31828
31829         * lib/mbuiter.h: New file.
31830
31831 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
31832
31833         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
31834         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
31835         and gl_GETOPT are both invoked via different paths (as happens
31836         with GNU tar CVS because it uses both argp and getopt), the former
31837         wins.
31838
31839 2005-08-16  Bruno Haible  <bruno@clisp.org>
31840
31841         * modules/tls: New file.
31842         * MODULES.html.sh (Multithreading): Add tls.
31843
31844 2005-08-16  Bruno Haible  <bruno@clisp.org>
31845
31846         * modules/strnlen1: New file.
31847         * MODULES.html.sh (String handling): Add strnlen1.
31848
31849 2005-08-16  Bruno Haible  <bruno@clisp.org>
31850
31851         * modules/strcase (Files): Add m4/mbrtowc.m4.
31852         (Depends-on): Add strnlen1, mbchar.
31853
31854 2005-08-16  Bruno Haible  <bruno@clisp.org>
31855
31856         * modules/mbiter: New file.
31857         * MODULES.html.sh (Extended multibyte and wide character utilities):
31858         Add mbiter.
31859
31860 2005-08-16  Bruno Haible  <bruno@clisp.org>
31861
31862         * modules/mbfile: New file.
31863         * MODULES.html.sh (Extended multibyte and wide character utilities):
31864         Add mbfile.
31865
31866 2005-08-16  Bruno Haible  <bruno@clisp.org>
31867
31868         * modules/mbchar: New file.
31869         * MODULES.html.sh (Extended multibyte and wide character utilities):
31870         New section.
31871
31872 2005-08-16  Bruno Haible  <bruno@clisp.org>
31873
31874         * m4/tls.m4: New file, from GNU gettext.
31875
31876 2005-08-16  Bruno Haible  <bruno@clisp.org>
31877
31878         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
31879         always.
31880         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
31881
31882 2005-08-16  Bruno Haible  <bruno@clisp.org>
31883
31884         * m4/mbiter.m4: New file.
31885
31886 2005-08-16  Bruno Haible  <bruno@clisp.org>
31887
31888         * m4/mbfile.m4: New file.
31889
31890 2005-08-16  Bruno Haible  <bruno@clisp.org>
31891
31892         * m4/mbchar.m4: New file.
31893
31894 2005-08-16  Bruno Haible  <bruno@clisp.org>
31895
31896         * lib/tls.h: New file, from GNU gettext.
31897         * lib/tls.c: New file, from GNU gettext.
31898
31899 2005-08-16  Bruno Haible  <bruno@clisp.org>
31900
31901         * lib/strnlen1.h: New file.
31902         * lib/strnlen1.c: New file.
31903
31904 2005-08-16  Bruno Haible  <bruno@clisp.org>
31905
31906         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
31907         (mbi_init): Update.
31908         (mbi_avail, mbi_advance): Let the iteration end before the terminating
31909         NUL byte, not after it.
31910
31911 2005-08-16  Bruno Haible  <bruno@clisp.org>
31912
31913         * lib/strcase.h (strcasecmp): Add note in comments.
31914         * lib/strncasecmp.c: Use code from strcasecmp.c.
31915         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
31916         (strcasecmp): Work correctly in multibyte locales.
31917
31918 2005-08-16  Bruno Haible  <bruno@clisp.org>
31919
31920         * lib/mbiter.h: New file.
31921
31922 2005-08-16  Bruno Haible  <bruno@clisp.org>
31923
31924         * lib/mbfile.h: New file.
31925
31926 2005-08-16  Bruno Haible  <bruno@clisp.org>
31927
31928         * lib/mbchar.h: New file.
31929         * lib/mbchar.c: New file.
31930
31931 2005-08-16  Bruno Haible  <bruno@clisp.org>
31932
31933         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
31934         the valid ones. Makes the comparison operations transitive:
31935         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
31936         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
31937
31938 2005-08-15  Simon Josefsson  <jas@extundo.com>
31939
31940         * modules/ssize_t (License): Change to 'unlimited'.
31941
31942         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
31943
31944 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
31945
31946         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
31947         Add comments for each pending glibc patch.
31948
31949 2005-08-15  Bruno Haible  <bruno@clisp.org>
31950
31951         * lib/regex.h (__restrict_arr): Don't define to __restrict if
31952         __cplusplus is defined.
31953
31954 2005-08-14  Jim Meyering  <jim@meyering.net>
31955
31956         Sync from coreutils.
31957
31958         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
31959         Use the hash-table-based cycle-detection code not just when
31960         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
31961         Reported by James Youngman in
31962         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
31963         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
31964         FTS_TIGHT_CYCLE_CHECK.
31965         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
31966         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
31967         once again.
31968         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
31969         * lib/fts.c (fd_safer): Remove decl.
31970         Include fcntl--.h rather than unistd-safer.h
31971         (fts_safe_changedir): Don't call fd_safer; no longer needed
31972         now that we include fcntl--.h.
31973
31974 2005-08-12  Simon Josefsson  <jas@extundo.com>
31975
31976         * modules/getndelim2: Use ssize_t module.
31977         * modules/getnline: Likewise.
31978         * modules/safe-read: Likewise.
31979         * modules/xreadlink: Likewise.
31980
31981         * modules/ssize_t: New file.
31982
31983 2005-08-12  Simon Josefsson  <jas@extundo.com>
31984
31985         * m4/readline.m4: Look for termcap, curses or ncurses if required.
31986
31987 2005-08-12  Simon Josefsson  <jas@extundo.com>
31988
31989         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
31990         ssize_t.
31991
31992 2005-08-12  Simon Josefsson  <jas@extundo.com>
31993
31994         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
31995         readline, getdelim and check_version.
31996         (Support for systems lacking ISO C 99: Sizes of integer types):
31997         Add size_max.
31998
31999 2005-08-12  Bruno Haible  <bruno@clisp.org>
32000
32001         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
32002
32003 2005-08-11  Simon Josefsson  <jas@extundo.com>
32004
32005         * modules/readline: New file.
32006
32007         * modules/strnlen (Files): Add strnlen.h.
32008
32009 2005-08-11  Simon Josefsson  <jas@extundo.com>
32010
32011         * m4/readline.m4: New file.
32012
32013 2005-08-11  Simon Josefsson  <jas@extundo.com>
32014
32015         * lib/readline.h, readline.c: New file.
32016
32017 2005-08-11  Simon Josefsson  <jas@extundo.com>
32018
32019         * doc/gnulib.texi (Initial import, Finishing touches): Mention
32020         gl_AVOID.
32021
32022 2005-08-11  Bruno Haible  <bruno@clisp.org>
32023
32024         * lib/strnlen.h (strnlen): Change parameter name to match comment.
32025
32026 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
32027
32028         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
32029
32030 2005-08-10  Simon Josefsson  <jas@extundo.com>
32031
32032         * tests/test-iconvme.c: New file.
32033
32034 2005-08-10  Simon Josefsson  <jas@extundo.com>
32035
32036         * m4/strnlen.m4: New file.
32037
32038         * m4/strndup.m4: Don't check for strnlen declaration, done in
32039         strnlen.m4.
32040
32041 2005-08-10  Simon Josefsson  <jas@extundo.com>
32042
32043         * lib/strndup.c: Use strnlen.h.
32044
32045         * lib/strnlen.h: New file.
32046
32047 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
32048
32049         * README: Typos.
32050
32051 2005-08-02  Simon Josefsson  <jas@extundo.com>
32052
32053         * modules/readline: New file.
32054
32055 2005-08-02  Simon Josefsson  <jas@extundo.com>
32056
32057         * modules/getdelim: New file.
32058
32059         * modules/getline: Rewrite, don't use getndelim2.
32060
32061 2005-08-02  Simon Josefsson  <jas@extundo.com>
32062
32063         * m4/getline.m4: Separate out getdelim stuff into separate module.
32064
32065         * m4/getdelim.m4: New file.
32066
32067 2005-08-02  Simon Josefsson  <jas@extundo.com>
32068
32069         * lib/getline.h, getline.c: Rewrite.
32070
32071         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
32072
32073 2005-07-31  Bruno Haible  <bruno@clisp.org>
32074
32075         * lib/lock.h (gl_lock_initializer): New macro.
32076         (gl_lock_define_initialized): Use it.
32077         (gl_rwlock_initializer): New macro.
32078         (gl_rwlock_define_initialized): Use it.
32079         (gl_recursive_lock_initializer): New macro.
32080         (gl_recursive_lock_define_initialized): Use it.
32081
32082 2005-07-30  Karl Berry  <karl@gnu.org>
32083
32084         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
32085         Report from Ben Pfaff, regarding getopt.
32086
32087 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
32088
32089         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
32090         normal way.
32091         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
32092         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
32093         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
32094         (gl_GETOPT): Use the new macros.  Most of the implementation
32095         is moved to the new macros.  This is for programs like Emacs
32096         that don't want all the functionality of gl_GETOPT.
32097
32098 2005-07-26  Bruno Haible  <bruno@clisp.org>
32099
32100         * m4/lock.m4: Update from GNU gettext.
32101
32102 2005-07-26  Bruno Haible  <bruno@clisp.org>
32103
32104         * lib/lock.h: Update from GNU gettext.
32105         * lib/lock.c: Update from GNU gettext.
32106
32107 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
32108
32109         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
32110         obsolescent AC_TRY_RUN.  Include the default includes files, for
32111         'exit'.
32112
32113 2005-07-24  Bruno Haible  <bruno@clisp.org>
32114
32115         * modules/visibility: New file.
32116         * MODULES.html.sh (Misc): Add visibility.
32117
32118 2005-07-24  Bruno Haible  <bruno@clisp.org>
32119
32120         * m4/visibility.m4: New file.
32121
32122 2005-07-24  Bruno Haible  <bruno@clisp.org>
32123
32124         * doc/visibility.texi: New file.
32125
32126 2005-07-22  Bruno Haible  <bruno@clisp.org>
32127
32128         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
32129         $(ALLOCA_H), redundant through BUILT_SOURCES.
32130         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
32131         redundant through BUILT_SOURCES.
32132         * modules/byteswap (Makefile.am): Remove explicit dependency on
32133         $(BYTESWAP_H), redundant through BUILT_SOURCES.
32134         * modules/fnmatch (Makefile.am): Remove explicit dependency on
32135         $(FNMATCH_H), redundant through BUILT_SOURCES.
32136         * modules/getopt (Makefile.am): Remove explicit dependency on
32137         $(GETOPT_H), redundant through BUILT_SOURCES.
32138         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
32139         redundant through BUILT_SOURCES.
32140         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
32141         redundant through BUILT_SOURCES.
32142         * modules/stdbool (Makefile.am): Remove explicit dependency on
32143         $(STDBOOL_H), redundant through BUILT_SOURCES.
32144         * modules/stdint (Makefile.am): Remove explicit dependency on
32145         $(STDINT_H), redundant through BUILT_SOURCES.
32146         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
32147         Remove explicit dependency on $(SYSEXITS_H).
32148         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
32149
32150 2005-07-18  Simon Josefsson  <jas@extundo.com>
32151
32152         * lib/check-version.c (check_version): Accept identical versions too.
32153
32154 2005-07-18  Bruno Haible  <bruno@clisp.org>
32155
32156         * modules/lock: New file.
32157         * MODULES.html.sh (Multithreading): New section.
32158
32159 2005-07-18  Bruno Haible  <bruno@clisp.org>
32160
32161         * m4/lock.m4: New file, from GNU gettext.
32162
32163 2005-07-18  Bruno Haible  <bruno@clisp.org>
32164
32165         * lib/lock.h: New file, from GNU gettext.
32166         * lib/lock.c: New file, from GNU gettext.
32167
32168 2005-07-18  Bruno Haible  <bruno@clisp.org>
32169
32170         * lib/lock.h (gl_once_t): New type.
32171         (gl_once_define, gl_once): New macros.
32172         * lib/lock.c (fresh_once): New variable.
32173         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
32174         functions.
32175
32176 2005-07-16  Simon Josefsson  <jas@extundo.com>
32177
32178         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
32179         workaround, suggested by Bruno.
32180
32181 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
32182
32183         * modules/xalloc (Depends-on): Add xalloc-die.
32184         * modules/xvasprintf (Depends-on): Add xalloc-die.
32185
32186 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
32187
32188         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
32189         with a minor change.
32190
32191 2005-07-15  Bruno Haible  <bruno@clisp.org>
32192
32193         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
32194         When using lib/poll.c, define poll as rpl_poll.
32195
32196 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
32197
32198         * modules/argp (Depends-on): Remove unlocked-io.
32199
32200 2005-07-14  Derek Price  <derek@ximbiot.com>
32201
32202         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
32203         for glob symlink bug.
32204
32205 2005-07-14  Bruno Haible  <bruno@clisp.org>
32206
32207         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
32208         Instead, test for *_unlocked function declarations directly.
32209
32210 2005-07-11  Simon Josefsson  <jas@extundo.com>
32211
32212         * modules/size_max: New file.
32213
32214         * modules/xsize: Depend on size_max module for size_max.m4.
32215
32216 2005-07-11  Simon Josefsson  <jas@extundo.com>
32217
32218         * lib/size_max.h: New file.
32219
32220 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
32221
32222         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
32223         copyright symbol and the year.
32224         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
32225         (version_etc_va): Use parameterized copyright notice.
32226         Reword to conform to the current GNU coding standards.
32227
32228 2005-07-11  Karl Berry  <karl@gnu.org>
32229
32230         * doc/gnulib.texi (Quoting): new node.
32231         (Initial import): more info, from Patrice.
32232
32233 2005-07-11  Bruno Haible  <bruno@clisp.org>
32234
32235         * gnulib-tool (func_usage): Document option --avoid.
32236         (Command line options): Handle --avoid.
32237         (func_acceptable): New function.
32238         (func_modules_transitive_closure): Use it.
32239
32240 2005-07-11  Bruno Haible  <bruno@clisp.org>
32241
32242         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
32243         Reported by Jim Meyering.
32244
32245 2005-07-10  Bruno Haible  <bruno@clisp.org>
32246
32247         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
32248         Needed when size_t is smaller than 'unsigned int'.
32249         Reported by Paul Eggert.
32250
32251 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
32252
32253         * modules/argp (Depends-on): Add unlocked-io
32254
32255 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
32256
32257         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
32258         block of defines.
32259
32260 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
32261
32262         * config/srclist.txt: Comment out regcomp.c, since we have a porting
32263         fix now.
32264
32265 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
32266         and Paul Eggert  <eggert@cs.ucla.edu>
32267
32268         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
32269         in wint_t, not wchar_t.  Remove now-unnecessary cast.
32270
32271 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
32272
32273         * modules/regex (Files): Add lib/regex_internal.c,
32274         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
32275         (Depends-on): Add extensions.
32276         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
32277
32278 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
32279
32280         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
32281         pathconf.
32282         * m4/same.m4 (gl_SAME): Likewise.
32283         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
32284
32285         * m4/regex.m4: Adjust to new libc regex implementation.
32286         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
32287         all the .c and .h parts of (the new) regex.
32288         Quote the m4 stuff better.
32289         Check for RE_ICASE bug of old gnulib.
32290         Check for REG_STARTEND of recent libc.
32291         Rename local variables from jm_* to gl_*.
32292         Quote operand of "test -f".
32293         Say "recent enough" version of libc, not "version 2".
32294         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
32295         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
32296         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
32297         Remove check for btowc, isascii.
32298         Require AM_LANGINFO_CODESET.
32299
32300 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
32301
32302         * lib/regex.c, regex.h: Sync from libc.
32303         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
32304         * lib/regexec.c:
32305         New files, synced from libc, except that regex_internal.h
32306         currently has a small porting fix.
32307
32308 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
32309
32310         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
32311         regex_internal.c, regexec.c.
32312         Add regex_internal.h too, but as a comment, since the libc version
32313         is currently broken in gnulib mode.
32314
32315 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
32316
32317         Support programs like Emacs that use gnulib but not gettext.
32318         * MODULES.html.sh (Internationalization functions): Add gettext-h.
32319         * modules/gettext-h: New file.
32320         * modules/gettext (Files): Remove lib/gettext.h.
32321         (Depends-on): Add gettext-h.
32322         (Makefile.am): Remove lib_SOURCES.
32323         * modules/argmatch, modules/c-stack, modules/closeout:
32324         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
32325         * modules/execute, modules/file-type, modules/getaddrinfo:
32326         * modules/getopt, modules/human, modules/javacomp:
32327         * modules/javaexec, modules/mkdir-p, modules/obstack:
32328         * modules/openat, modules/pagealign_alloc, modules/pipe:
32329         * modules/quotearg, modules/regex, modules/rpmatch:
32330         * modules/unicodeio, modules/userspec, modules/version-etc:
32331         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
32332         * modules/xsetenv:
32333         Depend on gettext-h, not gettext.
32334
32335 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
32336
32337         * gnulib-tool (func_import): Add support for 'public domain' license.
32338         * modules/alloca, modules/atexit, modules/memmove:
32339         Now public domain, not GPL.
32340         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
32341         * modules/realloc, modules/strerror, modules/strtod:
32342         Now LGPL, not GPL.
32343
32344 2005-07-05  Bruno Haible  <bruno@clisp.org>
32345
32346         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
32347         autoconf CVS. Needed for mingw.
32348
32349 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
32350
32351         Remove the dependency of the strftime module on the tzset module.
32352         * modules/strftime (Depends-on): Remove dependency on tzset.
32353
32354 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
32355
32356         Remove the dependency of the strftime module on the tzset module.
32357         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
32358         gl_FUNC_TZSET_CLOBBER.
32359
32360 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
32361
32362         Remove the dependency of the strftime module on the tzset module.
32363         * lib/strftime.c (my_strftime)
32364         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
32365         Copy the input structure, to work around some of the bug with
32366         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
32367         Solaris releases, you should also use the tzset module, but we won't
32368         require it as a dependency any more since we don't want LGPLed code
32369         to depend on GPLed code.
32370
32371 2005-07-02  Jim Meyering  <jim@meyering.net>
32372
32373         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
32374         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
32375         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
32376         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
32377
32378 2005-07-02  Jim Meyering  <jim@meyering.net>
32379
32380         * lib/backupfile.c (backup_args): Change a `0' to NULL.
32381
32382 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
32383
32384         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
32385         declares only 'struct timespec;' (!).
32386
32387 2005-07-01  Jim Meyering  <jim@meyering.net>
32388
32389         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
32390         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
32391         * lib/save-cwd.c, tempname.c:
32392         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
32393         and don't include <sys/file.h>).
32394
32395 2005-06-29  Jim Meyering  <jim@meyering.net>
32396
32397         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
32398         type name.  Use the variable name instead.
32399         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
32400         Likewise.
32401
32402 2005-06-28  Simon Josefsson  <jas@extundo.com>
32403
32404         * modules/check-version (Files): Add check-version.m4.
32405
32406 2005-06-28  Simon Josefsson  <jas@extundo.com>
32407
32408         * m4/check-version.m4: New file, suggested by Jim Meyering
32409         <jim@meyering.net>.
32410
32411 2005-06-28  Simon Josefsson  <jas@extundo.com>
32412
32413         * lib/check-version.h, lib/check-version.c: New files.
32414
32415 2005-06-28  Simon Josefsson  <jas@extundo.com>
32416
32417         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
32418         collision with global variable.  Better indentation.  Don't
32419         increment buffer pointer beyond buffer end.  Based on comments
32420         from Paul Eggert <eggert@cs.ucla.edu>.
32421
32422         * lib/base64.h: Indent.
32423
32424 2005-06-28  Simon Josefsson  <jas@extundo.com>
32425
32426         * doc/gnulib.texi (Library version handling): New section.
32427
32428 2005-06-28  Jim Meyering  <jim@meyering.net>
32429
32430         * check-module (find_included_lib_files): Hard-code another
32431         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
32432         but modules/fts-lgpl (correctly) does not list those files.
32433
32434         * modules/canonicalize (Files): Add lib/pathmax.h.
32435
32436 2005-06-25  Simon Josefsson  <jas@extundo.com>
32437
32438         * modules/check-version: New file.
32439
32440 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
32441
32442         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
32443         initializer of struct addrinfo, as an indication that we don't
32444         care how many members the structure has.
32445
32446 2005-06-24  Derek Price  <derek@ximbiot.com>
32447         and Bruno Haible  <bruno@clisp.org>
32448
32449         Remove stat module & update lstat.
32450         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
32451         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
32452         * m4/stat.m4: Remove this file.
32453
32454 2005-06-24  Derek Price  <derek@ximbiot.com>
32455         and Bruno Haible  <bruno@clisp.org>
32456
32457         Remove stat module & update lstat.
32458         * lib/stat.c: Remove this file...
32459         (slash_aware_lstat): ...moving this content and its support...
32460         * lib/lstat.c (rpl_lstat): ...into here.
32461         * lib/lstat.h: New file.
32462
32463 2005-06-24  Derek Price  <derek@ximbiot.com>
32464         and Bruno Haible  <bruno@clisp.org>
32465
32466         Remove stat module & update lstat.
32467         * config/srclist.txt (libc sources): Remove stat.
32468
32469 2005-06-24  Derek Price  <derek@ximbiot.com>
32470         and Bruno Haible  <bruno@clisp.org>
32471
32472         Remove stat module & update lstat.
32473         * MODULES.html.sh (stat): Remove.
32474         * MODULES.html: Regenerated.
32475         * modules/lstat (Description): Correct function name.
32476         (Files): Add "lstat.h".
32477         (Depends-on): Remove stat, add xalloc, stat-macros.
32478         * modules/stat: Remove this file.
32479         (Include): Add "lstat.h", remove <sys/stat.h>.
32480
32481 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
32482
32483         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
32484         (ranged_convert): Don't save conversion in a temporary struct.
32485         This causes a warning with GCC 4.0.0, and anyway in the typical
32486         case it's not worth the extra 100 bytes or so of code.
32487         (ranged_convert, __mktime_internal): When calling a function via a
32488         pointer P, use P () rather than (*P) (), as we now assume C89 or
32489         better.
32490
32491 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
32492
32493         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
32494         "who -r" failed to give output.  Problem reported by Tim Waugh.
32495
32496         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
32497         (xcalloc): Use it to avoid needless tests.
32498         Problem reported by Jim Meyering.
32499
32500 2005-06-20  Derek Price  <derek@ximbiot.com>
32501
32502         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
32503         unnecessary for Autoconfs > 2.59c.
32504
32505 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
32506
32507         * lib/argp.h (__option_is_short): Check upper limit of
32508         __key. Isprint() requires its argument to have the value
32509         of an unsigned char or EOF.
32510
32511 2005-06-16  Jim Meyering  <jim@meyering.net>
32512
32513         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
32514         when either N or S is zero.
32515
32516 2005-06-16  Derek Price  <derek@ximbiot.com>
32517
32518         * m4/bison.m4: Declare YACC & YFLAGS precious.
32519
32520 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
32521
32522         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
32523         multibyte string or pattern, fall back on unibyte matching.
32524         Problem reported by James Youngman.
32525
32526 2005-06-08  Bruno Haible  <bruno@clisp.org>
32527
32528         * modules/csharpcomp: New file.
32529         * MODULES.html.sh (C#): Add csharpcomp.
32530
32531 2005-06-08  Bruno Haible  <bruno@clisp.org>
32532
32533         * m4/csharpcomp.m4: New file, from GNU gettext.
32534
32535 2005-06-08  Bruno Haible  <bruno@clisp.org>
32536
32537         * lib/csharpcomp.h: New file, from GNU gettext.
32538         * lib/csharpcomp.c: New file, from GNU gettext.
32539         * lib/csharpcomp.sh.in: New file, from GNU gettext.
32540
32541 2005-06-08  Bruno Haible  <bruno@clisp.org>
32542
32543         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
32544         warning on mingw.
32545
32546 2005-06-07  Derek Price  <derek@ximbiot.com>
32547
32548         Sync from CVS.
32549         * lib/glob_.h: Indent nested #ifdef.
32550
32551 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
32552
32553         Sync from coreutils.
32554         Use "file name" when talking about file names, instead of "filename"
32555         or "path", as per the GNU coding standards.
32556         * lib/mkdir-p.c: Renamed from makepath.c.
32557         (make_dir_parents): Renamed from make_path.  All callers changed.
32558         * lib/mkdir-p.h: Likewise.  All includers changed.
32559         * lib/filenamecat.c: Renamed from path-concat.c.
32560         (file_name_concat): Renamed from path_concat.  All callers changed.
32561         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
32562         * lib/filenamecat.h: Likewise.  All includers changed.
32563         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
32564         in comments or local variable names.
32565         * lib/basename.c: Likewise.
32566         * lib/canonicalize.c, canonicalize.h: Likewise.
32567         * lib/dirname.c, dirname.h: Likewise.
32568         * lib/euidaccess.c: Likewise.
32569         * lib/exclude.c: Likewise
32570         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
32571         * lib/fsusage.c, fsuage.h: Likewise.
32572         * lib/fts.c, fts_.h: Likewise.
32573         * lib/getcwd.c: Likewise.
32574         * lib/getloadavg.c: Likewise.
32575         * lib/mkstemp.c: Likewise.
32576         * lib/mountlist.c, mountlist.h: Likewise.
32577         * lib/openat.c, openat.h: Likewise.
32578         * lib/readlink-stub.c: Likewise.
32579         * lib/readutmp.c, readutmp.h: Likewise.
32580         * lib/rename.c: Likewise.
32581         * lib/rmdir.c: Likewise.
32582         * lib/same.c: Likewise.
32583         * lib/savedir.c: Likewise.
32584         * lib/stripslash.c: Likewise.
32585         * lib/tempname.c: Likewise.
32586         * lib/xreadlink.c: Likewise.
32587         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
32588         All uses changed.
32589         * lib/exclude.h: Likewise.
32590
32591         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
32592         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
32593         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
32594         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
32595         * lib/pathmax.h: Include <limits.h> unconditionally, since other
32596         files have been getting away with it for years (MORE/BSD 4.3
32597         is extinct now).
32598         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
32599         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
32600
32601         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
32602         Define to 256, not 255, as per modern POSIX.
32603
32604 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
32605
32606         Sync from coreutils.
32607         Use "file name" when talking about file names, instead of "filename"
32608         or "path", as per the GNU coding standards.
32609         * MODULES.html.sh: mkdir-p renamed from makepath.
32610         filenamecat renamed from path-concat.
32611         * modules/filenamecat: Renamed from modules/path-concat.
32612         (Files): filenamecat.h and filenamecat.c renamed from
32613         path-concat.h and path-concat.c.
32614         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
32615         (Include): filenamecat.h, not path-concat.h.
32616         * modules/mkdir-p: Renamed from modules/makepath.
32617         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
32618         makepath.c.
32619         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
32620         (Include): mkdir-p.h, not makepath.h.
32621
32622 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
32623
32624         Sync from coreutils.
32625         * m4/mkdir-p.m4: Renamed from makepath.m4.
32626         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
32627         Rename files from makepath.c to mkdir-p.c, and from
32628         makepath.h to mkdir-p.h.
32629         * m4/filenamecat.m4: Renamed from path-concat.m4.
32630         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
32631         Rename files from path-concat.c to filenamecat.c,
32632         and from path-concat.h to filenamecat.h.
32633         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
32634         "file name" in local variables or comments.
32635         * m4/rename.m4: Likewise.
32636
32637 2005-06-01  Bruno Haible  <bruno@clisp.org>
32638
32639         * modules/csharpexec: New file.
32640         * MODULES.html.sh (C#): New section.
32641
32642 2005-06-01  Bruno Haible  <bruno@clisp.org>
32643
32644         * m4/csharp.m4: New file, from GNU gettext.
32645         * m4/csharpexec.m4: New file, from GNU gettext.
32646
32647 2005-06-01  Bruno Haible  <bruno@clisp.org>
32648
32649         * lib/csharpexec.h: New file, from GNU gettext.
32650         * lib/csharpexec.c: New file, from GNU gettext.
32651         * lib/csharpexec.sh.in: New file, from GNU gettext.
32652
32653 2005-05-31  Derek Price  <derek@ximbiot.com>
32654             Paul Eggert  <eggert@cs.ucla.edu>
32655
32656         Sync from cvs.
32657         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
32658
32659 2005-05-31  Derek Price  <derek@ximbiot.com>
32660             Paul Eggert  <eggert@cs.ucla.edu>
32661
32662         Sync from cvs.
32663         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
32664
32665 2005-05-29  Derek Price  <derek@ximbiot.com>
32666
32667         * config/srclist.txt (glob_.h, glob.c): Add these files.
32668
32669 2005-05-29  Derek Price  <derek@ximbiot.com>
32670
32671         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
32672         * modules/glob: New file.
32673         * modules/getlogin_r: Add link to POSIX spec in description.
32674
32675 2005-05-29  Derek Price  <derek@ximbiot.com>
32676             Paul Eggert  <eggert@cs.ucla.edu>
32677
32678         * m4/glob.m4: New file.
32679
32680 2005-05-29  Derek Price  <derek@ximbiot.com>
32681             Paul Eggert  <eggert@cs.ucla.edu>
32682
32683         * lib/glob_.h, lib/glob.c: New files.
32684
32685 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
32686
32687         * modules/fts (Files): Remove m4/inttypes-pri.m4.
32688         * modules/fts-lgpl (Depends-on): Remove gettext.
32689
32690 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
32691
32692         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
32693         and don't require gt_INTTYPES_PRI.
32694
32695 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
32696
32697         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
32698
32699         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
32700         the configuration hassle isn't worth it.
32701         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
32702         (LONGEST_MODIFIER, PRIuMAX): Remove.
32703
32704 2005-05-27  Bruno Haible  <bruno@clisp.org>
32705
32706         * lib/getlogin_r.h: Remove second include of <stddef.h>.
32707
32708 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
32709
32710         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
32711         _POSIX_PTHREAD_SEMANTICS for Solaris.
32712
32713 2005-05-25  Derek Price  <derek@ximbiot.com>
32714
32715         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
32716
32717 2005-05-25  Derek Price  <derek@ximbiot.com>
32718             Paul Eggert  <eggert@cs.ucla.edu>
32719
32720         * modules/getlogin_r, m4/getlogin_r.m4: New files.
32721         * lib/getlogin_r.c, getlogin_r.h: New files.
32722
32723 2005-05-25  Bruno Haible  <bruno@clisp.org>
32724             Derek Price  <derek@ximbiot.com>
32725
32726         * lib/getlogin_r.h: Simplify API documentation.
32727
32728 2005-05-23  Derek Price  <derek@ximbiot.com>
32729
32730         * modules/minmax (Files): Add m4/minmax.m4.
32731         (configure.ac): Add gl_MINMAX.
32732
32733 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
32734
32735         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
32736         so that unistd-safer.h (GPL'ed code) need not be included.
32737
32738 2005-05-22  Bruno Haible  <bruno@clisp.org>
32739
32740         * m4/minmax.m4: New file.
32741         Based on a patch by Derek Price <derek@ximbiot.com>.
32742
32743 2005-05-22  Bruno Haible  <bruno@clisp.org>
32744
32745         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
32746         (INT64_MIN): Fix definition.
32747         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
32748
32749         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
32750         NEED_SIGNED_INT_TYPES.
32751
32752         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
32753         HAVE_SYSTEM_INTTYPES.
32754
32755 2005-05-22  Bruno Haible  <bruno@clisp.org>
32756
32757         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
32758         Also include <sys/param.h> if it defines MIN, MAX.
32759         Based on a patch by Derek Price <derek@ximbiot.com>.
32760
32761 2005-05-21  Jim Meyering  <jim@meyering.net>
32762
32763         * modules/fts (Files): Add m4/inttypes-pri.m4.
32764         (Depends-on): Add lstat and remove gettext.  Alphabetize.
32765
32766 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
32767
32768         New fts module.
32769         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
32770         (setup_dir, free_dir): New functions.
32771         (enter_dir, leave_dir): Define trivial
32772         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
32773         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
32774         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
32775         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
32776         Move to fts-cycle.c.
32777         (fts_open): Use setup_dir.
32778         (fts_close): Use free_dir.
32779         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
32780         This adds a label and some gotos, but the alternatives were messier.
32781         Check for memory allocation failure when entering a dir.
32782         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
32783         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
32784         (FTS): New member fts_cycle, that is a union that contains the
32785         old active_dir_ht and cycle_state.  All uses changed to mention
32786         fts_cycle.ht and fts_cycle.state.
32787         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
32788         fts.c, with the following changes:
32789         (setup_dir, free_dir): New functions.
32790         (enter_dir): Now returns bool.  Return true if successful, false
32791         if memory exhausted.  All callers changed.
32792         Do not bother partly cleaning up on
32793         memory allocation failure; that is free_dir's job.
32794         However, free ad if hash_insert fails, to avoid memory leak.
32795         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
32796         fts->fts_options to see which union member to use.
32797
32798 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
32799
32800         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
32801         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
32802
32803 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
32804
32805         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
32806
32807 2005-05-20  Jim Meyering  <jim@meyering.net>
32808
32809         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
32810         Now a macro, to pacify GCC.
32811
32812 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
32813
32814         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
32815         of -1.
32816
32817 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
32818
32819         * lib/chown.c (rpl_chown): Return -1 on failure.
32820
32821 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
32822
32823         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
32824         Don't check for stddef.h.
32825         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
32826         don't use its results.
32827         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
32828         since we include them unconditionally.  Don't require
32829         AM_STDBOOL_H, since stdbool is a prerequisite.
32830         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
32831         since we assume C89 or better.
32832         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
32833         as we don't use their results.
32834         Don't check for fchdir, memmove, memset, strrchr, as we use
32835         them unconditionally.
32836         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
32837         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
32838
32839 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
32840
32841         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
32842         Include <stddef.h> unconditionally, since we assume C89 now.
32843         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
32844         * lib/fts.c: Include fts_.h first, to check interface.
32845         Do not include intprops.h; no longer needed.
32846         Include cycle-check.h and hash.h, since fts_.h no longer does.
32847         Remove unnecessary casts of closedir to void.
32848         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
32849         decide whether to decrement nlinks.
32850         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
32851         (FTS): Use struct hash_table * instead of Hash_table, so that
32852         we no longer need to include hash.h here.
32853
32854 2005-05-18  Jim Meyering  <jim@meyering.net>
32855
32856         * modules/dirfd (License): Change to LGPL.  Most of the code
32857         is already in the public domain.
32858
32859 2005-05-18  Jim Meyering  <jim@meyering.net>
32860
32861         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
32862         Reported by Yoann Vandoorselaere.
32863
32864 2005-05-17  Jim Meyering  <jim@meyering.net>
32865
32866         * m4/fts.m4: New file, from coreutils.
32867
32868 2005-05-17  Jim Meyering  <jim@meyering.net>
32869
32870         * lib/fts.c, lib/fts_.h: New files, from coreutils.
32871
32872 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
32873
32874         Sync from coreutils.
32875         * m4/unlinkdir.m4: New file.
32876
32877 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
32878
32879         Sync from coreutils.
32880         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
32881         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
32882         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
32883         White space changes only.
32884         * lib/makepath.c (make_path): Port to hosts where leading "//" is
32885         special.
32886         * lib/yesno.c: Include getline.h, not ctype.h.
32887         (yesno): Don't remove leading white space; POSIX doesn't allow it.
32888         Use getline to remove arbitrary restriction on response length.
32889
32890 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
32891
32892         * config/srclist-update: Spell out "Street" in FSF postal
32893         mail address; this is the style the FSF seems to prefer.
32894
32895         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
32896         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
32897         this updates FSF postal mail address.
32898
32899         Sync from coreutils.
32900         * modules/unlinkdir: New file.
32901         * modules/yesno (Depends-on): Add getline.
32902         * MODULES.html.sh (File system functions): Add unlinkdir.
32903
32904 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
32905
32906         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
32907         lib/strsep.h:
32908         Change the initial comment to refer to GPL, not LGPL.
32909         gnulib-tool will change it to LGPL as needed.
32910
32911         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
32912         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
32913         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
32914         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
32915         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
32916         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
32917         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
32918         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
32919         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
32920         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
32921         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
32922         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
32923         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
32924         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
32925         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
32926         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
32927         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
32928         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
32929         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
32930         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
32931         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
32932         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
32933         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
32934         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
32935         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
32936         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
32937         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
32938         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
32939         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
32940         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
32941         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
32942         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
32943         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
32944         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
32945         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
32946         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
32947         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
32948         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
32949         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
32950         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
32951         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
32952         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
32953         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
32954         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
32955         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
32956         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
32957         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
32958         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
32959         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
32960         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
32961         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
32962         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
32963         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
32964         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
32965         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
32966         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
32967         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
32968         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
32969         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
32970         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
32971         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
32972         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
32973         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
32974         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
32975         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
32976         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
32977         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
32978         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
32979         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
32980         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
32981         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
32982         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
32983         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
32984         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
32985         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
32986         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
32987         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
32988         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
32989         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
32990         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
32991         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
32992         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
32993         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
32994         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
32995         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
32996         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
32997         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
32998         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
32999         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
33000         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
33001         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
33002         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
33003         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
33004         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
33005         lib/yesno.c, lib/yesno.h:
33006         Update FSF postal mail address.
33007
33008 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
33009
33010         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
33011         tests/test-memmem.c, tests/test-stpncpy.c:
33012         Update FSF postal mail address.
33013
33014 2005-05-13  Bruno Haible  <bruno@clisp.org>
33015
33016         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
33017         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
33018         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
33019         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
33020         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
33021         Add support for 64-bit integers in the MSVC compiler.
33022
33023 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
33024
33025         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
33026
33027 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
33028
33029         * gnulib-tool (func_import): Sort and uniquify recommended includes.
33030
33031 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
33032
33033         * doc/getdate.texi (General date syntax): Don't say that date
33034         date --iso-8601=ns generates acceptable dates; it doesn't yet.
33035         Problem reported by Nic Ferrier.
33036
33037 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
33038
33039         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
33040         specified in ai_socktype. Fix invalid ai_protocol
33041         check. ai_protocol is usually set to 0 or depending on
33042         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
33043         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
33044         ai_socktype / ai_protocol in the returned addrinfo structure.
33045
33046 2005-05-10  Simon Josefsson  <jas@extundo.com>
33047
33048         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
33049         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
33050
33051 2005-05-10  Karl Berry  <karl@gnu.org>
33052
33053         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
33054         (from http://www.gnu.org/licenses).
33055         * doc/COPYING.LIB: also rename to COPYING.LESSER.
33056         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
33057         fdl.texi suffices.
33058
33059 2005-05-10  Karl Berry  <karl@gnu.org>
33060
33061         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
33062         (COPYING.DOC): remove.
33063
33064         * config/srclist-update: new FSF address.
33065
33066 2005-05-10  Derek Price  <derek@ximbiot.com>
33067
33068         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
33069         possible.
33070
33071 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
33072             Bruno Haible  <bruno@clisp.org>
33073
33074         * modules/inet_ntop: New file.
33075         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
33076         inet_ntop.
33077
33078 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
33079             Bruno Haible  <bruno@clisp.org>
33080
33081         * m4/inet_ntop.m4: New file.
33082
33083 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
33084             Bruno Haible  <bruno@clisp.org>
33085
33086         * lib/inet_ntop.h: New file.
33087         * lib/inet_ntop.c: New file, from glibc with modifications.
33088
33089 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
33090
33091         * modules/time_r (License): Change to LGPL.
33092         * modules/extensions (License): Change to LGPL.  Actually,
33093         the license is more permissive than that, but currently gnulib-tool
33094         doesn't know how to handle more-permissive licenses.
33095
33096         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
33097         Problem reported by Dave Love.
33098
33099 2005-05-08  Jim Meyering  <jim@meyering.net>
33100
33101         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
33102         blank.
33103
33104 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
33105
33106         * modules/argmatch (Depends-on): Add stdbool.
33107         * modules/backupfile (Depends-on): Likewise.
33108         * modules/chdir-long (Depends-on): Likewise.
33109         * modules/closeout (Depends-on): Likewise.
33110         * modules/cycle-check (Depends-on): Likewise.
33111         * modules/dirname (Depends-on): Likewise.
33112         * modules/fnmatch (Depends-on): Likewise.
33113         * modules/fsusage (Depends-on): Likewise.
33114         * modules/fwriteerror (Depends-on): Likewise.
33115         * modules/getcwd (Depends-on): Likewise.
33116         * modules/getloadavg (Depends-on): Likewise.
33117         * modules/hard-locale (Depends-on): Likewise.
33118         * modules/makepath (Depends-on): Likewise.
33119         * modules/mountlist (Depends-on): Likewise.
33120         * modules/nanosleep (Depends-on): Likewise.
33121         * modules/posixtm (Depends-on): Likewise.
33122         * modules/quotearg (Depends-on): Likewise.
33123         * modules/readtokens (Depends-on): Likewise.
33124         * modules/readtokens0 (Depends-on): Likewise.
33125         * modules/readutmp (Depends-on): Likewise.
33126         * modules/save-cwd (Depends-on): Likewise.
33127         * modules/strftime (Depends-on): Likewise.
33128         * modules/userspec (Depends-on): Likewise.
33129         * modules/utimecmp (Depends-on): Likewise.
33130         * modules/xgetcwd (Depends-on): Likewise.
33131         * modules/xnanosleep (Depends-on): Likewise.
33132         * modules/xstrtod (Depends-on): Likewise.
33133         * modules/yesno (Depends-on): Likewise.
33134
33135 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
33136
33137         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
33138         needless checks.
33139
33140 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
33141
33142         Merge from coreutils.  Among other things,
33143         add bulletproofing for cases where stdin, stdout, or stderr are closed.
33144         * lib/fd-safer.c: New file.
33145         * lib/fcntl-safer.h, open-safer.c: Remove.
33146         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
33147         * lib/dup-safer.c: Include unistd-safer.h first.
33148         Don't include errno.h.
33149         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
33150         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
33151         * lib/file-type.c: Rely on file-type.h change.
33152         * lib/getloadavg.c: Include unistd-safer.h.
33153         (getloadavg): Use safer open.
33154         * lib/getusershell.c: Include "stdio-safer.h".
33155         (getusershell): Use safer fopen.
33156         * lib/long-options.c (long_options): Use NULL rather than 0.
33157         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
33158         'free'.
33159         * lib/modechange.c: Likewise.
33160         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
33161         (MODE_DONE): New constant.
33162         (struct mode_change): Remove 'next' member.
33163         (make_node_op_equals): New function; like the old one of the
33164         same name, except it allocates an array.
33165         (mode_compile, mode_create_from_ref): Use it.
33166         (mode_compile): Allocate result as an array, not a linked list.
33167         Parse octal string ourself, so that we catch mistakes like "+0".
33168         (mode_adjust): Arg is an array, not a linked list.
33169         * lib/modechange.c: Include stat-macros.h, xalloc.h.
33170         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
33171         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
33172         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
33173         Remove.  This is now stat-macros.h's job.
33174         (talloc): Remove.  All callers replaced by xalloc, so that
33175         our invokers don't have to worry about reporting memory failures.
33176         (make_node_op_equals): Remove.
33177         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
33178         New constants.
33179         (struct mode_change): Moved here from modechange.h.
33180         (mode_append_entry): Remove.
33181         (mode_compile): Remove MASKED_OPS arg, since it encouraged
33182         apps to have incorrect behavior.  Use simpler algorithm for head
33183         and tail.  Don't futz with umask; that's now the job of mode_adjust.
33184         Detect more invalid usages rather than having somewhat-random behavior.
33185         Don't insert an "a=" action, as that leads to incorrect behavior.
33186         (mode_compile, mode_create_from_ref): Return NULL on error instead
33187         of an enum, since now there's only one way to have an error.  All
33188         callers changed.
33189         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
33190         at the correct time.  Simplify calculation of "+u" and its ilk.
33191         Don't mishandle "+X".
33192         (mode_free): Remove "register" and localize decls.
33193         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
33194         (struct mode_change): Move to modechange.c; callers don't
33195         need to see this stuff.
33196         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
33197         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
33198         (mode_change, mode_adjust): Reflect the new signatures noted above.
33199         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
33200         that might redefine system include files.
33201         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
33202         (my_usleep): Use NULL rather than (void *) 0.
33203         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
33204         Use siginterrupt to specify that system calls should be interrupted.
33205         (rpl_nanosleep): Move initialization of suspended closer to call of
33206         my_usleep.
33207         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
33208         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
33209         (desirable_utmp_entry): New function.
33210         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
33211         using x2nrealloc, to simplify logic.
33212         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
33213         size calculation.  Do not assume utmp file is a regular file.
33214         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
33215         (READ_UTMP_CHECK_PIDS): New constant.
33216         * lib/save-cwd.c: Include unistd-safer.h.
33217         (save_cwd): Use fd_safer.
33218         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
33219         [!_LIBC] Include "stat-macros.h" instead.
33220         * lib/unistd-safer.h (fd_safer): New decl.
33221
33222 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
33223
33224         * modules/getloadavg (Depends-on): Add unistd-safer.
33225         * modules/getusershell (Depends-on): Add stdio-safer.
33226         * modules/lstat (Depends-on): Remove xalloc.
33227         * modules/mkstemp (Depends-on): Add stat-macros.
33228         * modules/modechange (Depends-on): Remove xstrtol.
33229         Add stat-macros, xalloc.
33230         * modules/save-cwd (Depends-on): Add unistd-safer.
33231         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
33232         * modules/unistd-safer (Files): Add lib/fd-safer.c
33233         (Makefile.am): Remove lib_SOURCES.
33234
33235         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
33236         Remove fcntl-safer; unistd-safer supersedes it.
33237
33238 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
33239
33240         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
33241         AC_HEADER_STAT.
33242         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
33243         (gl_PREREQ_CHOWN): Remove.
33244         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
33245         it.  Don't require AC_HEADER_STAT.
33246         (gl_PREREQ_LSTAT): Remove.
33247         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
33248         Don't require AC_HEADER_STAT.
33249         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
33250         (gl_PREREQ_RMDIR): Remove.
33251         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
33252         mention stat-macros.h or AC_HEADER_STAT, since we'll make
33253         the stat-macros module a prerequisite.
33254         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
33255         * m4/filemode.m4 (gl_FILEMODE): Likewise.
33256         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
33257         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
33258         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
33259         variable names.
33260         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
33261         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
33262         variable prefixes.
33263         * m4/fcntl-safer.m4: Remove.
33264         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
33265         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
33266         Invoke gl_PREREQ_FD_SAFER.
33267         (gl_PREREQ_FD_SAFER): New macro.
33268         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
33269         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
33270         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
33271         Remove duplicate call to AC_LIBOBJ(readutmp).
33272         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
33273
33274         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
33275         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
33276
33277 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
33278
33279         * MODULES.html.sh (Misc): Add byteswap.
33280
33281 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
33282
33283         * modules/getcwd (Depends-on): Add extensions.
33284         * modules/openat (Depends-on): Likewise.
33285
33286 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
33287
33288         * modules/byteswap: New file.
33289
33290 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
33291
33292         * m4/byteswap.m4: New file.
33293
33294 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
33295
33296         * lib/byteswap_.h: New file.
33297
33298 2005-04-25  Karl Berry  <karl@gnu.org>
33299
33300         * m4/gettext.m4: Update from GNU gettext 0.14.4.
33301
33302 2005-04-25  Albert Chin  <china@thewrittenword.com>
33303
33304         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
33305         Toolkit C bug.
33306
33307 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
33308
33309         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
33310         (func_ln_if_changed) Remove forcibly for no error message
33311         in case file does not exist.
33312
33313 2005-04-19  Simon Josefsson  <jas@extundo.com>
33314
33315         * gnulib-tool (Options): Make --symlink mean --symbolic.
33316
33317 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
33318
33319         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
33320
33321 2005-04-16  Simon Josefsson  <jas@extundo.com>
33322
33323         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
33324
33325 2005-04-15  Simon Josefsson  <jas@extundo.com>
33326
33327         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
33328
33329 2005-04-15  Simon Josefsson  <jas@extundo.com>
33330
33331         * gnulib-tool: Rename --symlink to --symbolic.
33332
33333 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
33334
33335         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
33336         symbolic links to files instead of copying/moving.  Add --aux-dir,
33337         specifying directory relative --dir where auxiliary build tools
33338         are placed.
33339
33340 2005-04-14  Bruno Haible  <bruno@clisp.org>
33341
33342         * modules/allocsa (License): Change to LGPL.
33343         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
33344
33345 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
33346
33347         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
33348         that "UTC +1 second" continues to work.  Problem reported
33349         by Dmitry V. Levin.
33350         (relunit_snumber): New rule.
33351         (relunit): Use it.
33352
33353 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
33354
33355         * lib/getdate.y (universal_time_zone_table): New constant.
33356         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
33357         universal_time_zone_table.
33358         (lookup_zone): Prefer universal_time_zone_table to
33359         local_time_zone_table, so that "GMT" time stamps are allowed in
33360         London during the summer.  Problem reported by Ian Abbott.
33361
33362 2005-04-12  Jim Meyering  <jim@meyering.net>
33363
33364         * lib/human.c (humblock): Set *options even when returning due to
33365         xstrtoumax conversion failure.  Thanks to a used-uninitialized
33366         warning from gcc-4.
33367
33368 2005-04-09  Jim Meyering  <jim@meyering.net>
33369
33370         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
33371         -Wuninitialized: initialize tm0.tm_year.
33372
33373 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
33374
33375         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
33376         count, since there's no maximum.  All uses changed.
33377         Add member dsts_seen.
33378         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
33379         not being INT_MAX.
33380         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
33381         Use pc_rels_seen to decide whther a date is absolute.
33382
33383         * lib/getdate.y (number): Don't overwrite year.
33384         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
33385         check.
33386
33387 2005-04-02  Simon Josefsson  <jas@extundo.com>
33388
33389         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
33390         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
33391
33392 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
33393
33394         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
33395         where no absolute path name can be longer than PATH_MAX.
33396
33397 2005-03-27  Jim Meyering  <jim@meyering.net>
33398
33399         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
33400
33401 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
33402
33403         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
33404         "one's complement" -> "ones' complement" in comment, as per Knuth.
33405         "value of type" -> "type or expression" in comment.
33406         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
33407
33408 2005-03-26  Jim Meyering  <jim@meyering.net>
33409
33410         Comment nits.
33411         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
33412         Correct typos: s/or/of/.
33413
33414 2005-03-26  Jim Meyering  <jim@meyering.net>
33415
33416         * modules/check-include-files: Move to ../ and rename to...
33417         * check-module: ...this.
33418
33419 2005-03-25  Jim Meyering  <jim@meyering.net>
33420
33421         * modules/xvasprintf (Files): Add xalloc.h.
33422
33423 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
33424
33425         * modules/gettext (Files): config/config.rpath ->
33426         build-aux/config.rpath
33427         * modules/iconv (Files): Likewise.
33428         Problem reported by Oskar Liljeblad.
33429
33430 2005-03-23  Jim Meyering  <jim@meyering.net>
33431
33432         * modules/check-include-files: New script to check for
33433         missing dependencies, multiple includes, etc.
33434
33435         * modules/c-strtold (Depends-on): Add xalloc.
33436         * modules/c-strtod (Depends-on): Add xalloc.
33437         * modules/hash (Depends-on): Add xalloc.
33438         (Files): Remove lib/xalloc.h.
33439
33440         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
33441         * modules/userspec (Files): Add lib/inttostr.h.
33442
33443 2005-03-23  Jim Meyering  <jim@meyering.net>
33444
33445         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
33446
33447 2005-03-22  Jim Meyering  <jim@meyering.net>
33448
33449         * modules/stat-macros: New module.
33450         * modules/canonicalize, modules/euidaccess, modules/file-type,
33451         * modules/filemode, modules/lchown, modules/makepath,
33452         * modules/rmdir, modules/stat: Depend on new stat-macros module
33453         rather than listing lib/stat-macros.h manually.
33454         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
33455
33456 2005-03-22  Jim Meyering  <jim@meyering.net>
33457
33458         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
33459
33460 2005-03-22  Bruno Haible  <bruno@clisp.org>
33461
33462         * config/srclist.txt: Replace target directory 'config' with
33463         'build-aux'.
33464         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
33465         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
33466         ../build-aux/.
33467
33468 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
33469
33470         * modules/chdir-long (Depends-on): Add mempcpy.
33471
33472         * modules/acl, modules/backupfile, modules/c-strtod,
33473         modules/c-strtold, modules/canon-host, modules/canonicalize,
33474         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
33475         modules/exclude, modules/exitfail, modules/file-type,
33476         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
33477         modules/getdate, modules/getline, modules/getpagesize,
33478         modules/getpass, modules/getugroups, modules/group-member,
33479         modules/hard-locale, modules/hash, modules/human, modules/idcache,
33480         modules/inttostr, modules/long-options, modules/makepath,
33481         modules/md5, modules/memcasecmp, modules/memcoll,
33482         modules/modechange, modules/mountlist, modules/path-concat,
33483         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
33484         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
33485         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
33486         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
33487         modules/strftime, modules/strndup, modules/strverscmp,
33488         modules/timespec, modules/unlocked-io, modules/userspec,
33489         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
33490         modules/yesno:
33491         Remove lib_SOURCES line from Makefile.am section, as this is now
33492         done automatically by the corresponding Autoconf macro.
33493
33494 2005-03-21  Jim Meyering  <jim@meyering.net>
33495
33496         Changes imported from coreutils.
33497
33498         * lib/cycle-check.c: Don't include xalloc.h.
33499
33500         * lib/path-concat.c: Don't include assert.h.
33501         (path_concat): Remove assertion that would have triggered
33502         for ABASE starting with more than one slash.
33503         Reported by Andreas Schwab.
33504
33505         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
33506         properly when ABASE is an absolute file name.
33507         Correct the description of this function.
33508         Include <assert.h>.
33509         Add an assertion and a test driver.
33510         This fixes a bug introduced on 2004-07-02.
33511         Andreas Schwab reported the resulting failure of cp --parents:
33512         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
33513
33514 2005-03-21  Jim Meyering  <jim@meyering.net>
33515
33516         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
33517         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
33518
33519 2005-03-21  Jim Meyering  <jim@meyering.net>
33520         and  Paul Eggert  <eggert@cs.ucla.edu>
33521
33522         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
33523         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
33524         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
33525         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
33526         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
33527         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
33528         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
33529         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
33530         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
33531         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
33532         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
33533         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
33534         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
33535         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
33536         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
33537         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
33538         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
33539         for these modules.
33540
33541 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
33542
33543         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
33544         (which shouldn't happen), generate nothing instead of returning 0
33545         immediately, so that nstrftime (NULL, ...) doesn't return 0.
33546
33547 2005-03-16  Bruno Haible  <bruno@clisp.org>
33548
33549         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
33550         HAVE_LONGLONG_64BIT.
33551
33552 2005-03-16  Bruno Haible  <bruno@clisp.org>
33553
33554         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
33555         HAVE_LONGLONG_64BIT.
33556
33557 2005-03-16  Bruno Haible  <bruno@clisp.org>
33558
33559         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
33560         HAVE_LONGLONG_64BIT.
33561
33562 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
33563
33564         * lib/strftime.c (my_strftime): Prepend space to format so that we can
33565         reliably distinguish strftime failure from empty output on POSIX
33566         hosts.
33567
33568 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
33569
33570         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
33571         (iconv_string): Don't guess a size-zero buffer, as that might cause
33572         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
33573         result would be 'too large', where 'too large' is (heuristically)
33574         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
33575         overflow concerns.  This will prevent some unwanted malloc failures
33576         when the inputs are very large.
33577
33578 2005-03-15  Karl Berry  <karl@gnu.org>
33579
33580         * config/srclist.txt (config.rpath): from gettext.
33581         * config/config.rpath: update.
33582
33583 2005-03-15  Bruno Haible  <bruno@clisp.org>
33584
33585         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
33586         to 'negate'.
33587
33588         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
33589         variable.
33590
33591         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
33592         results.
33593
33594 2005-03-14  Simon Josefsson  <jas@extundo.com>
33595
33596         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
33597         <fx@gnu.org>.
33598
33599 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
33600
33601         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
33602         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
33603         intprops.h.
33604         * lib/strtol.c: Likewise.
33605
33606 2005-03-14  Jim Meyering  <jim@meyering.net>
33607
33608         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
33609         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
33610         to be nonzero so that we (and caller) can detect the difference
33611         between a valid zero-length expansion and an error return, even
33612         when the underlying strftime fails before writing anything into
33613         that location.
33614
33615 2005-03-14  Bruno Haible  <bruno@clisp.org>
33616
33617         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
33618         Update from GNU gettext 0.14.3.
33619
33620 2005-03-10  Jim Meyering  <jim@meyering.net>
33621
33622         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
33623
33624 2005-03-10  Jim Meyering  <jim@meyering.net>
33625
33626         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
33627         so that this module works on systems without fchdir.
33628
33629 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
33630
33631         Factor int-properties macros into a single file, except for
33632         glibc-related files.
33633         * lib/intprops.h: New file.
33634         * lib/getloadavg.c: Include it instead of limits.h.
33635         (INT_STRLEN_BOUND): Remove.
33636         * lib/human.c: Include intprops.h.
33637         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
33638         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
33639         302/1000.
33640         * lib/inttostr.h: Include intprops.h instead of limits.h.
33641         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
33642         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
33643         for consistency with intprops.h.
33644         (time_t_is_integer, twos_complement_arithmetic): Use them.
33645         * lib/sig2str.h: Include <signal.h>, intprops.h.
33646         (INT_STRLEN_BOUND): Remove.
33647         * lib/strftime.c (TYPE_SIGNED): Remove.
33648         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
33649         * lib/strtol.c: Adjust comments to match intprops.h.
33650         * lib/userspec.c: Include intprops.h.
33651         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
33652         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
33653         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
33654         instead of rolling our own expressions.
33655         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
33656
33657         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
33658         instead of int.
33659         (my_strftime): Do not mishandle years close to INT_MAX, by doing
33660         the right thing even if adding 1900 would overflow.  Similarly
33661         for tm_mon + 1 and tm_yday + 1.
33662         Make %Y always equivalent to %C%y, and similarly for %G and %g.
33663         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
33664         (DO_SIGNED_NUMBER): New macro.
33665         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
33666
33667 2005-03-07  Bruno Haible  <bruno@clisp.org>
33668
33669         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
33670
33671 2005-03-07  Bruno Haible  <bruno@clisp.org>
33672
33673         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
33674
33675 2005-03-04  Derek R. Price  <derek@ximbiot.com>
33676
33677         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
33678         (func_import): Only replace files via --import when they have actually
33679         changed.
33680
33681 2005-03-03  Derek R. Price  <derek@ximbiot.com>
33682
33683         * m4/mmap-anon.m4: New file.
33684         * m4/pagealign_alloc.m4: New file.
33685
33686 2005-03-03  Derek R. Price  <derek@ximbiot.com>
33687             Bruno Haible  <bruno@clisp.org>
33688
33689         * modules/pagealign_alloc: New file.
33690         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
33691
33692 2005-03-03  Derek R. Price  <derek@ximbiot.com>
33693             Bruno Haible  <bruno@clisp.org>
33694
33695         * lib/pagealign_alloc.h: New file.
33696         * lib/pagealign_alloc.c: New file.
33697
33698 2005-03-03  Bruno Haible  <bruno@clisp.org>
33699
33700         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
33701         Use an all-permissive copyright notice, recommended by RMS.
33702
33703 2005-03-02  Bruno Haible  <bruno@clisp.org>
33704
33705         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
33706         of AIX, the replacement has to be done only after <string.h> is
33707         included, therefore not in config.h. stpncpy.h does the replacement,
33708         and stpncpy.c uses it.
33709
33710 2005-03-02  Bruno Haible  <bruno@clisp.org>
33711
33712         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
33713         stpncpy.c uses it.
33714
33715 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
33716
33717         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
33718         The workaround isn't strictly needed for POSIX conformance, and
33719         it's too much of a pain to configure and maintain.  We'll ask
33720         people to fix their kernels instead.
33721         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
33722         (NANOSLEEP_BUG_WORKAROUND): Remove.
33723         (xnanosleep): Remove the workaround.
33724
33725 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
33726
33727         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
33728         Reported by Derek Price.
33729         (Include): Add "timespec.h".
33730
33731         * modules/xnanosleep (Depends-on): Remove gethrxtime.
33732
33733 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
33734
33735         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
33736         to detect nanosleep bug.
33737
33738 2005-03-01  Bruno Haible  <bruno@clisp.org>
33739
33740         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
33741
33742 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
33743
33744         * modules/gethrxtime: New file.
33745         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
33746         (Depends-on): Add gethrxtime.
33747         (configure.ac): Add gl_XNANOSLEEP.
33748         (Makefile.am): Remove lib_SOURCES line.
33749
33750 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
33751
33752         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
33753         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
33754
33755 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
33756
33757         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
33758         * lib/timespec.h (gettime): Return void, since it always
33759         succeeds now.  All uses changed.
33760         * lib/gettime.c (gettime) Likewise.
33761         [HAVE_NANOTIME]: Prefer nanotime.
33762         Assume gettimeofday succeeds, as POSIX requires.
33763         Assime time () succeeds, since other code already does.
33764         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
33765         (timespec_subtract): Remove.
33766         (NANOSLEEP_BUG_WORKAROUND): New constant.
33767         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
33768         things considerably.  Use it only on GNU/Linux hosts, since the
33769         workaround shouldn't be needed elsewhere.
33770
33771 2005-02-24  Bruno Haible  <bruno@clisp.org>
33772
33773         * modules/gettext (Files): Add m4/glibc2.m4.
33774
33775 2005-02-24  Bruno Haible  <bruno@clisp.org>
33776
33777         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
33778         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
33779         * m4/progtest.m4:
33780         Update from GNU gettext 0.14.2.
33781         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
33782
33783 2005-02-24  Bruno Haible  <bruno@clisp.org>
33784
33785         * lib/localcharset.c: Update from GNU gettext 0.14.2.
33786         * lib/config.charset: Update from GNU gettext 0.14.2.
33787
33788 2005-02-24  Bruno Haible  <bruno@clisp.org>
33789
33790         * lib/gettext.h: Update from GNU gettext 0.14.2.
33791
33792 2005-02-23  Simon Josefsson  <jas@extundo.com>
33793
33794         * m4/iconvme.m4: New file.
33795
33796 2005-02-23  Jim Meyering  <jim@meyering.net>
33797
33798         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
33799         change.
33800         Thanks to Bruno Haible for catching it.
33801
33802 2005-02-22  Simon Josefsson  <jas@extundo.com>
33803
33804         * modules/iconvme: New file.
33805
33806         * MODULES.html.sh: Add iconvme.
33807
33808 2005-02-22  Simon Josefsson  <jas@extundo.com>
33809
33810         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
33811
33812 2005-02-22  Simon Josefsson  <jas@extundo.com>
33813
33814         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
33815
33816 2005-02-22  Jim Meyering  <jim@meyering.net>
33817
33818         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
33819         s/ifndef/ifdef/.
33820
33821 2005-02-20  Neil Conway  <neilc@samurai.com>
33822
33823         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
33824         returned by OSX/Darwin if the specified buffer is not large
33825         enough for the hostname.
33826
33827 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
33828
33829         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
33830         pass it to _help, otherwise the latter coredumps trying to
33831         dereference state.root_argp.
33832
33833 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
33834
33835         * modules/chdir-long (Depends-on): Add memrchr.
33836         * modules/memrchr (Files): Add lib/memrchr.h.
33837         (Include): "memrchr.h".
33838
33839 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
33840
33841         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
33842
33843 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
33844
33845         * lib/memrchr.h: New file.
33846         * lib/chdir-long.c: Include it.
33847         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
33848         Don't bother including stddef.h.
33849
33850 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
33851
33852         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
33853         inclusion.
33854         Include <sys/types.h>, for dev_t.
33855         (ME_DUMMY, ME_REMOTE): Move from here....
33856         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
33857         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
33858         Dmitry V. Levin.
33859         Include mountlist.h first, to test the interface.
33860
33861 2005-01-29  Bruno Haible  <bruno@clisp.org>
33862
33863         * lib/progname.c (program_name): Initialize.
33864         Needed when linking statically on MacOS X.
33865
33866 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
33867
33868         Sync from coreutils.
33869         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
33870         (Depends-on): Add c-strtod.
33871         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
33872
33873 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
33874
33875         Sync from coreutils.
33876         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
33877
33878         Remove files that are specific to coreutils.
33879         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
33880
33881 2005-01-28  Bruno Haible  <bruno@clisp.org>
33882
33883         * modules/javacomp: New file.
33884         * MODULES.html.sh (Java): Add javacomp.
33885
33886 2005-01-28  Bruno Haible  <bruno@clisp.org>
33887
33888         * m4/javacomp.m4: New file, from GNU gettext.
33889
33890 2005-01-28  Bruno Haible  <bruno@clisp.org>
33891
33892         * lib/javacomp.sh.in: New file, from GNU gettext.
33893         * lib/javacomp.h: New file, from GNU gettext.
33894         * lib/javacomp.c: New file, from GNU gettext.
33895
33896 2005-01-26  Simon Josefsson  <jas@extundo.com>
33897
33898         * lib/gai_strerror.c: Use GPL in header.
33899
33900 2005-01-26  Bruno Haible  <bruno@clisp.org>
33901
33902         * modules/javaexec: New file.
33903         * MODULES.html.sh (Java): Add javaexec.
33904
33905 2005-01-26  Bruno Haible  <bruno@clisp.org>
33906
33907         * m4/javaexec.m4: New file, from GNU gettext.
33908
33909 2005-01-26  Bruno Haible  <bruno@clisp.org>
33910
33911         * lib/javaexec.sh.in: New file, from GNU gettext.
33912         * lib/javaexec.h: New file, from GNU gettext.
33913         * lib/javaexec.c: New file, from GNU gettext.
33914
33915 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
33916
33917         * modules/lchown (Depends-on): Remove lchown.h
33918
33919 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
33920
33921         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
33922         must be defined if the header file was not found, in order
33923         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
33924
33925 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
33926
33927         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
33928         initializers for struct pentry_state.
33929         (__argp_error): Check return value of __asprintf
33930         (__argp_failure): Translate error message
33931
33932         * lib/argp-parse.c: Removed braces around the expansion of N_()
33933
33934 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
33935
33936         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
33937         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
33938         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
33939         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
33940         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
33941         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
33942         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
33943         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
33944         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
33945         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
33946         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
33947         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
33948         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
33949         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
33950         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
33951         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
33952         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
33953         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
33954         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
33955         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
33956         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
33957         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
33958         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
33959         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
33960         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
33961         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
33962         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
33963         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
33964         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
33965         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
33966         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
33967         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
33968         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
33969         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
33970         xstrtol.m4, xstrtoumax.m4, yesno.m4:
33971         Use an all-permissive copyright notice, recommended by RMS.
33972
33973 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
33974
33975         * modules/chdir-long (Depends-on): Remove mempcpy.
33976
33977 2005-01-21  Jim Meyering  <jim@meyering.net>
33978
33979         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
33980         same value as for Solaris 9.
33981
33982         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
33983         component length.  This included changing the parameter to be
33984         of type `char *' rather than `char const *'.
33985         * lib/chdir-long.h (chdir_long): Update prototype.
33986
33987         * lib/openat.c (fdopendir, fstatat): New functions.
33988         * lib/openat.h: Include headers required for use of DIR and struct
33989         stat.
33990         [AT_SYMLINK_NOFOLLOW]: Define.
33991         (fdopendir, fstatat): Add prototypes.
33992
33993 2005-01-21  Bruno Haible  <bruno@clisp.org>
33994
33995         * modules/classpath: New file.
33996         * MODULES.html.sh (Java): Add classpath.
33997
33998 2005-01-21  Bruno Haible  <bruno@clisp.org>
33999
34000         * lib/classpath.h: New file, from GNU gettext.
34001         * lib/classpath.c: New file, from GNU gettext.
34002
34003 2005-01-20  Simon Josefsson  <jas@extundo.com>
34004
34005         * modules/version-etc-fsf: New file.
34006
34007 2005-01-20  Simon Josefsson  <jas@extundo.com>
34008
34009         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
34010         * lib/version-etc.c: Remove version_etc_copyright.
34011         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
34012         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
34013
34014 2005-01-20  Simon Josefsson  <jas@extundo.com>
34015
34016         * lib/base64.h (isbase64): Add.
34017
34018         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
34019         using a unsigned prototype, don't inline.
34020         (base64_decode): Use it.
34021
34022 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
34023
34024         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
34025         it.
34026
34027 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
34028
34029         * lib/save-cwd.c (save_cwd): Remove code to support the case
34030         where fchdir is missing or flaky.
34031
34032 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
34033
34034         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
34035
34036 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
34037
34038         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
34039         AC_LIBSOURCES now does this.
34040         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
34041         with new ullong_max module.
34042
34043 2005-01-19  Bruno Haible  <bruno@clisp.org>
34044
34045         * modules/sh-quote: New file.
34046         * MODULES.html.sh (Executing programs): Add sh-quote.
34047
34048 2005-01-19  Bruno Haible  <bruno@clisp.org>
34049
34050         * lib/sh-quote.h: New file, from GNU gettext.
34051         * lib/sh-quote.c: New file, from GNU gettext.
34052
34053 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
34054
34055         Merge from coreutils.
34056         * m4/ullong_max.m4: New file.
34057         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
34058         (gl_MACROS): Assume localeconv exists.
34059
34060 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
34061
34062         Merge changes from coreutils, as described below in several
34063         changelogs dated today.
34064
34065         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
34066         (O_DIRECTORY): Remove; not needed here, since "." must be
34067         a directory.  All uses removed.
34068         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
34069         universal on Suns, and we also need to test for IRIX.
34070         Revamp code to use 'if' rather than '#if'.
34071         Avoid unnecessary comparison of cwd->desc to 0.
34072
34073         * lib/utimens.c (futimens): Robustify the previous patch, by checking
34074         for known valid error numbers rather than observed invalid ones.
34075
34076 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
34077
34078         * modules/ullong_max: New file.
34079
34080         * modules/chdir-long, modules/openat: New files.
34081         * modules/save-cwd (Depends-on): Depend on chdir-long.
34082         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
34083
34084 2005-01-18  Jim Meyering  <jim@meyering.net>
34085
34086         Merge from coreutils.
34087         * m4/chdir-long.m4, m4/openat.m4: New files.
34088         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
34089         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
34090         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
34091         is sane and DOES follow symlinks.  Besides, testing 20 different
34092         systems found no broken chown implementations.
34093         Prompted by a change in rsync's copy of this macro.
34094         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
34095
34096         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
34097
34098         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
34099         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
34100         NULL-means-set-to-current-time semantics.
34101         Remove temporary file immediately, rather than waiting
34102         for configure's at-exit trap code to do it.
34103
34104 2005-01-18  Jim Meyering  <jim@meyering.net>
34105
34106         * lib/version-etc.c (version_etc_copyright): Update copyright date.
34107
34108         * lib/utimens.c (futimens): Account for the fact that futimes
34109         can also fail with errno == ENOSYS or errno == ENOENT.
34110         Patch from Dmitry V. Levin.
34111
34112         Change the name of the robust chdir function from chdir to chdir_long.
34113         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
34114         (restore_cwd): Use chdir_long, not chdir.
34115         * lib/chdir-long.c: Renamed from chdir.c.
34116         * lib/chdir-long.h: Renamed from chdir.h.
34117         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
34118         Hurd.
34119
34120 2005-01-18  Bruno Haible  <bruno@clisp.org>
34121
34122         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
34123         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
34124         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
34125         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
34126         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
34127         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
34128         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
34129         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
34130         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
34131         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
34132         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
34133         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
34134         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
34135         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
34136         Use an all-permissive copyright notice, recommended by RMS.
34137
34138 2005-01-18  Bob Proulx  <bob@proulx.com>
34139
34140         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
34141         simplify offsetof() macro construct to avoid compile failure with
34142         native HP-UX 11.0 ANSI C compiler.
34143
34144 2005-01-17  Bruno Haible  <bruno@clisp.org>
34145
34146         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
34147         redundant because stpncpy.m4 takes care of it.
34148
34149 2005-01-17  Bruno Haible  <bruno@clisp.org>
34150
34151         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
34152
34153 2005-01-17  Bruno Haible  <bruno@clisp.org>
34154
34155         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
34156         used.
34157
34158 2005-01-17  Bruno Haible  <bruno@clisp.org>
34159
34160         * lib/fwriteerror.h (fwriteerror): Change specification to include
34161         fclose.
34162         * lib/fwriteerror.c: Include <stdbool.h>.
34163         (fwriteerror): At the end, close the file stream. Record whether
34164         stdout was already closed.
34165
34166 2005-01-17  Bruno Haible  <bruno@clisp.org>
34167
34168         * lib/execute.c (environ): Declare if needed.
34169         * lib/pipe.c (environ): Likewise.
34170         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
34171
34172 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
34173
34174         * modules/argp: Depend on vsnprintf
34175
34176 2005-01-10  Jim Meyering  <jim@meyering.net>
34177
34178         * modules/closeout (Depends-on): Add atexit.
34179
34180 2005-01-06  Bruno Haible  <bruno@clisp.org>
34181
34182         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
34183
34184 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
34185
34186         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
34187         definitions to be after all include files, to avoid collisions.
34188         Problem reported by Bob Proulx.
34189
34190 2005-01-04  Jim Meyering  <jim@meyering.net>
34191
34192         Changes imported from coreutils.
34193         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
34194         as the mkstemp template, use a temporary directory and an
34195         8.3-friendly template to avoid trouble on systems like DJGPP.
34196         Reported by Juan M. Guerrero via Stepan Kasal.
34197         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
34198         close. Remove the temporary directory right away, rather than waiting
34199         for configure's at-exit trap code to do it.
34200         Suggestion from Stepan Kasal.
34201
34202 2005-01-01  Simon Josefsson  <jas@extundo.com>
34203
34204         * gnulib-tool: Print #include directives when --import'ing.
34205
34206 2004-12-28  Simon Josefsson  <jas@extundo.com>
34207
34208         * tests/test-base64.c: Include required header files.  Remove
34209         unused variables.
34210
34211 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
34212
34213         * modules/error (Depends-on): Remove gettext.
34214
34215 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
34216
34217         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
34218         not needed.  This removes a dependency on the gettext module.
34219         [defined _LIBC]: Do not include <libintl.h>; not needed.
34220
34221 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
34222
34223         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
34224         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
34225
34226 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
34227
34228         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
34229         HAVE_DECL_STRTOLD.
34230
34231 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
34232
34233         * modules/getdate (Depends-on): Remove alloca-opt.
34234
34235 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
34236
34237         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
34238
34239 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
34240
34241         * lib/argp-parse.c: Include <stddef.h>.
34242         (alignof, alignto): New macros.
34243         (parser_init): Don't assume that void * is aligned sufficiently
34244         for struct option.
34245
34246         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
34247         need to extend the stack.
34248         (YYINITDEPTH): New macro, so that the initial stack isn't overly
34249         large.
34250
34251 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
34252
34253         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
34254
34255 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
34256
34257         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
34258         (2004-10-24) change.  Apparently this was a false alarm.
34259
34260         * modules/getdate: Depend on alloca-opt, not alloca.
34261
34262 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
34263
34264         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
34265         Remove now-obsolete comment about AIX.
34266         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
34267         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
34268         (YYMAXDEPTH): New macro.
34269
34270 2004-12-18  Simon Josefsson  <jas@extundo.com>
34271
34272         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
34273
34274 2004-12-18  Bruno Haible  <bruno@clisp.org>
34275
34276         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
34277
34278 2004-12-18  Bruno Haible  <bruno@clisp.org>
34279
34280         * lib/fatal-signal.c (fatal_signals): Make non-const.
34281         (init_fatal_signals): New function.
34282         (uninstall_handlers, install_handlers): Ignore signals that were set to
34283         SIG_IGN.
34284         (at_fatal_signal): Call init_fatal_signals.
34285         (init_fatal_signal_set): Likewise. Ignore signals that were set to
34286         SIG_IGN.
34287         Reported by Paul Eggert.
34288
34289 2004-12-18  Bruno Haible  <bruno@clisp.org>
34290
34291         * doc/alloca.texi: New file.
34292         * doc/alloca-opt.texi: New file.
34293
34294 2004-12-17  Jim Meyering  <jim@meyering.net>
34295
34296         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
34297         Otherwise, install-sh could exit with improper exit status when
34298         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
34299
34300 2004-12-16  Simon Josefsson  <jas@extundo.com>
34301
34302         * tests/test-base64.c: Add license.
34303
34304 2004-12-15  Stepan Kasal  <address@hidden>
34305
34306         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
34307
34308 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
34309
34310         * modules/getcwd (Files): Add m4/d-ino.m4.
34311         Suggested by Mark D. Baushke.
34312
34313 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
34314
34315         * lib/getdate.y (textint): New member "negative".
34316         (time_zone_hhmm): New function.
34317         Expect 14 shift-reduce conflicts, not 13.
34318         (o_colon_minutes): New rule.
34319         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
34320         (yylex): Set the "negative" member of signed numbers.
34321
34322 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
34323
34324         * doc/getdate.texi (Time of day items, Time zone items):
34325         Describe new formats +00:00, UTC+00:00.
34326
34327 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
34328
34329         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
34330         spurious "-l"s.  Problem reported by Stepan Kasal.
34331
34332 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
34333
34334         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
34335         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
34336
34337 2004-12-04  Simon Josefsson  <jas@extundo.com>
34338
34339         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
34340         Vandoorselaere <yoann@prelude-ids.org>.
34341
34342 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
34343
34344         Changes imported from coreutils.
34345         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
34346         exist.
34347         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
34348
34349 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
34350
34351         Changes imported from coreutils.
34352         * lib/hard-locale.c: Assume <locale.h> exists.
34353         Include "strdup.h".
34354         (GLIBC_VERSION): New macro.
34355         (hard_locale): Assume setlocale exists.
34356         Rewrite to avoid #ifdef.
34357         Use strdup rather than malloc + strcpy.
34358         * lib/human.c: Assume <locale.h> exists.
34359         (human_readable): Assume localeconv exists.
34360
34361 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
34362
34363         * modules/hard-locale (Depends-on): Add strdup.
34364
34365 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
34366
34367         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
34368         convert T2, not T.  (Imported from libc.)
34369
34370 2004-11-30  Simon Josefsson  <jas@extundo.com>
34371
34372         * modules/restrict (License): Change to LGPL.
34373
34374 2004-11-30  Simon Josefsson  <jas@extundo.com>
34375
34376         * m4/restrict.m4: Add copyright and copying conditions.
34377
34378 2004-11-30  Simon Josefsson  <jas@extundo.com>
34379
34380         * m4/base64.m4: New file.
34381
34382 2004-11-30  Simon Josefsson  <jas@extundo.com>
34383
34384         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
34385         base64.
34386
34387         * tests/test-base64.c: New file.
34388
34389         * modules/base64: New file.
34390
34391 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
34392
34393         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
34394         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
34395
34396         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
34397
34398 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
34399
34400         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
34401         (__getcwd.c): Don't restore errno; glibc doesn't.
34402         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
34403         first, falling back to our code only if its results look suspicious.
34404         Ensure that the resulting buffer is only as large as necessary.
34405
34406         * lib/readutmp.c: Include readutmp.h first.
34407         Include <errno.h>, since readutmp.h no longer does that.
34408         * lib/readutmp.h: Don't include <errno.h>,
34409         <sys/param.h>, <time.h>; not needed to establish interface.
34410         (errno): Remove decl.
34411         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
34412         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
34413         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
34414
34415 2004-11-28  Simon Josefsson  <jas@extundo.com>
34416
34417         * lib/base64.h, base64.c: New file.
34418
34419 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
34420
34421         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
34422
34423 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
34424
34425         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
34426         (Depends-on): Remove pathmax, same.  Add mempcpy.
34427         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
34428         (Makefile.am): Append getcwd.h to lib_SOURCES.
34429         (Include): Add getcwd.h.
34430         (Maintainer): Change from Jim Meyering to "all, glibc",
34431         since getdate now uses intended-for-glibc code.
34432         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
34433         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
34434
34435 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
34436
34437         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
34438         HP's ANSI C compiler.
34439         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
34440         Declaring int functions causes warnings on some modern systems and
34441         shouldn't be needed to compile on ancient ones.
34442         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
34443         defined.
34444
34445         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
34446         with the following changes.
34447         (__set_errno): Parenthesize properly.
34448         Include <stdbool.h>.
34449         (MIN, MAX, MATCHING_INO): New macros.
34450         (__getcwd): Define with prototype, not K&R form.
34451         Use heuristics to allocate default buffer on stack if possible.
34452         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
34453         behavior, and to avoid the PATH_MAX limit when computing
34454         ../../../../...
34455         Use MATCHING_INO to compare inode number to file.
34456         Check for arithmetic overflow in size calculations.
34457         Fix bug in reallocation of dot array that caused getcwd to fail
34458         on directories nested deeper than 75.
34459         Be more careful about saving errno on error.
34460         Do not use realloc; use only free+malloc, as this is a bit
34461         more flexible and avoids a needless copy operation.
34462         Do not inspect st_dev and st_ino for symbolic links; POSIX
34463         doesn't specify the latter.
34464         Check for closedir errors.
34465         Avoid needless casts.
34466         Use "#ifdef weak_alias" around weak_alias, to be like other
34467         glibc code.
34468         The following changes to getcwd.c have effect only when used in
34469         gnulib; they have no effect inside glibc proper.
34470         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
34471         as alloca isn't used.
34472         (alloca, __alloca): Likewise.
34473         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
34474         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
34475         unconditionally, as gnulib assumes C89 or better.
34476         Do not include <sys/param.h>.
34477         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
34478         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
34479         better.
34480         (NULL) [!defined NULL]: Remove; we assume C89 or better.
34481         Include <dirent.h> in a way that is compatible with modern Autoconf.
34482         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
34483         New macros, if not already defined.
34484         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
34485         Use "_LIBC", not "defined _LIBC", for consistency.
34486         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
34487         a mempcpy module.
34488         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
34489         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
34490         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
34491         credit only to Jim Meyering and adjust the copyright dates.
34492         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
34493         <stdlib.h>, <unistd.h>, "pathmax.h".
34494         Instead, include "xgetcwd.h" (first) and "getcwd.h".
34495         (INITIAL_BUFFER_SIZE): Remove.
34496         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
34497
34498 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
34499
34500         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
34501         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
34502         Use the _ONCE methods, for efficiency.
34503         Check for fcntl.h.  In test program, include <errno.h>
34504         and <fcntl.h> if available.  Remove old K&R cruft from
34505         test program.  Check for common errors in GNU/Linux,
34506         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
34507         don't do AC_LIBOBJ, as that's getcwd.m4's job.
34508         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
34509         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
34510         name accordingly.
34511         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
34512         accommodate new getcwd.c.
34513         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
34514         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
34515         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
34516         that's all we need now.
34517
34518 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
34519
34520         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
34521         argp-parse.c depends on getopt internals, that means we should
34522         always use our getopt, to be on the safe side.
34523         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
34524         order not to spoil the result of an eventual previous invocation
34525         of gl_GETOPT_SUBSTITUTE.
34526
34527 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
34528
34529         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
34530         redefinition warnings. To avoid them, include the defines
34531         in `#if !defined __need_getopt ... #endif'. The only place
34532         where __getopt_argv_const is used is in definitions
34533         of getopt_long and getopt_long_only below, which are as well
34534         protected by `#ifndef __need_getopt'.
34535         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
34536         __need_getopt after including <stdio.h> and <unistd.h> These
34537         headers might have defined it.
34538
34539 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
34540
34541         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
34542
34543 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
34544
34545         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
34546         (futimens): New function, which uses futimes if available.
34547         (futimens, utimens): Support timespec==NULL, with same semantics
34548         as utime and utimens.
34549         * lib/utimens.h (futimens): New decl.
34550
34551 2004-11-23  Jim Meyering  <jim@meyering.net>
34552
34553         * lib/getopt_.h: Remove trailing blanks.
34554
34555 2004-11-23  Jim Meyering  <jim@meyering.net>
34556
34557         * lib/__fpending.c: Add comment.
34558
34559 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
34560
34561         * modules/canonicalize (Depends-on): Add xreadlink.
34562         Problem reported by James Youngman.
34563
34564 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
34565
34566         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
34567         New macros.
34568         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
34569         optopt): Use them instead of invoking ## directly; otherwise, the
34570         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
34571
34572 2004-11-19  Bruno Haible  <bruno@clisp.org>
34573
34574         * lib/strtok_r.c: Move comments from here...
34575         * lib/strtok_r.h: ... to here.
34576
34577 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
34578
34579         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
34580         implementations that mishandle size_t overflow.
34581
34582 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
34583
34584         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
34585         might fail.  Problem reported by Yoann Vandoorselaere.
34586         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
34587         implementations that mishandle size_t overflow.
34588
34589 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
34590
34591         * modules/canon-host (Depends-on): Add strdup.
34592
34593 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
34594
34595         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
34596
34597 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
34598
34599         * lib/canon-host.c: Include "strdup.h".
34600         (canon_host): Use getaddrinfo if available, so that IPv6 works.
34601         Use strdup instead of malloc/strcpy to duplicate strings.
34602
34603         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
34604         (human_space_before_unit): New constant.
34605         * lib/human.c (human_readable): Support it.
34606
34607         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
34608         (xgetcwd): Set errno correctly when failing.
34609         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
34610         the failure is actually due to a PATH_MAX problem.
34611
34612         Further getopt changes to make it more likely that glibc will
34613         buy the changes back.
34614         * lib/getopt.c (POSIXLY_CORRECT): New constant.
34615         (getopt): Use it, so to preserve glibc semantic
34616         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
34617         when compiling for libc.
34618         * lib/getopt_.h (__getopt_argv_const): Bring it back.
34619         (getopt_long, getopt_long_only): Use it.
34620
34621         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
34622         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
34623         (getopt): Argv is now char * const *, as per standard.
34624         (_getopt_internal_r, _getopt_internal): Argv is now char **,
34625         not char *__getopt_argv_const *.
34626         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
34627         _getopt_long_only_r): Likewise.
34628         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
34629         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
34630         _getopt_long_r, _getopt_long_only_r): Likewise.
34631         * lib/getopt_.h (__getopt_argv_const): Remove.
34632         (getopt): Argv is now char * const *, as per standard.
34633
34634         * lib/getdate.y (tORDINAL): New token.
34635         (day, relunit): Allow it for relative times.
34636         (relative_time_table): Use tORDINAL for ordinals.
34637
34638 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
34639
34640         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
34641         Document that "second" isn't allowed as an ordinal number.
34642
34643 2004-11-16  Jim Meyering  <jim@meyering.net>
34644
34645         * modules/closeout (Depends-on): Add fpending.
34646
34647 2004-11-15  Jim Meyering  <jim@meyering.net>
34648
34649         * lib/closeout.c: Include "__fpending.h" once again.
34650         Include <stdbool.h>.
34651         (close_stdout): Don't fail just because stdout was closed initially,
34652         since some programs don't write to stdout in the normal course of
34653         operation (other than --version and --help), and we don't want this
34654         function to make e.g. `touch file >&-' fail.
34655         But do fail if it was closed and someone has tried to write to it.
34656         E.g., `printf foo >&-' must fail.
34657
34658 2004-11-13  Jim Meyering  <jim@meyering.net>
34659
34660         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
34661
34662 2004-11-12  Simon Josefsson  <jas@extundo.com>
34663
34664         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
34665         small doc fix is still pending.
34666
34667 2004-11-11  Simon Josefsson  <jas@extundo.com>
34668
34669         * modules/strtok_r: New file.
34670
34671         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
34672         strtok_r.
34673
34674 2004-11-11  Simon Josefsson  <jas@extundo.com>
34675
34676         * m4/strtok_r.m4: New file.
34677
34678         * m4/getopt.m4: Replace opterr.
34679
34680 2004-11-11  Simon Josefsson  <jas@extundo.com>
34681
34682         * lib/strtok_r.h, strtok_r.c: New file.
34683
34684 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
34685
34686         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
34687         of replacing opterr, getopt, etc.  This should handle the
34688         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
34689
34690 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
34691
34692         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
34693         we can stop lying to compilers about the constness of argv when we
34694         are compiled outside glibc.
34695         (getopt, getopt_long, getopt_long_only): Use it.
34696         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
34697         _getopt_internal, getopt): Likewise.
34698         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
34699         _getopt_long_only_r): Likewise.
34700         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
34701         _getopt_long_r, _getopt_long_only_r): Likewise.
34702
34703         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
34704         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
34705         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
34706         the other external symbols.
34707         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
34708         declaration, since the above renaming now works around collisions.
34709
34710 2004-11-11  Jim Meyering  <jim@meyering.net>
34711
34712         * lib/linebreak.c: Remove trailing blanks.
34713         * lib/alloca_.h: Likewise.
34714         * lib/acosl.c: Likewise.
34715         * lib/euidaccess.c: Likewise.
34716         * lib/allocsa.h: Likewise.
34717
34718 2004-11-10  Simon Josefsson  <jas@extundo.com>
34719
34720         * m4/getaddrinfo.m4: New file.
34721
34722 2004-11-10  Simon Josefsson  <jas@extundo.com>
34723
34724         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
34725
34726 2004-11-10  Simon Josefsson  <jas@extundo.com>
34727
34728         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
34729         getaddrinfo.
34730
34731         * modules/getaddrinfo: New file.
34732
34733 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
34734
34735         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
34736
34737 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
34738
34739         * lib/mktime.c (SHR): New macro, which is a portable
34740         substitute for >> that should work even on Crays.
34741         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
34742         Problem reported by Mark D. Baushke in
34743         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
34744         * lib/getdate.y (SHR): Likewise.
34745         (tm_diff): Use it.
34746         * lib/strftime.c (SHR): Likewise.
34747         (tm_diff): Use it.
34748         * lib/quotearg.c (struct quoting_options): Use unsigned int for
34749         quote_these_too, so that right shifts are well defined.  All uses
34750         changed.
34751
34752 2004-11-10  Jim Meyering  <jim@meyering.net>
34753
34754         Ensure that no close failure goes unreported.
34755         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
34756         return early when it seems there's nothing to flush.
34757         Don't include __fpending.h.
34758
34759 2004-11-10  Jim Meyering  <jim@meyering.net>
34760
34761         * modules/closeout (Depends-on): Remove fpending.
34762
34763 2004-11-10  Jim Meyering  <jim@meyering.net>
34764
34765         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
34766
34767 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
34768
34769         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
34770         gl_FUNC_STRFTIME.
34771         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
34772         and AC_REQUIRE when possible, to avoid duplicate checks.
34773         Check for <wchar.h>.
34774
34775 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
34776
34777         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
34778
34779 2004-11-09  Bruno Haible  <bruno@clisp.org>
34780
34781         * m4/sockpfaf.m4: New file.
34782
34783 2004-11-05  Bruno Haible  <bruno@clisp.org>
34784
34785         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
34786         Reported by Mark D. Baushke <mdb@cvshome.org>.
34787
34788 2004-11-04  Bruno Haible  <bruno@clisp.org>
34789
34790         2004-09-11  Bruno Haible  <bruno@clisp.org>
34791                 * allocsa.valgrind: New file.
34792         2004-02-06  Bruno Haible  <bruno@clisp.org>
34793                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
34794                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
34795                 Reported by Christopher Seip <chris.seip@hp.com>.
34796
34797 2004-11-04  Bruno Haible  <bruno@clisp.org>
34798
34799         * modules/allocsa (Files): Add lib/allocsa.valgrind.
34800         (Makefile.am): Distribute it.
34801
34802 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
34803
34804         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
34805         with errno == ERANGE if the buffer is too small.
34806         Problem reported by Mark D. Baushke.
34807
34808 2004-11-03  Albert Chin  <china@thewrittenword.com>
34809             Paul Eggert  <eggert@cs.ucla.edu>
34810
34811         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
34812         equivalent, substitute $ac_type for equivalent type rather than
34813         blindly using uint32_t *always* which won't work if uint32_t is not
34814         available.  Define _UINT32_T to work around typedef of uint32_t if
34815         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
34816         2.5.1.
34817
34818 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
34819
34820         * m4/jm-macros.m4: Sync from coreutils.
34821         (gl_MACROS): Check for mbrlen, for pathchk.
34822         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
34823
34824 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
34825
34826         * lib/xreadlink.c (MAXSIZE): New macro.
34827         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
34828         size does not exceed MAXSIZE.  Avoid cast.
34829         As suggested by Mark D. Baushke in
34830         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
34831         if readlink fails with buffer size just under MAXSIZE, try again
34832         with MAXSIZE.
34833
34834 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
34835
34836         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
34837
34838 2004-11-02  Derek R. Price  <derek@ximbiot.com>
34839         and  Paul Eggert  <eggert@cs.ucla.edu>
34840
34841         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
34842         (get_date): Overparenthesize to avoid GCC warning.
34843
34844 2004-11-02  Bruno Haible  <bruno@clisp.org>
34845
34846         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
34847         returns void.
34848
34849 2004-11-02  Bruno Haible  <bruno@clisp.org>
34850
34851         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
34852         function returns void.
34853
34854 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
34855
34856         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
34857         fflush_unlocked, flockfile, funlockfile, funlockfile,
34858         fputs_unlocked, putc_unlocked.
34859
34860 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
34861
34862         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
34863         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
34864         already declared.
34865
34866 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
34867
34868         * modules/getdate (Files): Add doc/getdate.texi.
34869         (Depends-on): Add setenv, xalloc.
34870
34871 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
34872
34873         * lib/getdate.y: Add support for TZ="foo" within a date string.
34874         Fix some bugs near time_t boundaries.  Reject dates with
34875         out-of-range components, e.g., "Sept 31".
34876         Include <stdlib.h>, "setenv.h", "xalloc.h".
34877         (ISDIGIT_LOCALE): Remove; unused.
34878         Note that the TZ and time functions used here are not reentrant.
34879         (mktime_ok, get_tz): New functions.
34880         (TZBUFSIZE): New constant.
34881         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
34882         This requires that we sometimes generate our own TZ="XXX..." setting.
34883
34884 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
34885
34886         * doc/getdate.texi: New file, from coreutils with modifications for
34887         the new TZ parsing.
34888
34889 2004-10-27  Derek R. Price  <derek@ximbiot.com>
34890
34891         * lib/mktime.c (not_equal_tm): Remove redundant check.
34892
34893 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
34894
34895         * modules/regex (lib_SOURCES): Add regex.c.
34896         Reported by James Youngman in
34897         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
34898
34899 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
34900
34901         * lib/getdate.y: Use Bison 1.875 features, and some minor
34902         code cleanups.  This change does not affect semantics.
34903         Don't include <stdlib.h>; no longer needed.
34904         Don't include unlocked-io.h; only the "#if TEST" code uses
34905         stdio, and performance isn't crucial there.
34906         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
34907         Bison 1.875 features as described below.
34908         All uses of "PC." replaced by "pc->".
34909         (YYSTYPE): Add a forward declaration.
34910         (yylex, yyerror): Use full prototypes in forward decls.
34911         Use "%pure-parser" rather than obsolescent "%pure_parser".
34912         Use %parse-param and %lex-param instead of obsolescent
34913         YYPARSE_PARAM and YYLEX_PARAM.
34914         (meridian_table, month_and_day_table, time_units_table,
34915         relative_time_table, time_zone_table, military_table,
34916         lookup_zone, lookup_word, get_date):
34917         Use NULL instead of 0 where appropriate.
34918         (to_hour): Avoid abort (), to avoid a dependency on
34919         stdlib.h.
34920         (yyerror, yylex): Now accepts parser_control * arg.
34921         (main) [TEST]: Use '\0' rather than 0 for char.
34922
34923 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
34924
34925         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
34926
34927 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
34928
34929         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
34930         It's now the caller's responsibility to handle the case where
34931         !HAVE_GETPAGESIZE && !defined getpagesize.
34932
34933         * lib/mktime.c (leapyear): Arg is long int, not int.
34934
34935 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
34936
34937         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
34938
34939 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
34940
34941         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
34942         missing.  Problem reported by James Youngman.
34943
34944 2004-10-16  Simon Josefsson  <jas@extundo.com>
34945
34946         * gnulib-tool: Fix comments.  Fix parse problem.
34947         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
34948
34949 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
34950
34951         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
34952         implementation of getopt_long.  Problem reported by Alexander Taler in:
34953         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
34954
34955 2004-10-15  Bruno Haible  <bruno@clisp.org>
34956
34957         * gnulib-tool: Untabify. Initialize supplied_libname.
34958         (func_usage): More homogenous output.
34959         (func_modules_transitive_closure, func_modules_to_filelist,
34960         func_emit_lib_Makefile_am): New functions.
34961         (func_import): New function, extracted from big case statement. Use
34962         func_get_license, func_modules_transitive_closure,
34963         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
34964         opt_lgpl. Don't use test -a, as it's not portable.
34965         (func_create_testdir): Use func_modules_transitive_closure,
34966         func_modules_to_filelist, func_emit_lib_Makefile_am.
34967
34968 2004-10-15  Bruno Haible  <bruno@clisp.org>
34969
34970         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
34971
34972 2004-10-15  Bruno Haible  <bruno@clisp.org>
34973
34974         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
34975         the portions belonging to each module.
34976         Suggested by Derek Robert Price <derek@ximbiot.com>.
34977
34978 2004-10-12  Simon Josefsson  <jas@extundo.com>
34979
34980         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
34981         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
34982         to real functions.
34983
34984 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
34985
34986         * modules/vsnprintf: New file.
34987
34988 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
34989
34990         * m4/vsnprintf.m4: New file.
34991
34992 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
34993
34994         * lib/vsnprintf.h: New file.
34995         * lib/vsnprintf.c: New file.
34996
34997 2004-10-11  Bruno Haible  <bruno@clisp.org>
34998
34999         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
35000         vsnprintf.
35001
35002 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
35003
35004         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
35005
35006 2004-10-07  Bruno Haible  <bruno@clisp.org>
35007
35008         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
35009         fits into the provided buffer.
35010
35011 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
35012
35013         * lib/diacrit.c, diacrit.h: Add GPL notice.
35014
35015         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
35016         notice.
35017         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
35018         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
35019         This avoids a potential constant-folding bug.
35020
35021 2004-10-05  Bruno Haible  <bruno@clisp.org>
35022
35023         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
35024         for the declaration of strsep.
35025
35026 2004-10-05  Bruno Haible  <bruno@clisp.org>
35027
35028         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
35029
35030 2004-10-04  Simon Josefsson  <jas@extundo.com>
35031
35032         * modules/memmem: New file.
35033         * tests/test-memmem.c: New file.
35034         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
35035
35036 2004-10-04  Simon Josefsson  <jas@extundo.com>
35037
35038         * m4/memmem.m4: New file.
35039
35040 2004-10-04  Simon Josefsson  <jas@extundo.com>
35041
35042         * lib/memmem.h: New file.
35043         * lib/memmem.c: New file, taken from glibc.
35044
35045 2004-10-04  Simon Josefsson  <jas@extundo.com>
35046
35047         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
35048         '#ifdef USE_UNLOCKED_IO'.
35049
35050 2004-10-04  Simon Josefsson  <jas@extundo.com>
35051
35052         * config/srclist.txt: Add memmem from glibc.
35053
35054 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
35055
35056         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
35057
35058         * modules/argmatch, modules/argp, modules/closeout, modules/error,
35059         modules/exclude, modules/getdate, modules/getline,
35060         modules/getndelim2, modules/getpass, modules/getpass-gnu,
35061         modules/getusershell, modules/linebuffer, modules/md5,
35062         modules/mountlist, modules/posixtm, modules/readtokens,
35063         modules/readutmp, modules/regex, modules/sha1,
35064         modules/version-etc, modules/yesno:
35065         Remove dependency on unlocked-io.
35066
35067 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
35068
35069         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
35070
35071         * m4/unlocked-io.m4: Add copyright notice.
35072         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
35073
35074 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
35075
35076         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
35077         * lib/xmalloc.c (xmemdup): Likewise.
35078         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
35079         XFREE): Remove these long-obsolescent macros.
35080         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
35081         * lib/xstrdup.c: Remove.
35082
35083         * lib/regex.c (re_comp): Cast gettext return value to char *,
35084         Problem reported by Martin Neitzel via Mark D. Baushke.
35085
35086 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
35087
35088         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
35089         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
35090         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
35091         regex.c, sha1.c, version-etc.c, yesno.c:
35092         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
35093         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
35094         the includer's responsibility.
35095
35096         Sync from coreutils.
35097
35098         * lib/modechange.c (mode_compile): Don't decrement a pointer that
35099         points to the start of a string, as the C Standard says the
35100         resulting behavior is undefined.
35101
35102         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
35103         simple -> simple_backups, numbered_existing ->
35104         numbered_existing_backups, numbered -> numbered_backups
35105         to avoid shadowing problems.  All uses changed.
35106         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
35107         * lib/backupfile.c (check_extension, numbered_backup):
35108         Rename locals to avoid shadowing 'basename'.
35109         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
35110         once.
35111
35112         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
35113         * lib/.cvsignore: Add getopt.h.
35114
35115 2004-10-04  Bruno Haible  <bruno@clisp.org>
35116
35117         * modules/README: New file.
35118         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
35119         not a module.
35120
35121 2004-10-02  Jim Meyering  <jim@meyering.net>
35122
35123         * lib/dirfd.h, getpagesize.h: Add copyright notice.
35124
35125 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
35126
35127         * modules/strsep: New file.
35128
35129 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
35130
35131         * m4/strsep.m4: New file.
35132
35133 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
35134
35135         * lib/strsep.h: New file.
35136         * lib/strsep.c: New file.
35137
35138 2004-10-01  Simon Josefsson  <jas@extundo.com>
35139
35140         * lib/snprintf.c (snprintf): Handle size==0.
35141
35142 2004-10-01  Simon Josefsson  <jas@extundo.com>
35143             Bruno Haible  <bruno@clisp.org>
35144
35145         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
35146         (snprintf): Declare 'args'.
35147
35148 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
35149
35150         * lib/snprintf.c: Remove comments as to why each header is needed.
35151
35152 2004-10-01  Bruno Haible  <bruno@clisp.org>
35153
35154         * MODULES.html.sh: Add strsep.
35155
35156 2004-09-30  Simon Josefsson  <jas@extundo.com>
35157
35158         * modules/snprintf: New file.
35159
35160 2004-09-30  Simon Josefsson  <jas@extundo.com>
35161
35162         * m4/snprintf.m4: New file.
35163
35164 2004-09-30  Simon Josefsson  <jas@extundo.com>
35165
35166         * lib/snprintf.h, lib/snprintf.c: New files.
35167
35168 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
35169
35170         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
35171         (hol_entry_help): Never translate an empty string.
35172         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
35173         * lib/argp.h (OPTION_NO_TRANS): New option.
35174
35175 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
35176
35177         * modules/argp (Maintainer): Replace Simon Josefsson
35178         by Sergey Poznyakoff.
35179
35180 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
35181
35182         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
35183         changes merged back into glibc.
35184
35185 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
35186
35187         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
35188
35189 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
35190
35191         * lib/xvasprintf.c: Include xalloc.h.
35192         (xvasprintf): Use xalloc_die, not xmalloc_die.
35193
35194 2004-09-29  Bruno Haible  <bruno@clisp.org>
35195
35196         * modules/alloca-opt: New file, derived from modules/alloca.
35197         * modules/allocsa: Depend on alloca-opt instead of alloca.
35198         * modules/setenv: Likewise.
35199         * modules/vasnprintf: Likewise.
35200         * MODULES.html.sh: Add alloca-opt.
35201
35202 2004-09-28  Simon Josefsson  <jas@extundo.com>
35203
35204         * gnulib-tool: New parameter --lgpl, to asseert that modules are
35205         LGPL, and to replace license template from GPL to LGPL.
35206
35207 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
35208
35209         * modules/dummy: Change license to LGPL.
35210
35211 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
35212
35213         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
35214
35215 2004-09-24  Simon Josefsson  <jas@extundo.com>
35216
35217         * modules/minmax (License): Change from GPL to LGPL.
35218
35219 2004-09-23  Simon Josefsson  <jas@extundo.com>
35220
35221         * gnulib-tool (--import): Typo.
35222
35223 2004-09-23  Simon Josefsson  <jas@extundo.com>
35224
35225         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
35226
35227 2004-09-22  Bruno Haible  <bruno@clisp.org>
35228
35229         * modules/*: Add 'License' field.
35230         * gnulib-tool: Accept --extract-license option.
35231         (func_get_license): New function.
35232
35233 2004-09-21  Bruno Haible  <bruno@clisp.org>
35234
35235         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
35236         Reported by Simon Josefsson.
35237
35238 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
35239
35240         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
35241         gl_AC_TYPE_LONG_LONG.
35242
35243 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
35244
35245         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
35246
35247 2004-09-18  Simon Josefsson  <jas@extundo.com>
35248         and  Paul Eggert  <eggert@cs.ucla.edu>
35249
35250         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
35251         calls with autoreconf.  Define GL_LIB.
35252
35253 2004-09-14  Karl Berry  <karl@gnu.org>
35254
35255         * config/srclist.txt: unsync setenv.c, sigh.
35256
35257 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
35258
35259         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
35260         Problem reported by Bruno Haible in:
35261         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
35262
35263 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
35264
35265         * config/srclist.txt: Comment out argp-pvh.c.
35266
35267 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
35268
35269         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
35270         in case some system header has #define'd it.  Problem reported by
35271         Soeren D. Schulze in
35272         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
35273
35274 2004-09-09  Karl Berry  <karl@gnu.org>
35275
35276         * regex.[ch]: delete from the root.  These were supposed to be
35277                 synced with emacs cvs, but this has not happened for about
35278                 a year, and anyway nothing else uses emacs regex.[ch].
35279                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
35280                 lib/regex[.ch] is untouched.
35281
35282 2004-09-09  Bruno Haible  <bruno@clisp.org>
35283
35284         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
35285
35286 2004-09-09  Bruno Haible  <bruno@clisp.org>
35287
35288         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
35289         modifications.
35290         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
35291
35292 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
35293
35294         * modules/xvasprintf: New file.
35295         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
35296
35297 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
35298
35299         * lib/xvasprintf.h: New file.
35300         * lib/xvasprintf.c: New file.
35301         * lib/xasprintf.c: New file.
35302
35303 2004-09-08  Bruno Haible  <bruno@clisp.org>
35304
35305         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
35306
35307 2004-09-08  Bruno Haible  <bruno@clisp.org>
35308
35309         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
35310         length is > INT_MAX.
35311         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
35312         more.
35313
35314 2004-09-08  Bruno Haible  <bruno@clisp.org>
35315
35316         * lib/stdint_.h: New file, taken from GNU clisp.
35317
35318 2004-09-08  Bruno Haible  <bruno@clisp.org>
35319             Oskar Liljeblad  <oskar@osk.mine.nu>
35320
35321         * modules/stdint: New file.
35322         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
35323
35324 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
35325
35326         Import from coreutils.
35327         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
35328         strings on unbounded length.  alloca's performance benefits aren't
35329         that important here.
35330         (V_STRDUP): Remove.
35331         (parse_with_separator): New function, with most of the internals
35332         of the old parse_user_spec.  Allow user to omit both user and group,
35333         for compatibility with FreeBSD.
35334         Clone only the user name, not the entire spec.
35335         Do not set *uid, *gid unless entirely successful.
35336         Avoid memory leak in some failing cases.
35337         Fix regression for USER.GROUP reported by Dmitry V. Levin in
35338         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
35339         (parse_user_spec): Rewrite to use parse_with_separator.
35340
35341 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
35342
35343         * modules/userspec: Don't depend on alloca.
35344
35345 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
35346
35347         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
35348
35349 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
35350
35351         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
35352         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
35353         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
35354
35355 2004-08-16  Simon Josefsson  <jas@extundo.com>
35356
35357         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
35358         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
35359         Add --dry-run for --import.
35360         Let user provided command line parameters override configure.ac
35361         settings.
35362
35363 2004-08-12  Simon Josefsson  <jas@extundo.com>
35364
35365         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
35366         as discussed with Paul Eggert in threads rooted at
35367         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
35368         and
35369         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
35370         Before, the test was empty, and relied on ELIDE_CODE in source
35371         code.)
35372         (gl_PREREQ_GETOPT): New macro.
35373         (gl_GETOPT): Use them.
35374
35375 2004-08-12  Simon Josefsson  <jas@extundo.com>
35376
35377         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
35378         * lib/getopt_.h: Renamed from getopt.h.
35379
35380 2004-08-12  Simon Josefsson  <jas@extundo.com>
35381
35382         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
35383         Change default library name from libfoo to libgnu.
35384         Now, if you have a configure.ac that says:
35385                 gl_SOURCE_BASE(gl)
35386                 gl_M4_BASE(gl/m4)
35387                 gl_MODULES(error getopt etcetera)
35388                 gl_INIT
35389         you can import all you need by running:
35390                 ../gnulib/gnulib-tool --import
35391
35392         * modules/getopt (Files): Rename getopt.h to getopt_.h.
35393         (Makefile.am): Rewrite, use logic from argz.
35394         (Include): Use <getopt.h> instead of "getopt.h".
35395
35396 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
35397
35398         * modules/argp (Files): Add m4/unlocked-io.m4.
35399         (Depends-on): Add extensions.
35400
35401 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
35402
35403         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
35404         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
35405         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
35406         Check for program_invocation_name, program_invocation_short_name,
35407         flockfile, funlockfile, features.h, _getopt_long_only_r.
35408
35409 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
35410
35411         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
35412         its complicated substitute.
35413         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
35414         and program_invocation_name.
35415         (__argp_basename) [!_LIBC]: Remove; the only use was
35416         replaced by its body.
35417         (__argp_short_program_name): Change condition from
35418         !defined __argp_short_program_name to
35419         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
35420         to match argp-namefrob.h.
35421         (__argp_failure): Don't assume strerror_r returns char *.
35422         * lib/argp-parse.c (N_): Define unconditionally.
35423         (argp_default_options): Fill out initializers with 0 to avoid
35424         gcc warnings.
35425
35426 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
35427
35428         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
35429         getopt1.c.
35430
35431 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
35432
35433         Merge from coreutils.
35434
35435         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
35436
35437         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
35438         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
35439
35440 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
35441
35442         Merge from coreutils.
35443
35444         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
35445         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
35446         for Reliant Unix 5.43.
35447
35448         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
35449         (union fooround): Use uintmax_t, not long int.
35450         The rest is a merge from libc:
35451         [defined _LIBC]: Include <shlib-compat.h>.
35452         (_obstack) [defined _LIBC]: Remove after 2.3.4.
35453
35454         * lib/settime.c (settime): Recode to avoid warning with
35455         Sun Forte C 6U2.
35456
35457         * lib/strverscmp.c: Convert to UTF-8.
35458
35459 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
35460
35461         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
35462         m4/uintmax_t.m4.
35463
35464 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
35465
35466         * modules/xalloc-die: New file.
35467         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
35468
35469         * modules/md5 (Files): Add m4/uint32_t.m4.
35470         * modules/sha1: Renamed from modules/sha.
35471         (Files):
35472         Rename lib/sha.h to lib/sha1.h.
35473         Rename lib/sha.c to lib/sha1.c.
35474         Rename m4/sha.m4 to m4/sha1.m4.
35475         (lib_SOURCES): Likewise.
35476         (configure.ac): Rename gl_SHA to gl_SHA1.
35477         (Include): sha.h -> sha1.h.
35478
35479 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
35480
35481         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
35482         * m4/sha1.m4: Renamed from sha.m4.
35483         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
35484
35485 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
35486
35487         * lib/obstack.h (obstack_empty_p):
35488         Don't assume that chunk->contents is suitably aligned.
35489         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
35490         Likewise. Problem reported by Benno in
35491         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
35492
35493         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
35494         readable.  This could be improved further but it'd take some work.
35495
35496 2004-08-08  Simon Josefsson  <jas@extundo.com>
35497
35498         * modules/xgethostname (Depends-on): Remove exit and error (not
35499         used).
35500
35501         * modules/getpass-gnu: Add getpass.h.
35502         (Depends-on): Add stdbool.
35503         * modules/getpass: Add getpass.h.
35504
35505 2004-08-08  Simon Josefsson  <jas@extundo.com>
35506
35507         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
35508         Check getpass declaration.
35509
35510 2004-08-08  Simon Josefsson  <jas@extundo.com>
35511
35512         * lib/xgethostname.c: Don't include error.h (not used).
35513
35514         * lib/getpass.h: Add.
35515         * lib/getpass.c: Include getpass.h first.
35516
35517 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
35518
35519         * lib/xalloc-die.c: New file.
35520         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
35521         All uses removed.
35522         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
35523         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
35524         xalloc-die.c.
35525         (_, N_, xalloc_die): Move to xalloc-die.c.
35526         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
35527         so that we needn't mess with xalloc_msg_memory_exhausted.
35528
35529         * lib/sha1.h: Renamed from sha.h.
35530         (SHA1_H): Renamed from _SHA_H.
35531         (sha1_ctx): Renamed from sha_ctx.
35532         (sha1_init_ctx): Renamed from sha_init_ctx.
35533         (sha1_process_block): Renamed from sha_process_block.
35534         (sha1_process_bytes): Renamed from sha_process_bytes.
35535         (sha1_finish_ctx): Renamed from sha_finish_ctx.
35536         (sha1_read_ctx): Renamed from sha_read_ctx.
35537         (sha1_stream): Renamed from sha_stream.
35538         (sha1_buffer): Renamed from sha_buffer.
35539         * lib/sha1.c: Likewise; renamed from sha.c.
35540         Do not include <sys/types.h>.
35541         Include <stddef.h> rather than <stdlib.h>.
35542
35543 2004-08-08  Bruno Haible  <bruno@clisp.org>
35544
35545         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
35546         FILESYSTEM_PREFIX_LEN.
35547         * lib/progreloc.c: Likewise.
35548         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
35549
35550 2004-08-06  Simon Josefsson  <jas@extundo.com>
35551
35552         * modules/progname (Depends-on): Don't depend on stdbool.
35553
35554 2004-08-06  Simon Josefsson  <jas@extundo.com>
35555
35556         * modules/getsubopt: New file.
35557         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
35558         getsubopt.
35559
35560 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
35561
35562         More merge from coreutils.
35563
35564         * m4/utimens.m4, m4/utimecmp.m4: New files.
35565         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
35566         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
35567         prereq.m4, sha.m4: Import changes from coreutils.
35568
35569 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
35570
35571         More merge from coreutils.
35572         * modules/raise, modules/readtokens0, modules/utimens:
35573         * modules/utimecmp, module/xnanosleep: New files.
35574         * modules/strftime: Add lib/strftime.h.
35575         Change include from <time.h> to "strftime.h".
35576         * modules/yesno: Add lib/yesno.h.
35577         * modules/backupfile: Remove lib/addext.c.
35578         * modules/euidaccess: Add stat-macros.h.
35579         * modules/canonicalize, modules/euidaccess,
35580         modules/filemode, modules/lchown, modules/makepath,
35581         modules/rmdir, modules/stat: Likewise.
35582
35583 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
35584
35585         Merge from tar.
35586         * lib/argp-help.c (make_hol, hol_append): Don't assume that
35587         SIZE_MAX is a valid preprocessor constant.
35588         (__argp_basename): Change from "#ifndef _LIBC"
35589         to "#ifndef __argp_short_program_name", so that
35590         we don't compile these functions for tar.
35591
35592         More merges from coreutils.
35593         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
35594         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
35595         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
35596         * lib/addext.c: Remove; no longer needed.
35597         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
35598         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
35599         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
35600         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
35601         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
35602         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
35603         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
35604         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
35605         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
35606         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
35607         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
35608         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
35609         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
35610         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
35611         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
35612         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
35613         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
35614         Import changes from coreutils.
35615
35616 2004-08-05  Simon Josefsson  <jas@extundo.com>
35617
35618         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
35619
35620 2004-08-05  Simon Josefsson  <jas@extundo.com>
35621
35622         * m4/getsubopt.m4: New file.
35623
35624 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
35625
35626         Merge from coreutils.
35627
35628         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
35629         * m4/getcwd-path-max.m4: New files.
35630
35631         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
35632         FILESYSTEM_PREFIX_LEN ->
35633         FILE_SYSTEM_PREFIX_LEN.
35634         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
35635         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
35636         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
35637         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
35638
35639         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
35640         prerequisite modules now handle the DOS stuff.
35641         Don't check for unistd.h.
35642
35643 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
35644
35645         Merge from coreutils.
35646
35647         * lib/.gdb-history: Remove; this doesn't belong here.
35648
35649         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
35650         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
35651         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
35652         * lib/getcwd.c: New files.
35653
35654         * lib/dirname.h: Include <stdbool.h>.
35655         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
35656         for consistency with POSIX terminology.  All uses changed.
35657         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
35658         (strip_trailing_slashes): Use bool for booleans.
35659         * lib/stripslash.c (strip_trailing_slashes): Likewise.
35660
35661         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
35662         sometimes returns a positive errno value even when it succeeds.
35663         (print_errno_message) [!LIBC]: Fall back on strerror if
35664         __strerror_r fails.
35665
35666         * lib/path-concat.c (mempcpy): Don't define if a system header defines
35667         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
35668         (longest_relative_suffix): New function.
35669         (path_concat): Use it.  Assume first argument is not NULL.
35670         Port to DOS.  Omit redundant separators.
35671         Report an error instead of returning NULL.
35672         Use mempcpy instead of memcpy.
35673         (xpath_concat): Remove: not declared or used.
35674
35675         * lib/same.h: Include <stdbool.h>
35676         (same_name): Return bool, not int.
35677         * lib/same.c (same_name): Likewise.
35678         (errno): Don't declare; we assume C89 or better now.
35679
35680         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
35681         if not already defined.
35682
35683         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
35684         * lib/dup-safer.c (errno): Likewise.
35685
35686 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
35687
35688         Merge from coreutils.
35689         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
35690         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
35691         * modules/path-concat: Don't depend on strdup.
35692
35693 2004-08-03  Simon Josefsson  <jas@extundo.com>
35694
35695         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
35696         * lib/progname.h: Don't include stdbool.h.
35697
35698 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
35699
35700         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
35701         * MODULES.html.sh (func_all_modules): Remove fatal.
35702
35703 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
35704
35705         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
35706
35707 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
35708
35709         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
35710         working.
35711
35712 2004-08-02  Simon Josefsson  <jas@extundo.com>
35713
35714         * lib/getsubopt.h: New file, with comments from Bruno Haible.
35715         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
35716         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
35717
35718 2004-08-01  Simon Josefsson  <jas@extundo.com>
35719
35720         * lib/xgetdomainname.c: Include stdlib.h, for free().
35721
35722 2004-07-19  Bruno Haible  <bruno@clisp.org>
35723
35724         * MODULES.html.sh (func_all_modules): Add dummy.
35725
35726 2004-07-16  Simon Josefsson  <jas@extundo.com>
35727
35728         * modules/dummy: New file.
35729
35730 2004-07-16  Simon Josefsson  <jas@extundo.com>
35731
35732         * lib/dummy.c: New file.
35733
35734 2004-07-16  Bruno Haible  <bruno@clisp.org>
35735
35736         * lib/backupfile.h: Add extern "C" for C++.
35737         * lib/closeout.h: Likewise.
35738         * lib/copy-file.h: Likewise.
35739         * lib/findprog.h: Likewise.
35740         * lib/full-write.h: Likewise.
35741         * lib/pathname.h: Likewise.
35742         * lib/progname.h: Likewise.
35743         * lib/stpcpy.h: Likewise.
35744         * lib/stpncpy.h: Likewise.
35745         * lib/strcase.h: Likewise.
35746         * lib/strstr.h: Likewise.
35747         * lib/xalloc.h: Likewise.
35748
35749         * lib/mbswidth.h: Add extern "C" for C++.
35750         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
35751
35752 2004-07-13  Robert Millan  <robertmh@gnu.org>
35753
35754         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
35755
35756 2004-07-09  Simon Josefsson  <jas@extundo.com>
35757
35758         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
35759         failed without this.)
35760
35761 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
35762
35763         * modules/chown (Files): Add lib/fchown-stub.c, since
35764         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
35765
35766 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
35767
35768         * lib/fchown-stub.c: New file.
35769
35770 2004-06-24  Jim Meyering  <jim@meyering.net>
35771
35772         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
35773
35774 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
35775
35776         * modules/argz: Omit "#include".
35777
35778         * MODULES.html.sh (func_all_modules): Add calloc, to match
35779         2004-06-01 addition of calloc module.
35780
35781 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
35782
35783         * m4/argz.m4: New file, which is autoupdated from libtool.
35784
35785 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
35786
35787         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
35788         libtool.
35789
35790 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
35791
35792         * config/srclist-update: Don't insist on "USA." before the
35793         close-comment, as libtool omits the period and puts the */ on a
35794         separate line.
35795         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
35796         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
35797
35798 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
35799
35800         * modules/argz: New file.
35801         * MODULES.html.sh (func_all_modules): Add argz.
35802
35803 2004-06-12  Jim Meyering  <jim@meyering.net>
35804         and  Paul Eggert  <eggert@cs.ucla.edu>
35805
35806         * modules/hash (Files): Add lib/xalloc.h.
35807         * modules/pipe (Depends-on): Add wait-process.
35808         * modules/stat (Depends-on): Add xalloc.
35809         * modules/userspec (Files): Add lib/userspec.h.
35810         * modules/xstrto
35811
35812         Upgrade from gettext-0.13.
35813         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
35814         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
35815         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
35816
35817 2004-06-10  Jim Meyering  <jim@meyering.net>
35818
35819         * lib/calloc.c: New file.
35820
35821 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
35822
35823         * lib/getdate.y (yylex): Allow space between sign and number.
35824         Problem reported by Dan Jacobson.
35825
35826 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
35827
35828         Merge from coreutils CVS.
35829
35830         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
35831         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
35832         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
35833         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
35834         xstrtol.m4: Fix copyright date and/or serial number.
35835
35836         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
35837         See if we need an fchown replacement.
35838         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
35839         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
35840         and use the replacement function if we detect either defect.
35841
35842         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
35843         gl_UTIMECMP.
35844
35845 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
35846         and  Jim Meyering  <jim@meyering.net>
35847
35848         Merge from coreutils CVS.
35849
35850         * lib/stat-macros.h: New file, with contents from file-type.h
35851         and coreutils' system.h.
35852         * lib/file-type.c: Include "stat-macros.h".
35853         * lib/file-type.h (file_type): Move all macro definitions to new file,
35854         stat-macros.h.
35855
35856         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
35857         Wrap old code with this conditional.
35858         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
35859         function that does not dereference symlinks.
35860         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
35861
35862         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
35863         dependency problems.
35864         (xreadlink): Accept new arg SIZE, for efficiency.
35865         All decls and uses changed.
35866         * lib/xreadlink.h: Include <stddef.h>, for size_t.
35867
35868         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
35869         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
35870
35871         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
35872         sysexits.h.
35873
35874 2004-06-01  Jim Meyering  <jim@meyering.net>
35875
35876         * m4/calloc.m4: New file.
35877
35878 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
35879
35880         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
35881         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
35882         Also, fix a typo in a diagnostic.
35883
35884 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
35885
35886         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
35887         or AC_FUNC_REALLOC.
35888
35889 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
35890
35891         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
35892         macros to be defined.
35893         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
35894         the allocator returns NULL because the requested size is zero.
35895
35896 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
35897
35898         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
35899         var.  Add comment explaining why libc still defines it.  This
35900         merges the following patch from glibc:
35901         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
35902
35903 2004-05-20  Andreas Schwab  <schwab@suse.de>
35904
35905         * m4/free.m4: Replace free if it not known to work, not the other
35906         way round.
35907
35908 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
35909
35910         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
35911         present in glibc since revision 1.1 of this file.
35912         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
35913         obstack_alignment_mask, obstack_alloc, obstack_base,
35914         obstack_blank, obstack_blank_fast, obstack_chunk_size,
35915         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
35916         obstack_grow0, obstack_init, obstack_int_grow,
35917         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
35918         obstack_next_free, obstack_object_size, obstack_ptr_grow,
35919         obstack_ptr_grow_fast, obstack_room): Remove declarations of
35920         nonexistent functions.
35921
35922 2004-05-18  Karl Berry  <karl@gnu.org>
35923
35924         * config/srclist.txt: break link for vasnprintf.c.
35925
35926 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
35927
35928         Port obstack to the AS/400, where pointers are 16 bytes wide and
35929         you cannot cast an integer to a valid pointer.  This patch is
35930         currently waiting to be integrated into glibc; see
35931         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
35932
35933         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
35934         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
35935         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
35936         (struct obstack): temp member is now a union of a pointer and
35937         an integer, instead of an integer.  All integer uses changed.
35938         This does not affect the physical layout of struct obstack,
35939         except on hosts (like the AS/400) where the size or alignment of
35940         void * is greater than that of ptrdiff_t.
35941         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
35942         __STDC__)]: Store temporary in pointer member of union, not
35943         integer member.
35944         * lib/obstack.c: Include <stddef.h>, for offsetof.
35945         (struct fooalign): Remove; it doesn't need a name.
35946         (union fooround): Change double to long double, and add void *.
35947         (DEFAULT_ALIGNMENT): Use offsetof to compute.
35948         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
35949         not a macro.  Hence the values are always int; so remove all
35950         casts-to-int in uses.
35951
35952 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
35953
35954         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
35955         we can get this patch merged into glibc.
35956
35957 2004-05-17  Derek R. Price  <derek@ximbiot.com>
35958             Paul Eggert  <eggert@cs.ucla.edu>
35959
35960         * m4/argp: Depend on alloca.
35961
35962 2004-05-17  Derek R. Price  <derek@ximbiot.com>
35963             Paul Eggert  <eggert@cs.ucla.edu>
35964
35965         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
35966         freecoding.
35967
35968 2004-05-17  Bruno Haible  <bruno@clisp.org>
35969
35970         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
35971         precision that consists of a '.' followed by an empty digit string.
35972         Patch by Tor Lillqvist <tml@iki.fi>.
35973
35974 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
35975
35976         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
35977         for backward compatibility with older code.  We need our own
35978         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
35979         it under some other name, and our alloca.h will define it.
35980
35981 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
35982             Derek Price  <derek@ximbiot.com>
35983
35984         * lib/alloca.c: Include <alloca.h>, to get our interface.
35985         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
35986         include <alloca.h> first.  Use C89 prototype for alloca; this
35987         requires including <stddef.h> for size_t.  Use extern "C" if C++.
35988         Use #elif for simplicity, since we can assume C89 now.
35989         Don't try to source the system alloca.h since it will not be found
35990         and to prevent recursively including its replacement.
35991         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
35992         * lib/regex.c: Likewise.
35993
35994 2004-05-16  Derek Price  <derek@ximbiot.com>
35995             Paul Eggert  <eggert@cs.ucla.edu>
35996
35997         getline cleanup.  This changes the getndelim2 API: both order of
35998         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
35999         no delimiter).
36000
36001         * lib/getline.c: Don't include stddef.h or stdio.h, since our
36002         interface does that.
36003         (getline): Always use getdelim, so that we don't have two
36004         copies of this code.
36005         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
36006         if available.
36007         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
36008         (GETNDELIM2_MAXIMUM): New macro.
36009         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
36010         instead of the old practice of delim2==0.  All callers changed.
36011         Return -1 on overflow, instead of returning junk.
36012         Do not set *linesize unless allocation succeeds.
36013         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
36014         that we include sys/types.h.
36015         * lib/getnline.h: Likewise.
36016         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
36017         (getndelim2): Reorder arguments.
36018         * lib/getnline.c (getnline, getndelim):
36019         Don't discard the NMAX argument.
36020         (getnline): Invoke getndelim, to avoid code duplication.
36021         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
36022         of (size_t) -1 by callers of the getnline family.
36023
36024 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
36025
36026         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
36027         Check for gettimeofday.
36028         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
36029         Check for settimeofday, stime.
36030
36031 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
36032
36033         * lib/nanosleep.c (suspended): Change its type from int to
36034         sig_atomic_t volatile.
36035         (first_call): Make it private to rpl_nanosleep, and have it
36036         be zero initially as that's a bit faster.
36037         (my_usleep): Round up fractional times instead of truncating them,
36038         as this is the usual meaning for 'sleep'.
36039
36040         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
36041         doesn't work.
36042         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
36043         (ENOSYS): Define if not defined.
36044         (settime): Fall back on stime if it exists and settimeofday fails.
36045         But don't bother with fallbacks if a method fails with errno == EPERM.
36046
36047 2004-05-11  Jim Meyering  <jim@meyering.net>
36048
36049         Prior to this change, the save_cwd caller required read access to the
36050         current directory on most systems (ones with the fchdir function).
36051
36052         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
36053         fails, try write-only, and finally, resort to using xgetcwd.
36054
36055 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
36056
36057         * lib/obstack.c, obstack.h: Import changes from libc.
36058
36059 2004-04-28  Bruno Haible  <bruno@clisp.org>
36060
36061         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
36062         also implicitly appends .exe to executables.
36063         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
36064         accepts Windows pathnames.
36065         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
36066         Treat Cygwin like Windows, since it now accepts Windows pathnames.
36067         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
36068         Treat Cygwin like Windows, since it now accepts Windows pathnames.
36069         Reported by Derek Robert Price <derek@ximbiot.com>.
36070
36071 2004-04-21  Karl Berry  <karl@gnu.org>
36072
36073         * config/srclist.txt (localcharset.c): break sync.
36074
36075 2004-04-20  Paul Eggert  <eggert@twinsun.com>
36076
36077         * m4/host-os.m4: Add a copyright notice.
36078
36079 2004-04-20  Jim Meyering  <jim@meyering.net>
36080
36081         Change UTILS_ to gl_ in AC_DEFINE'd names.
36082         Change utils_- and jm_-prefixed variables, too.
36083         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
36084         UTILS_FUNC_MKDIR_TRAILING_SLASH.
36085         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
36086
36087         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
36088         Don't emit trailing blanks.
36089         Also rename jm_-prefixed variables to have gl_ prefix.
36090
36091         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
36092         Also rename jm_-prefixed variables to have gl_ prefix.
36093
36094         * m4/jm-macros.m4: Reflect the renamings.
36095         * m4/prereq.m4: Likewise.
36096
36097 2004-04-20  Jim Meyering  <jim@meyering.net>
36098
36099         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
36100         memory.
36101
36102 2004-04-20  Jim Meyering  <jim@meyering.net>
36103             Bruno Haible  <bruno@clisp.org>
36104
36105         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
36106         memory when realloc fails.
36107
36108 2004-04-19  Jim Meyering  <jim@meyering.net>
36109
36110         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
36111         now that readutmp.c may call `free (0)'.
36112
36113 2004-04-19  Bruno Haible  <bruno@clisp.org>
36114
36115         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
36116         * m4/inttypes_h.m4: Likewise.
36117         * m4/stdint_h.m4: Likewise.
36118         * m4/intmax_t.m4: Likewise.
36119         * m4/uintmax_t.m4: Likewise.
36120
36121 2004-04-18  Jim Meyering  <jim@meyering.net>
36122
36123         * m4/prereq.m4: Don't forbid jm_ prefix.
36124
36125         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
36126         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
36127         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
36128         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
36129         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
36130         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
36131         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
36132         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
36133         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
36134         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
36135         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
36136         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
36137         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
36138         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
36139         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
36140         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
36141         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
36142         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
36143         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
36144
36145 2004-04-18  Jim Meyering  <jim@meyering.net>
36146
36147         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
36148         failure, don't leak memory and do call END_UTMP_ENT.
36149
36150 2004-04-16  Jim Meyering  <jim@meyering.net>
36151
36152         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
36153         coreutils' stat program.
36154         (gl_PREREQ): Don't require jm_PREREQ_STAT.
36155
36156 2004-04-11  Paul Eggert  <eggert@twinsun.com>
36157
36158         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
36159         C89.
36160         (CHAR_BIT): Remove, since we assume C89.
36161         Include <stdint.h> if available, as per current Autoconf CVS advice.
36162
36163 2004-03-31  Jim Meyering  <jim@meyering.net>
36164
36165         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
36166         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
36167         * m4/xalloc.m4: Likewise.
36168
36169 2004-03-30  Paul Eggert  <eggert@twinsun.com>
36170
36171         Merge from coreutils.
36172
36173         * m4/inttostr.m4: New file.
36174         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
36175         Require AM_STDBOOL_H and gl_TIMESPEC instead.
36176         Require gl_CLOCK_TIME.
36177         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
36178
36179 2004-03-30  Paul Eggert  <eggert@twinsun.com>
36180
36181         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
36182         not bool, to be more consistent with Unix conventions.
36183         Suggested by Bruno Haible.
36184
36185         Merge from coreutils.
36186
36187         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
36188         * lib/umaxtostr.c: New files.
36189
36190         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
36191         the usual <time.h> dance.
36192         (get_date): Change signature to support fractional time stamps.
36193         All callers changed.
36194         * lib/getdate.y: Include "getdate.h" first, as we can now
36195         assume C89 and don't need to worry about 'const'.
36196         Similarly, include "unlocked-io.h" near start, not in middle.
36197         Include <limits.h>.
36198         (textint.value): Use long int rather than int.
36199         (textint.digits): Use size_t rather than int.
36200         (BILLION, LOG10_BILLION): New constants.
36201         (parser_control): New member rel_ns.  Members day_ordinal,
36202         time_zone, month, day, hour, minutes, rel_year, rel_month,
36203         rel_day, rel_hour, rel_minutes, rel_seconds
36204         are now long int, not int.  Member seconds is now struct timespec,
36205         not int.  New member timespec_seen.  Members dates_seen, days_seen,
36206         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
36207         not int.
36208         (%union.intval): Now long int, not int.
36209         New member timespec.
36210         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
36211         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
36212         (spec): Now is a timespec or an item list.
36213         (timespec, items): New nonterminals.
36214         (time, rel, relunit, number, get_date):
36215         Add support for fractional seconds.
36216         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
36217         (gmtime, localtime, mktime): Remove decls; not needed with C89.
36218         (to_hour): First arg is now long int, not int.
36219         (to_year): Returns long int, not int.
36220         Don't treat year -70 like 70.
36221         (tm_diff): Returns long int, not int.
36222         (lookup_word): Use bool instead of int when appropriate.
36223         (yylex): Use size_t for count, not int.
36224         Detect overflow when parsing large integer constants.
36225         Add support for fractions.
36226         (get_date): Make pointers 'const' if possible.
36227         Use more-portable code to detect integer overflow.
36228         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
36229         Don't use ctime; it's not reliable if the year has >4 digits.
36230
36231         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
36232         This is for compatibility with BSD.
36233
36234         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
36235         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
36236         From coreutils' system.h.
36237
36238         * lib/userspec.c: Don't include "posixver.h".
36239         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
36240         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
36241         compatible extension.  Simplify code by removing a boolean int
36242         that was always nonzero if a string was nonnull.
36243
36244 2004-03-30  Jim Meyering  <jim@meyering.net>
36245
36246         Merge from coreutils.
36247
36248         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
36249         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
36250         on some systems one must include <grp.h> before it.
36251         Reported by Christian Krackowizer.
36252
36253 2004-03-30  Jim Meyering  <jim@meyering.net>
36254
36255         Merge from coreutils.
36256
36257         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
36258
36259         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
36260         an empty input stream.
36261
36262         * lib/readtokens.c: Include <stdbool.h>.
36263         (readtoken): Use `size_t' rather than int/long.
36264         All callers adjusted.
36265         Use `bool' rather than `int' where appropriate.
36266         Use memset rather than an explicit loop.
36267         Use x2nrealloc rather than xrealloc.
36268         Allow the use of `\0' as a delimiter.
36269         (readtokens): Likewise.
36270         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
36271
36272 2004-03-30  Jim Meyering  <jim@meyering.net>
36273
36274         * m4/realloc.m4: Remove file, since now it does no more than
36275         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
36276         the `configure.ac' section of module/realloc.
36277         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
36278
36279 2004-03-30  Bruno Haible  <bruno@clisp.org>
36280
36281         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
36282         nonnull.
36283
36284 2004-03-29  Paul Eggert  <eggert@twinsun.com>
36285
36286         Merge changes to getloadavg.c from coreutils and Emacs.
36287
36288         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
36289         Define to an expression, not to the empty string.
36290         Include cloexec.h and xalloc.h.
36291         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
36292         Use set_cloexec_flag rather than rolling our own.
36293         * lib/cloexec.c, lib/cloexec.h: New files.
36294
36295 2004-03-29  Paul Eggert  <eggert@twinsun.com>
36296
36297         * m4/cloexec.m4: New file.
36298
36299 2004-03-18  Paul Eggert  <eggert@twinsun.com>
36300
36301         * lib/getopt.h: Sync with libc CVS.
36302
36303 2004-03-18  Paul Eggert  <eggert@twinsun.com>
36304             Bruno Haible  <bruno@clisp.org>
36305
36306         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
36307         mbswidth.
36308
36309 2004-03-18  Paul Eggert  <eggert@twinsun.com>
36310             Bruno Haible  <bruno@clisp.org>
36311
36312         * lib/mbswidth.h: Include <wchar.h> only if
36313         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
36314         <wchar.h>.
36315         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
36316
36317 2004-03-09  Paul Eggert  <eggert@twinsun.com>
36318
36319         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
36320         Sync with libc CVS.
36321         * lib/getopt_int.h: New file, also synced from libc.
36322
36323 2004-03-09  Paul Eggert  <eggert@twinsun.com>
36324
36325         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
36326         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
36327         Bring back getopt.c, getopt.h, getopt1.c.
36328
36329 2004-03-07  Paul Eggert  <eggert@twinsun.com>
36330
36331         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
36332         All uses changed.  Check for sa_sigaction member; this fixes
36333         a bug first reported by Jason Andrade in
36334         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
36335
36336 2004-03-07  Paul Eggert  <eggert@twinsun.com>
36337
36338         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
36339         '#if' expressions.  Unlike the code it replaces, it does not
36340         depend on (defined _SC_PAGESIZE).  However, it does depend on
36341         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
36342         first reported by Jason Andrade in
36343         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
36344
36345 2004-02-25  Simon Josefsson  <jas@extundo.com>
36346
36347         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
36348
36349 2004-02-25  Simon Josefsson  <jas@extundo.com>
36350
36351         * lib/strdup.h: New file.
36352         * lib/strdup.c: Include it.
36353         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
36354         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
36355
36356 2004-02-23  Karl Berry  <karl@gnu.org>
36357
36358         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
36359         (from fencepost.gnu.org:/gd/gnuorg).
36360
36361 2004-02-23  Karl Berry  <karl@gnu.org>
36362
36363         * config/srclistvars.sh (GNUORG) [karl]: redefine.
36364         * config/srclist.txt: add maintain/standards documents.
36365
36366 2004-02-18  Bruno Haible  <bruno@clisp.org>
36367
36368         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
36369         Reported by Derek Robert Price <derek@ximbiot.com>.
36370
36371 2004-02-16  Karl Berry  <karl@gnu.org>
36372
36373         * config/mkinstalldirs, install-sh: update from automake.
36374
36375 2004-02-06  Karl Berry  <karl@gnu.org>
36376
36377         * m4/po.m4: update from gettext 0.14.1.
36378
36379 2004-02-06  Karl Berry  <karl@gnu.org>
36380
36381         * lib/config.charset: update from gettext 0.14.1.
36382
36383 2004-02-05  Paul Eggert  <eggert@twinsun.com>
36384
36385         Add comments and code, prompted by suggestions from Bruno Haible
36386         for sh-quote.
36387         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
36388         describing the enum quoting_style values.
36389         * lib/quotearg.c (quotearg_alloc): New function.
36390         (quotearg_buffer_restyled): Treat lone { and } as special.
36391         Treat = as special.  Work around bug with older shells
36392         that "see" a '\' that is really the 2nd byte of a multibyte char.
36393         Quote empty string with shell_quoting_style.
36394
36395 2004-02-03  Bruno Haible  <bruno@clisp.org>
36396
36397         * m4/pipe.m4: New file, from GNU gettext.
36398
36399 2004-02-03  Bruno Haible  <bruno@clisp.org>
36400
36401         * lib/pipe.h: New file, from GNU gettext.
36402         * lib/pipe.c: New file, from GNU gettext.
36403
36404 2004-01-27  Bruno Haible  <bruno@clisp.org>
36405
36406         * m4/execute.m4: New file, from GNU gettext.
36407
36408 2004-01-27  Bruno Haible  <bruno@clisp.org>
36409
36410         * lib/execute.h: New file, from GNU gettext.
36411         * lib/execute.c: New file, from GNU gettext.
36412         * lib/w32spawn.h: New file, from GNU gettext.
36413
36414 2004-01-24  Paul Eggert  <eggert@twinsun.com>
36415
36416         Merge from diffutils.
36417
36418         * lib/file-type.c (file_type): Add typed memory objects.
36419         * lib/file-type.h (S_TYPEISTMO): New macro.
36420
36421         * lib/c-stack.h (c_stack_action): Remove argv argument.
36422         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
36423         (die): Don't calculate message unless segv_action returns.
36424         (get_stack_location, min_address_from_argv, max_address_from_argv,
36425         volatile stack_base, volatile_stack_size): Remove.
36426         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
36427         that every segmentation violation is a stack overflow.  (Ouch!)
36428         See Debian bug 136249 (still outstanding) for more info about why
36429         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
36430
36431 2004-01-24  Paul Eggert  <eggert@twinsun.com>
36432
36433         Exit-status fix from coreutils.
36434
36435         Use exit_failure consistently in place of EXIT_FAILURE,
36436         so that program exit statuses are consistent on failure.
36437
36438         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
36439         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
36440         * lib/argmatch.h: Comment fix to match the above.
36441         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
36442         Now a macro referring to exit_failure, instead of a separate
36443         variable.  Include "exitfail.h" to get it.
36444         * lib/xstrtol.h: Include "exitfail.h".
36445         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
36446
36447         * lib/long-options.c (parse_long_options): Use prototype
36448         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
36449         for clarity.
36450
36451 2004-01-21  Jim Meyering  <jim@meyering.net>
36452
36453         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
36454         so as not to conflict with a different-sized __mktime_internal
36455         function in GNU libc.
36456         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
36457         Problem building statically-linked `ls' reported by Michael Brunnbauer.
36458
36459 2004-01-20  Karl Berry  <karl@gnu.org>
36460
36461         * config/config.guess: update from config.
36462
36463         * config/srclistvars.sh: GNUWWWLICENSES for karl.
36464
36465 2004-01-20  Bruno Haible  <bruno@clisp.org>
36466
36467         Safer stack allocation.
36468         * lib/setenv.c: Include allocsa.h.
36469         (alloca): Remove fallback definition.
36470         (freea): Remove macro.
36471         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
36472         instead of freea.
36473
36474 2004-01-20  Bruno Haible  <bruno@clisp.org>
36475
36476         * m4/eealloc.m4: New file, from GNU gettext.
36477
36478 2004-01-20  Bruno Haible  <bruno@clisp.org>
36479
36480         * m4/allocsa.m4: New file, from GNU gettext.
36481
36482 2004-01-20  Bruno Haible  <bruno@clisp.org>
36483
36484         * lib/xallocsa.h: New file, from GNU gettext.
36485         * lib/xallocsa.c: New file, from GNU gettext.
36486
36487 2004-01-20  Bruno Haible  <bruno@clisp.org>
36488
36489         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
36490
36491 2004-01-20  Bruno Haible  <bruno@clisp.org>
36492
36493         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
36494         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
36495         specially.
36496
36497 2004-01-20  Bruno Haible  <bruno@clisp.org>
36498
36499         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
36500         patch.
36501
36502 2004-01-20  Bruno Haible  <bruno@clisp.org>
36503
36504         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
36505
36506 2004-01-20  Bruno Haible  <bruno@clisp.org>
36507
36508         * lib/eealloc.h: New file.
36509
36510 2004-01-20  Bruno Haible  <bruno@clisp.org>
36511
36512         * lib/binary-io.h: Avoid warnings on Cygwin.
36513
36514 2004-01-20  Bruno Haible  <bruno@clisp.org>
36515
36516         * lib/allocsa.h: New file, from GNU gettext.
36517         * lib/allocsa.c: New file, from GNU gettext.
36518
36519 2004-01-18  Karl Berry  <karl@gnu.org>
36520
36521         * doc/gpl.texi, doc/lgpl.texi: new files.
36522
36523 2004-01-18  Karl Berry  <karl@gnu.org>
36524
36525         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
36526         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
36527
36528 2004-01-15  Paul Eggert  <eggert@twinsun.com>
36529
36530         Merge from coreutils.
36531
36532         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
36533         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
36534         (gl_DEFAULT_POSIX2_VERSION): Move
36535         the documentation from 'configure' into 'config.hin',
36536         so that 'configure --help' isn't burdened by it and
36537         we don't have to worry about its formatting there.
36538         Reword the documentation so that it's more succinct
36539         and can be run together into a single paragraph.
36540         * m4/same.m4 (gl_SAME): Check for pathconf.
36541
36542 2004-01-15  Paul Eggert  <eggert@twinsun.com>
36543
36544         Merge from coreutils.
36545
36546         * lib/posixver.c: Include posixver.h.
36547
36548         * lib/same.c: Include <stdbool.h>, <limits.h>.
36549         (_POSIX_NAME_MAX): Define if not defined.
36550         (MIN): New macro.
36551         (same_name): If file names are silently truncated, report
36552         that the file names are the same if they are the same after
36553         the silent truncation.
36554
36555         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
36556         conversion function.
36557         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
36558         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
36559         longer needed.
36560
36561 2004-01-15  Jim Meyering  <jim@meyering.net>
36562
36563         Merge from coreutils.
36564
36565         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
36566         if no library is required.
36567         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
36568         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
36569         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
36570         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
36571         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
36572         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
36573         value, $ac_cv_search_crypt, if it's "none required".
36574         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
36575         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
36576         not gl_FUNC_GETLOADAVG.
36577         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
36578         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
36579
36580 2004-01-15  Jim Meyering  <jim@meyering.net>
36581
36582         Merge from coreutils.
36583
36584         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
36585         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
36586         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
36587
36588         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
36589         optional configure-time default.
36590
36591         * lib/version-etc.c (version_etc_copyright): Update copyright date.
36592
36593         * lib/xreadlink.c (xreadlink): Correct outdated comment.
36594
36595 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
36596
36597         Merge from coreutils.
36598
36599         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
36600         value, $ac_cv_search_nanosleep, if it's "none required".
36601
36602 2004-01-14  Paul Eggert  <eggert@twinsun.com>
36603
36604         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
36605         with like-named macro in fnmatch.c.
36606         (EXT): Use an internal constant instead.
36607
36608         Merge fnmatch patches from glibc.
36609         * lib/fnmatch.c (mbsinit): Remove define.
36610         Add libc_hidden_ver (__fnmatch, fnmatch).
36611         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
36612         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
36613
36614 2004-01-14  Karl Berry  <karl@gnu.org>
36615
36616         * config/install-sh: update from automake.
36617
36618 2004-01-13  Karl Berry  <karl@gnu.org>
36619
36620         * config/install-sh: update from automake.
36621
36622 2004-01-09  Karl Berry  <karl@gnu.org>
36623
36624         * config/install-sh: update from automake.
36625
36626 2004-01-05  Karl Berry  <karl@gnu.org>
36627
36628         * config/config.{sub,guess}: update from config.
36629
36630 2003-12-31  Karl Berry  <karl@gnu.org>
36631
36632         * config/depcomp: update from automake.
36633
36634 2003-12-14  Karl Berry  <karl@gnu.org>
36635
36636         * lib/config.charset: update from gettext-runtime.
36637
36638 2003-12-03  Paul Eggert  <eggert@twinsun.com>
36639
36640         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
36641         Bug reported by Alfred M. Szmidt.
36642
36643 2003-12-03  Bruno Haible  <bruno@clisp.org>
36644
36645         * m4/gettext.m4: Upgrade from gettext-0.13.
36646         * m4/po.m4: Upgrade from gettext-0.13.
36647         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
36648         * m4/intmax.m4: New file, from gettext-0.13.
36649         * m4/printf-posix.m4: New file, from gettext-0.13.
36650
36651 2003-11-29  Karl Berry  <karl@gnu.org>
36652
36653         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
36654
36655 2003-11-25  Paul Eggert  <eggert@twinsun.com>
36656             Bruno Haible  <bruno@clisp.org>
36657
36658         * lib/printf-parse.h: Don't include sys/types.h.
36659         (ARG_NONE): New macro.
36660         (char_directive): Change type of *arg_index fields to size_t.
36661         * lib/printf-parse.c: Don't include sys/types.h.
36662         (SSIZE_MAX): Remove macro.
36663         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
36664         Remove unnecessary overflow check.
36665         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
36666         fields.
36667
36668 2003-11-25  Bruno Haible  <bruno@clisp.org>
36669
36670         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
36671
36672 2003-11-25  Bruno Haible  <bruno@clisp.org>
36673
36674         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
36675         gt_TYPE_SSIZE_T.
36676
36677 2003-11-24  Paul Eggert  <eggert@twinsun.com>
36678
36679         * modules/alloca: Remove dependency on xalloc.
36680
36681 2003-11-24  Paul Eggert  <eggert@twinsun.com>
36682
36683         * lib/alloca.c: Remove dependency on xalloc module.
36684         (xalloc_die): Remove.
36685         (memory_full) [!defined emacs]: New macro.
36686         [!defined emacs]: Don't include xalloc.h.
36687         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
36688         address arithmetic overflows.  Change datatypes a bit to avoid
36689         unnecessary casts.
36690
36691 2003-11-22  Jim Meyering  <jim@meyering.net>
36692
36693         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
36694         s/size/size_t/.
36695
36696 2003-11-21  Karl Berry  <karl@gnu.org>
36697
36698         * config/config.{sub,guess}: update from config.
36699
36700 2003-11-18  Karl Berry  <karl@gnu.org>
36701
36702         * config/config.{sub,guess}: update from config.
36703
36704         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
36705
36706 2003-11-17  Paul Eggert  <eggert@twinsun.com>
36707
36708         * README: Mention that S+T cannot overflow if S is the size of
36709         an existing object and T is sufficiently small.
36710
36711 2003-11-17  Jim Meyering  <jim@meyering.net>
36712
36713         On systems without utime and without a utimes function capable of
36714         dealing with a NULL struct utimbuf* argument, this utime replacement
36715         could -- in unusual circumstances -- leak a file descriptor.
36716         * lib/utime.c: Include <unistd.h> and <errno.h>.
36717         (utime_null): Be sure to close `fd' and to preserve errno.
36718         Reported by Geoff Collyer via Arnold Robbins.
36719
36720 2003-11-17  Bruno Haible  <bruno@clisp.org>
36721
36722         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
36723         (Depends-on): Add xsize.
36724
36725 2003-11-17  Bruno Haible  <bruno@clisp.org>
36726
36727         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
36728
36729 2003-11-17  Bruno Haible  <bruno@clisp.org>
36730
36731         * lib/vasnprintf.c (alloca): Remove fallback definition.
36732         (freea): Remove definition.
36733         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
36734         Reported by Paul Eggert.
36735
36736 2003-11-16  Paul Eggert  <eggert@twinsun.com>
36737             Bruno Haible  <bruno@clisp.org>
36738
36739         Protect against address arithmetic overflow.
36740         * lib/printf-args.h: Include stddef.h.
36741         (arguments): Change type of field 'count' to size_t.
36742         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
36743         'unsigned int' where appropriate.
36744         * lib/printf-parse.h: Include sys/types.h.
36745         (char_directive): Change type of *arg_index fields to ssize_t.
36746         (char_directives): Change type of fields 'count', max_*_length to
36747         size_t.
36748         * lib/printf-parse.c: Include sys/types.h and xsize.h.
36749         (SSIZE_MAX): Define fallback value.
36750         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
36751         instead of 'int' where appropriate. Check a_allocated, d_allocated
36752         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
36753         * lib/vasnprintf.c: Include xsize.h.
36754         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
36755         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
36756         overflow. Avoid wraparound when converting a width or precision from
36757         decimal to binary.
36758
36759 2003-11-16  Bruno Haible  <bruno@clisp.org>
36760
36761         Update from GNU gettext.
36762         * lib/printf-parse.c: Generalize to it can be compiled for wide
36763         strings.
36764         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
36765         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
36766         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
36767         SNPRINTF): New macros.
36768         Don't include <alloca.h> if the file is used inside libintl.
36769         (local_wcslen): New function, for Solaris 2.5.1.
36770         (VASNPRINTF): Use it instead of wcslen.
36771
36772 2003-11-16  Bruno Haible  <bruno@clisp.org>
36773
36774         * lib/xsize.h (xmax): New function.
36775         (xsum, xsum3, xsum4): Declare as "pure" functions.
36776
36777 2003-11-12  Paul Eggert  <eggert@twinsun.com>
36778
36779         * modules/xalloc (Files): Undo latest change, since xalloc.h
36780         no longer needs SIZE_MAX or PTRDIFF_MAX.
36781
36782 2003-11-12  Paul Eggert  <eggert@twinsun.com>
36783
36784         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
36785         gl_PTRDIFF_MAX.
36786
36787 2003-11-12  Paul Eggert  <eggert@twinsun.com>
36788
36789         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
36790         "return", to pacify some unknown compiler.  Problem reported
36791         by Joerg Schilling.
36792
36793 2003-11-12  Paul Eggert  <eggert@twinsun.com>
36794
36795         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
36796         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
36797         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
36798         heuristic is just as accurate as far as we know, and it removes a
36799         dependency on size_max.m4 and ptrdiff_max.m4.
36800
36801 2003-11-11  Bruno Haible  <bruno@clisp.org>
36802
36803         * modules/xsize (Files): Add m4/size_max.m4.
36804         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
36805
36806 2003-11-11  Bruno Haible  <bruno@clisp.org>
36807
36808         * m4/size_max.m4: New file.
36809         * m4/ptrdiff_max.m4: New file.
36810         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
36811         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
36812         (gl_XALLOC): Invoke it.
36813
36814 2003-11-11  Bruno Haible  <bruno@clisp.org>
36815
36816         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
36817         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
36818         defined.
36819
36820 2003-11-10  Paul Eggert  <eggert@twinsun.com>
36821
36822         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
36823         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
36824         rejected some allocations of exactly SIZE_MAX - 2 bytes.
36825         From Bruno Haible.
36826         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
36827         not (size_t) -1, since it's defined here.
36828
36829 2003-11-09  Karl Berry  <karl@gnu.org>
36830
36831         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
36832
36833 2003-11-06  Paul Eggert  <eggert@twinsun.com>
36834
36835         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
36836         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
36837         Reject sizes of exactly SIZE_MAX bytes.
36838         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
36839         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
36840
36841 2003-11-05  Bruno Haible  <bruno@clisp.org>
36842
36843         * lib/xsize.h: Include limits.h, to avoid a possible collision with
36844         SIZE_MAX defined in <limits.h> on Solaris.
36845
36846 2003-11-04  Jim Meyering  <jim@meyering.net>
36847
36848         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
36849         variable names, rather than @VAR@.
36850         * modules/poll: Likewise.
36851
36852 2003-11-04  Bruno Haible  <bruno@clisp.org>
36853
36854         * modules/xsize: New file.
36855         * modules/linebreak: Depend on xsize.
36856         * MODULES.html.sh (func_all_modules): Add xsize.
36857
36858 2003-11-04  Bruno Haible  <bruno@clisp.org>
36859
36860         * m4/xsize.m4: New file.
36861
36862 2003-11-04  Bruno Haible  <bruno@clisp.org>
36863
36864         * lib/xsize.h: New file.
36865         * lib/linebreak.c: Include xsize.h.
36866         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
36867         argument for overflow.
36868         Suggested by Paul Eggert.
36869
36870 2003-11-03  Karl Berry  <karl@gnu.org>
36871
36872         * config/config.{guess,sub}: update from config.
36873
36874 2003-11-03  Jim Meyering  <jim@meyering.net>
36875
36876         * modules/userspec (lib_SOURCES): Add userspec.h.
36877         (Include): Add "userspec.h".
36878         Improve description.
36879
36880 2003-11-03  Jim Meyering  <jim@meyering.net>
36881
36882         * lib/userspec.c: Include "userspec.h".
36883         * lib/userspec.h: New file.
36884
36885 2003-11-03  Bruno Haible  <bruno@clisp.org>
36886
36887         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
36888
36889 2003-11-03  Bruno Haible  <bruno@clisp.org>
36890
36891         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
36892         available, to avoid (extremely rare) race condition.
36893         Suggested by Paul Eggert.
36894
36895 2003-11-02  Karl Berry  <karl@gnu.org>
36896
36897         * config/srclist.txt (vasprintf.c): sync broken, sigh.
36898
36899 2003-10-31  Paul Eggert  <eggert@twinsun.com>
36900
36901         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
36902         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
36903         (read_filesystem_list): Set and use me_type_malloced.
36904         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
36905         whatever the type happens to be), for brevity and consistency.
36906         Check for size calculation overflow on Alphas running OSF/1.
36907
36908 2003-10-31  Jim Meyering  <jim@meyering.net>
36909
36910         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
36911
36912         * lib/linebuffer.c: Include <string.h> for declaration of memset.
36913
36914 2003-10-30  Paul Eggert  <eggert@twinsun.com>
36915             Bruno Haible  <bruno@clisp.org>
36916
36917         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
36918         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
36919
36920 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
36921
36922         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
36923         netbsd*-gnu*.  Suggested by Robert Millan.
36924
36925 2003-10-29  Paul Eggert  <eggert@twinsun.com>
36926
36927         * modules/group-member: Depend on stdbool.
36928
36929 2003-10-29  Paul Eggert  <eggert@twinsun.com>
36930
36931         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
36932
36933 2003-10-29  Paul Eggert  <eggert@twinsun.com>
36934
36935         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
36936         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
36937         after the 'gnu' in these cases.  This fixes some bugs in the
36938         previous change, and is based on suggestions by Robert Millan.
36939
36940 2003-10-29  Paul Eggert  <eggert@twinsun.com>
36941
36942         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
36943         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
36944         no longer needed.
36945         * lib/quotearg.c (quotearg_n_options): Use it.
36946         * lib/group-member.c: Include <stdbool.h>.
36947         (free_group_info): Arg is now const *; don't free arg.
36948         (get_group_info): Now returns bool and accepts struct group_info *,
36949         rather than returning a malloc'ed struct group_info *.
36950         All uses changed.  Check for overflow in internal size calculation.
36951
36952         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
36953         rather than xmalloc/xrealloc.
36954         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
36955         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
36956         conformance bug: the old code used a pointer after freeing the
36957         storage that it addressed.
36958         * lib/hash.c (hash_initialize): Simplify the code by using
36959         xalloc_oversized rather than doing it by hand.
36960         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
36961         the buffer preserved.  Use free and xmalloc instead.
36962         * lib/quotearg.c (quotearg_n_options): Likewise.
36963         Use a simpler test for size overflow.  Don't use xalloc_oversized
36964         because unsigned int might be wider than size_t (!); this suggests
36965         that we should switch from unsigned int to size_t for slot numbers.
36966
36967 2003-10-28  Paul Eggert  <eggert@twinsun.com>
36968
36969         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
36970         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
36971         NetBSD kernels.  Requested by Richard Stallman.
36972
36973 2003-10-27  Paul Eggert  <eggert@twinsun.com>
36974
36975         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
36976         to allocate the returned structure.  Do not allocate a subarray,
36977         as x2nrealloc will do that.
36978         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
36979         instead of xnrealloc.
36980         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
36981
36982 2003-10-27  Bruno Haible  <bruno@clisp.org>
36983
36984         * lib/stdbool_.h: Better support for BeOS.
36985
36986 2003-10-26  Paul Eggert  <eggert@twinsun.com>
36987
36988         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
36989         now uses inline.
36990
36991 2003-10-26  Paul Eggert  <eggert@twinsun.com>
36992
36993         * lib/xalloc.h (xalloc_oversized): New static inline function, for
36994         callers that want to do their own size-overflow checking.  Include
36995         <stdbool.h>, since xalloc_oversized returns bool.
36996         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
36997         to use xalloc_oversized.
36998
36999         Add two functions x2realloc, x2nrealloc, for programs that grow
37000         arrays dynamically by doubling their sizes.
37001         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
37002         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
37003         New functions.
37004
37005         Port to C99 semantics for 'inline' of external functions.
37006         Bug reported by Bruno Haible.
37007         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
37008         with the old contents of xnmalloc.
37009         (xnmalloc, xmalloc): Use it.
37010         (xnrealloc_inline): New static inline function,
37011         with the old contents of xnrealloc.
37012         (xnrealloc, xrealloc): Use it.
37013
37014         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
37015         that.
37016
37017 2003-10-26  Karl Berry  <karl@gnu.org>
37018
37019         * config/srclist.txt (COPYING.DOC): no longer available from
37020         /gd/gnuorg; don't know where the ultimate source is.
37021
37022 2003-10-25  Paul Eggert  <eggert@twinsun.com>
37023
37024         Fix several address-calculation bugs in the hash modules,
37025         plus some minor code cleanup.
37026
37027         * lib/hash.h: Include <stdbool.h>, for bool.
37028         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
37029         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
37030         hash_get_n_entries, hash_get_max_bucket_length,
37031         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
37032         hash_rehash): Use size_t rather than unsigned.
37033         * lib/hash.c (struct hash_table, hash_get_n_buckets,
37034         hash_get_n_buckets_used, hash_get_n_entries,
37035         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
37036         hash_get_entries, hash_do_for_each, hash_string, is_prime,
37037         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
37038         Likewise.
37039         (SIZE_MAX): Define if not defined.
37040         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
37041         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
37042         hash_print):
37043         Use const * when possible.
37044         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
37045         (check_tuning): Fix bug: if tuning parameters were very close to
37046         0 or 1, rounding errors could have caused subscript violations.
37047         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
37048         (hash_initialize): Add 'fail:' label
37049         to free table and return NULL, and use it to simplify code.
37050         Use calloc rather than clearing the storage ourself.
37051         (hash_initialize, hash_rehash): Check for arithmetic overflow in
37052         buffer size calculations.
37053         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
37054         Include <stddef.h>, for size_t.
37055         * lib/hash-pjw.c (hash_pjw): Likewise.
37056         Switch to method described by Bruno Haible.
37057         Include <limits.h>, for CHAR_BIT.
37058         (SIZE_BITS): New macro.
37059
37060 2003-10-23  Paul Eggert  <eggert@twinsun.com>
37061
37062         * m4/getline.m4 (AM_FUNC_GETLINE):
37063         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
37064         hosts.  Problem reported by Derek Robert Price in
37065         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
37066         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
37067         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
37068
37069 2003-10-21  Paul Eggert  <eggert@twinsun.com>
37070
37071         * lib/getndelim2.c (getndelim2): When size calculation overflows,
37072         ceiling the allocation at NMAX bytes rather than silently
37073         discarding input bytes before NMAX is reached.  This makes
37074         a difference only if NMAX exceeds SIZE_MAX / 2.
37075
37076         * lib/obstack.c: Merge from glibc.
37077         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
37078         Add libc_hidden_def (_obstack_newchunk).
37079         (_obstack_free) [! defined _LIBC]: Remove.
37080         [defined _LIBC]: Make a strong alias from obstack_free, rather than
37081         a clone of the function body.
37082         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
37083         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
37084
37085         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
37086         glibc.
37087         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
37088         arg to memcpy.
37089
37090         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
37091         (obstack_ptr_grow_fast, obstack_int_grow_fast):
37092         Don't use lvalue casts, as GCC plans to remove support for them
37093         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
37094         was also present in the non-GCC version, indicating that this
37095         code had always been buggy and had never been widely used.
37096         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
37097         Use the fast variant of each macro, rather than copying the
37098         definiens of the fast variant; that way, we'll be more likely to
37099         catch future bugs in the fast variants.
37100
37101 2003-10-20  Bruno Haible  <bruno@clisp.org>
37102
37103         * modules/wait-process: New file.
37104         * MODULES.html.sh (func_all_modules): Add wait-process.
37105
37106 2003-10-20  Bruno Haible  <bruno@clisp.org>
37107
37108         * m4/wait-process.m4: New file.
37109
37110 2003-10-20  Bruno Haible  <bruno@clisp.org>
37111
37112         * lib/wait-process.h: New file, from GNU gettext.
37113         * lib/wait-process.c: New file, from GNU gettext.
37114
37115 2003-10-19  Jim Meyering  <jim@meyering.net>
37116
37117         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
37118         HPUX 10.20.
37119
37120 2003-10-18  Karl Berry  <karl@gnu.org>
37121
37122         * config/config.guess: update from config.
37123
37124 2003-10-16  Paul Eggert  <eggert@twinsun.com>
37125
37126         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
37127         (getgroups): First arg is int, not size_t.
37128         Don't let 'free' mangle errno.
37129
37130 2003-10-16  Paul Eggert  <eggert@twinsun.com>
37131
37132         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
37133
37134 2003-10-16  Karl Berry  <karl@gnu.org>
37135
37136         * config/config.{guess,sub}: update from config.
37137
37138 2003-10-16  Jim Meyering  <jim@meyering.net>
37139
37140         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
37141         memcpy.
37142
37143 2003-10-15  Paul Eggert  <eggert@twinsun.com>
37144
37145         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
37146         (SIZE_MAX): Remove.
37147         (new_exclude, add_exclude_file): Initial size no longer needs to
37148         be a power of 2.
37149         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
37150         our own address arithmetic overflow checking.
37151
37152         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
37153         (fnmatch): Do not alloca more than 2000 wide characters;
37154         instead, use malloc for large buffers.
37155         Check for address arithmetic overflow, and return -1
37156         with errno set to ENOMEM in that case.
37157         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
37158         (NEW_PATTERN): Do not alloca more than 8000 bytes;
37159         instead, return -1.  Check for address arithmetic overflow.
37160
37161 2003-10-14  Paul Eggert  <eggert@twinsun.com>
37162
37163         Handle invalid suffixes and overflow independently, so that
37164         callers can treat them independently as needed.  Fix some bugs in
37165         suffix handling, e.g., "100k@" was not diagnosed as an invalid
37166         suffix for a human-readable blocksize.  The major caller-visible
37167         change is the addition of a new
37168         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
37169         that both overflow and suffix chars were found.
37170
37171         * lib/human.c (humblock): Don't check separately for invalid suffix
37172         char; that is xstrtoumax's job (now that its bug is fixed).
37173         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
37174         INTMAX_MAX]: New macros.
37175         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
37176         TYPE_MAXIMUM): New macros.
37177         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
37178         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
37179         if overflow occurs, as it's what __strtol does and it's more useful
37180         in practice.
37181         (__xstrtol): If __strtol reports some error other than ERANGE,
37182         reflect it to the caller as LONGINT_INVALID.  If it reports
37183         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
37184         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
37185         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
37186         value.
37187         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
37188         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
37189         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
37190         [defined UINTMAX_MAX]: New macros.
37191
37192 2003-10-14  Bruno Haible  <bruno@clisp.org>
37193
37194         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
37195
37196 2003-10-14  Bruno Haible  <bruno@clisp.org>
37197
37198         * m4/sig_atomic_t: New file, from GNU gettext.
37199         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
37200
37201 2003-10-14  Bruno Haible  <bruno@clisp.org>
37202
37203         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
37204         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
37205         Also use volatile where needed.
37206
37207 2003-10-12  Paul Eggert  <eggert@twinsun.com>
37208
37209         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
37210         Change maintainer from Bruno Haible to 'all'.
37211
37212 2003-10-12  Paul Eggert  <eggert@twinsun.com>
37213
37214         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
37215
37216 2003-10-12  Paul Eggert  <eggert@twinsun.com>
37217
37218         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
37219         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
37220         and define in terms of the other primitives.
37221         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
37222         (SIZE_MAX): Define if not already defined.
37223         (array_size_overflow): New function.
37224         (xalloc_die): Abort instead of exiting if 'error' returns.
37225         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
37226         (xmalloc, xrealloc): Use them.
37227         (xcalloc): Check for address arithmetic overflow.
37228         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
37229         a bit faster than strcpy.
37230
37231 2003-10-10  Simon Josefsson  <jas@extundo.com>
37232
37233         * modules/argp (Depends-on): Add restrict and strcase.
37234
37235 2003-10-10  Simon Josefsson  <jas@extundo.com>
37236
37237         * m4/argp.m4: Add AC_C_INLINE.
37238
37239 2003-10-08  Paul Eggert  <eggert@twinsun.com>
37240
37241         Merge getpass from libc, plus a few fixes.
37242
37243         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
37244         Include <stdbool.h>.
37245         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
37246         __fsetlocking to empty.
37247         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
37248         do include <bits/libc-lock.h>.
37249         Do not include <fcntl.h>; not needed.
37250         [_LIBC]: Include <wchar.h>.
37251         (NOTCANCEL_MODE): New macro.
37252         (flockfile, funlockfile) [_LIBC]: New macros.
37253         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
37254         [!_LIBC]: New macros.
37255         (call_fclose): New function.
37256         (getpass): Use it.  Save tty stream separately; this simplifies the
37257         code and makes it more reliable if stdin happens to equal stdout.
37258         Invoke __fsetlocking on tty.
37259         Handle thread cancellation if needed.
37260         Namespace cleanup (use __tcgetattr, __getline).
37261         Use bool for Booleans.
37262         [USE_IN_LIBIO]: Handle wide streams.
37263         [!_LIBC]: Unconditionally do the fseek, since we don't know what
37264         stream might go where.
37265
37266         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
37267         doesn't have to include <stdio.h> before us.
37268         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
37269         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
37270         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
37271         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
37272         if not declared, so that we can use getpass.c code from libc without
37273         rewriting it.
37274         (flockfile, ftrylockfile, funlockfile): New macros.
37275
37276 2003-10-08  Paul Eggert  <eggert@twinsun.com>
37277
37278         * modules/getpass: Depend on stdbool.
37279
37280 2003-10-08  Paul Eggert  <eggert@twinsun.com>
37281
37282         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
37283
37284 2003-10-07  Karl Berry  <karl@gnu.org>
37285
37286         * config/config.{guess,sub}: update from config.
37287
37288 2003-10-06  Jim Meyering  <jim@meyering.net>
37289             Bruno Haible  <bruno@clisp.org>
37290
37291         This lets translators provide better translations for the
37292         "Written by ..." part of --version output.
37293         * lib/version-etc.h: Include stdarg.h.
37294         (version_etc_copyright): Declare as readonly.
37295         (version_etc): Make this function variadic with a NULL-terminated list
37296         of author name strings.
37297         (version_etc_va): New declaration.
37298         * lib/version-etc.c: Include stdarg.h, stdlib.h.
37299         (version_etc_copyright): Declare as readonly.
37300         (version_etc_va): New function. Provide a different translatable string
37301         for each possible number of authors < 10. Abbreviate when there are 10
37302         authors or more.
37303         (version_etc): Make this function variadic. Call version_etc_va.
37304         Suggestion from Gary V. Vaughan.
37305
37306         * lib/long-options.h (parse_long_options): Change prototype: the
37307         authors string is moved to the end and becomes variadic.
37308         * lib/long-options.c: Include stdarg.h.
37309         (parse_long_options): Make this function variadic, too.
37310         Call version_etc_va, not version_etc.
37311
37312 2003-10-06  Bruno Haible  <bruno@clisp.org>
37313
37314         * modules/version-etc-2: Remove file.
37315         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
37316
37317 2003-10-06  Bruno Haible  <bruno@clisp.org>
37318
37319         * modules/fatal-signal: New file.
37320         * MODULES.html.sh (func_all_modules): Add fatal-signal.
37321
37322 2003-10-06  Bruno Haible  <bruno@clisp.org>
37323
37324         * m4/fatal-signal.m4: New file.
37325         * m4/signalblocking.m4: New file, from GNU gettext.
37326
37327 2003-10-06  Bruno Haible  <bruno@clisp.org>
37328
37329         * lib/version-etc-2.h: Remove file.
37330         * lib/version-etc-2.c: Remove file.
37331
37332 2003-10-06  Bruno Haible  <bruno@clisp.org>
37333
37334         * lib/fatal-signal.h: New file, from GNU gettext.
37335         * lib/fatal-signal.c: New file, from GNU gettext.
37336
37337 2003-10-05  Paul Eggert  <eggert@twinsun.com>
37338
37339         * README: Rework advice for preventing empty .o files.
37340         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
37341         not <sys/types.h>.
37342
37343 2003-10-04  Karl Berry  <karl@gnu.org>
37344
37345         * lib/argp*: update from libc.
37346
37347 2003-10-04  Karl Berry  <karl@gnu.org>
37348
37349         * config/config.{guess,sub}: update from config.
37350
37351 2003-10-02  Bruno Haible  <bruno@clisp.org>
37352
37353         * modules/lchown (Include): Add lchown.h.
37354         * modules/time_r (Include): Use "..." syntax.
37355         * modules/xgetdomainname (Include): Add xgetdomainname.h.
37356
37357 2003-10-01  Simon Josefsson  <jas@extundo.com>
37358
37359         * MODULES.html.sh (func_all_modules): Move gethostname from section
37360         'based on' to section 'lacking' POSIX:2001.
37361
37362 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
37363
37364         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
37365         to output mode on the same stream.
37366
37367 2003-09-29  Paul Eggert  <eggert@twinsun.com>
37368
37369         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
37370         Fix arg typo in previous patch.
37371
37372 2003-09-28  Jim Meyering  <jim@meyering.net>
37373
37374         * lib/error.c: Correct cpp indentation.
37375
37376 2003-09-27  Paul Eggert  <eggert@twinsun.com>
37377
37378         * modules/free: New file.
37379
37380 2003-09-27  Paul Eggert  <eggert@twinsun.com>
37381
37382         * m4/free.m4: New file.
37383
37384 2003-09-27  Paul Eggert  <eggert@twinsun.com>
37385
37386         * lib/minmax.h (MIN, MAX)
37387         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
37388         Omit the special code that used __typeof__, since we worry that
37389         it could be more trouble than it's worth.  See:
37390         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
37391         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
37392
37393         * lib/free.c: New file.
37394
37395 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
37396
37397         Trivial fixes to Makefile.am parts of module listings.
37398         * modules/strstr: Append strstr.h to lib_SOURCES.
37399         * modules/strcase: Likewise, for strcase.h.
37400
37401 2003-09-27  Karl Berry  <karl@gnu.org>
37402
37403         * config/mkinstalldirs: update from automake.
37404
37405 2003-09-26  Paul Eggert  <eggert@twinsun.com>
37406
37407         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
37408         (error_tail): Do not loop, reallocating temporary buffer, since
37409         the output cannot contain more wide characters than the input
37410         contains bytes, the size must be big enough already.  This avoids
37411         one potential size overflow calculation.  Check for size overflow
37412         when calculating temporary buffer size.  Free temporary buffer
37413         when done, if it was allocated with malloc; this plugs a memory
37414         leak.  Remove casts from void * to pointers, that are no longer
37415         needed now that we're assuming C89 or better.
37416
37417         Merge error changes from glibc.
37418
37419         * lib/error.c, error.h: Update copyright notice header to match glibc.
37420         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
37421         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
37422         Disable cancellation while printing error.
37423         * lib/error.h: Prepend __ to parameter names.
37424
37425 2003-09-26  Jim Meyering  <jim@meyering.net>
37426
37427         * lib/error.c (error_tail): Move some declarations
37428         into inner scope where the local variables are used.
37429
37430 2003-09-26  Bruno Haible  <bruno@clisp.org>
37431
37432         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
37433         stpncpy().
37434         Don't define stpncpy through config.h; it's now done through stpncpy.h.
37435
37436 2003-09-26  Bruno Haible  <bruno@clisp.org>
37437
37438         * lib/stpncpy.h (gnu_stpncpy): New declaration.
37439         (stpncpy): Define as alias for gnu_stpncpy.
37440         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
37441
37442 2003-09-25  Simon Josefsson  <jas@extundo.com>
37443
37444         * lib/xgetdomainname.h: New file.
37445         * lib/xgetdomainname.c: New file.
37446
37447 2003-09-25  Simon Josefsson  <jas@extundo.com>
37448             Bruno Haible  <bruno@clisp.org>
37449
37450         * modules/getdomainname: New file.
37451         * modules/xgetdomainname: New file.
37452         * MODULES.html.sh (func_all_modules): Add getdomainname,
37453         xgetdomainname.
37454
37455 2003-09-25  Simon Josefsson  <jas@extundo.com>
37456             Bruno Haible  <bruno@clisp.org>
37457
37458         * m4/getdomainname.m4: New file.
37459
37460 2003-09-25  Simon Josefsson  <jas@extundo.com>
37461             Bruno Haible  <bruno@clisp.org>
37462
37463         * lib/getdomainname.h: New file.
37464         * lib/getdomainname.c: New file.
37465
37466 2003-09-25  Karl Berry  <karl@gnu.org>
37467
37468         * lib/argp-fmtstream.c, argp-help.c: update from libc.
37469
37470 2003-09-25  Karl Berry  <karl@gnu.org>
37471
37472         * config/install-sh: update from automake.
37473
37474 2003-09-25  Bruno Haible  <bruno@clisp.org>
37475
37476         * modules/version-etc-2: New file, from modules/version-etc with
37477         modifications.
37478         * MODULES.html.sh (func_all_modules): Add version-etc-2.
37479
37480 2003-09-25  Bruno Haible  <bruno@clisp.org>
37481
37482         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
37483         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
37484
37485 2003-09-24  Simon Josefsson  <jas@extundo.com>
37486
37487         * modules/xgethostname: Add xgethostname.h.
37488
37489 2003-09-24  Paul Eggert  <eggert@twinsun.com>
37490
37491         * lib/linebuffer.c (freebuffer): Don't free the argument, just
37492         the buffer associated with the argument.  Bug reported by
37493         Simon Josefsson.
37494
37495 2003-09-24  Paul Eggert  <eggert@twinsun.com>
37496
37497         * README: Document assumptions that 'int' is at least 32 bits
37498         wide, that integer arithmetic is 2's complement without overflow,
37499         that there are no holes in integer values, that adding sizes of
37500         two nonoverlapping objects can't overflow, and that all-bits-zero
37501         yields scalar zero.  Fix spelling and capitalization typos.
37502
37503 2003-09-19  Karl Berry  <karl@gnu.org>
37504
37505         * lib/argp.h: update from libc.
37506
37507 2003-09-17  Paul Eggert  <eggert@twinsun.com>
37508
37509         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
37510         to avoid spurious warnings like "AC_RUN_IFELSE was called before
37511         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
37512
37513 2003-09-17  Paul Eggert  <eggert@twinsun.com>
37514
37515         * gnulib-tool: Use "test -h", not "test -L", for portability
37516         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
37517         (tags_regexp): Remove, since \| doesn't conform to POSIX.
37518         (sed_extract_prog): Issue s commands one-by-one, rather than
37519         using \| in one s command.
37520
37521 2003-09-16  Paul Eggert  <eggert@twinsun.com>
37522
37523         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
37524         input error, instead of returning NULL the next time we are called
37525         (and therefore losing track of errno).
37526
37527 2003-09-16  Bruno Haible  <bruno@clisp.org>
37528
37529         * gnulib-tool (func_create_testdir): Warn about duplicated
37530         dependencies.
37531
37532 2003-09-15  Paul Eggert  <eggert@twinsun.com>
37533
37534         * modules/argmatch, modules/fatal, modules/obstack,
37535         modules/xalloc, modules/xgethostname: Sort dependencies by
37536         importance, not alphabetically.
37537
37538 2003-09-15  Paul Eggert  <eggert@twinsun.com>
37539
37540         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
37541         fails, so that the caller gets the proper errno.
37542
37543         * lib/readutmp.c (read_utmp): Likewise.
37544         Check for fstat error.  Close stream and free storage
37545         when failing.
37546
37547 2003-09-14  Karl Berry  <karl@gnu.org>
37548
37549         * config/srclist.txt (strdup.c): disable for c89 changes.
37550
37551 2003-09-14  Jim Meyering  <jim@meyering.net>
37552
37553         * lib/getloadavg.c: Correct cpp indentation.
37554         * lib/strdup.c: Likewise.
37555         * lib/vasnprintf.c: Likewise.
37556
37557 2003-09-14  Bruno Haible  <bruno@clisp.org>
37558
37559         * modules/fwriteerror: New file.
37560         * MODULES.html.sh (func_all_modules): Add fwriteerror.
37561
37562 2003-09-14  Bruno Haible  <bruno@clisp.org>
37563
37564         * lib/fwriteerror.h: New file.
37565         * lib/fwriteerror.c: New file.
37566
37567 2003-09-12  Paul Eggert  <eggert@twinsun.com>
37568
37569         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
37570         modules/xgethostname, modules/xalloc: Depend on exit.
37571
37572 2003-09-12  Paul Eggert  <eggert@twinsun.com>
37573
37574         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
37575
37576         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
37577         and AC_MINIX, too, so that their extensions are available.
37578
37579         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
37580         This macro has been superseded by gl_BACKUPFILE.
37581
37582         More patches to assume C89 or better.
37583
37584         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
37585
37586         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
37587         unconditionally.
37588         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
37589         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
37590         Include <string.h>, <stdlib.h> unconditionally.
37591         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
37592         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
37593         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
37594         headers or for string.h.
37595         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
37596         or strtoul.
37597
37598         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
37599         headers.
37600         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
37601         * m4/userspec.m4 (gl_USERSPEC): Likewise.
37602         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
37603         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
37604         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
37605         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
37606         memcpy, memset.
37607         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
37608         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
37609         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
37610         strtol.
37611         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
37612         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
37613         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
37614         strtoul.
37615
37616 2003-09-12  Paul Eggert  <eggert@twinsun.com>
37617
37618         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
37619         * lib/obstack.c [!defined _LIBC]: Likewise.
37620         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
37621         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
37622         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
37623
37624         More changes to assume C89 or better.
37625
37626         * lib/error.c (error_tail): Assume vprintf.
37627
37628         * lib/argmatch.c (getenv): Remove decl.
37629         * lib/progreloc.c (get_full_program_name): Define via prototype.
37630         * lib/setenv.c (clearenv): Likewise.
37631         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
37632         needed.
37633         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
37634         (malloc, memcpy): Remove decls.
37635         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
37636         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
37637         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
37638         (memcpy): Remove macro.
37639         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
37640         (__P): Remove.  All uses removed.
37641         (PTR): Remove.  All uses changed to void *.
37642         (CHAR_BIT, NULL): Remove.
37643         (spaces, zeros, memset_space, memset_zero)
37644         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
37645         Remove.
37646         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
37647         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
37648         Define with prototype.
37649         Remove now-unnecessary prototype decl.
37650         (extra_args_spec): Assume ANSI C.  All uses changed.
37651         (extra_args_spec_iso): Remove.
37652         (my_strftime, emacs_strftimeu): Define via prototype.
37653         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
37654         unconditionally.
37655         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
37656         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
37657         (strtoul, strtol): Remove decls.
37658         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
37659         LONG_MAX): Remove.
37660         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
37661         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
37662         (LOCALE_PARAM_PROTO): New macro.
37663         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
37664         (INTERNAL (strtol), strtol): Define with a prototype.
37665         (PARAMS): Remove.  All uses removed.
37666         * lib/tempname.c: Include <string.h> unconditionally.
37667         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
37668         * lib/xgethostname.c (main): Define with a prototype.
37669         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
37670         Include <stdlib.h> unconditionally.
37671         (calloc, malloc, realloc, free): Remove decls.
37672         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
37673         Include <stdlib.h> unconditionally.  Sort include file names.
37674         (strtod): Remove.
37675         (xstrtod): Define with a prototype.
37676         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
37677         (strtol, strtoul): Remove decls.
37678
37679 2003-09-11  Paul Eggert  <eggert@twinsun.com>
37680
37681         More patches to assume C89 or better.
37682         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
37683         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
37684         string.h, memchr, STDC_HEADERS.
37685
37686 2003-09-11  Paul Eggert  <eggert@twinsun.com>
37687
37688         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
37689         Include <stdlib.h>, <string.h> unconditionally.
37690         Remove now-unnecessary cast to char *.
37691         * lib/strnlen.c: Include <string.h> unconditionally.
37692         * lib/yesno.c (yesno): Define with a prototype.
37693
37694 2003-09-11  Bruno Haible  <bruno@clisp.org>
37695
37696         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
37697
37698 2003-09-10  Jim Meyering  <jim@meyering.net>
37699
37700         * lib/error.c: Correct indentation of cpp directives.
37701
37702 2003-09-10  Bruno Haible  <bruno@clisp.org>
37703
37704         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
37705         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
37706         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
37707         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
37708         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
37709         <stdlib.h> and <string.h> checks.
37710         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
37711         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
37712
37713 2003-09-10  Bruno Haible  <bruno@clisp.org>
37714
37715         * lib/strcspn.c: Include <string.h> unconditionally.
37716         * lib/strpbrk.c: Include <string.h> unconditionally.
37717         * lib/strstr.c: Include <string.h> unconditionally.
37718         * lib/unicodeio.c: Include <string.h> unconditionally.
37719         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
37720         * lib/unsetenv.c: Likewise.
37721         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
37722         * lib/yesno.c: Include <stdlib.h> unconditionally.
37723         (rpmatch): Add prototype.
37724
37725 2003-09-09  Paul Eggert  <eggert@twinsun.com>
37726
37727         More patches to assume C89 or better.
37728         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
37729         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
37730         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
37731         or for string.h.
37732         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
37733         stdlib.h.
37734         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
37735         C headers.
37736         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
37737         string.h.
37738         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
37739         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
37740         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
37741         or for string.h.
37742         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
37743         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
37744         C headers.
37745         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
37746         memcpy.
37747         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
37748         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
37749         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
37750         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
37751         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
37752         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
37753         string.h, free.
37754         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
37755         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
37756         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
37757         C headers, or for string.h.
37758         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
37759         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
37760         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
37761         headers, memory.h, stdlib.h, string.h, strings.h.
37762         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
37763         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
37764         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
37765         strchr.
37766         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
37767         headers, memory.h, string.h.
37768         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
37769         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
37770         free.
37771         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
37772         headers.
37773         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
37774         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
37775         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
37776         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
37777         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
37778
37779 2003-09-09  Paul Eggert  <eggert@twinsun.com>
37780
37781         More K&R removal.
37782
37783         * lib/acosl.c (main): Use a prototype.
37784         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
37785         tanl.c: Likewise.
37786
37787         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
37788
37789         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
37790         (getopt, etopt_long, getopt_long_only, _getopt_internal)
37791         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
37792         with a prototype.
37793         * lib/getopt.c (const): Remove macro.
37794         Include <string.h> unconditionally.
37795         (my_index): Remove; all uses changed to strchr.
37796         (strlen): Remove decl.
37797         (exchange): Remove forward decl; no longer needed.
37798         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
37799         Define with prototype.
37800         * lib/getopt1.c (const): Remove macro.
37801         (getopt_long, getopt_long_only, main): Define with prototype.
37802
37803         * lib/getugroups.c: Include <string.h> unconditionally.
37804
37805         * lib/getusershell.c: Include <stdlib.h> unconditionally.
37806         (getusershell, setusershell, endusershell, readname, main):
37807         Define with prototypes.
37808
37809         * lib/group-member.c: Include group-member.h first.
37810         Include <stdlib.h> unconditionally.
37811
37812         * lib/hard-locale.c: Include hard-locale.h first.
37813         Include <stdlib.h>, <string.h> unconditionally.
37814
37815         * lib/hash.c (free, malloc): Remove decls.
37816         Include <stdlib.h> unconditionally.
37817
37818         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
37819         (getenv): Do not declare.
37820
37821         * lib/idcache.c: Include <string.h> unconditionally.
37822
37823         * lib/long-options.c: Include long-options.h first, to test interface.
37824         Include <stdlib.h> unconditionally.
37825
37826         * lib/makepath.c: Include makepath.h first, to test interface.
37827         Include <stdlib.h> and <string.h> unconditionally.
37828
37829         * lib/linebuffer.c: Include <stdlib.h>.
37830         (free): Remove decl.
37831
37832         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
37833         stddef.h. rpl_malloc returns void *, not char *.
37834         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
37835         prototype.
37836
37837         * lib/md5.h: Include <limits.h> unconditionally.
37838         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
37839         (__P): Remove; all uses removed.
37840         * lib/md5.c: Include "md5.h" first.
37841         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
37842         md5_buffer, md5_process_bytes, md5_process_block):
37843         Define with prototypes.
37844         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
37845         * lib/sha.c: Include "sha.h" first.
37846         Include <stdlib.h>, <string.h> unconditionally.
37847
37848         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
37849         * lib/memcmp.c (__ptr_t): Likewise.
37850         * lib/memrchr.c (__ptr_t): Likewise.
37851         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
37852         Include <string.h> unconditionally.
37853         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
37854         * lib/memchr.c: Include <stdlib.h> unconditionally.
37855         * lib/memchr.c (LONG_MAX): Remove.
37856         * lib/memrchr.c (LONG_MAX): Likewise.
37857         * lib/memchr.c (__memchr): Define via a prototype.
37858         * lib/memrchr.c (__memrchr): Likewise.
37859         * lib/memcmp.c (__P): Remove, and remove all uses.
37860         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
37861         Remove forward decls; no longer needed.
37862         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
37863         Use types required by C89 in prototype.
37864
37865         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
37866         * lib/savedir.c: Likewise.
37867         * lib/mkdir.c (free): Remove decl.
37868         * lib/rmdir.c (rmdir): Define with a prototype.
37869         * lib/savedir.c: Include savedir.h first, to test interface.
37870
37871         * lib/mktime.c (STDC_HEADERS): Remove.
37872         Include <stdlib.h>, <string.h> unconditionally.
37873
37874         * lib/modechange.c: Include <stdlib.h> unconditionally.
37875         (malloc): Remove decl.
37876
37877         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
37878         (free): Remove decl.
37879
37880         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
37881         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
37882         (This type really should be intptr_t, but that's a C99ism.)
37883         (_obstack_memcpy): Remove: all uses changed to memcpy.
37884         Include <string.h> unconditionally.
37885         (struct obstack): Assume __STDC__ for types of members
37886         chunkfun, freefun, extra_arg.
37887         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
37888         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
37889         obstack_begin, obstack_specify_allocation,
37890         obstack_specify_allocation_with_arg, obstack_chunkfun,
37891         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
37892         Remove unprototyped decls and the macros that use them.
37893         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
37894         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
37895         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
37896         (defined __STDC__ && __STDC__)]:
37897         Remove nonprototyped code.
37898         Include <stdlib.h> unconditionally.
37899         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
37900         _obstack_allocated_p, _obstack_free, obstack_free,
37901         _obstack_memory_used, print_and_abort):
37902         Define using prototypes.
37903         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
37904         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
37905         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
37906         obstack_next_free, obstack_object_size, obstack_room) [0]:
37907         Remove unused, unprototyped code.
37908
37909         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
37910
37911         * lib/physmem.c (physmem_total, physmem_available, main): Define
37912         with prototypes.
37913
37914         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
37915         (main): Define with a prototype.
37916
37917         * lib/posixver.c (getenv): Remove decl.
37918
37919         * lib/putenv.c (malloc): Returns void *, not char *.
37920         Include <string.h> unconditionally.
37921         (strchr, memcpy, NULL): Do not define.
37922
37923         * lib/readtokens.c: Include readtokens.h first, to test interface.
37924         Include <stdlib.h>, <string.h> unconditionally.
37925         (init_tokenbuffer): Define with a prototype.
37926
37927         * lib/regex.c (PARAMS): Remove.  All uses removed.
37928         All uses of _RE_ARGS removed, too.
37929         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
37930         unconditionally.
37931         (bzero): Assume memset exists.
37932         (memcmp, memcpy, NULL): Remove.
37933         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
37934         char, or assignments to local vars of type signed char.
37935         (init_syntax_once, PREFIX(extract_number_and_incr),
37936         PREFIX(print_partial_compiled_pattern),
37937         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
37938         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
37939         PREFIX(regex_grow_registers), PREFIX(regex_compile),
37940         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
37941         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
37942         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
37943         wcs_compile_range, byte_compile_range, truncate_wchar,
37944         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
37945         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
37946         count_mbs_length, wcs_re_match_2_internal,
37947         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
37948         PREFIX(alt_match_null_string_p),
37949         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
37950         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
37951         regfree, PREFIX(extract_number)): Define with prototype.  Remove
37952         now-unnecessary declaration, if any.
37953         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
37954         regcomp, regexec):
37955         Remove now-unnecessary casts among pointer types.
37956         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
37957
37958         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
37959         (free): Remove decl.
37960
37961         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
37962
37963         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
37964         (free): Remove decl.
37965
37966         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
37967         * lib/xgetcwd.c: Likewise.
37968
37969         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
37970         (free): Remove decl.
37971
37972         * lib/strchrnul.c (strchrnul): Define with a prototype.
37973         Fix bug: c_in was not converted to char before searching.
37974
37975         The following changes are not K&R related:
37976
37977         * lib/group-member.h: Include <sys/types.h>, so that this file is
37978         self-contained.
37979         * lib/makepath.h: Likewise.
37980
37981         * lib/getusershell.c (readname, default_index, line_size, readname):
37982         Use size_t, not int, for sizes.
37983         (readname): If the size overflows, report an error instead of
37984         looping forever.
37985
37986 2003-09-09  Paul Eggert  <eggert@twinsun.com>
37987
37988         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
37989         libc.
37990
37991 2003-09-09  Paul Eggert  <eggert@twinsun.com>
37992
37993         * README: New section: portability guidelines.
37994
37995 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
37996
37997         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
37998         C89 spec.
37999
38000 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
38001
38002         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
38003
38004 2003-09-08  Paul Eggert  <eggert@twinsun.com>
38005
38006         Assume C89 or better; remove K&R cruft.
38007         A few of these changes were first proposed by Derek Robert Price
38008         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
38009
38010         * lib/addext.c: Include <string.h> unconditionally.
38011         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
38012         Don't declare getenv or malloc.
38013
38014         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
38015         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
38016         (NULL): Remove.
38017         (find_stack_direction, alloca): Use prototypes.
38018
38019         * lib/atexit.c (atexit): Define using a prototype.
38020
38021         * lib/basename.c, dirname.c, stripslash.c:
38022         Include <string.h> unconditionally.
38023
38024         * lib/bcopy.c: Include <stddef.h>.
38025         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
38026
38027         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
38028
38029         * lib/error.h (error, error_at_line, error_print_progname)
38030         [! (defined (__STDC__) && __STDC__)]: Remove decls.
38031         * lib/error.c: Include error.h first, to check interface.
38032         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
38033         (VA_START): Remove; all uses changeed to va_start.
38034         (exit, strerror): Remove decls.
38035         (error_print_progname): Prototype uncondionally.
38036         Don't include <errno.h>; no longer needed.
38037         (private_strerror): Remove.
38038         (error_tail): Always define.
38039         (error, error_at_line): Assume C89 or better; always use prototypes.
38040         * lib/fatal.c: Include "fatal.h" first, to test interface.
38041         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
38042         (VA_START): Remove; all uses changed to va_start.
38043         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
38044         this case.
38045         (exit): Remove decl.
38046         (fatal): Prototype unconditionally.  Assume va_start works.
38047         Abort at end, to pacify gcc.
38048
38049         * lib/euidaccess.c (main): Define with a prototype.
38050
38051         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
38052
38053         * lib/exitfail.c: Include <stdlib.h> unconditionally.
38054
38055         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
38056         prototypes.
38057         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
38058         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
38059         (getenv): Remove decl.
38060         (fnmatch): Define using a prototype.
38061         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
38062         (FCT): Define using a prototype.
38063
38064         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
38065
38066         * lib/gethostname.c: Include <stddef.h>.
38067         (gethostname): Define with prototype.  Length is size_t, not int.
38068
38069 2003-09-08  Paul Eggert  <eggert@twinsun.com>
38070
38071         Assume C89 or better; remove K&R cruft.
38072         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
38073         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
38074         string.h, getenv, malloc.
38075         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
38076         headers.
38077         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
38078         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
38079         do not check for strerror.
38080         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
38081         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
38082         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
38083         do not check for doprnt or vprintf.
38084         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
38085         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
38086
38087 2003-09-08  Paul Eggert  <eggert@twinsun.com>
38088
38089         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
38090         getversion.c should have been removed then, but was accidentally
38091         preserved.
38092
38093         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
38094         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
38095
38096 2003-09-08  Karl Berry  <karl@gnu.org>
38097
38098         * config/config.sub, config.guess, srclistvars.sh: update from savannah
38099                 config, forget about prep.
38100
38101         * config/depcomp, missing: update from automake.
38102
38103 2003-09-07  Paul Eggert  <eggert@twinsun.com>
38104
38105         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
38106         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
38107
38108 2003-09-07  Paul Eggert  <eggert@twinsun.com>
38109
38110         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
38111         copy_tm_result.  Bug reported by Simon Josefsson in
38112         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
38113
38114 2003-09-06  Paul Eggert  <eggert@twinsun.com>
38115
38116         * m4/time_r.m4: New file.
38117         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
38118         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
38119         is. Check for timegm declaration.
38120         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
38121         Do not check for gmtime_r.
38122         Replace mktime if __mktime_internal does not exist and if mktime
38123         hasn't been replaced already.
38124
38125 2003-09-06  Paul Eggert  <eggert@twinsun.com>
38126
38127         * lib/time_r.c, lib/time_r.h: New files.
38128
38129         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
38130         __localtime_r.
38131         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
38132         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
38133
38134         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
38135         __gmtime_r.
38136         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
38137         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
38138         Include <time_r.h>.
38139
38140         * lib/timegm.c: Switch to glibc implementation, with the following
38141         changes:
38142         [defined HAVE_CONFIG_H]: Include <config.h>.
38143         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
38144         (__mktime_internal) [!defined _LIBC]: New decl.
38145         (__gmtime_r) [!defined _LIBC]: New macro and function.
38146         (timegm): Use a prototype, since gnulib assumes C89.
38147         Do not bother declaring tmp to be const, as it's not really usefu.
38148         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
38149         (timegm): Declare only if HAVE_DECL_TIMEGM.
38150
38151 2003-09-06  Paul Eggert  <eggert@twinsun.com>
38152
38153         * MODULES.html.sh (func_all_modules): Add time_r.
38154         * modules/time_r: New file.
38155         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
38156         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
38157
38158 2003-09-03  Paul Eggert  <eggert@twinsun.com>
38159
38160         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
38161         Bug reported by Lute Kamstra in
38162         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
38163
38164         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
38165         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
38166         course with correspondingly smaller numbers for tomorrow and
38167         yesterday.  From Tadayoshi Funaba.  Originally installed into
38168         sh-utils on 1999-08-07, but the patch got lost (I guess during the
38169         coreutils merge?).
38170
38171 2003-08-31  Simon Josefsson  <jas@extundo.com>
38172
38173         * modules/timegm: New file.
38174         * MODULES.html.sh (func_all_modules): Add timegm.
38175
38176 2003-08-31  Simon Josefsson  <jas@extundo.com>
38177
38178         * m4/timegm.m4: New file.
38179
38180 2003-08-31  Simon Josefsson  <jas@extundo.com>
38181
38182         * lib/timegm.h: New file.
38183         * lib/timegm.c: New file.  Based on
38184         wget-1.8.2/src/http.c:mktime_from_utc.
38185
38186 2003-08-31  Karl Berry  <karl@gnu.org>
38187
38188         * lib/argp.h: update from libc.
38189
38190 2003-08-28  Bruno Haible  <bruno@clisp.org>
38191
38192         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
38193         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
38194         followed by '#define fnmatch fnmatch_posix' gives an error.
38195
38196 2003-08-28  Bruno Haible  <bruno@clisp.org>
38197
38198         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
38199         warning on QNX, which defines O_BINARY to 000000.
38200
38201 2003-08-27  Jim Meyering  <jim@meyering.net>
38202
38203         * m4/mkstemp.m4: Require that the system mkstemp be able to create
38204         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
38205         would fail after 32.  Reported by Danny Levinson.  Details here:
38206         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
38207
38208 2003-08-24  Bruno Haible  <bruno@clisp.org>
38209
38210         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
38211         MSVC7 <stdio.h> is included later.
38212
38213 2003-08-22  Simon Josefsson  <jas@extundo.com>
38214
38215         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
38216
38217 2003-08-20  Karl Berry  <karl@gnu.org>
38218
38219         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
38220
38221 2003-08-20  Bruno Haible  <bruno@clisp.org>
38222
38223         * modules/progname: New file.
38224         * MODULES.html.sh (func_all_modules): Add progname.
38225
38226 2003-08-20  Bruno Haible  <bruno@clisp.org>
38227
38228         * lib/progname.h: New file, from GNU gettext.
38229         * lib/progname.c: New file, from GNU gettext.
38230         * lib/progreloc.c: New file, from GNU gettext.
38231
38232 2003-08-19  Jim Meyering  <jim@meyering.net>
38233
38234         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
38235         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
38236
38237 2003-08-19  Bruno Haible  <bruno@clisp.org>
38238
38239         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
38240         more.
38241
38242 2003-08-19  Bruno Haible  <bruno@clisp.org>
38243
38244         * lib/xstrdup.c: Assume <string.h> exists.
38245
38246 2003-08-18  Paul Eggert  <eggert@twinsun.com>
38247
38248         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
38249         in makefile rules.
38250
38251 2003-08-18  Jim Meyering  <jim@meyering.net>
38252
38253         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
38254         * m4/lib-ld.m4: Likewise.
38255
38256 2003-08-18  Jim Meyering  <jim@meyering.net>
38257
38258         * lib/setenv.h: Indent nested cpp directive.
38259         * lib/vasnprintf.c: Remove trailing blanks.
38260
38261 2003-08-17  Simon Josefsson  <jas@extundo.com>
38262
38263         * modules/xstrndup: New file.
38264         * MODULES.html.sh (func_all_modules): Add xstrndup.
38265
38266 2003-08-17  Simon Josefsson  <jas@extundo.com>
38267
38268         * modules/argp: Fix autoconf macro name. Add more dependencies.
38269
38270 2003-08-17  Simon Josefsson  <jas@extundo.com>
38271
38272         * m4/xstrndup.m4: New file.
38273
38274 2003-08-17  Simon Josefsson  <jas@extundo.com>
38275
38276         * m4/argp.m4: New file.
38277
38278 2003-08-17  Simon Josefsson  <jas@extundo.com>
38279             Bruno Haible  <bruno@clisp.org>
38280
38281         * lib/xstrndup.h: New file.
38282         * lib/xstrndup.c: New file.
38283
38284 2003-08-17  Bruno Haible  <bruno@clisp.org>
38285
38286         * modules/strndup (Files, Include): Add lib/strndup.h.
38287
38288 2003-08-17  Bruno Haible  <bruno@clisp.org>
38289
38290         * modules/euidaccess (Files): Add lib/euidaccess.h.
38291
38292 2003-08-17  Bruno Haible  <bruno@clisp.org>
38293
38294         * lib/strndup.h: New file.
38295
38296 2003-08-17  Bruno Haible  <bruno@clisp.org>
38297
38298         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
38299         like AC_GNU_SOURCE.
38300         * modules/extensions (configure.ac): Comment out the invocation of
38301         gl_USE_SYSTEM_EXTENSIONS.
38302
38303 2003-08-16  Paul Eggert  <eggert@twinsun.com>
38304
38305         Merges from coreutils, etc.
38306         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
38307         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
38308         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
38309         fixing a typo.
38310         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
38311         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
38312
38313 2003-08-16  Paul Eggert  <eggert@twinsun.com>
38314
38315         Document merge from coreutils.
38316         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
38317         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
38318         * modules/utime: Add m4/utimes-null.m4.
38319
38320 2003-08-16  Paul Eggert  <eggert@twinsun.com>
38321
38322         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
38323         space, undoing this 2003-08-12 change:
38324         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
38325
38326 2003-08-16  Paul Eggert  <eggert@twinsun.com>
38327
38328         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
38329         strtoul.c from libc, undoing this 2003-08-12 change:
38330         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
38331
38332 2003-08-16  Jim Meyering  <jim@meyering.net>
38333
38334         Merges from coreutils.
38335         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
38336         prefix.  Adjust cache variables similarly.  Create 500 rather than
38337         just 300 files, to exercise bug on Darwin6.5, too.
38338         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
38339         $missing_dir.
38340         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
38341         AM_SYS_POSIX_TERMIOS.
38342         Reported by mkc@mathdogs.com.
38343         Also change use of $am_cv_sys_posix_termios
38344         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
38345         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
38346         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
38347         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
38348         in /proc/mounts until it finds one with matching device number.  This
38349         is unnecessary when the FILE argument *is* a mount point.  No stat call
38350         is necessary in that case.  So, disable the statvfs-testing code on
38351         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
38352         as RedHat bug# 84846.
38353         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
38354         to 1MB, so as not to render systems with no stack size limit (e.g.,
38355         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
38356         Include <unistd.h>.  On some systems,
38357         it is required for the definition of _SC_PAGESIZE.
38358
38359 2003-08-16  Jim Meyering  <jim@meyering.net>
38360
38361         Merge from coreutils.
38362         * lib/xstrtoimax.c: #else #if -> #elif.
38363         * lib/xstrtoumax.c: Likewise.
38364
38365 2003-08-16  Jim Meyering  <jim@meyering.net>
38366
38367         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
38368         * m4/utimes.m4: Removed.
38369         * m4/utimes-null.m4: Renamed from utimes.m4.
38370
38371         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
38372         to 1MB, so as not to render systems with no stack size limit (e.g.,
38373         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
38374         Include <unistd.h>.  On some systems,
38375         it is required for the definition of _SC_PAGESIZE.
38376
38377 2003-08-16  Jim Meyering  <jim@meyering.net>
38378         and Paul Eggert  <eggert@cs.ucla.edu>
38379
38380         Merges from coreutils, etc.
38381
38382         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
38383         using the latest version from cvs.  This avoids problems with #line
38384         directives using a vendor (Sun) compiler.
38385         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
38386         Don't set GETGROUPS_LIB here; now it's
38387         done via getgroups.m4's wrapper function.
38388         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
38389         rather than just in sh-util/configure.in, so that the
38390         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
38391         same.
38392         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
38393         AC_FUNC_GETLOADAVG where to find getloadavg.c.
38394         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
38395         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
38396         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
38397         Remove code that is now done by the newly-required macros.
38398         Append $(EXEEXT) to DF_PROG.
38399         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
38400         Do not invoke or require the following here,
38401         since prereq.m4 or some gnulib .m4 now does this for us:
38402         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
38403         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
38404         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
38405         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
38406         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
38407         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
38408         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
38409         AC_FUNC_OBSTACK.
38410         Do not replace the following functions, as this is now the job
38411         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
38412         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
38413         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
38414         atexit getpass, strdup, getpagesize.
38415         Replace 'raise'.
38416         Do not check for the following functions, as this is now the job
38417         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
38418         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
38419         setregid.
38420         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
38421         Check for sys/sysctl.h.
38422         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
38423         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
38424         of checking for ssize_t ourselves.
38425
38426         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
38427         Require every macro that gnulib/modules/* suggests for us.
38428         (jm_PREREQ_ADDEXT): New macro.
38429         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
38430         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
38431
38432         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
38433         (gl_PHYSMEM): Use it.
38434         Also check for `table' function.
38435         Check for new headers and functions.
38436         Add check for sys/sysmp.h.
38437         With suggestions from Kaveh Ghazi.
38438         Ignore headers that are present but cannot be compiled.  This
38439         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
38440         C 5.4.
38441
38442 2003-08-15  Paul Eggert  <eggert@twinsun.com>
38443
38444         Document merge from coreutils.
38445         * modules/userspec: Depend on posixver.
38446         * modules/strftime: Depend on tzset.
38447
38448 2003-08-15  Paul Eggert  <eggert@twinsun.com>
38449
38450         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
38451         rather than tab, after '#' in shell-script copyright notices.
38452         Suggested by Bruno Haible.
38453
38454 2003-08-15  Paul Eggert  <eggert@twinsun.com>
38455
38456         * config/srclist-update: Use three spaces, rather than tab, after '#'
38457         in shell-script copyright notices.  Suggested by Bruno Haible.
38458         Remove unnecessary parenthesization in regular expression.
38459
38460 2003-08-15  Jim Meyering  <jim@meyering.net>
38461
38462         Merge from coreutils.
38463         * lib/xgethostname.c: Include <stdlib.h>.
38464         (xghostname): Don't exit for anything other than memory-related
38465         failure; just return NULL.
38466         * lib/userspec.c: Include "posixver.h".
38467         (parse_user_spec): Accept `.' as a separator only
38468         in pre-POSIX-200112 mode.
38469         * lib/strtoimax.c: Use #elif rather than #else #if.
38470         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
38471         Remove function, now that we can rely on a working tzset function.
38472         [!_LIBC]: Ensure that the required autoconf test has been run.
38473         [!defined _NL_CURRENT && HAVE_STRFTIME]:
38474         Use underlying_strftime for %r.
38475         * lib/sha.c: Merge in some clean-up and optimization changes from
38476         glibc.
38477         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
38478         Ensure that it is a multiple of 64.
38479         Rearrange loop exit tests so as to avoid performing an
38480         additional fread after encountering an error or EOF.
38481         * lib/realloc.c: Update copyright date.
38482
38483 2003-08-15  Jim Meyering  <jim@meyering.net>
38484         and Paul Eggert  <eggert@twinsun.com>
38485
38486         Merge from coreutils.
38487         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
38488         member but strut utmpx does not.  Needed for AIX 4.3.3.
38489         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
38490
38491 2003-08-15  Jim Meyering  <jim@meyering.net>
38492         and Paul Eggert  <eggert@cs.ucla.edu>
38493
38494         Merges from coreutils, etc.
38495         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
38496         Require gl_FUNC_TZSET_CLOBBER.
38497         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
38498         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
38499         members.
38500
38501 2003-08-14  Paul Eggert  <eggert@twinsun.com>
38502
38503         Help the merge from coreutils.
38504         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
38505         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
38506         * m4/tzset.m4: Use it too.
38507
38508 2003-08-14  Paul Eggert  <eggert@twinsun.com>
38509
38510         * modules/tzset: New file.
38511
38512 2003-08-14  Jim Meyering  <jim@meyering.net>
38513
38514         Merges from coreutils.
38515         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
38516         variable names, rather than @FNMATCH_H@.
38517         * modules/alloca: Likewise for $(ALLOCA_H).
38518
38519         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
38520         the three copies of the literal target, `fnmatch.h'.
38521         * modules/alloca (alloca.h): Likewise.
38522
38523 2003-08-14  Jim Meyering  <jim@meyering.net>
38524
38525         Merge from coreutils.
38526         * m4/tzset.m4: New file.
38527         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
38528         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
38529         otherwise, AIX 5.1 systems would end up using the latter.
38530         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
38531         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
38532         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
38533         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
38534
38535 2003-08-14  Jim Meyering  <jim@meyering.net>
38536
38537         Merge from coreutils.
38538         * lib/obstack.h: Whitespace changes.
38539         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
38540         and xcalloc return values.
38541         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
38542         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
38543         hang on OSF/1 5.1 for DIR on both local and remote file systems.
38544         Reported by (and fix confirmed by) Nelson H. F. Beebe.
38545         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
38546         error from mntctl.
38547         Use mntctl's return value to drive the entry-processing loop, since
38548         we can't rely on the value of the vmt_length member in the last
38549         entry.  On some systems doing so could result in exhausting
38550         virtual memory.  Based in part on a patch from Mike Jetzer.
38551
38552 2003-08-14  Jim Meyering  <jim@meyering.net>
38553         and Paul Eggert  <eggert@twinsun.com>
38554
38555         Merges from coreutils, plus other fixes.
38556         * lib/physmem.c: Merge in portability changes from gcc/libiberty
38557         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
38558         for credits and details.  Thanks to Kaveh Ghazi for helping
38559         to keep these files in sync.
38560         (ARRAY_SIZE): Define it.
38561         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
38562         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
38563         (memcasecmp): Don't assume size_t fits in unsigned int.
38564         Remove casts and duplicate code.
38565         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
38566         (memcpy): Remove definition.
38567         Merge in some clean-up and optimization changes from glibc.
38568         [BLOCKSIZE]: Move definition to top of file.
38569         Ensure that it is a multiple of 64.
38570         Rearrange loop exit tests so as to avoid performing an
38571         additional fread after encountering an error or EOF.
38572         * lib/md5.h (md5_uintptr): Define.
38573         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
38574         return to the initial working directory.  Preserve errno
38575         for caller.
38576         * lib/idcache.c: Include "xalloc.h".
38577         (xmalloc, xrealloc): Remove decls.
38578         (getuser): Remove casts no longer required in C89.
38579         * lib/human.c: Include stdio.h, for sprintf.
38580         * lib/group-member.c: Include "xalloc.h".
38581         (xmalloc, xrealloc): Remove decls.
38582         (get_group_info): Remove casts no longer required in C89.
38583         * lib/getusershell.c (readname): Remove casts no longer required in
38584         C89.
38585         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
38586         * lib/getline.c: Whitespace fix, from coreutils.
38587
38588 2003-08-13  Paul Eggert  <eggert@twinsun.com>
38589
38590         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
38591         Check for isascii.
38592
38593         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
38594         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
38595         Undo previous (whitespace-only) change.
38596
38597 2003-08-13  Paul Eggert  <eggert@twinsun.com>
38598
38599         * lib/exclude.c: Include <ctype.h>
38600         (IN_CTYPE_DOMAIN): New macro.
38601         (is_space): New fn.
38602         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
38603         and empty lines.
38604
38605         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
38606         Undo previous (whitespace-only) change.
38607
38608 2003-08-13  Paul Eggert  <eggert@twinsun.com>
38609
38610         * config/srclist-update: Change update back to the old behavior,
38611         leaving whitespace alone.  Use one 'sed' command rather than a
38612         pipeline.
38613         (fixlicense): Now a variable, not a function.
38614         (remove_trailing_blanks): Remove.
38615         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
38616         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
38617         Undo previous (whitespace-only) change.
38618
38619 2003-08-12  Paul Eggert  <eggert@twinsun.com>
38620
38621         Merge from coreutils.
38622         * modules/euidaccess: Add lib_SOURCES, include for new
38623         file euidaccess.h
38624
38625 2003-08-12  Paul Eggert  <eggert@twinsun.com>
38626
38627         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
38628         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
38629         Normalize leading white space and remove trailing white space.
38630
38631         Merge from coreutils
38632         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
38633
38634         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
38635         0.12.1.  These files are now being upgraded automatically by
38636         ../config/srclist-update.
38637
38638 2003-08-12  Paul Eggert  <eggert@twinsun.com>
38639
38640         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
38641         Normalize leading white space and remove trailing white space.
38642         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
38643         notice, as per ../config/srclist-update.
38644
38645         Merge from coreutils.
38646         * lib/euidaccess.h: New file.
38647         * lib/euidaccess.c: Include it.
38648         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
38649         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
38650         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
38651
38652 2003-08-12  Paul Eggert  <eggert@twinsun.com>
38653
38654         * config/srclist-update: Add copyright notice.
38655         (remove_id_lines, remove_trailing_blanks): New constants.
38656         (fixfile): Use them to normalize spacing a bit in copied files.
38657         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
38658         Normalize leading white space and remove trailing white space.
38659
38660         * config/texinfo.tex: Sync with texinfo.
38661
38662         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
38663         strtoul.c from libc, to merge coreutils whitespace changes.
38664
38665         * config/srclist.txt: Get the following m4 files from gettext:
38666         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
38667         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
38668         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
38669         wint_t.m4.
38670
38671 2003-08-12  Karl Berry  <karl@gnu.org>
38672
38673         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
38674         been made.
38675
38676 2003-08-11  Paul Eggert  <eggert@twinsun.com>
38677
38678         * modules/gnu-source, m4/gnu-source.m4:
38679         Remove; we're assuming Autoconf 2.54 or later now.
38680         Suggested by Bruno Haible.
38681         * MODULES.html.sh (func_all_modules): Remove gnu-source.
38682
38683 2003-08-11  Bruno Haible  <bruno@clisp.org>
38684
38685         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
38686
38687 2003-08-11  Bruno Haible  <bruno@clisp.org>
38688
38689         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
38690         (vasnprintf): Use it instead of wcslen.
38691
38692 2003-08-11  Bruno Haible  <bruno@clisp.org>
38693
38694         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
38695         value to ensure that _Bool promotes to int. Use #define for _Bool when
38696         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
38697
38698 2003-08-10  Karl Berry  <karl@gnu.org>
38699
38700         * lib/regex.h: update from libc (whitespace fix).
38701
38702 2003-08-09  Paul Eggert  <eggert@twinsun.com>
38703
38704         Merge some files from coreutils.  These changes were
38705         originally made by Jim Meyering.
38706         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
38707         many older Unixes require this.
38708         * lib/alloca.c (alloca): Remove cast to argument of free;
38709         no longer needed in C89.
38710         * lib/alloca_.h, regex.h: Fix white space to match
38711         what GNU indent does.
38712
38713 2003-08-09  Paul Eggert  <eggert@twinsun.com>
38714
38715         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
38716         apparently Emacs's Unicode mode got confused before my 2003-08-05
38717         checkin.
38718
38719 2003-08-08  Paul Eggert  <eggert@twinsun.com>
38720
38721         * m4/extensions.m4: New file.
38722         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
38723         Require gl_USE_SYSTEM_EXTENSIONS.
38724         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
38725         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
38726
38727 2003-08-08  Paul Eggert  <eggert@twinsun.com>
38728
38729         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
38730         * modules/extensions, modules/gnu-source: New files.
38731         * modules/timespec, modules/unlocked-io: Depend on extensions.
38732
38733 2003-08-07  Paul Eggert  <eggert@twinsun.com>
38734
38735         * modules/restrict: New file.
38736         * MODULES.html.sh (func_all_modules): Add restrict.
38737         * modules/regex: Depend on restrict.
38738
38739 2003-08-07  Paul Eggert  <eggert@twinsun.com>
38740
38741         * m4/restrict.m4: New file.
38742         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
38743
38744 2003-08-07  Bruno Haible  <bruno@clisp.org>
38745
38746         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
38747         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
38748
38749 2003-08-07  Bruno Haible  <bruno@clisp.org>
38750
38751         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
38752         makes the module 'getndelim2' compatible with the module 'getline'.
38753
38754 2003-08-05  Paul Eggert  <eggert@twinsun.com>
38755
38756         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
38757         byte with "\201" to avoid glitches when editing that source file
38758         with multi-gnome-terminal.
38759
38760 2003-08-05  Paul Eggert  <eggert@twinsun.com>
38761
38762         * lib/bumpalloc.h: Remove.
38763
38764 2003-08-05  Paul Eggert  <eggert@twinsun.com>
38765
38766         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
38767         * modules/bumpalloc: Remove.
38768
38769 2003-08-04  Paul Eggert  <eggert@twinsun.com>
38770
38771         * lib/getloadavg.c: Change copyright notice and spacing to conform to
38772         GNU coding style.
38773
38774         Merge from coreutils.
38775         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
38776         1. From glibc.
38777         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
38778         from Karl Berry, implemented by Jim Meyering.
38779         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
38780         from Dmitry V. Levin.
38781         Remove anachronistic cast of xrealloc.
38782         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
38783         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
38784         type. Otherwise, it wouldn't compile with at least /bin/cc on
38785         ymp-cray-unicos9.0.2.X.
38786         Combine two mostly-identical uses of alloca into one.
38787         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
38788
38789 2003-08-04  Dave Love  <d.love@dl.ac.uk>
38790
38791         [From Emacs.]
38792
38793         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
38794         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
38795         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
38796         obsolete NLIST_NAME_UNION.
38797         [__GNU__]: Undef BSD and FSCALE.
38798         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
38799
38800 2003-08-03  Paul Eggert  <eggert@twinsun.com>
38801
38802         * lib/stdbool_.h (_Bool): Make it signed char, instead of
38803         an enum type, so that it's guaranteed to promote to int.  See:
38804         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
38805
38806 2003-08-03  Karl Berry  <karl@gnu.org>
38807
38808         * config/depcomp: update from automake.
38809
38810 2003-07-31  Paul Eggert  <eggert@twinsun.com>
38811
38812         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
38813         (strerror): Don't assume that a printable int fits in 14 bytes.
38814
38815 2003-07-31  Bruno Haible  <bruno@clisp.org>
38816
38817         * modules/getpass-gnu: New file.
38818         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
38819
38820 2003-07-31  Bruno Haible  <bruno@clisp.org>
38821
38822         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
38823
38824 2003-07-24  Karl Berry  <karl@gnu.org>
38825
38826         * config/missing: update from automake.
38827
38828 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
38829             Bruno Haible  <bruno@clisp.org>
38830
38831         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
38832         * lib/getline.c (getline, getdelim): Likewise.
38833         Remove _GNU_SOURCE define; now it's defined in config.h through
38834         m4/getline.m4.
38835
38836 2003-07-23  Karl Berry  <karl@gnu.org>
38837
38838         * config/config.sub: update from prep.
38839
38840 2003-07-22  Paul Eggert  <eggert@twinsun.com>
38841
38842         * modules/xalloc (Depends-on): Add exitfail.
38843         * modules/xmemcoll: Likewise.
38844
38845 2003-07-22  Paul Eggert  <eggert@twinsun.com>
38846
38847         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
38848         over-parenthesization in macros.
38849
38850         Sync with coreutils.
38851
38852         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
38853         required by C99.
38854
38855         Use `exit_failure' for xalloc and xmemcoll instead of their own
38856         private exit-failure variables.
38857         * lib/xalloc.h (xalloc_exit_failure): Remove.
38858         * lib/xmalloc.c: Likewise.  Include exitfail.h.
38859         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
38860         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
38861         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
38862         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
38863
38864 2003-07-20  Jim Meyering  <jim@meyering.net>
38865
38866         * modules/closeout (Depends-on): Add exitfail.
38867         Suggestion from Bruno Haible.
38868
38869 2003-07-19  Karl Berry  <karl@gnu.org>
38870
38871         * config/config.sub: update from prep.
38872
38873 2003-07-18  Paul Eggert  <eggert@twinsun.com>
38874
38875         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
38876         Remove.
38877         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
38878         to test that it can stand by itself.  Include "exitfail.h".
38879         Clients should set exit_failure instead.
38880         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
38881
38882 2003-07-18  Bruno Haible  <bruno@clisp.org>
38883
38884         * modules/getndelim2: New file.
38885         * modules/getline: Share files with module getndelim2.
38886         * modules/getnline: Depend on getndelim2 instead of sharing files with
38887         it. Add getnline.c to lib_SOURCES.
38888         * MODULES.html.sh (func_all_modules): Add getndelim2.
38889
38890 2003-07-18  Bruno Haible  <bruno@clisp.org>
38891
38892         * m4/getndelim2.m4: New file.
38893         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
38894         invoke gl_PREREQ_GETNDELIM2.
38895         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
38896         gl_PREREQ_GETNDELIM2.
38897         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
38898         gl_GETNDELIM2.
38899
38900 2003-07-18  Bruno Haible  <bruno@clisp.org>
38901
38902         * lib/getndelim2.h: New file.
38903         * lib/getndelim2.c: Make into a module of its own. Include config.h,
38904         getndelim2.h.
38905         (getndelim2): Make non-static. Change return type to ssize_t.
38906         * lib/getline.h: Change argument names.
38907         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
38908         * lib/getnline.c: Include getndelim2.h.
38909
38910 2003-07-18  Andreas Schwab  <schwab@suse.de>
38911
38912         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
38913
38914 2003-07-17  Karl Berry  <karl@gnu.org>
38915
38916         * config/config.sub: update from prep.
38917
38918 2003-07-17  Bruno Haible  <bruno@clisp.org>
38919
38920         * modules/getnline: New file.
38921         * modules/getline: Add lib/getndelim2.c to source file list.
38922         * MODULES.html.sh (func_all_modules): Add getnline.
38923
38924 2003-07-17  Bruno Haible  <bruno@clisp.org>
38925
38926         * m4/getnline.m4: New file.
38927
38928 2003-07-17  Bruno Haible  <bruno@clisp.org>
38929
38930         * m4/Makefile.am.in: Remove file.
38931         * m4/Makefile.am: Remove file.
38932         * m4/Makefile.in: Remove file.
38933
38934 2003-07-17  Bruno Haible  <bruno@clisp.org>
38935
38936         * lib/getnline.h: New file.
38937         * lib/getnline.c: New file.
38938         * lib/getndelim2.c: New file, extracted from getline.c.
38939         (getndelim2): Renamed from getdelim2, with added nmax argument.
38940         * lib/getline.c: Include getndelim2.c.
38941         (getdelim2): Moved out to getndelim2.c.
38942         (getline, getdelim): Update.
38943
38944 2003-07-17  Bruno Haible  <bruno@clisp.org>
38945
38946         * lib/Makefile.am: Remove file.
38947         * lib/Makefile.in: Remove file.
38948
38949 2003-07-17  Bruno Haible  <bruno@clisp.org>
38950
38951         * configure.in: Remove file.
38952         * Makefile.in: Remove file.
38953
38954 2003-07-17  Bruno Haible  <bruno@clisp.org>
38955
38956         * MODULES.html.sh: Put the </BODY> right before </HTML>.
38957
38958 2003-07-16  Karl Berry  <karl@gnu.org>
38959
38960         * config/srclist-update: was running fixlicense twice, which caused
38961                 texinfo.tex to be nullified for some reason.  Simplify,
38962                 $gplsrc is no longer needed as far as I can see?
38963
38964 2003-07-16  Jim Meyering  <jim@meyering.net>
38965
38966         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
38967
38968 2003-07-15  Paul Eggert  <eggert@twinsun.com>
38969
38970         * config/srclist.txt: Get the following files from gettext-runtime/intl
38971         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
38972         ref-del.sin.  From Bruno Haible.
38973         * config/srclist-update (fixfile): Change grep pattern again, since the
38974         previous fix didn't work (there was another trailing $).  Use
38975         '[$]' to escape the $s.
38976
38977 2003-07-15  Karl Berry  <karl@gnu.org>
38978
38979         * lib/vasnprintf.c: update from gettext.
38980
38981 2003-07-15  Karl Berry  <karl@gnu.org>
38982
38983         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
38984         gets expanded when surrounded by '$'.
38985
38986 2003-07-15  Jim Meyering  <jim@meyering.net>
38987
38988         * modules/save-cwd: Don't depend on error.  From Derek Price.
38989
38990 2003-07-15  Jim Meyering  <jim@meyering.net>
38991
38992         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
38993
38994 2003-07-14  Simon Josefsson  <jas@extundo.com>
38995
38996         * modules/mempcpy: New file.
38997         * MODULES.html.sh (func_all_modules): Add mempcpy.
38998
38999 2003-07-14  Simon Josefsson  <jas@extundo.com>
39000
39001         * m4/mempcpy.m4: New file.
39002
39003 2003-07-14  Simon Josefsson  <jas@extundo.com>
39004
39005         * lib/mempcpy.h: New file.
39006         * lib/mempcpy.c: New file.
39007
39008 2003-07-14  Paul Eggert  <eggert@twinsun.com>
39009
39010         * modules/getdate, modules/posixtm: Depend on mktime.
39011
39012 2003-07-14  Paul Eggert  <eggert@twinsun.com>
39013
39014         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
39015         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
39016         unicodeio.c, unicodeio.h, unlocked-io.h:
39017         Switch from LGPL to GPL.
39018
39019 2003-07-14  Paul Eggert  <eggert@twinsun.com>
39020
39021         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
39022         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
39023         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
39024         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
39025         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
39026         updated automatically by ../config/srclist-update.  This changes
39027         their license from LPGL to GPL.
39028
39029 2003-07-14  Paul Eggert  <eggert@twinsun.com>
39030
39031         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
39032         assumed to refer to the root of the most recent stable gettext version.
39033         * config/srclistvars.sh: Add defaults for eggert.
39034         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
39035         Match "This program" as well as "The program".  This is needed
39036         for gettext.
39037
39038 2003-07-14  Jim Meyering  <jim@meyering.net>
39039
39040         Don't emit diagnostics.  Let callers do that.
39041         * lib/save-cwd.c: Don't include "error.h".
39042         (save_cwd): Don't call error.  Ensure that errno is valid
39043         when returning nonzero.
39044
39045         * lib/save-cwd.h (restore_cwd): Update prototype.
39046         * lib/save-cwd.c (restore_cwd): Remove two parameters.
39047         Simplify.  Don't call error upon failure.  Let callers do that.
39048         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
39049         when auditing is enabled.  But don't bother updating the #if.
39050
39051 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
39052
39053         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
39054         it breaks C++ compilation.
39055         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
39056
39057 2003-07-10  Simon Josefsson  <jas@extundo.com>
39058
39059         * modules/strchrnul (Makefile.am): Add strchrnul.h.
39060
39061 2003-07-10  Jim Meyering  <jim@meyering.net>
39062
39063         * m4/clock_time.m4: Remove trailing blank.
39064         * m4/intmax_t.m4: Likewise.
39065
39066 2003-07-10  Jim Meyering  <jim@meyering.net>
39067
39068         * lib/vasnprintf.c: Remove trailing blanks.
39069         Make cpp indentation consistent.
39070
39071 2003-07-09  Paul Eggert  <eggert@twinsun.com>
39072
39073         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
39074         posixver.c, strftime.c, strnlen.c, strverscmp.c:
39075         Switch from LGPL to GPL.
39076
39077 2003-07-09  Paul Eggert  <eggert@twinsun.com>
39078
39079         * config/srclist.txt: Sort sublists.  Add
39080         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
39081         that differ from gnulib for one reason or another; we'd like this list
39082         to be smaller but for now let's document what we have.
39083
39084 2003-07-08  Paul Eggert  <eggert@twinsun.com>
39085
39086         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
39087         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
39088         and sweeter "eval x=$x".
39089         * config/srclist.txt: Get lib/argp* from glibc.
39090
39091 2003-07-07  Paul Eggert  <eggert@twinsun.com>
39092
39093         * lib/mktime.c: Fix some boundary cases and remove need for floating
39094         point.
39095
39096         Issue a compile-time diagnostic if time_t is floating point, or if
39097         two's complement arithmetic is not in effect, or if arithmetic
39098         right shift does not propagate the sign.  These assumptions were
39099         all in the original code but they weren't checked.
39100
39101         (TIME_T_MIDPOINT, verify): New macros.
39102         (__isleap): Remove; it has integer overflow problems.
39103         (leapyear): New function, without those problems.
39104         (ydhms_tm_diff): Remove; splitting into two parts.
39105         (ydhms_diff): New function, containing the arithmetic part of
39106         the old ydhms_tm_diff function.  Issue a compile-time
39107         diagnostic if we are not using C99 integer division.
39108         Avoid casts when possible.
39109         (guess_time_tm): New function, containing the checking part of
39110         the old ydhms_tm_diff function.  Return the new value, rather than
39111         the difference between it and the old.  Accept a new argument T
39112         so that *T specifies the old value.  Check for overflow in the result.
39113
39114         (__mktime_internal): Use a time_t offset, not a long int offset.
39115         This undoes the 2003-06-04 change, which is no longer needed now
39116         that we have better overflow checking.
39117         (localtime_offset): Likewise.
39118
39119         (__mktime_internal): Avoid harmful overflow on hosts where time_t
39120         and long are 64-bit but int is only 32-bit.
39121         (ydhms_diff): Use long int to store year1 and yday1.
39122         Issue a compile-time diagnostic if long int is not wide enough.
39123
39124         (__mktime_internal): Use long int to store adjusted year and yday.
39125         Use plain C rather than preprocessor commands, if that doesn't
39126         affect efficiency.
39127         Check for overflow (and try to repair) after each probe
39128         rather than checking only at the very end.  This avoids some bugs
39129         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
39130         does not equal GMT offset at maximum time).
39131         Use integer to check for overflow rather than floating point; this
39132         is more portable to non-IEEE hosts, and is a tad faster.
39133         When we detect that we are oscillating between two values,
39134         don't check whether tm_isdst has the requested value, since
39135         we already know the answer.  When tm_isdst has the wrong value,
39136         use a different heuristic to find the right one, based on the
39137         extreme values actually observed in practice in tz2003a,
39138         rather than the (overly optimistic) "previous 3 calendar quarters".
39139
39140         (not_equal_tm, print_tm, check_result): Use "const T" rather than
39141         "T const" to accommodate glibc style.
39142         (check_result): Use less-confusing report format.  "long" -> "long int.
39143         (main): Likewise.
39144         Don't loop if the iteration overflows time_t.
39145         Allow a negative step in the iteration.
39146
39147 2003-07-06  Karl Berry  <karl@gnu.org>
39148
39149         * config/depcomp: update from automake.
39150         * config/config.sub: update from prep.
39151
39152 2003-07-03  Karl Berry  <karl@gnu.org>
39153
39154         * config/config.guess: update from prep.
39155
39156 2003-07-01  Paul Eggert  <eggert@twinsun.com>
39157
39158         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
39159         xreadlink.c now includes it unconditionally.
39160
39161 2003-07-01  Paul Eggert  <eggert@twinsun.com>
39162
39163         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
39164         having it depend on HAVE_SYS_TYPES_H.
39165
39166 2003-07-01  Bruno Haible  <bruno@clisp.org>
39167
39168         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
39169         <sys/types.h> should be sufficient.
39170         Reported by Paul Eggert.
39171
39172 2003-06-26  Karl Berry  <karl@gnu.org>
39173
39174         * config/depcomp: update from automake.
39175
39176 2003-06-26  Bruno Haible  <bruno@clisp.org>
39177
39178         * modules/human: Depend on module stdbool.
39179
39180 2003-06-25  Bruno Haible  <bruno@clisp.org>
39181
39182         * modules/readlink: New file.
39183         * modules/xreadlink: Depend on it.
39184         * MODULES.html.sh (func_all_modules): Add readlink.
39185
39186 2003-06-25  Bruno Haible  <bruno@clisp.org>
39187
39188         * m4/readlink.m4: New file.
39189
39190 2003-06-25  Bruno Haible  <bruno@clisp.org>
39191
39192         * lib/readlink.c: New file.
39193
39194 2003-06-22  Karl Berry  <karl@gnu.org>
39195
39196         * config/srclist.txt: update mkinstalldirs from automake.
39197         * config/mkinstalldirs: update.
39198
39199 2003-06-22  Bruno Haible  <bruno@clisp.org>
39200
39201         Portability to mingw32.
39202         * m4/ssize_t.m4: New file, from GNU gettext.
39203         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
39204         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
39205
39206 2003-06-22  Bruno Haible  <bruno@clisp.org>
39207
39208         * modules/safe-read: Add m4/ssize_t.m4.
39209         * modules/xreadlink: Add m4/ssize_t.m4.
39210
39211 2003-06-20  Bruno Haible  <bruno@clisp.org>
39212
39213         Assume C89, so PARAMS isn't needed.
39214         * lib/unicodeio.h (PARAMS): Remove.
39215         * lib/unicodeio.c: Don't use PARAMS.
39216
39217 2003-06-18  Karl Berry  <karl@gnu.org>
39218
39219         * config/config.{guess,sub}: update from prep.
39220
39221 2003-06-18  Jim Meyering  <jim@meyering.net>
39222
39223         Merge changes from coreutils.
39224         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
39225         Remove explicit declarations of xmalloc and realloc.
39226         Include xalloc.h.
39227         (read_utmp): Remove anachronistic cast of xmalloc.
39228
39229 2003-06-17  Paul Eggert  <eggert@twinsun.com>
39230
39231         Assume C89, so PARAMS isn't needed.
39232         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
39233         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
39234         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
39235         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
39236         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
39237         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
39238         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
39239         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
39240         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
39241         lib/xstrtod.h, lib/xstrtol.h: Likewise.
39242         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
39243         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
39244         no longer needed. Anyway, config.h should always be included before any
39245         other file.
39246
39247 2003-06-11  Simon Josefsson  <jas@extundo.com>
39248
39249         * modules/sysexits: New file.
39250         * MODULES.html.sh (func_all_modules): Add sysexits.
39251
39252 2003-06-11  Simon Josefsson  <jas@extundo.com>
39253
39254         * lib/sysexit_.h: New file.
39255
39256 2003-06-11  Derek Price  <derek@ximbiot.com>
39257
39258         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
39259         necessary.
39260
39261 2003-06-11  Bruno Haible  <bruno@clisp.org>
39262
39263         * m4/sysexits.m4: New file.
39264
39265 2003-06-10  Simon Josefsson  <jas@extundo.com>
39266
39267         * lib/argp.h: New file, from glibc.
39268         * lib/argp-ba.c: New file, from glibc.
39269         * lib/argp-eexst.c: New file, from glibc.
39270         * lib/argp-fmtstream.c: New file, from glibc.
39271         * lib/argp-fmtstream.h: New file, from glibc.
39272         * lib/argp-fs-xinl.c: New file, from glibc.
39273         * lib/argp-help.c: New file, from glibc.
39274         * lib/argp-namefrob.h: New file, from glibc.
39275         * lib/argp-parse.c: New file, from glibc.
39276         * lib/argp-pv.c: New file, from glibc.
39277         * lib/argp-pvh.c: New file, from glibc.
39278         * lib/argp-xinl.c: New file, from glibc.
39279
39280 2003-06-10  Simon Josefsson  <jas@extundo.com>
39281
39282         * modules/strchrnul: New file.
39283
39284 2003-06-10  Simon Josefsson  <jas@extundo.com>
39285
39286         * modules/argp: New file.
39287
39288 2003-06-10  Simon Josefsson  <jas@extundo.com>
39289
39290         * m4/strchrnul.m4: New file.
39291
39292 2003-06-10  Simon Josefsson  <jas@extundo.com>
39293
39294         * lib/strchrnul.h: New file.
39295         * lib/strchrnul.c: New file.
39296
39297 2003-06-10  Bruno Haible  <bruno@clisp.org>
39298
39299         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
39300
39301 2003-06-07  Karl Berry  <karl@gnu.org>
39302
39303         * config/config.{guess,sub}: update from prep.
39304
39305 2003-06-07  Jim Meyering  <jim@meyering.net>
39306
39307         * modules/strtod: Use $(...) notation, not @...@ for
39308         AC_REPLACE'd variables.
39309         * modules/localcharset: Likewise.
39310
39311 2003-06-07  Jim Meyering  <jim@meyering.net>
39312
39313         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
39314         in place of my name in the copyright comment.
39315         Remove definition and uses of __P.
39316
39317         From coreutils.
39318         * lib/stat.c: Don't declare xmalloc explicitly.
39319         Instead, include "xalloc.h".
39320         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
39321         xrealloc, and xcalloc return values.
39322         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
39323         Improve comment.
39324         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
39325
39326 2003-06-07  Bruno Haible  <bruno@clisp.org>
39327
39328         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
39329         avoid AC_CONFIG_LINKS.
39330         * modules/fnmatch (Makefile.am): Use explicit creation rule for
39331         fnmatch.h, to avoid AC_CONFIG_LINKS.
39332         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
39333
39334 2003-06-07  Bruno Haible  <bruno@clisp.org>
39335
39336         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
39337         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
39338         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
39339         directory.
39340         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
39341         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
39342         directory.
39343
39344 2003-06-06  Jim Meyering  <jim@meyering.net>
39345
39346         Merge from coreutils.
39347         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
39348         Consolidate declarations and initializations of *_base* locals.
39349
39350         Merge from coreutils.
39351         This avoids a core dump on systems without GNU putenv,
39352         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
39353         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
39354         (unsetenv): New static function, from GNU libc.
39355         (rpl_putenv): Use it.
39356
39357         * lib/modechange.c: Remove trailing blanks.
39358
39359         Merge from coreutils.
39360         * lib/fsusage.c: Remove declaration of statfs.
39361         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
39362
39363         * lib/posixtm.c: Include <stdbool.h> unconditionally.
39364
39365 2003-06-06  Jim Meyering  <jim@meyering.net>
39366
39367         * lib/stdbool_.h: Renamed from stdbool.h.in.
39368
39369 2003-06-06  Jim Meyering  <jim@meyering.net>
39370             Bruno Haible  <bruno@clisp.org>
39371
39372         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
39373         Adjust Makefile.am snippet not to redirect directly to target.
39374         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
39375
39376 2003-06-05  Paul Eggert  <eggert@twinsun.com>
39377
39378         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
39379         mismatch, look in future quarters as well as past.  This fixes a
39380         bug when processing fall-backwards gaps immediately after a long
39381         period of daylight-saving time.
39382
39383         * lib/mktime.c: Assume freestanding C89 or better.
39384         (HAVE_LIMITS_H): Remove.  Assume it's 1.
39385         (__P): Remove; not used.
39386         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
39387         (mktime, not_equal_tm, print_tm, check_result,
39388         main): Use prototypes.  Use const * where appropriate.
39389         (main): Fix typo in testing code that uncovered by above changes.
39390         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
39391
39392 2003-06-04  Paul Eggert  <eggert@twinsun.com>
39393
39394         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
39395         locale.h, localeconv.  This merges changes from coreutils.
39396
39397         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
39398         It can be removed after the next Autoconf is released.
39399         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
39400         needed.
39401
39402 2003-06-04  Paul Eggert  <eggert@twinsun.com>
39403
39404         * lib/mktime.c: Fix Debian bug 177940
39405         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
39406         (localtime_offset): Now long int, not time_t, because we want it
39407         to be guaranteed to be signed.  All uses changed.
39408         (__mktime_internal): If overflow would occur when adding offset,
39409         don't add it.
39410
39411         Merge 'human' changes from coreutils.  Rewrite to support
39412         locale-specific notations like thousands separators.
39413         * lib/human.c: Simplify authorship notice.
39414         Include human.h immediately after config.h.
39415         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
39416         <limits.h>: Do not include, since human.h does.
39417         (SIZE_MAX, UINTMAX_MAX): New macros.
39418         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
39419         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
39420         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
39421         (power_letter): Renamed from suffixes.
39422         (generate_suffix_backwards): Remove.
39423         (adjust_value): Now takes int style (because of human.h changes)
39424         and long double value (for greater precision on some platforms).
39425         (group_number): New function.
39426         (human_readable): Use it.  Use integer options, not enum.
39427         Put the options before the sizes in the arg list.
39428         Support all the new options.
39429         The old human_readable function has been removed;
39430         use inttostr.h instead.
39431         (human_readable, default_block_size, humblock):
39432         Use uintmax_t, not int, for block sizes.
39433         (human_readable_inexact, block_size_types): Remove.
39434         (block_size_opts): New constant.
39435         (human_options): Renamed from human_block_size, with new signature
39436         that allows block sizes up to UINTMAX_MAX.  All callers changed.
39437         * lib/human.h: Add copyright and authorship notice.
39438         Include <limits.h> and <stdbool.h> unconditionally.
39439         (PARAMS): Remove.  All uses removed.
39440         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
39441         (enum human_inexact_style): Remove tag; now a nameless enum.
39442         (human_floor, human_ceiling, human_round_to_even): Now have
39443         values 2, 0, 1 rather than -1, 1, 0.
39444         (human_group_digits, human_suppress_point_zero, human_autoscale,
39445         human_base_1024, human_SI, human_B): New constants.
39446         (human_readable_inexact, human_block_size): Remove.
39447         (human_readable): Size args are now uintmax_t, not int.
39448         (human_options): New decl.
39449
39450         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
39451         unnecessary now that we assume C89 or better.  This change
39452         imported from coreutils.
39453
39454         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
39455         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
39456         in the 2003-05-30 sync from glibc.
39457
39458         .h files should stand alone, but we shouldn't include <sys/types.h>
39459         if we can get away with just <stddef.h>.
39460
39461         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
39462         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
39463         rather than <sys/types.h>, as we merely need size_t.
39464         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
39465         to get size_t.
39466         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
39467         Include <stdio.h>, to get FILE.
39468         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
39469         memcasecmp.h has included <stddef.h> and all we need is size_t.
39470         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
39471         our interface, instead of including <sys/types.h>
39472
39473 2003-06-04  Paul Eggert  <eggert@twinsun.com>
39474
39475         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
39476         now, as glibc mktime is buggy on non-glibc systems.
39477
39478 2003-06-03  Karl Berry  <karl@gnu.org>
39479
39480         * config/config.sub: update from prep.
39481
39482 2003-06-02  Paul Eggert  <eggert@twinsun.com>
39483
39484         [from coreutils]
39485         Fix some minor time-related bugs with POSIX time arguments.
39486         Some valid time stamps were being rejected (notably -1, and
39487         time stamps before 1900 on 64-bit hosts).  And some invalid
39488         time stamps were being accepted, e.g. September 31.
39489
39490         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
39491         that we can return (time_t) -1 successfully.
39492         * lib/posixtm.c: Likewise.
39493         [HAVE_STDBOOL_H]: Include <stdbool.h>.
39494         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
39495         (t): Remove static var.
39496         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
39497         of static var.  All uses changed.
39498         (year): Do not reject years before 1900; they can occur with
39499         64-bit time_t.
39500         (posix_time_parse): Do not check for out-of-range components;
39501         that is now the caller's responsibility, since our checks were
39502         only approximations.
39503         (posixtime): Use mktime to check for out-of-range components,
39504         since it knows them exactly.
39505         If mktime returns (time_t) -1, check whether an error actually occurred
39506         by invoking localtime on -1.
39507         (main) [TEST_POSIXTIME]: Check for input data errors, and report
39508         posixtime failures better.
39509         Improve the test data (in comments only).
39510
39511 2003-06-02  Karl Berry  <karl@gnu.org>
39512
39513         * config/mkinstalldirs (version): new variable.
39514         (--version): new option.
39515         (usage): improve message.
39516
39517 2003-05-30  Karl Berry  <karl@gnu.org>
39518
39519         * lib/mktime.c: update from libc.
39520
39521 2003-05-30  Bruno Haible  <bruno@clisp.org>
39522
39523         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
39524         * config/config.rpath: Upgrade to gettext-0.12.1.
39525
39526 2003-05-30  Bruno Haible  <bruno@clisp.org>
39527
39528         * m4/gettext.m4: Upgrade to gettext-0.12.1.
39529         * m4/nls.m4: New file, from gettext-0.12.1.
39530         * m4/po.m4: New file, from gettext-0.12.1.
39531         * m4/progtest.m4: Upgrade to gettext-0.12.1.
39532
39533 2003-05-30  Bruno Haible  <bruno@clisp.org>
39534
39535         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
39536         * lib/localcharset.h: Likewise.
39537         * lib/localcharset.c: Likewise.
39538
39539 2003-05-29  Karl Berry  <karl@gnu.org>
39540
39541         * config/config.rpath: update from gettext.
39542
39543 2003-05-28  Paul Eggert  <eggert@twinsun.com>
39544
39545         Assume the headers required for C89 freestanding compilers.
39546         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
39547         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
39548         * m4/human.m4 (gl_HUMAN): Likewise.
39549         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
39550         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
39551         * m4/userspec.m4 (gl_USERSPEC): Likewise.
39552         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
39553         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
39554         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
39555
39556 2003-05-28  Paul Eggert  <eggert@twinsun.com>
39557
39558         Assume the headers required for C89 freestanding compilers.
39559         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
39560         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
39561         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
39562         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
39563         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
39564         define, since <limits.h> is guaranteed to do that.
39565         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
39566         * lib/exclude.c: Include <stdbool.h> unconditionally.
39567         * lib/tempname.c: Include <stddef.h> unconditionally.
39568         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
39569         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
39570         <stddef.h> does that.
39571         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
39572         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
39573         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
39574         needed.
39575         * lib/xstrtol.c: Likewise.
39576         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
39577         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
39578
39579         * lib/addext.c (addext): Use assignment rather than cast, to avoid
39580         warnings on some platforms.
39581
39582         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
39583         arbitrarily.
39584
39585 2003-05-26  Jim Meyering  <jim@meyering.net>
39586
39587         Merge in a change from coreutils:
39588         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
39589         that is guaranteed to be `no'.  Use `no_such_member' to indicate
39590         that condition, rather than `-1' which is slightly misleading.
39591         Change the name of the cache variable to have the gl_ prefix.
39592         Prompted by a patch from Richard Dawe for DJGPP.
39593
39594 2003-05-24  Karl Berry  <karl@gnu.org>
39595
39596         * config/config.guess: update from prep.
39597
39598 2003-05-22  Karl Berry  <karl@gnu.org>
39599
39600         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
39601
39602 2003-05-20  Karl Berry  <karl@gnu.org>
39603
39604         * config/config.guess: update from prep.
39605
39606 2003-05-18  Karl Berry  <karl@gnu.org>
39607
39608         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
39609         might actually be set by the user.
39610
39611         * config/depcomp, install-sh, mdate-sh: update from automake.
39612
39613 2003-05-17  Bruno Haible  <bruno@clisp.org>
39614
39615         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
39616         invalid expansion for AC_EGREP_CPP.
39617         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
39618         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
39619         Suggested by Akim Demaille <akim@epita.fr> in
39620         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
39621
39622 2003-05-12  Jim Meyering  <jim@meyering.net>
39623
39624         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
39625         the space-padded-by-default conversion specifiers, %e, %k, %l.
39626
39627 2003-05-12  Bruno Haible  <bruno@clisp.org>
39628
39629         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
39630         the string is longer than 4 KB.
39631
39632 2003-05-11  Karl Berry  <karl@gnu.org>
39633
39634         * config/config.{guess,sub}: update from prep.
39635
39636 2003-05-09  Bruno Haible  <bruno@clisp.org>
39637
39638         * modules/error: Add m4/strerror_r.m4 to file list.
39639
39640 2003-05-03  Bruno Haible  <bruno@clisp.org>
39641
39642         Upgrade to Unicode-4.0.
39643         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
39644         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
39645         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
39646         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
39647         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
39648         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
39649         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
39650         Change width of U+E0100..U+E01EF from 1 to 0.
39651
39652 2003-04-25  Jim Meyering  <jim@meyering.net>
39653
39654         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
39655         of type size_t, not int.
39656
39657 2003-04-25  Bruno Haible  <bruno@clisp.org>
39658
39659         * lib/copy-file.c: Include <stddef.h>, for size_t.
39660
39661 2003-04-21  Paul Eggert  <eggert@twinsun.com>
39662
39663         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
39664         code which expansion is under static control.  Patch imported from
39665         Akim Demaille's patch to Bison; see
39666         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
39667
39668 2003-04-14  Bruno Haible  <bruno@clisp.org>
39669
39670         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
39671
39672 2003-04-11  Jim Meyering  <jim@meyering.net>
39673
39674         Merge changes from Coreutils.
39675
39676         2003-03-22  Jim Meyering  <jim@meyering.net>
39677
39678         * lib/strftime.c (widen): Cast alloca return value to proper type.
39679
39680         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
39681
39682         From GNU libc.
39683         * lib/strftime.c (my_strftime): Handle very large width
39684         specifications for numeric values correctly.  Improve checks for
39685         overflow.
39686
39687         2003-01-19  Jim Meyering  <jim@meyering.net>
39688
39689         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
39690         definitions.
39691         (nl_get_alt_digit) [! defined my_strftime]: Define.
39692         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
39693         _nl_get_alt_digit and _nl_get_walt_digit.
39694
39695         * lib/strftime.c (my_strftime): Merge in locale-related changes from
39696         libc. These changes have no effect outside of _LIBC.
39697
39698 2003-04-10  Bruno Haible  <bruno@clisp.org>
39699
39700         * modules/findprog: New file.
39701         * MODULES.html.sh (func_all_modules): Add it.
39702
39703 2003-04-10  Bruno Haible  <bruno@clisp.org>
39704
39705         * m4/findprog.m4: New file.
39706         * m4/eaccess.m4: New file.
39707
39708 2003-04-10  Bruno Haible  <bruno@clisp.org>
39709
39710         * lib/findprog.h: New file, from GNU gettext.
39711         * lib/findprog.c: New file, from GNU gettext.
39712
39713 2003-04-05  Jim Meyering  <jim@meyering.net>
39714
39715         Merge changes from Coreutils.
39716
39717         * lib/exclude.h (PARAMS): Remove definition and uses.
39718         * lib/exclude.c: Remove uses of `PARAMS'.
39719
39720         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
39721         Add test-cases for DOS filenames. Declare program_name.
39722         (main): Set up program_name.  Patch by Rich Dawe.
39723
39724         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
39725         error from mntctl.
39726         Use mntctl's return value to drive the entry-processing loop, since
39727         we can't rely on the value of the vmt_length member in the last
39728         entry.  On some systems doing so could result in exhausting
39729         virtual memory.  Based in part on a patch from Mike Jetzer.
39730
39731 2003-04-04  Bruno Haible  <bruno@clisp.org>
39732
39733         * modules/linebreak: New file.
39734         * MODULES.html.sh (func_all_modules): Add it.
39735
39736 2003-04-04  Bruno Haible  <bruno@clisp.org>
39737
39738         * m4/linebreak.m4: New file.
39739
39740 2003-04-04  Bruno Haible  <bruno@clisp.org>
39741
39742         * lib/linebreak.h: New file, from GNU gettext.
39743         * lib/linebreak.c: New file, from GNU gettext with slight
39744         modifications.
39745         * lib/lbrkprop.h: New file, from GNU gettext.
39746
39747 2003-04-03  Bruno Haible  <bruno@clisp.org>
39748
39749         * modules/utf8-ucs4: New file.
39750         * modules/utf16-ucs4: New file.
39751         * modules/ucs4-utf8: New file.
39752         * modules/ucs4-utf16: New file.
39753         * MODULES.html.sh (func_all_modules): Add them.
39754
39755 2003-04-03  Bruno Haible  <bruno@clisp.org>
39756
39757         * m4/utf-ucs4.m4: New file.
39758         * m4/ucs4-utf.m4: New file.
39759
39760 2003-04-03  Bruno Haible  <bruno@clisp.org>
39761
39762         * lib/utf8-ucs4.h: New file, from GNU gettext.
39763         * lib/utf16-ucs4.h: New file, from GNU gettext.
39764         * lib/ucs4-utf8.h: New file, from GNU gettext.
39765         * lib/ucs4-utf16.h: New file, from GNU gettext.
39766
39767 2003-04-02  Bruno Haible  <bruno@clisp.org>
39768
39769         * modules/binary-io: New file.
39770         * MODULES.html.sh (func_all_modules): Add it.
39771
39772 2003-04-02  Bruno Haible  <bruno@clisp.org>
39773
39774         * lib/binary-io.h: New file, from GNU gettext.
39775
39776 2003-04-01  Bruno Haible  <bruno@clisp.org>
39777
39778         * modules/pathname: New file.
39779         * MODULES.html.sh (func_all_modules): Add it.
39780
39781 2003-04-01  Bruno Haible  <bruno@clisp.org>
39782
39783         * lib/pathname.h: New file, from GNU gettext.
39784         * lib/concatpath.c: New file, from GNU gettext.
39785
39786 2003-03-30  Bruno Haible  <bruno@clisp.org>
39787
39788         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
39789
39790 2003-03-30  Bruno Haible  <bruno@clisp.org>
39791
39792         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
39793         function chown() doesn't exist.
39794
39795 2003-03-28  Bruno Haible  <bruno@clisp.org>
39796
39797         * modules/copy-file: New file.
39798         * MODULES.html.sh (func_all_modules): Add it.
39799
39800 2003-03-28  Bruno Haible  <bruno@clisp.org>
39801
39802         * m4/copy-file.m4: New file.
39803
39804 2003-03-28  Bruno Haible  <bruno@clisp.org>
39805
39806         * lib/copy-file.h: New file, from GNU gettext.
39807         * lib/copy-file.c: New file, from GNU gettext.
39808
39809 2003-03-18  Jim Meyering  <jim@meyering.net>
39810
39811         * lib/quote.c (quote_n): Fix typo in comment.
39812
39813 2003-03-18  Bruno Haible  <bruno@clisp.org>
39814
39815         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
39816         checking.
39817         * m4/onceonly_2_57.m4: Likewise.
39818
39819 2003-03-17  Bruno Haible  <bruno@clisp.org>
39820
39821         * m4/onceonly.m4: Require autoconf 2.54 or newer.
39822         (m4_quote): Remove macro.
39823         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
39824
39825 2003-03-14  Jim Meyering  <jim@meyering.net>
39826
39827         Merge changes from Coreutils.
39828         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
39829         to be const, in order to avoid warnings.
39830         (obstack_room): Likewise.
39831         (obstack_empty_p): Likewise.
39832
39833 2003-03-14  Bruno Haible  <bruno@clisp.org>
39834
39835         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
39836         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
39837
39838 2003-03-13  Paul Eggert  <eggert@twinsun.com>
39839
39840         Merge changes from Bison.
39841         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
39842         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
39843         when compiling Bison 1.875's `bitset bset = obstack_alloc
39844         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
39845         * lib/hash.c: Include <stdbool.h> unconditionally.
39846
39847 2003-03-13  Paul Eggert  <eggert@twinsun.com>
39848
39849         * m4/onceonly.m4 (m4_quote): New macro.
39850         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
39851         Quote AC_FOREACH variable-expansions properly.
39852
39853 2003-03-13  Paul Eggert  <eggert@twinsun.com>
39854
39855         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
39856
39857 2003-03-09  Paul Eggert  <eggert@twinsun.com>
39858
39859         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
39860         Reported by Bruce Becker; see:
39861         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
39862
39863 2003-03-03  Paul Eggert  <eggert@twinsun.com>
39864             Bruno Haible  <bruno@clisp.org>
39865
39866         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
39867         Reported by John Hughes, see
39868         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
39869
39870 2003-02-20  Bruno Haible  <bruno@clisp.org>
39871
39872         * MODULES.html.sh (func_all_modules): Add poll.
39873
39874 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
39875
39876         * modules/poll: New file.
39877
39878 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
39879
39880         * lib/poll_.h: New file.
39881         * lib/poll.c: New file.
39882
39883 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
39884
39885         * m4/poll.m4: New file.
39886
39887 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
39888
39889         * modules/mathl: New file.
39890
39891 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
39892
39893         * lib/mathl.h: New file.
39894         * lib/acosl.c: New file.
39895         * lib/asinl.c: New file.
39896         * lib/atanl.c: New file.
39897         * lib/ceill.c: New file.
39898         * lib/cosl.c: New file.
39899         * lib/expl.c: New file.
39900         * lib/floorl.c: New file.
39901         * lib/frexpl.c: New file.
39902         * lib/ldexpl.c: New file.
39903         * lib/logl.c: New file.
39904         * lib/sincosl.c: New file.
39905         * lib/sinl.c: New file.
39906         * lib/sqrtl.c: New file.
39907         * lib/tanl.c: New file.
39908         * lib/trigl.c: New file.
39909         * lib/trigl.h: New file.
39910
39911 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
39912
39913         * m4/mathl.m4: New file.
39914
39915 2003-02-18  Bruno Haible  <bruno@clisp.org>
39916
39917         * MODULES.html.sh (func_all_modules): Add mathl.
39918
39919 2003-02-17  Bruno Haible  <bruno@clisp.org>
39920
39921         * modules/mkdtemp: New module.
39922         * MODULES.html.sh (func_all_modules): Add it.
39923
39924 2003-02-17  Bruno Haible  <bruno@clisp.org>
39925
39926         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
39927
39928 2003-02-17  Bruno Haible  <bruno@clisp.org>
39929
39930         * lib/mkdtemp.h: New file, from GNU gettext.
39931         * lib/mkdtemp.c: New file, from GNU gettext.
39932
39933 2003-02-02  Jim Meyering  <jim@meyering.net>
39934
39935         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
39936         e.g. glibc-2.2.93.
39937
39938 2003-01-31  Bruno Haible  <bruno@clisp.org>
39939
39940         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
39941         'rpl_rename'.
39942         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
39943         'rpl_strnlen'.
39944         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
39945         'rpl_strtod'.
39946         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
39947         'rpl_utime'.
39948
39949 2003-01-31  Bruno Haible  <bruno@clisp.org>
39950
39951         * lib/rename.c: #undef rename before defining rpl_rename.
39952         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
39953
39954 2003-01-30  Bruno Haible  <bruno@clisp.org>
39955
39956         * modules/vasnprintf, modules/vasprintf: New modules.
39957         * MODULES.html.sh (func_all_modules): Add them.
39958
39959 2003-01-30  Bruno Haible  <bruno@clisp.org>
39960
39961         * m4/signed.m4: New file, from GNU gettext.
39962         * m4/longdouble.m4: New file, from GNU gettext.
39963         * m4/wchar_t.m4: New file, from GNU gettext.
39964         * m4/wint_t.m4: New file, from GNU gettext.
39965         * m4/vasnprintf.m4: New file.
39966         * m4/vasprintf.m4: New file.
39967
39968 2003-01-30  Bruno Haible  <bruno@clisp.org>
39969
39970         * lib/printf-args.h: New file, from GNU gettext.
39971         * lib/printf-args.c: New file, from GNU gettext.
39972         * lib/printf-parse.h: New file, from GNU gettext.
39973         * lib/printf-parse.c: New file, from GNU gettext.
39974         * lib/vasnprintf.h: New file, from GNU gettext.
39975         * lib/vasnprintf.c: New file, from GNU gettext.
39976         * lib/asnprintf.c: New file, from GNU gettext.
39977         * lib/vasprintf.h: New file, from GNU gettext with modifications.
39978         * lib/vasprintf.c: New file, from GNU gettext.
39979         * lib/asprintf.c: New file, from GNU gettext.
39980
39981 2003-01-29  Bruno Haible  <bruno@clisp.org>
39982
39983         * modules/stpncpy: New module.
39984         * MODULES.html.sh (func_all_modules): Add it.
39985
39986 2003-01-29  Bruno Haible  <bruno@clisp.org>
39987
39988         * m4/stpncpy.m4: New file.
39989
39990 2003-01-29  Bruno Haible  <bruno@clisp.org>
39991
39992         * lib/stpncpy.h: New file, from GNU gettext with modifications.
39993         * lib/stpncpy.c: New file, from GNU gettext with modifications.
39994
39995 2003-01-28  Bruno Haible  <bruno@clisp.org>
39996
39997         * modules/c-ctype: New module.
39998         * MODULES.html.sh (func_all_modules): Add it.
39999
40000 2003-01-28  Bruno Haible  <bruno@clisp.org>
40001
40002         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
40003         Paul Eggert.
40004         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
40005         Paul Eggert.
40006
40007 2003-01-27  Bruno Haible  <bruno@clisp.org>
40008
40009         * modules/xsetenv: New module.
40010         * MODULES.html.sh (func_all_modules): Add it.
40011
40012 2003-01-27  Bruno Haible  <bruno@clisp.org>
40013
40014         * lib/xsetenv.h: New file, from GNU gettext.
40015         * lib/xsetenv.c: New file, from GNU gettext.
40016
40017 2003-01-23  Jim Meyering  <jim@meyering.net>
40018
40019         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
40020         from working on systems without dirfd (at least Irix and OSF1/Tru64).
40021
40022 2003-01-23  Bruno Haible  <bruno@clisp.org>
40023
40024         * modules/minmax: New module.
40025         * MODULES.html.sh (func_all_modules): Add it.
40026
40027 2003-01-23  Bruno Haible  <bruno@clisp.org>
40028
40029         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
40030         Eggert.
40031
40032 2003-01-22  Bruno Haible  <bruno@clisp.org>
40033
40034         * modules/exit: New module.
40035         * MODULES.html.sh (func_all_modules): Add it.
40036
40037 2003-01-22  Bruno Haible  <bruno@clisp.org>
40038
40039         * lib/exit.h: New file, from GNU gettext.
40040
40041 2003-01-19  Bruno Haible  <bruno@clisp.org>
40042
40043         * gnulib-tool: Recognize option --extract-maintainer.
40044         (func_get_maintainer): New function.
40045         * modules/*: Add Maintainer entry.
40046
40047 2003-01-16  Jim Meyering  <jim@meyering.net>
40048
40049         * m4/regex.m4: The `regex' struct is both input and output.
40050         Initialize it before each use.  Patch by Tim Waugh.
40051
40052 2003-01-16  Bruno Haible  <bruno@clisp.org>
40053
40054         * MODULES.html.sh: Add a table of contents. Add the module name as
40055         leftmost column. Add hyperlinks.
40056
40057 2003-01-15  Bruno Haible  <bruno@clisp.org>
40058
40059         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
40060
40061 2003-01-15  Bruno Haible  <bruno@clisp.org>
40062
40063         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
40064         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
40065         suffix.
40066
40067 2003-01-15  Bruno Haible  <bruno@clisp.org>
40068
40069         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
40070
40071 2003-01-15  Bruno Haible  <bruno@clisp.org>
40072
40073         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
40074         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
40075
40076 2003-01-14  Jim Meyering  <jim@meyering.net>
40077
40078         * lib/same.c (same_name): Tweak a comment.
40079
40080 2003-01-14  Bruno Haible  <bruno@clisp.org>
40081
40082         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
40083         when a string comparison is sufficient.
40084
40085 2003-01-14  Bruno Haible  <bruno@clisp.org>
40086
40087         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
40088         'unsigned int'.
40089
40090 2003-01-14  Bruno Haible  <bruno@clisp.org>
40091
40092         * lib/hash-pjw.c: Add comment about low quality of this function.
40093
40094 2003-01-13  Bruno Haible  <bruno@clisp.org>
40095
40096         * modules/stpcpy: Distribute lib/stpcpy.h.
40097         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
40098
40099 2003-01-13  Bruno Haible  <bruno@clisp.org>
40100
40101         * modules/*: Add a description.
40102         * modules/strpbrk: Fix Makefile.am snippet.
40103         * modules/strtoimax: Fix dependencies.
40104         * modules/strtoumax: Likewise.
40105
40106 2003-01-13  Bruno Haible  <bruno@clisp.org>
40107
40108         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
40109         * modules/alloca (Makefile.am): All object files depend on alloca.h.
40110         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
40111
40112 2003-01-13  Bruno Haible  <bruno@clisp.org>
40113
40114         * gnulib-tool (func_create_testdir): Store config/* files in the main
40115         directory.
40116         * config.rpath: Move to ...
40117         * config/config.rpath: ... here.
40118         * modules/gettext: Contains config/config.rpath, not config.rpath.
40119         * modules/iconv: Likewise.
40120
40121 2003-01-12  Paul Eggert  <eggert@twinsun.com>
40122
40123         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
40124         to avoid collisions with libcurses and libreadline.
40125
40126         * m4/getstr.m4: Remove.
40127         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
40128
40129 2003-01-12  Paul Eggert  <eggert@twinsun.com>
40130
40131         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
40132         to avoid collisions with libcurses and libreadline.
40133
40134         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
40135         * lib/getstr.h, getstr.c: Remove.
40136         * lib/getline.c: Include "getline.h", to check interface.
40137         Move body of old getstr.c here: this defines MIN_CHUNK and
40138         declares getdelim2, which is renamed from getstr.
40139         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
40140
40141         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
40142         All uses changed.
40143         * lib/linebuffer.h: Likewise.
40144         (readline): Remove backward-compatibility macro.
40145
40146 2003-01-12  Paul Eggert  <eggert@twinsun.com>
40147
40148         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
40149         to avoid collisions with libcurses and libreadline.
40150         * getstr: Remove.
40151         * MODULES.html.sh: Remove getstr.
40152         * modules/getline: Depend on unlocked-io, not getstr.
40153
40154 2003-01-12  Jim Meyering  <jim@meyering.net>
40155
40156         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
40157
40158 2003-01-10  Bruno Haible  <bruno@clisp.org>
40159
40160         * modules/alloca: Change Makefile.am requirements. Simplify Include
40161         requirements. Add lib/alloca_.h to file list.
40162
40163 2003-01-10  Bruno Haible  <bruno@clisp.org>
40164
40165         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
40166
40167 2003-01-10  Bruno Haible  <bruno@clisp.org>
40168
40169         * lib/alloca_.h: New file.
40170         * lib/getdate.y: Unconditionally include alloca.h.
40171         * lib/makepath.c: Likewise.
40172         * lib/setenv.c: Likewise.
40173         * lib/userspec.c: Likewise.
40174
40175 2003-01-09  Karl Berry  <karl@gnu.org>
40176
40177         * MODULES.html.sh: include `dirname $0` in PATH, to find
40178         gnulib-tool.
40179
40180 2003-01-09  Bruno Haible  <bruno@clisp.org>
40181
40182         * modules/stdbool: Change configure.ac, Makefile.am requirements.
40183         Simplify Include requirements. Add lib/stdbool.h.in to file list.
40184
40185 2003-01-09  Bruno Haible  <bruno@clisp.org>
40186
40187         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
40188
40189 2003-01-09  Bruno Haible  <bruno@clisp.org>
40190
40191         * lib/stdbool.h.in: New file.
40192
40193 2003-01-09  Bruno Haible  <bruno@clisp.org>
40194
40195         * gnulib-tool (func_all_modules): Ignore files ending in ~.
40196         * MODULES.html.sh: Likewise.
40197
40198 2003-01-08  Jim Meyering  <jim@meyering.net>
40199
40200         * lib/full-write.c: Undefine and define-away `const' after inclusion
40201         of errno.h, not before.  Suggestion from Bruno Haible.
40202
40203 2003-01-08  Bruno Haible  <bruno@clisp.org>
40204
40205         * modules/full-read: Depend on full-write.
40206
40207 2003-01-08  Bruno Haible  <bruno@clisp.org>
40208
40209         * lib/safe-read.c: Include specification header first, to ensure its
40210         selfcontainedness.
40211         * lib/full-write.c: Likewise.
40212
40213 2003-01-07  Jim Meyering  <jim@meyering.net>
40214
40215         * lib/full-write.c: Rework so that it may serve to define full_read,
40216         too.
40217         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
40218
40219 2003-01-07  Bruno Haible  <bruno@clisp.org>
40220
40221         * lib/strtoimax.c: Include <stdint.h> as an alternative to
40222         <inttypes.h>.
40223         * lib/xstrtol.h: Likewise.
40224         * lib/xstrtoimax.c: Likewise.
40225         * lib/xstrtoumax.c: Likewise.
40226         * lib/human.h: Likewise.
40227
40228         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
40229         on systems that have <inttypes.h> but not <stdint.h>.
40230
40231 2003-01-07  Bruno Haible  <bruno@clisp.org>
40232
40233         * MODULES.html.sh: Add copyright notice.
40234         (missed_files): Omit CVS directory entries.
40235         (func_module): Make it work with sed-3.02.
40236         * MODULES.txt: Remove file.
40237
40238 2003-01-06  Jim Meyering  <jim@meyering.net>
40239
40240         * lib/version-etc.c: Update year in translatable copyright string.
40241
40242 2003-01-03  Karl Berry  <karl@gnu.org>
40243
40244         * config/config.{guess,sub}: update from prep.
40245
40246 2003-01-02  Karl Berry  <karl@gnu.org>
40247
40248         * doc/COPYING.DOC: belatedly updated to 1.2.
40249
40250 2003-01-01  Karl Berry  <karl@gnu.org>
40251
40252         * gnulib-tool (func_verify_module): report module name $module in
40253         error message, not $1.
40254         * gnulib-tool (create-testdir): don't complain if destdir couldn't
40255         be created, only if it doesn't exist.
40256         * gnulib-tool (last_checkin_date): don't expand the $Date here.
40257
40258 2002-12-31  Paul Eggert  <eggert@twinsun.com>
40259
40260         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
40261
40262 2002-12-31  Paul Eggert  <eggert@twinsun.com>
40263
40264         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
40265         memcmp if strcoll doesn't work.
40266
40267 2002-12-31  Bruno Haible  <bruno@clisp.org>
40268
40269         * lib/utime.c (utime_null): No need to call ftruncate if the file was
40270         nonempty.
40271
40272 2002-12-31  Bruno Haible  <bruno@clisp.org>
40273
40274         * lib/memcoll.c (STRCOLL): New macro.
40275         (memcoll): Use it.
40276
40277 2002-12-31  Bruno Haible  <bruno@clisp.org>
40278
40279         * lib/localcharset.h: New file.
40280         * lib/localcharset.c: Include it.
40281         * lib/unicodeio.c: Likewise.
40282
40283 2002-12-31  Bruno Haible  <bruno@clisp.org>
40284
40285         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
40286         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
40287
40288 2002-12-31  Bruno Haible  <bruno@clisp.org>
40289
40290         * lib/getline.h: Include <stddef.h>, for size_t.
40291
40292         * lib/unicodeio.h: Include <stddef.h>, for size_t.
40293         * lib/unicodeio.c: Don't include <stddef.h>.
40294
40295 2002-12-31  Bruno Haible  <bruno@clisp.org>
40296
40297         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
40298         HAVE_TM_ZONE.
40299
40300 2002-12-24  Karl Berry  <karl@gnu.org>
40301
40302         * config/config.guess: update from prep.
40303
40304 2002-12-24  Bruno Haible  <bruno@clisp.org>
40305
40306         General infrasructure.
40307         * m4/README: Rewritten.
40308         * m4/onceonly.m4: New file.
40309         * m4/onceonly_2_57.m4: New file.
40310
40311         Module atexit.
40312         * m4/atexit.m4: New file.
40313
40314         Module strtod.
40315         * m4/strtod.m4: New file.
40316
40317         Module strtol.
40318         * m4/strtol.m4: New file.
40319
40320         Module strtoul.
40321         * m4/strtoul.m4: New file.
40322
40323         Module memchr.
40324         * m4/memchr.m4: New file.
40325
40326         Module memcmp.
40327         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
40328         (jm_FUNC_MEMCMP): Invoke it.
40329
40330         Module memcpy.
40331         * m4/memcpy.m4: New file.
40332
40333         Module memmove.
40334         * m4/memmove.m4: New file.
40335
40336         Module memset.
40337         * m4/memset.m4: New file.
40338
40339         Module strcspn.
40340         * m4/strcspn.m4: New file.
40341
40342         Module strpbrk.
40343         * m4/strpbrk.m4: New file.
40344
40345         Module strstr.
40346         * m4/strstr.m4: New file.
40347
40348         Module strerror.
40349         * m4/strerror.m4: New file.
40350
40351         Module mktime.
40352         * m4/mktime.m4: Renamed from jm-mktime.m4.
40353         (gl_PREREQ_MKTIME): New macro.
40354         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
40355
40356         Module malloc.
40357         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
40358         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
40359         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
40360
40361         Module realloc.
40362         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
40363         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
40364         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
40365
40366         Module strftime.
40367         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
40368         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
40369         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
40370         gl_TM_GMTOFF.
40371         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
40372
40373         Module xalloc.
40374         * m4/xalloc.m4: New file.
40375
40376         Module alloca.
40377         * m4/alloca.m4: New file.
40378
40379         Module putenv.
40380         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
40381         (jm_FUNC_PUTENV): Invoke it.
40382
40383         Module setenv.
40384         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
40385         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
40386         when invoked twice.
40387         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
40388         gt_FUNC_SETENV.
40389
40390         Module memrchr.
40391         * m4/memrchr.m4: New file.
40392
40393         Module stpcpy.
40394         * m4/stpcpy.m4: New file.
40395
40396         Module strcase.
40397         * m4/strcase.m4: New file.
40398
40399         Module strdup.
40400         * m4/strdup.m4: New file.
40401
40402         Module strnlen.
40403         * m4/strnlen.m4: New file.
40404
40405         Module strndup.
40406         * m4/strndup.m4: New file.
40407
40408         Module xstrtod.
40409         * m4/xstrtod.m4: New file.
40410
40411         Module xstrtol.
40412         * m4/xstrtol.m4: New file.
40413
40414         Module getdate.
40415         * m4/getdate.m4: New file.
40416
40417         Module unlocked-io.
40418         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
40419         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
40420         * m4/jm-glibc-io.m4n: Remove file.
40421
40422         Module long-options.
40423         * m4/long-options.m4: New file.
40424
40425         Module md5.
40426         * m4/md5.m4: New file.
40427
40428         Module sha.
40429         * m4/sha.m4: New file.
40430
40431         Module getstr.
40432         * m4/getstr.m4: New file.
40433
40434         Module getline.
40435         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
40436         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
40437         <sys/types.h>, for size_t. Use the function name gnu_getline, not
40438         simply getline. Infoke gl_PREREQ_GETLINE.
40439
40440         Module obstack.
40441         * m4/obstack.m4: New file.
40442
40443         Module hash.
40444         * m4/hash.m4: New file.
40445
40446         Module readtokens.
40447         * m4/readtokens.m4: New file.
40448
40449         Module strverscmp.
40450         * m4/strverscmp.m4: New file.
40451
40452         Module stdbool.
40453         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
40454         OSF/1.
40455
40456         Module strtoll.
40457         * m4/strtoll.m4: New file.
40458
40459         Module strtoull.
40460         * m4/strtoull.m4: New file.
40461
40462         Module strtoimax.
40463         * m4/strtoimax.m4: New file.
40464
40465         Module strtoumax.
40466         * m4/strtoumax.m4: New file.
40467
40468         Module xstrtoimax.
40469         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
40470         jm_AC_PREREQ_XSTRTOIMAX.
40471         Moved the strtol prerequisites to strtol.m4.
40472         Moved the strtoll prerequisites to strtoll.m4.
40473         Moved the strtoimax prerequisites to strtoimax.m4.
40474
40475         Module xstrtoumax.
40476         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
40477         jm_AC_PREREQ_XSTRTOUMAX.
40478         Moved the strtoul prerequisites to strtoul.m4.
40479         Moved the strtoull prerequisites to strtoull.m4.
40480         Moved the strtoumax prerequisites to strtoumax.m4.
40481
40482         Module chown.
40483         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
40484         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
40485
40486         Module dup2.
40487         * m4/dup2.m4: New file.
40488
40489         Module ftruncate.
40490         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
40491         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
40492
40493         Module getgroups.
40494         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
40495         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
40496
40497         Module gettimeofday.
40498         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
40499         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
40500         gl_PREREQ_GETTIMEOFDAY.
40501
40502         Module mkdir.
40503         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
40504         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
40505
40506         Module mkstemp.
40507         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
40508         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
40509         jm_AC_TYPE_UINTMAX_T.
40510         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
40511
40512         Module stat.
40513         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
40514         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
40515
40516         Module lstat.
40517         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
40518         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
40519
40520         Module timespec.
40521         * m4/timespec.m4 (gl_TIMESPEC): New macro.
40522         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
40523         * m4/st_mtim.m4: Indentation.
40524
40525         Module nanosleep.
40526         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
40527         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
40528         gl_PREREQ_NANOSLEEP.
40529
40530         Module regex.
40531         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
40532         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
40533         (gl_REGEX): New macro.
40534
40535         Module rename.
40536         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
40537         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
40538
40539         Module rmdir.
40540         * m4/rmdir.m4: New file.
40541
40542         Module utime.
40543         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
40544         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
40545         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
40546
40547         Module dirname.
40548         * m4/dirname.m4: New file.
40549
40550         Module getopt.
40551         * m4/getopt.m4: New file.
40552
40553         Module unistd-safer.
40554         * m4/unistd-safer.m4: New file.
40555
40556         Module fnmatch.
40557         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
40558         declaration.
40559         (gl_PREREQ_FNMATCH_EXTRA): New macro.
40560         (gl_FUNC_FNMATCH_POSIX): New macro.
40561         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
40562         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
40563         simply fnmatch.
40564
40565         Module exclude.
40566         * m4/exclude.m4: New file.
40567
40568         Module human.
40569         * m4/human.m4: New file.
40570
40571         Module acl.
40572         * m4/acl.m4: Nop.
40573
40574         Module backupfile.
40575         * m4/backupfile.m4: New file.
40576         * m4/d-ino.m4: Indentation.
40577
40578         Module fsusage.
40579         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
40580         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
40581         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
40582
40583         Module dirfd.
40584         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
40585         requirements.
40586
40587         Module euidaccess.
40588         * m4/euidaccess.m4: New file.
40589
40590         Module file-type.
40591         * m4/file-type.m4: New file.
40592
40593         Module fileblocks.
40594         * m4/fileblocks.m4: New file.
40595
40596         Module filemode.
40597         * m4/filemode.m4: New file.
40598
40599         Module isdir.
40600         * m4/isdir.m4: New file.
40601
40602         Module lchown.
40603         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
40604         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
40605
40606         Module makepath.
40607         * m4/makepath.m4: New file.
40608
40609         Module modechange.
40610         * m4/modechange.m4: New file.
40611
40612         Module mountlist.
40613         * m4/mountlist.m4: New file.
40614         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
40615         Indentation.
40616
40617         Module path-concat.
40618         * m4/path-concat.m4: New file.
40619
40620         Module pathmax.
40621         * m4/pathmax.m4: New file.
40622
40623         Module same.
40624         * m4/same.m4: New file.
40625
40626         Module save-cwd.
40627         * m4/save-cwd.m4: New file.
40628
40629         Module savedir.
40630         * m4/savedir.m4: New file.
40631
40632         Module xgetcwd.
40633         * m4/xgetcwd.m4: New file.
40634         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
40635
40636         Module xreadlink.
40637         * m4/xreadlink.m4: New file.
40638
40639         Module safe-read.
40640         * m4/safe-read.m4: New file.
40641
40642         Module safe-write.
40643         * m4/safe-write.m4: New file.
40644
40645         Module closeout.
40646         * m4/closeout.m4: New file.
40647
40648         Module stdio-safer.
40649         * m4/stdio-safer.m4: New file.
40650
40651         Module getpass.
40652         * m4/getpass.m4: New file.
40653
40654         Module getugroups.
40655         * m4/getugroups.m4: New file.
40656
40657         Module group-member.
40658         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
40659         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
40660
40661         Module idcache.
40662         * m4/idcache.m4: New file.
40663
40664         Module userspec.
40665         * m4/userspec.m4: New file.
40666
40667         Module gettime.
40668         * m4/clock_time.m4: New file.
40669         * m4/gettime.m4: New file.
40670
40671         Module settime.
40672         * m4/settime.m4: New file.
40673
40674         Module posixtm.
40675         * m4/posixtm.m4: New file.
40676
40677         Module gethostname.
40678         * m4/gethostname.m4: New file.
40679
40680         Module canon-host.
40681         * m4/canon-host.m4: New file.
40682
40683         Module gettext.
40684         * m4/codeset.m4: New file, from gettext-0.11.5.
40685         * m4/gettext.m4: New file, from gettext-0.11.5.
40686         * m4/glibc21.m4: New file, from gettext-0.11.5.
40687         * m4/iconv.m4: New file, from gettext-0.11.5.
40688         * m4/intdiv0.m4: New file, from gettext-0.11.5.
40689         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
40690         * m4/inttypes.m4: New file, from gettext-0.11.5.
40691         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
40692         * m4/isc-posix.m4: New file, from gettext-0.11.5.
40693         * m4/lcmessage.m4: New file, from gettext-0.11.5.
40694         * m4/lib-ld.m4: New file, from gettext-0.11.5.
40695         * m4/lib-link.m4: New file, from gettext-0.11.5.
40696         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
40697         * m4/progtest.m4: New file, from gettext-0.11.5.
40698         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
40699         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
40700         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
40701
40702         Module localcharset.
40703         * m4/localcharset.m4: New file.
40704
40705         Module hard-locale.
40706         * m4/hard-locale.m4: New file.
40707
40708         Module mbswidth.
40709         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
40710         onceonly macros.
40711         * m4/mbrtowc.m4: Add comment.
40712
40713         Module memcasecmp.
40714         * m4/memcasecmp.m4: New file.
40715
40716         Module memcoll.
40717         * m4/memcoll.m4: New file.
40718
40719         Module unicodeio.
40720         * m4/unicodeio.m4: New file.
40721
40722         Module rpmatch.
40723         * m4/rpmatch.m4: New file.
40724
40725         Module yesno.
40726         * m4/yesno.m4: New file.
40727
40728         Module exitfail.
40729         * m4/exitfail.m4: New file.
40730
40731         Module c-stack.
40732         * m4/c-stack.m4 (gl_C_STACK): New macro.
40733         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
40734
40735         Module error.
40736         * m4/error.m4 (gl_ERROR): New macro.
40737         (jm_PREREQ_ERROR): Use onceonly macros.
40738
40739         Module fatal.
40740         * m4/fatal.m4: New file.
40741
40742         Module getloadavg.
40743         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
40744         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
40745
40746         Module getpagesize.
40747         * m4/getpagesize.m4: New file.
40748
40749         Module getusershell.
40750         * m4/getusershell.m4: New file.
40751
40752         Module physmem.
40753         * m4/physmem.m4: New file.
40754
40755         Module posixver.
40756         * m4/posixver.m4: New file.
40757
40758         Module quotearg.
40759         * m4/quotearg.m4: New file.
40760
40761         Module quote.
40762         * m4/quote.m4: New file.
40763
40764         Module readutmp.
40765         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
40766
40767         Module sig2str.
40768         * m4/sig2str.m4: New file.
40769
40770         Other.
40771         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
40772         ulonglong.m4.
40773         * m4/intmax_t.m4: New file.
40774         * m4/d-type.m4: Indentation.
40775         * m4/jm-macros.m4: Update.
40776         * m4/prereq.m4 (jm_PREREQ): Update.
40777         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
40778         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
40779         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
40780         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
40781         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
40782         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
40783         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
40784         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
40785         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
40786         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
40787         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
40788         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
40789         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
40790         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
40791         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
40792         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
40793         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
40794         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
40795         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
40796
40797 2002-12-24  Bruno Haible  <bruno@clisp.org>
40798
40799         * MODULES.txt: Update according to m4/ changes.
40800
40801         Module gettext.
40802         * config.rpath: New file, from gettext-0.11.5.
40803
40804         * modules/*: New module descriptions.
40805         * gnulib-tool: New file.
40806         * MODULES.html.sh: New file.
40807
40808 2002-12-21  Karl Berry  <karl@gnu.org>
40809
40810         * doc/fdl.texi: update to version 1.2.
40811
40812 2002-12-19  Karl Berry  <karl@gnu.org>
40813
40814         * config/config.guess: update from prep.
40815
40816 2002-12-18  Bruno Haible  <bruno@clisp.org>
40817
40818         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
40819         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
40820
40821 2002-12-17  Bruno Haible  <bruno@clisp.org>
40822
40823         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
40824         stdlib.h, string.h.
40825
40826 2002-12-17  Bruno Haible  <bruno@clisp.org>
40827
40828         * lib/canon-host.c (strdup): Remove unused declaration.
40829
40830         * lib/fsusage.c: Include full_read.h.
40831         (get_fs_usage): Use full_read instead of safe_read.
40832
40833         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
40834
40835 2002-12-12  Karl Berry  <karl@gnu.org>
40836
40837         * config/config.guess: update from prep.
40838
40839 2002-12-11  Bruno Haible  <bruno@clisp.org>
40840
40841         * m4/setenv.m4: New file, from gettext-0.11.5.
40842
40843 2002-12-11  Bruno Haible  <bruno@clisp.org>
40844
40845         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
40846         not unsetenv().
40847         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
40848         modifications:
40849
40850         2002-12-11  Bruno Haible  <bruno@clisp.org>
40851
40852                 * setenv.c (alloca): Fall back to malloc.
40853                 (freea): New macro.
40854                 (setenv): Use freea() to free memory allocated with alloca().
40855
40856         2002-11-13  Bruno Haible  <bruno@clisp.org>
40857
40858                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
40859                 function declarations.
40860                 * unsetenv.c (unsetenv): Likewise.
40861
40862         2002-03-04  Bruno Haible  <bruno@clisp.org>
40863
40864                 Portability to AIX 4.3.3.
40865                 * unsetenv.c: New file, extracted from setenv.c.
40866                 * setenv.c: Move the unsetenv() function to unsetenv.c.
40867
40868         2001-12-20  Bruno Haible  <bruno@clisp.org>
40869
40870                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
40871                 use malloc instead. For SunOS 4.
40872
40873         2001-12-11  Bruno Haible  <bruno@clisp.org>
40874
40875                 * setenv.c: Declare alloca.
40876                 (compar_fn_t): New typedef.
40877                 (KNOWN_VALUE, STORE_VALUE): Use it.
40878
40879         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
40880         setenv.h.
40881
40882 2002-12-10  Paul Eggert  <eggert@twinsun.com>
40883
40884         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
40885         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
40886         Choose values that are less likely to collide with system fnmatch
40887         options.
40888         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
40889         defined (e.g., a pure POSIX system).
40890         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
40891         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
40892
40893 2002-12-06  Paul Eggert  <eggert@twinsun.com>
40894
40895         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
40896         a pain in practice to deal with generated m4 files.  This change
40897         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
40898
40899         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
40900         and jm-glibc-io.m4, as they are no longer a special case.
40901         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
40902         kludge and the auto-generation stuff.  Check only whether the
40903         functions are declared, not whether they exist, since older hosts
40904         that don't declare the functions can't use the optimization anyway.
40905
40906 2002-12-06  Jim Meyering  <jim@meyering.net>
40907
40908         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
40909
40910         Merge in changes from libc's misc/error.c, in preparation
40911         for the merge of gnulib's changes back into libc.
40912
40913         * lib/error.c (_): Define only if not already defined.
40914         Move definition to follow all #include directives.
40915         Include unlocked-io.h only if !_LIBC.
40916         [_LIBC]: Include <libio/libioP.h>.
40917         [USE_IN_LIBIO]: Include <libio/iolibio.h>
40918         (fflush): Tweak definition to use INTUSE.
40919         (putc): Define.
40920
40921 2002-12-05  Paul Eggert  <eggert@twinsun.com>
40922
40923         * lib/alloca.c [defined emacs]: Include "lisp.h".
40924         (xalloc_die) [defined emacs]: New macro.
40925         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
40926         [! defined emacs]: Include <xalloc.h>.
40927         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
40928         (pointer): Typedef to POINTER_TYPE *.
40929         (malloc): Remove decl; we now always use xmalloc.
40930         (alloca): Use old-style definition, since Emacs needs this.
40931         Check for arithmetic overflow when computing combined size.
40932
40933 2002-12-04  Paul Eggert  <eggert@twinsun.com>
40934
40935         Do not generate unlocked-io.h automatically, since it's easier to
40936         maintain it by hand.
40937
40938         * lib/unlocked-io.h: New file, from GNU diffutils,
40939         but with proper copyright notice and attribution.
40940         * lib/gen-uio: Remove.
40941         * lib/Makefile.am: Add copyright notice.
40942         (libfetish_a_SOURCES): Add unlocked-io.h.
40943         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
40944         (DISTCLEANFILES, io_functions): Remove macros.
40945         (EXTRA_DIST): Remove gen_uio.
40946         (unlocked-io.h): Remove rule.
40947
40948 2002-12-04  Jim Meyering  <jim@meyering.net>
40949
40950         Reflect the fact that stat.c and lstat.c are no longer generated.
40951         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
40952         (DISTCLEANFILES): Likewise.
40953         (EXTRA_DIST): Likewise.
40954         (all_local): Don't depend on stat.c or lstat.c.
40955         (stat.c, lstat.c): Remove rules.
40956         (EXTRA_DIST): Remove xstat.in.
40957
40958         * lib/xstat.in: Remove file.  Contents moved into stat.c.
40959         * lib/stat.c: New file.  Contents mostly from xstat.in.
40960         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
40961         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
40962
40963         * lib/safe-read.c: Rework so that it may serve to define safe_write,
40964         too.
40965         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
40966
40967 2002-12-03  Jim Meyering  <jim@meyering.net>
40968
40969         * lib/safe-read.c, safe-write.c: Change variable names and comments,
40970         but not semantics, to minimize the differences between these two files.
40971         (safe_read): Change comment to mention SAFE_READ_ERROR.
40972
40973         * lib/safe-read.c (IS_EINTR): Define.
40974         (safe_read): Use IS_EINTR in place of in-function cpp directives.
40975
40976 2002-12-02  Jim Meyering  <jim@meyering.net>
40977
40978         * lib/safe-read.c (EINTR): Define.
40979         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
40980         (INT_MAX): Provide fallback.
40981         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
40982
40983         * lib/safe-read.h (SAFE_READ_ERROR): Define.
40984
40985 2002-12-02  Bruno Haible  <bruno@clisp.org>
40986
40987         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
40988         Define, taken from safe-read.c.
40989         (INT_MAX): Provide fallback.
40990         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
40991         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
40992
40993         * lib/safe-read.c (EINTR): Remove definition.
40994         (safe_read): Don't use EINTR if it is absent.
40995
40996 2002-12-01  Jim Meyering  <jim@meyering.net>
40997
40998         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
40999         zero.
41000         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
41001
41002 2002-11-27  Paul Eggert  <eggert@twinsun.com>
41003
41004         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
41005         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
41006         with `if (! (value < limit)) abort ();', for readability.
41007
41008 2002-11-26  Karl Berry  <karl@gnu.org>
41009
41010         * lib/strdup.c: copy from libc again, with jim's ok.
41011         * lib/.cppi-disable: re-add strdup.c
41012
41013 2002-11-25  Karl Berry  <karl@gnu.org>
41014
41015         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
41016         instead of "strtol.c".
41017
41018 2002-11-25  Karl Berry  <karl@gnu.org>
41019
41020         * config/install-sh: update from automake for variable quoting, $0 in
41021         error msgs, etc.
41022
41023         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
41024         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
41025         entry.
41026
41027 2002-11-25  Jim Meyering  <jim@meyering.net>
41028
41029         * lib/mktime.c: Sync from libc, now that it has the latest fix.
41030
41031 2002-11-24  Karl Berry  <karl@gnu.org>
41032
41033         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
41034         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
41035
41036 2002-11-24  Jim Meyering  <jim@meyering.net>
41037
41038         Update from coreutils:
41039
41040         * lib/mktime.c: Merge in changes from libc.
41041
41042         Avoid a link-time failure on some Linux systems.
41043         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
41044         (otherwise).
41045         (__mon_yday): Declare with the STATIC attribute.
41046         (__mktime_internal): Likewise.
41047         Based on a report from Greg Schafer.
41048
41049 2002-11-23  Jim Meyering  <jim@meyering.net>
41050
41051         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
41052         Use `unsigned', not `int', as type of index.
41053
41054         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
41055
41056         * lib/fsusage.c: Remove unneeded parentheses around operands of
41057         `defined'.
41058
41059 2002-11-22  Paul Eggert  <eggert@twinsun.com>
41060
41061         * lib/quotearg.h: Allow multiple inclusion by surrounding with
41062         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
41063         so that we can be included first.
41064         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
41065         * lib/quotearg.c: Include quotearg.h immediately after config.h.
41066         No need to include stddef.h or sys/types.h any more.
41067         Surround local include files with "", not "<>".
41068         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
41069         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
41070         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
41071         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
41072         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
41073         (ISPRINT): Remove; no longer needed now that we assume C89.
41074
41075         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
41076         Preserve errno.
41077
41078         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
41079         quotearg_char): Use SIZE_MAX rather than
41080         (size_t) -1 when we are talking about "infinity".
41081
41082         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
41083
41084 2002-11-22  Paul Eggert  <eggert@twinsun.com>
41085
41086         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
41087         hint that one should use `if (! x) abort ();' rather than `assert
41088         (x);', and anyway it's one less thing to worry about configuring.
41089         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
41090         hash_rehash, hash_insert): Use abort rather than assert.
41091
41092 2002-11-22  Bruno Haible  <bruno@clisp.org>
41093
41094         * lib/safe-read.h: Assume C89. Add comments.
41095         (safe_read): Change return type to size_t.
41096         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
41097         byte counts > SSIZE_MAX correctly.
41098         * lib/safe-write.h: New file.
41099         * lib/safe-write.c: New file.
41100         * lib/full-read.h: New file.
41101         * lib/full-read.c: New file.
41102         * lib/full-write.h: Assume C89. Add comments.
41103         * lib/full-write.c: Include safe-write.h.
41104         (full_write): Rewritten to use safe_write.
41105         Suggested by Jim Meyering and Paul Eggert.
41106
41107 2002-11-21  Jim Meyering  <jim@meyering.net>
41108
41109         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
41110
41111         Merge in changes from the coreutils.
41112
41113         2002-09-25  Paul Eggert  <eggert@twinsun.com>
41114         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
41115         <stdint.h>.
41116         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
41117         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
41118         int.  Work more efficiently if X is the same width as uintmax_t.
41119         Do not compare X to -1, to avoid bogus compiler warning.
41120         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
41121         Don't assume that f_frsize and f_bsize are the same type.
41122
41123         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
41124         warning on FreeBSD.
41125
41126         * lib/makepath.c (make_path): Restore umask *before* creating the final
41127         component.
41128         (make_path): Minor reformatting.
41129
41130         * lib/xmalloc.c: Adjust to work with new autoconf macros,
41131         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
41132         HAVE_MALLOC/HAVE_REALLOC.
41133
41134         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
41135         dummy ones.  At least on GNU/Linux systems, `auto' means something
41136         else.
41137         From Michael Stone.
41138
41139 2002-11-21  Bruno Haible  <bruno@clisp.org>
41140
41141         Remove case insensitive option matching.
41142         * lib/argmatch.h (argcasematch): Remove declaration.
41143         (ARGCASEMATCH): Remove macro.
41144         (__xargmatch_internal): Remove case_sensitive argument.
41145         (XARGMATCH): Update.
41146         (XARGCASEMATCH): Remove macro.
41147         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
41148         case_sensitive argument.
41149         (argcasematch): Remove function.
41150         (__xargmatch_internal): Remove case_sensitive argument.
41151         (main): Use XARGMATCH instead of XARGCASEMATCH.
41152
41153         * lib/xmalloc.c: Change compile-time error message. Add comment about
41154         required autoconf version.
41155
41156 2002-11-20  Paul Eggert  <eggert@twinsun.com>
41157
41158         Merge argmatch cleanups from Bison.  Assume C89.
41159
41160         * lib/argmatch.c: Include config.h here, not in argmatch.h.
41161         Include stdlib.h, for EXIT_FAILURE.
41162         Always include <string.h>, since we assume C89.
41163         (EXIT_FAILURE): Remove pre-C89 bug workaround.
41164         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
41165         Include <stddef.h> instead, since it's all we need for size_t.
41166         (PARAMS): Remove.  All uses removed.
41167         (ARRAY_CARDINALITY): Do not bother to #undef.
41168         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
41169         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
41170         Remove unnecessary parentheses.
41171         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
41172         Insert necessary parentheses.
41173         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
41174         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
41175
41176 2002-11-19  Bruno Haible  <bruno@clisp.org>
41177
41178         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
41179         * lib/mbswidth.h: Include <stddef.h>, for size_t.
41180
41181         * lib/mbswidth.h (PARAMS): Remove macro.
41182         (mbswidth, mbsnwidth): Use ANSI C function declarations.
41183         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
41184
41185         * lib/gcd.h (PARAMS): Remove macro.
41186         (gcd): Use ANSI C function declarations.
41187         * lib/gcd.c (gcd): Likewise.
41188
41189 2002-11-15  Bruno Haible  <bruno@clisp.org>
41190
41191         * lib/strcspn.c: Include <stddef.h>.
41192         (strcspn): Use ANSI C function declaration. Change return type to
41193         size_t. Use NULL.
41194         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
41195         (strpbrk): Use NULL.
41196         * lib/strpbrk.h (PARAMS): Remove macro.
41197         (strpbrk): Use ANSI C function declaration.
41198         * lib/strstr.c: Don't include <sys/types.h>.
41199         * lib/strstr.h (PARAMS): Remove macro.
41200         (strstr): Use ANSI C function declarations.
41201
41202 2002-11-14  Karl Berry  <karl@gnu.org>
41203
41204         * config/mkinstalldirs: `do' on separate line, instead of
41205         `for var; do'.
41206
41207 2002-11-06  Bruno Haible  <bruno@clisp.org>
41208
41209         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
41210         * lib/gcd.c (gcd): Likewise.
41211
41212 2002-11-05  Bruno Haible  <bruno@clisp.org>
41213
41214         * lib/gcd.h: New file, from gettext-0.11.5.
41215         * lib/gcd.c: New file, from gettext-0.11.5.
41216
41217 2002-11-05  Bruno Haible  <bruno@clisp.org>
41218
41219         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
41220         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
41221         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
41222         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
41223
41224         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
41225         <libintl.h>.
41226         * lib/makepath.c: Include gettext.h instead of <locale.h> and
41227         <libintl.h>.
41228
41229         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
41230         * lib/human.c: Include gettext.h instead of <libintl.h>.
41231         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
41232         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
41233         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
41234         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
41235         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
41236         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
41237         (textdomain): Remove definition.
41238         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
41239
41240         * lib/long-options.c: Remove include of <libintl.h> and definition of
41241         _.
41242         * lib/same.c: Remove include of <libintl.h> and definition of _.
41243
41244 2002-11-04  Owen Taylor  <otaylor@redhat.com>
41245
41246         * lib/config.charset: A few additions for Solaris.
41247
41248 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
41249
41250         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
41251         * lib/localcharset.c (locale_charset): Declare as extern "C".
41252
41253 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
41254
41255         * lib/config.charset: msdos in uk_UA uses CP1125.
41256
41257 2002-11-04  Bruno Haible  <bruno@clisp.org>
41258
41259         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
41260         * lib/strcase.h: New file, from GNU gettext-0.11.5.
41261         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
41262         * lib/strstr.h: New file, from GNU gettext-0.11.5.
41263         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
41264
41265 2002-11-04  Bruno Haible  <bruno@clisp.org>
41266
41267         * lib/localcharset.c (locale_charset): Don't return an empty string.
41268
41269 2002-11-04  Bruno Haible  <bruno@clisp.org>
41270
41271         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
41272         aliases.
41273
41274 2002-11-04  Bruno Haible  <bruno@clisp.org>
41275
41276         * lib/config.charset: Update for newest glibc. Add canonical names
41277         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
41278
41279 2002-11-04  Bruno Haible  <bruno@clisp.org>
41280
41281         * lib/config.charset: Add support for NetBSD.
41282
41283 2002-11-04  Bruno Haible  <bruno@clisp.org>
41284
41285         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
41286
41287 2002-11-01  Bruno Haible  <bruno@clisp.org>
41288
41289         * configure.in: Add AC_CONFIG_AUX_DIR call.
41290         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
41291         test/Makefile.
41292         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
41293
41294 2002-09-28  Karl Berry  <karl@gnu.org>
41295
41296         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
41297         installed automake until the next release, since changes have been
41298         made.
41299
41300 2002-09-25  Karl Berry  <karl@gnu.org>
41301
41302         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
41303         * lib/getopt*: copy from libc/posix.
41304         * lib/gettext.h: copy from gettext.
41305         * lib/.cppi-disable: add strdup.c, gettext.h.
41306
41307 2002-09-25  Karl Berry  <karl@gnu.org>
41308
41309         * config/srclist.txt: enable gettext.h check.
41310         * config/config.{guess,sub}: update from prep.
41311         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
41312                 from automake 1.6.3.
41313         See srclist*.
41314
41315 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
41316
41317         * regex.c (PATFETCH): Remove the translating fetch.
41318         (PATFETCH_RAW): Rename to PATFETCH.
41319         (set_image_of_range): New fun.
41320         (SET_RANGE_TABLE_WORK_AREA): Use it.
41321         (regex_compile): Don't translate the pattern chars so eagerly.
41322         Only do it when inserting an `exactn' bytecode or when handling
41323         a char-range.
41324         (mutually_exclusive_p): Avoid empty statement.
41325
41326 2002-07-06  Jim Meyering  <meyering@lucent.com>
41327
41328         * m4/README: Don't mention Makefile.am.in.
41329         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
41330
41331 2002-07-01  Jim Meyering  <meyering@lucent.com>
41332
41333         * lib/c-stack.c: Include sys/time.h.
41334         From Volker Borchert.
41335
41336 2002-06-26  Paul Eggert  <eggert@twinsun.com>
41337
41338         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
41339
41340 2002-06-26  Paul Eggert  <eggert@twinsun.com>
41341
41342         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
41343         New macro.  Use it uniformly instead of
41344         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
41345         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
41346         reported by Vin Shelton.
41347
41348 2002-06-22  Paul Eggert  <eggert@twinsun.com>
41349
41350         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
41351         Do not assume SA_SIGINFO behavior.
41352         Bug reported by Jim Meyering on NetBSD 1.5.2.
41353
41354 2002-06-22  Jim Meyering  <meyering@lucent.com>
41355
41356         * m4/c-stack.m4: New file, from diffutils-2.8.2.
41357         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
41358
41359         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
41360         now that configure.ac uses AC_GNU_SOURCE.
41361         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
41362         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
41363
41364         Update to latest tools.  Suggestions from Paul Eggert.
41365         * m4/stdbool.m4: New file, from diffutils-2.8.2.
41366         * m4/gnu-source.m4: Update from diffutils-2.8.2.
41367         * m4/fnmatch.m4: Likewise.
41368         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
41369         to AC_HEADER_STDBOOL
41370
41371 2002-06-22  Jim Meyering  <meyering@lucent.com>
41372
41373         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
41374         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
41375
41376 2002-06-22  Jim Meyering  <meyering@lucent.com>
41377
41378         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
41379
41380         * lib/exitfail.c, exitfail.h: Likewise.
41381         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
41382
41383         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
41384         of fnmatch.h.
41385         (EXTRA_DIST): Add fnmatch_loop.c.
41386         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
41387
41388         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
41389         * lib/fnmatch.c: Update from diffutils-2.8.2.
41390         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
41391         * lib/fnmatch.h: Remove file.
41392
41393 2002-06-21  Jim Meyering  <meyering@lucent.com>
41394
41395         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
41396         * m4/mbrtowc.m4: Likewise.
41397
41398         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
41399         * m4/mbswidth.m4: Reflect name change:
41400         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
41401         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
41402
41403         * m4/lib-link.m4: Update from gettext-0.11.2.
41404         * m4/gettext.m4: Likewise.
41405
41406         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
41407         From Alfred M. Szmidt.
41408
41409 2002-06-18  Paul Eggert  <eggert@twinsun.com>
41410
41411         * lib/file-type.h: Report an error if neither S_ISREG nor
41412         S_IFREG is defined, instead of using a test specific to glibc
41413         2.2.  This should be safe, since POSIX requires S_ISREG and
41414         Unix Version 7 had S_IFREG.  We don't need to check for
41415         <sys/types.h> since we don't use any symbols that it defines.
41416
41417 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
41418
41419         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
41420         $@-t, so that each temporary file name is unique and valid in the first
41421         8 characters, for operation under DOS.
41422
41423 2002-06-15  Paul Eggert  <eggert@twinsun.com>
41424
41425         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
41426
41427 2002-06-15  Jim Meyering  <meyering@lucent.com>
41428
41429         Work even with DJGPP 2.03, which lacks support for symlinks.
41430         From Richard Dawe.
41431         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
41432         is defined.
41433         * lib/lchown.c (S_ISLNK): Likewise.
41434
41435 2002-06-15  Jim Meyering  <meyering@lucent.com>
41436
41437         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
41438         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
41439         have been included before this file.
41440
41441 2002-06-14  Jim Meyering  <meyering@lucent.com>
41442
41443         * lib/file-type.h: Use the version from diffutils-2.8.2.
41444         * lib/file-type.c: Likewise.
41445
41446 2002-06-07  Jim Meyering  <meyering@lucent.com>
41447
41448         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
41449         They're needed at least for NetBSD 1.5.2.
41450         ($statxfs_includes): Include those same headers.
41451         ($statxfs_includes): Include sys/vfs.h if available.
41452         ($statxfs_includes): Likewise for sys/statvfs.h.
41453         Check for the following members in both structs statfs and statvfs:
41454         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
41455
41456 2002-06-01  Jim Meyering  <meyering@lucent.com>
41457
41458         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
41459         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
41460
41461 2002-05-28  Jim Meyering  <meyering@lucent.com>
41462
41463         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
41464         Reported by Volker Borchert.
41465
41466 2002-05-27  Jim Meyering  <meyering@lucent.com>
41467
41468         Fix a problem seen only on nonconforming systems whereby ls.c's
41469         use of localtime, and then of gettimeofday would cause trouble:
41470         the localtime call used to initialize rpl_gettimeofday's save
41471         mechanism would clobber ls's current local time information so
41472         that in any long listing the first file would always be listed
41473         with date 1970-01-01.  Analysis by Volker Borchert.
41474
41475         * lib/gettimeofday.c (localtime): Undefine.
41476         (rpl_localtime): New function.
41477
41478 2002-05-27  Jim Meyering  <meyering@lucent.com>
41479
41480         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
41481         localtime.
41482
41483         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
41484         use the replacement function; it wouldn't resolve at link time.
41485         Reported by Volker Borchert.
41486
41487 2002-05-22  Jim Meyering  <meyering@lucent.com>
41488
41489         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
41490         file-type.h.
41491         * lib/file-type.h: New file.
41492         * lib/file-type.c (file_type): New file/function.  Extracted from
41493         diffutils.
41494
41495 2002-04-30  Jim Meyering  <meyering@lucent.com>
41496
41497         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
41498
41499 2002-04-29  Paul Eggert  <eggert@twinsun.com>
41500
41501         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
41502
41503 2002-04-29  Paul Eggert  <eggert@twinsun.com>
41504
41505         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
41506         Do not check for alloca.h (no longer used) or stdbool.h (was never
41507         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
41508
41509 2002-04-29  Paul Eggert  <eggert@twinsun.com>
41510
41511         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
41512
41513 2002-04-29  Jim Meyering  <meyering@lucent.com>
41514
41515         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
41516         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
41517         Use AC_FUNC_STRNLEN here instead.
41518
41519         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
41520         With autoconf-2.53a, it's part of AC_PROG_CC.
41521
41522 2002-04-28  Paul Eggert  <eggert@twinsun.com>
41523
41524         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
41525         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
41526
41527 2002-04-28  Paul Eggert  <eggert@twinsun.com>
41528
41529         * lib/sig2str.h, lib/sig2str.c: New files.
41530         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
41531
41532 2002-04-28  Paul Eggert  <eggert@twinsun.com>
41533
41534         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
41535         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
41536         of 127, since 64 is the largest conceivable number for ancient
41537         nonstandard hosts.
41538         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
41539
41540 2002-04-28  Jim Meyering  <meyering@lucent.com>
41541
41542         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
41543
41544 2002-04-24  Jim Meyering  <meyering@lucent.com>
41545
41546         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
41547         (jm_PREREQ): Use it.
41548
41549         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
41550         mach/mach.h fcntl.h.
41551         Check for this function: setlocale.
41552
41553 2002-04-24  Jim Meyering  <meyering@lucent.com>
41554
41555         * lib/gettext.h: New file, from Gettext.
41556         * lib/Makefile.am (INCLUDES): Remove -I../intl.
41557         (libfetish_a_SOURCES): Add gettext.h.
41558
41559 2002-04-16  Jim Meyering  <meyering@lucent.com>
41560
41561         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
41562         ut_pid, ut_id, ut_exit.
41563
41564 2002-04-16  Jim Meyering  <meyering@lucent.com>
41565
41566         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
41567         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
41568         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
41569
41570 2002-04-12  Jim Meyering  <meyering@lucent.com>
41571
41572         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
41573         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
41574         existence of the getmntinfo function.  Needed for Darwin 5.3.
41575
41576         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
41577         This is necessary at least on Darwin 5.3.
41578
41579         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
41580         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
41581         strnlen.o in the library, and that makes some versions of ranlib
41582         object.
41583
41584 2002-04-12  Jim Meyering  <meyering@lucent.com>
41585
41586         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
41587
41588 2002-04-09  Jim Meyering  <meyering@lucent.com>
41589
41590         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
41591         to be more precise.  Rather than saying we're checking whether the
41592         function `works', say what we're testing.
41593         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
41594         Reported by Bruno Haible.
41595
41596 2002-03-10  Jim Meyering  <meyering@lucent.com>
41597
41598         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
41599         Suggestion from Santiago Vila.
41600
41601 2002-03-08  Jim Meyering  <meyering@lucent.com>
41602
41603         * lib/rename.c: Mention that this wrapper is needed also on
41604         mips-dec-ultrix4.4 systems.
41605
41606 2002-03-02  Jim Meyering  <meyering@lucent.com>
41607
41608         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
41609         not HAVE_CLOCK_SETTIME.
41610
41611 2002-02-27  Paul Eggert  <eggert@twinsun.com>
41612
41613         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
41614         Check for clock_settime.
41615
41616 2002-02-27  Paul Eggert  <eggert@twinsun.com>
41617
41618         * lib/nanosleep.h: Rename to....
41619         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
41620
41621         * lib/gettime.c: New file.
41622         * lib/settime.c: New file.
41623         * lib/stime.c: Remove.
41624
41625         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
41626         timespec.h.  Remove nanosleep.h.
41627
41628 2002-02-25  Paul Eggert  <eggert@twinsun.com>
41629
41630         * m4/acl.m4: New file.
41631         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
41632         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
41633
41634 2002-02-25  Paul Eggert  <eggert@twinsun.com>
41635
41636         * lib/acl.c, lib/acl.h: New files.
41637         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
41638
41639 2002-02-24  Jim Meyering  <meyering@lucent.com>
41640
41641         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
41642         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
41643         cause trouble.  Reported by Nelson Beebe.
41644
41645 2002-02-23  Paul Eggert  <eggert@twinsun.com>
41646
41647         * lib/path-concat.c (xpath_concat): Reorder code to pacify
41648         compilers that don't know that xalloc_die never returns.
41649
41650 2002-02-20  Jim Meyering  <meyering@lucent.com>
41651
41652         * lib/getdate.c: Regenerate using bison-1.33.
41653
41654 2002-02-17  Jim Meyering  <meyering@lucent.com>
41655
41656         * config/config.guess (main): Don't use `head -1'; it's no longer
41657         portable. Use `sed 1q' instead.
41658
41659 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
41660
41661         * m4/codeset.m4: Upgrade to gettext-0.11.
41662         * m4/gettext.m4: Upgrade to gettext-0.11.
41663         * m4/glibc21.m4: Upgrade to gettext-0.11.
41664         * m4/iconv.m4: Upgrade to gettext-0.11.
41665         * m4/isc-posix.m4: Upgrade to gettext-0.11.
41666         * m4/lcmessage.m4: Upgrade to gettext-0.11.
41667         * m4/lib-ld.m4: New file, from gettext-0.11.
41668         * m4/lib-link.m4: New file, from gettext-0.11.
41669         * m4/lib-prefix.m4: New file, from gettext-0.11.
41670         * m4/progtest.m4: Upgrade to gettext-0.11.
41671
41672 2002-02-15  Paul Eggert  <eggert@twinsun.com>
41673
41674         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
41675         (jm_PREREQ): Use it.
41676
41677 2002-02-15  Paul Eggert  <eggert@twinsun.com>
41678
41679         * lib/posixver.c, lib/posixver.h: New files.
41680         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
41681
41682 2002-02-02  Paul Eggert  <eggert@twinsun.com>
41683             Bruno Haible  <bruno@clisp.org>
41684
41685         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
41686         (fwrite_success_callback): New declaration.
41687         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
41688         print_unicode_char. Call failure callback instead of error.
41689         (fwrite_success_callback): New function.
41690         (exit_failure_callback): New function.
41691         (fallback_failure_callback): New function.
41692         (print_unicode_char): Call unicode_to_mb.
41693
41694 2002-01-26  Jim Meyering  <meyering@lucent.com>
41695
41696         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
41697         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
41698
41699 2002-01-26  Jim Meyering  <meyering@lucent.com>
41700
41701         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
41702
41703 2002-01-22  Paul Eggert  <eggert@twinsun.com>
41704
41705         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
41706
41707 2002-01-22  Jim Meyering  <meyering@lucent.com>
41708
41709         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
41710         Otherwise, some versions of automake would omit the rule that makes
41711         Makefile from Makefile.in.
41712
41713 2002-01-21  Paul Eggert  <eggert@twinsun.com>
41714
41715         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
41716         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
41717         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
41718         (memcoll): Set errno to zero if there is no error.
41719
41720         * lib/quotearg.c (quotearg_buffer_restyled):
41721         Fix bug with quoting buffers containing NUL when backslashing escapes.
41722         This bug was exposed by the other changes in this patch.
41723         (quotearg_n_options): New arg ARGSIZE.
41724         All callers changed.
41725         (quoting_options_from_style): New function.
41726         (quotearg_n_style): Use it.
41727         (quotearg_n_style_mem): New function.
41728
41729         * lib/quotearg.h (quotearg_n_style_mem): New function.
41730
41731 2002-01-19  Jim Meyering  <meyering@lucent.com>
41732
41733         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
41734         Remove useless quotes: DF_PROG="df".
41735         * m4/strnlen.m4: New file.
41736
41737 2002-01-16  Paul Eggert  <eggert@twinsun.com>
41738
41739         * lib/backupfile.c (ISDIGIT): Comment fix.
41740         * lib/getdate.y (ISDIGIT): Likewise.
41741         * lib/posixtm.c (ISDIGIT, year): Likewise.
41742         * lib/strverscmp.c (ISDIGIT): Likewise.
41743         * lib/userspec.c (ISDIGIT): Likewise.
41744
41745 2002-01-16  Jim Meyering  <meyering@lucent.com>
41746
41747         * lib/getdate.y: Add three semicolons, each just before a closing
41748         brace. Bison (as of version 1.31) no longer papers over that mistake.
41749
41750 2002-01-05  Jim Meyering  <meyering@lucent.com>
41751
41752         * lib/version-etc.c (version_etc_copyright): Update copyright year.
41753
41754 2001-12-19  Paul Eggert  <eggert@twinsun.com>
41755
41756         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
41757         not silently exit merely because the output buffer happens to
41758         have nothing pending.
41759
41760 2001-12-18  Paul Eggert  <eggert@twinsun.com>
41761
41762         See the big note in ../ChangeLog.
41763         * lib/human.c (suffixes): Prefer K to k for 1024.
41764         (generate_suffix_backwards): New function.
41765         (human_readable_inexact): Use it.
41766         * lib/xstrtol.c (__xstrtol): If there is no number but there
41767         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
41768         Accept 'K' as well as 'k'.
41769
41770 2001-12-15  Jim Meyering  <meyering@lucent.com>
41771
41772         * lib/regex.h (__restrict_arr): Update from libc.
41773
41774         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
41775         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
41776         (STREQ): Define.
41777
41778 2001-12-14  Jim Meyering  <meyering@lucent.com>
41779
41780         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
41781         Suggestion from Bruno Haible.
41782
41783 2001-12-10  Jim Meyering  <meyering@lucent.com>
41784
41785         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
41786         xrealloc, Instead, include "xalloc.h".
41787         (initbuffer): Don't cast xmalloc return value to char*.
41788         (readline): Reword comment.
41789         Don't cast xrealloc return value to char*
41790         Return NULL, not 0.
41791
41792 2001-12-09  Jim Meyering  <meyering@lucent.com>
41793
41794         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
41795         about `signed and unsigned type in conditional expression'.
41796         * lib/posixtm.c (posix_time_parse): Likewise.
41797
41798         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
41799
41800         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
41801         to avoid a pedantic warning.
41802
41803         * lib/getstr.c: Don't include assert.h.
41804         (getstr): Remove warning-evoking assertions.
41805         Return -1 if offset parameter is out of bounds.
41806         Change the type of a local from int to size_t.
41807
41808         * lib/strftime.c (my_strftime_localtime_r): Include this function
41809         definition in the `#if ! HAVE_TM_GMTOFF' block.
41810
41811         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
41812         Include xalloc.h instead.
41813
41814 2001-12-02  Jim Meyering  <meyering@lucent.com>
41815
41816         * lib/tempname.c: Don't declare getenv, thus reverting the change of
41817         2001-11-18.  It's no longer necessary, now that stdlib.h is always
41818         included.
41819
41820         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
41821         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
41822
41823 2001-11-30  Akim Demaille  <akim@epita.fr>
41824
41825         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
41826         before being defined.
41827
41828 2001-11-27  Paul Eggert  <eggert@twinsun.com>
41829
41830         * lib/quotearg.h (quotearg_n, quotearg_n_style):
41831         First arg is int, not unsigned.
41832         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
41833         (SIZE_MAX, UINT_MAX): New macros.
41834         (quotearg_n_options): Abort if N is negative.
41835         Avoid overflow check on hosts where size_t is 64 bits and int
41836         is 32 bits, as overflow is impossible there.
41837         Fix off-by-one typo that caused unnecessary reallocation.
41838
41839 2001-11-27  Jim Meyering  <meyering@lucent.com>
41840
41841         * lib/tempname.c: Merge with version from libc.
41842         * lib/regex.c: Likewise.
41843
41844         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
41845         systems for which STDC_HEADERS is 0, it was not included, resulting in
41846         a warning about an integer-to-pointer conversion problem with getenv.
41847         Reported by Volker Borchert.
41848
41849 2001-11-26  Jim Meyering  <meyering@lucent.com>
41850
41851         * lib/gtod.h: Remove file.
41852         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
41853         * lib/gettimeofday.c: Don't include gtod.h.
41854         (GTOD_init): Remove function.
41855         (rpl_gettimeofday): Do its job here instead, rather than aborting.
41856         Suggestion from Volker Borchert.
41857
41858 2001-11-23  Jim Meyering  <meyering@lucent.com>
41859
41860         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
41861         it.
41862         * lib/hash.c (struct hash_table): Define it here instead.
41863
41864 2001-11-22  Jim Meyering  <meyering@lucent.com>
41865
41866         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
41867
41868 2001-11-20  Jim Meyering  <meyering@lucent.com>
41869
41870         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
41871         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
41872
41873 2001-11-19  Jim Meyering  <meyering@lucent.com>
41874
41875         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
41876         directory.  Use "conftestXXXXXX" as the template.
41877         Suggestion from Paul Eggert.
41878
41879         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
41880         immediately, so the test doesn't mistakenly hit the max-open-files
41881         limit.
41882
41883 2001-11-18  Paul Eggert  <eggert@twinsun.com>
41884
41885         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
41886         (TEMPORARIES): New macro.
41887         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
41888         removes an artificial limitation (e.g. HP-UX 10.20, where
41889         TMP_MAX is 17576).
41890
41891 2001-11-18  Jim Meyering  <meyering@lucent.com>
41892
41893         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
41894
41895 2001-11-18  Jim Meyering  <meyering@lucent.com>
41896
41897         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
41898         on SunOS 4.
41899
41900         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
41901         files will be created before anything else.
41902
41903 2001-11-17  Paul Eggert  <eggert@twinsun.com>
41904
41905         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
41906         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
41907
41908 2001-11-17  Jim Meyering  <meyering@lucent.com>
41909
41910         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
41911         Prompted by a report from Bob Proulx.
41912
41913         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
41914         Instead, require UTILS_FUNC_MKSTEMP.
41915
41916 2001-11-17  Jim Meyering  <meyering@lucent.com>
41917
41918         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
41919         Now, that's done as part of AC_FUNC_STRTOD.
41920
41921 2001-11-17  Jim Meyering  <meyering@lucent.com>
41922
41923         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
41924         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
41925         rather than group writable.  Patch by Juan F. Codagnone.
41926
41927         * lib/readtokens.c: Remove explicit declarations of xmalloc and
41928         xrealloc, Instead, include "xalloc.h".
41929
41930         * lib/mountlist.c: Include unlocked-io.h after all system headers.
41931         Remove explicit declarations of xmalloc, xrealloc,
41932         and xstrdup.  Instead, include "xalloc.h".
41933
41934         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
41935         unlocked-io.h.
41936         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
41937         Likewise.
41938         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
41939
41940         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
41941         Reported by Padraig Brady.
41942
41943         * lib/mkstemp.c: #undef mkstemp.
41944         Include config.h.
41945         (rpl_mkstemp): Rename from mkstemp.
41946         Protoize.
41947
41948 2001-11-16  Jim Meyering  <meyering@lucent.com>
41949
41950         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
41951         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
41952         determine the amount of total physical memory, use pstat_getstatic.
41953         HPUX-11 doesn't define _SC_PHYS_PAGES.
41954         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
41955         If sysconf couldn't be used to determine the amount of available
41956         physical memory, use both pstat_getstatic and pstat_getdynamic.
41957         Based on a patch from Bob Proulx.
41958
41959 2001-11-10  Jim Meyering  <meyering@lucent.com>
41960
41961         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
41962         (jm_PREREQ): Use it.
41963
41964 2001-11-09  Jim Meyering  <meyering@lucent.com>
41965
41966         * m4/jm-macros.m4: Require autoconf-2.52f.
41967         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
41968         Use these AC_-prefixed names, not the AM_-prefixed ones.
41969
41970         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
41971
41972 2001-11-05  Jim Meyering  <meyering@lucent.com>
41973
41974         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
41975
41976 2001-11-04  Jim Meyering  <meyering@lucent.com>
41977
41978         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
41979         $DEFS.
41980
41981 2001-11-03  Jim Meyering  <meyering@lucent.com>
41982
41983         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
41984         of AC_DEFUN.
41985
41986         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
41987         know the name of the variable in the macro definition.
41988
41989 2001-11-03  Jim Meyering  <meyering@lucent.com>
41990
41991         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
41992         in argmatch_to_argument call.
41993
41994         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
41995         argument.
41996
41997         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
41998         e.g., a fault due to an attempt to free a NULL pointer.
41999
42000 2001-11-01  Jim Meyering  <meyering@lucent.com>
42001
42002         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
42003         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
42004
42005 2001-11-01  Jim Meyering  <meyering@lucent.com>
42006
42007         * lib/dirfd.c, lib/dirfd.h: New files.
42008         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
42009
42010         * lib/hash.c (hash_print) [TESTING]: Clean up.
42011
42012 2001-10-22  Paul Eggert  <eggert@twinsun.com>
42013
42014         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
42015         to avoid a warning if -Wall.
42016
42017 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
42018
42019         * README: New file
42020         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
42021         (per RMS's instructions, this is now the canonical source)
42022         * lgpl/, gpl/: New directories.
42023
42024 2001-10-21  Paul Eggert  <eggert@twinsun.com>
42025
42026         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
42027
42028 2001-10-21  Jim Meyering  <meyering@lucent.com>
42029
42030         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
42031         this code would end up calling gettext even in packages built
42032         with --disable-nls.
42033         * lib/getopt.c (_): Likewise.
42034         * lib/regex.c (_): Likewise.
42035
42036 2001-10-20  Paul Eggert  <eggert@twinsun.com>
42037
42038         * m4/error.m4 (jm_PREREQ_ERROR):
42039         Do not invoke AC_CHECK_FUNCS with strerror_r, as
42040         AC_FUNC_STRERROR_R does that.
42041         Check for strerror declaration.
42042
42043         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
42044         are supposed to have them these days.
42045         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
42046         Merge changes from latest Autoconf CVS.
42047         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
42048         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
42049         POSIX decided to standardize on the int flavor of strerror_r.
42050
42051 2001-10-20  Paul Eggert  <eggert@twinsun.com>
42052
42053         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
42054         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
42055         Use strerror_r that is only a macro, even if it is not a function.
42056         (strerror): Check for HAVE_DECL_STRERROR before declaring.
42057         (private_strerror): Use prototypes, not old-style function definition.
42058         (print_errno_message): New function.
42059         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
42060         char*-flavored one.
42061         (error_tail, error, error_at_line): Use it.
42062
42063 2001-10-11  Jim Meyering  <meyering@lucent.com>
42064
42065         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
42066         and quote_n (1, ... to avoid clobbering a buffer.
42067
42068 2001-10-05  Jim Meyering  <meyering@lucent.com>
42069
42070         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
42071         hash-pjw.h.
42072         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
42073         * lib/hash-pjw.h: New file.
42074
42075 2001-09-30  Jim Meyering  <meyering@lucent.com>
42076
42077         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
42078         `struct fsstat' has the `f_fstypename' member.
42079         Use that to define FS_TYPE, which is now used to make
42080         the getfsstat link test tighter.
42081
42082 2001-09-30  Jim Meyering  <meyering@lucent.com>
42083
42084         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
42085         Include <sys/ucred.h>, for Apple Darwin.
42086         Include sys/mount.h and sys/fs_types.h only if available.
42087         (FS_TYPE): Define.
42088         (read_filesystem_list): Use FS_TYPE.
42089
42090 2001-09-29  Paul Eggert  <eggert@twinsun.com>
42091
42092         * lib/exclude.c (excluded_filename): 0 -> false, since it's
42093         a boolean context.
42094
42095 2001-09-29  Jim Meyering  <meyering@lucent.com>
42096
42097         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
42098         [one-argument getmntent function]): Include stdio.h before mntent.h.
42099         SunOS 4.1.x needs it for the declaration of `FILE'.
42100         Patch by Volker Borchert.
42101
42102         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
42103         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
42104         sys/fs_types.h, and make the link-test for getfsstat guard #include
42105         directives with appropriate #if HAVE_*_H tests so that we can
42106         detect getfsstat on Apple Darwin1.3.7 systems.
42107         Reported by Nelson Beebe.
42108         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
42109
42110 2001-09-28  Paul Eggert  <eggert@twinsun.com>
42111
42112         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
42113         #defines strtoimax.  Also treat the other strto* functions
42114         like strtoimax.
42115
42116         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
42117         Check for strtoul and strtoumax,
42118         as those declarations are made even in the signed case.
42119         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
42120         Likewise, for strtol and strtoimax.
42121
42122 2001-09-28  Paul Eggert  <eggert@twinsun.com>
42123
42124         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
42125         #defines strtoimax.  Also treat the other strto* functions
42126         like strtoimax.
42127
42128         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
42129         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
42130         (strtoimax, strtoumax): Do not declare if already defined as a macro.
42131
42132 2001-09-26  Jim Meyering  <meyering@lucent.com>
42133
42134         Most macros in unlocked-io.h had the wrong number of arguments.
42135         * lib/gen-uio: New script.
42136         (USE_UNLOCKED_IO): Define to 1 if not already defined.
42137         * lib/unlocked-io.hin: Remove file.
42138         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
42139         rather than trying to embed it here.
42140         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
42141         Reported by Padraig Brady.
42142
42143 2001-09-25  Volker Borchert  <bt@teknon.de>
42144
42145         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
42146         `result'.
42147
42148 2001-09-24  Jim Meyering  <meyering@lucent.com>
42149
42150         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
42151
42152 2001-09-23  Jim Meyering  <meyering@lucent.com>
42153
42154         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
42155         instead of the mere test for existence of mntent.h.  The latter
42156         would get a false-positive on AIX 3.4 systems.
42157         In the outer getmntent if-block, don't die if neither of the getmntent
42158         tests succeeds.  Instead, just fall through and continue with the
42159         remaining tests.
42160
42161 2001-09-23  Jim Meyering  <meyering@lucent.com>
42162
42163         * lib/mountlist.c: Remove useless parentheses in #if directives.
42164         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
42165         the deprecated MOUNTED symbol is no longer defined in mntent.h.
42166
42167 2001-09-22  Jim Meyering  <meyering@lucent.com>
42168
42169         * m4/gettext.m4: New file.  From gettext.
42170         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
42171         * m4/progtest.m4: Likewise
42172         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
42173         * m4/glibc21.m4: Likewise.
42174
42175         * m4/libintl.m4: Remove.  No longer used.
42176
42177 2001-09-22  Jim Meyering  <meyering@lucent.com>
42178
42179         * lib/localcharset.c: Update from latest gettext.
42180         * lib/config.charset: Likewise.
42181
42182 2001-09-20  Jim Meyering  <meyering@lucent.com>
42183
42184         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
42185         strtoimax.
42186         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
42187         strtoumax.
42188
42189 2001-09-20  Jim Meyering  <meyering@lucent.com>
42190
42191         * lib/xstrtol.c (strtoimax): Guard declaration with
42192         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
42193         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
42194         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
42195         (strtoumax): Likewise, for completeness (it wasn't necessary).
42196
42197 2001-09-17  Paul Eggert  <eggert@twinsun.com>
42198
42199         * lib/strtoimax.c (HAVE_LONG_LONG):
42200         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
42201         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
42202         to work around bug in IBM C compiler.
42203
42204 2001-09-17  Jim Meyering  <meyering@lucent.com>
42205
42206         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
42207         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
42208         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
42209         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
42210         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
42211         whenever the right hand side need not be expanded by the shell.
42212
42213 2001-09-16  Paul Eggert  <eggert@twinsun.com>
42214
42215         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
42216         library.  It's not correct, as some older glibcs are buggy.
42217         fnmatch wasn't fixed until glibc 2.2.
42218
42219         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
42220         special shell magic here.
42221
42222 2001-09-16  Jim Meyering  <meyering@lucent.com>
42223
42224         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
42225         * m4/jm-macros.m4: Require it.
42226
42227 2001-09-16  Jim Meyering  <meyering@lucent.com>
42228
42229         * lib/mkdir.c: New file.
42230
42231 2001-09-15  Jim Meyering  <meyering@lucent.com>
42232
42233         * m4/jm-macros.m4: Check for help2man.
42234
42235 2001-09-11  Jim Meyering  <meyering@lucent.com>
42236
42237         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
42238         The body, by Paul Eggert, was moved here from configure.in.
42239         * m4/jm-macros.m4: Require UTILS_HOST_OS.
42240
42241 2001-09-04  Paul Eggert  <eggert@twinsun.com>
42242
42243         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
42244         (jm_PREREQ): Use it.
42245
42246 2001-09-04  Paul Eggert  <eggert@twinsun.com>
42247
42248         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
42249         Use ssize_t, not int, to store result of readlink.
42250         Check for ssize_t overflow as well as size_t overflow,
42251         as POSIX says the result of readlink is implementation-defined
42252         when ssize_t overflows.
42253         Remove unnecessary cast to char*.
42254         Use free+malloc instead of realloc, as the storage doesn't need
42255         to be preserved and it's clearer and can be more efficient that way.
42256         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
42257         * lib/xreadlink.h (xreadlink): Update prototype.
42258
42259 2001-09-04  Paul Eggert  <eggert@twinsun.com>
42260
42261         * lib/xgetcwd.c: Revert some of the previous change; intead,
42262         fix the HAVE_GETCWD_NULL code to behave more like the
42263         !HAVE_GETCWD_NULL code used to.
42264
42265         Include "xalloc.h".
42266         (xgetcwd): Do not return NULL when memory is exhausted; instead,
42267         invoke xalloc_die.
42268
42269 2001-09-03  Paul Eggert  <eggert@twinsun.com>
42270
42271         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
42272         sys/param.h, as pathmax.h includes them.
42273
42274 2001-09-03  Paul Eggert  <eggert@twinsun.com>
42275
42276         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
42277         (jm_PREREQ_XGETCWD): New macro.
42278
42279         * m4/getcwd.m4: New file.
42280
42281 2001-09-03  Paul Eggert  <eggert@twinsun.com>
42282
42283         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
42284         like the HAVE_GETCWD_NULL code.
42285         Include pathmax.h if not HAVE_GETCWD.
42286         Do not include xalloc.h.
42287         (INITIAL_BUFFER_SIZE): New symbol.
42288         Do not use xmalloc / xrealloc, since the caller is responsible for
42289         handling errors.  Preserve errno around `free' during failure.
42290         Do not overrun buffer when using getwd.
42291
42292 2001-09-03  Paul Eggert  <eggert@twinsun.com>
42293
42294         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
42295         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
42296         getcwd (NULL, 0).
42297
42298 2001-09-03  Paul Eggert  <eggert@twinsun.com>
42299
42300         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
42301         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
42302         spotted by Jim Meyering.
42303
42304 2001-09-03  Jim Meyering  <meyering@lucent.com>
42305
42306         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
42307         failure.
42308
42309 2001-09-02  Jim Meyering  <meyering@lucent.com>
42310
42311         * lib/error.c: Update from GNU libc.
42312
42313 2001-09-01  Jim Meyering  <meyering@lucent.com>
42314
42315         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
42316         Used by df.
42317
42318 2001-09-01  Jim Meyering  <meyering@lucent.com>
42319
42320         * lib/xreadlink.c: New file.
42321         * lib/xreadlink.h: New file.
42322         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
42323         xreadlink.h.
42324
42325         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
42326         doesn't conflict with sparc Solaris 7's definition in
42327         /usr/include/sys/int_types.h.
42328
42329         * lib/exclude.c: Use `""', not `<>' to #include non-system header
42330         files.
42331         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
42332         and strncasecmp as r-values.  Unixware didn't have declarations.
42333
42334 2001-08-31  Paul Eggert  <eggert@twinsun.com>
42335
42336         * lib/xstrtol.h: Add copyright notice.
42337         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
42338         LONGINT_INVALID_SUFFIX_CHAR.
42339
42340 2001-08-31  Paul Eggert  <eggert@twinsun.com>
42341
42342         * lib/xstrtol.c (strtoimax): New decl.
42343
42344 2001-08-31  Paul Eggert  <eggert@twinsun.com>
42345
42346         * lib/xgetcwd.c: Don't include pathmax.h.
42347         Include stdlib.h and unistd.h if available.
42348         Include xalloc.h.
42349         (xmalloc, xstrdup, free): Remove decls.
42350         (xgetcwd): Don't assume sizes fit in unsigned.
42351         Check for overflow when computing sizes.
42352         Simplify reallocation code.
42353
42354 2001-08-31  Paul Eggert  <eggert@twinsun.com>
42355
42356         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
42357         a directory's st_size can have an arbitrary value, so the old
42358         usage could waste an arbitrary amount of memory.  All uses
42359         changed.
42360         * lib/savedir.h: Update prototype.
42361
42362 2001-08-31  Paul Eggert  <eggert@twinsun.com>
42363
42364         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
42365
42366         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
42367         old strtoimax.c.
42368
42369         Also, make the following further changes to make this file's
42370         configuration more similar to that of strtol.c:
42371         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
42372         (strtoumax, uintmax_t, strtoull, strtol): Remove.
42373         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
42374         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
42375         changed to signed values.
42376
42377         And make the following changes as well:
42378         Fix copyright notice, as 1999 was missing.
42379         (verify): New macro.
42380         (strtoimax): Check sizes at compile-time, not run-time.
42381         Prefer strtol to strtoll if both work.
42382         (main): Remove; it was not that useful and was a pain to maintain.
42383
42384         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
42385
42386 2001-08-31  Jim Meyering  <meyering@lucent.com>
42387
42388         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
42389         Use an initial, malloc'd, buffer of length 128 rather than
42390         a statically allocated one of length 1024.
42391
42392 2001-08-30  Paul Eggert  <eggert@twinsun.com>
42393
42394         Simplify code, partly by assuming autoconf 2.52 semantics.
42395
42396         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
42397
42398         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
42399         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
42400         All uses removed.
42401         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
42402         Move AC_REQUIRE to next-to-top level, to avoid confusion.
42403         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
42404         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
42405         jm_AC_HEADER_INTTYPES_H.
42406         * m4/jm-macros.m4 (jm_MACROS): Likewise.
42407
42408         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
42409
42410         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
42411         Quote first arg of AC_DEFUN.
42412         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
42413         since they are needed to parse the include file even if we need
42414         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
42415         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
42416         but with opposite signedness.
42417
42418 2001-08-30  Paul Eggert  <eggert@twinsun.com>
42419
42420         Merge 'exclude' changes from tar 1.13.22.
42421         This fixes one or two unlikely storage allocation overflow bugs,
42422         but doesn't change user-visible behavior otherwise.
42423
42424 2001-08-30  Paul Eggert  <eggert@twinsun.com>
42425
42426         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
42427         (jm_PREREQ_EXCLUDE): New macro.
42428
42429 2001-08-30  Paul Eggert  <eggert@twinsun.com>
42430
42431         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
42432         tm to be declared.
42433
42434 2001-08-30  Paul Eggert  <eggert@twinsun.com>
42435
42436         * lib/hash.c: Remove '2001' from copyright notice.
42437
42438 2001-08-30  Paul Eggert  <eggert@twinsun.com>
42439
42440         * lib/full-write.h: New file.
42441         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
42442         * lib/full-write.c: Correct credits, as cccp.c no longer
42443         exists and anyway it was so heavily changed from the old cccp
42444         code as to be unrecognizable.  Include full-write.h.
42445         (full_write) Return size_t, with short writes meaning failure.
42446         All callers changed.  This fixes a bug with large buffers
42447         on 64-bit hosts.
42448         * lib/utime.c: Include full-write.h.
42449
42450 2001-08-30  Paul Eggert  <eggert@twinsun.com>
42451
42452         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
42453         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
42454         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
42455         Include if available.
42456         (<xalloc.h>): Include
42457         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
42458         (verify): New macro.  Use it to verify that EXCLUDE macros do not
42459         collide with FNM macros.
42460         (struct patopts): New struct.
42461         (struct exclude): Use it, as exclude patterns now come with options.
42462         (new_exclude): Support above changes.
42463         (new_exclude, add_exclude_file):
42464         Initial size must now be a power of two to simplify overflow checking.
42465         (free_exclude, fnmatch_no_wildcards): New function.
42466         (excluded_filename): No longer requires options arg, as the options
42467         are determined by add_exclude.  Now returns bool, not int.
42468         (excluded_filename, add_exclude):
42469         Add support for the fancy new exclusion options.
42470         (add_exclude, add_exclude_file): Now takes int options arg.
42471         Check for arithmetic overflow when computing sizes.
42472         (add_exclude_file): xrealloc might modify errno, so don't
42473         realloc until after errno might be used.
42474
42475         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
42476         New macros.
42477         (free_exclude): New decl.
42478         (add_exclude, add_exclude_file): Now takes int options arg.
42479         (excluded_filename): No longer requires options arg, as the options
42480         are determined by add_exclude.  Now returns bool, not int.
42481
42482 2001-08-30  Paul Eggert  <eggert@twinsun.com>
42483
42484         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
42485
42486 2001-08-27  Jim Meyering  <meyering@lucent.com>
42487
42488         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
42489
42490         * lib/version-etc.c (N_): Remove definition.
42491         Revert most of last change.
42492         Instead, simply don't mark the `Copyright...' string for translation.
42493         Based on advice from Paul Eggert.
42494
42495         * lib/strtoxmax.c: Tweak comment.
42496
42497 2001-08-26  Jim Meyering  <meyering@lucent.com>
42498
42499         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
42500
42501         * m4/xstrtoimax.m4: New file.
42502         * m4/xstrtoumax.m4: Add comments explaining why we
42503         AC_REPLACE_FUNCS(strtol).
42504
42505 2001-08-26  Jim Meyering  <meyering@lucent.com>
42506
42507         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
42508         of copyright with `%s' so translators don't get an untranslated
42509         message in 2002.
42510         (COPYRIGHT_YEAR): Define.
42511         (version_etc): Use fprintf rather than fputs.
42512         Suggestion from Ulrich Drepper.
42513
42514         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
42515
42516         * lib/strtoll.c: New file, from GNU libc.
42517         * lib/xstrtoimax.c: New file.
42518
42519         * lib/xstrtol.h: Add xstrtoimax.
42520         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
42521         * lib/strtoimax.c: New file.  Likewise, but first define
42522         STRTOUXMAX_SIGNED.
42523
42524         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
42525         ...
42526         * lib/strtoxmax.c: ... then renamed to this.
42527
42528 2001-08-18  Paul Eggert  <eggert@twinsun.com>
42529
42530         * m4/inttypes.m4: Add AC_PREREQ(2.13).
42531         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
42532         (jm_AC_TYPE_INTMAX_T): New macro.
42533         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
42534
42535         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
42536
42537         * m4/longlong.m4: Renamed from ulonglong.m4.
42538         * m4/inttypes.m4: Renamed from inttypes_h.m4.
42539         * m4/uintmax_t.m4: Removed.
42540
42541 2001-08-13  Paul Eggert  <eggert@twinsun.com>
42542
42543         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
42544         Port to Solaris 8, where 'sed' requires a space after the 'r'
42545         command, and where sh dislikes "$/".  Clean up the spacing a bit.
42546         Redirect output to $tmp just once.
42547
42548 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
42549
42550         * lib/addext.c (<errno.h>): Include.
42551         (errno): Declare if not defined.
42552         (addext): Work correctly when pathconf returns -1 and leaves
42553         errno alone because there is no limit.  Also, work even if
42554         pathconf returns a value greater than SIZE_MAX.
42555
42556 2001-08-12  Jim Meyering  <meyering@lucent.com>
42557
42558         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
42559         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
42560         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
42561         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
42562         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
42563         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
42564         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
42565         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
42566         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
42567         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
42568         utime.m4, utimes.m4, xstrtoumax.m4:
42569         Quote the first argument in each use of AC_DEFUN.
42570
42571 2001-08-12  Jim Meyering  <meyering@lucent.com>
42572
42573         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
42574         Simply `return getcwd (NULL, 0);'.
42575         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
42576         Use 1300 as initial value for length, not PATH_MAX.
42577
42578         * lib/pathmax.h: Clean up cpp syntax.
42579
42580 2001-08-12  Jim Meyering  <meyering@lucent.com>
42581
42582         * lib/gettimeofday.c: New file.
42583         * lib/gtod.h: New file.
42584         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
42585
42586 2001-08-05  Jim Meyering  <meyering@lucent.com>
42587
42588         * m4/jm-macros.m4: Require autoconf-2.52.
42589
42590 2001-08-04  Jim Meyering  <meyering@lucent.com>
42591
42592         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
42593         stmt, to get in sync with glibc.
42594
42595 2001-08-03  Paul Eggert  <eggert@twinsun.com>
42596
42597         The following changes are from gettext 0.10.39 as maintained by
42598         Bruno Haible.
42599
42600         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
42601         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
42602         with inverted sense.  All uses changed.
42603
42604         * lib/mbswidth.c: Don't include <limits.h>.
42605         Include <stdlib.h> and <string.h> unconditionally.
42606         (iswcntrl, mbsinit, ISCNTRL): New macros.
42607         (mbsnwidth): Use K&R style function declarations.
42608         Don't bother checking for MB_LEN_MAX == 1, since the compiler
42609         can optimize it when MB_CUR_MAX == 1.
42610         The width of control characters is zero, not 1.
42611
42612 2001-08-03  Paul Eggert  <eggert@twinsun.com>
42613
42614         The following changes are from gettext 0.10.39 as maintained by
42615         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
42616
42617         * m4/codeset.m4: Upgrade to serial AM1.
42618         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
42619         all uses changed.  Quote first arg of AC_DEFUN.
42620         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
42621
42622         * m4/iconv.m4: Upgrade to serial AM2.
42623         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
42624         Add --with-libconv-prefix.
42625         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
42626         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
42627         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
42628         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
42629         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
42630
42631         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
42632         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
42633         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
42634         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
42635         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
42636         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
42637         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
42638         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
42639         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
42640
42641         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
42642         string.h any more.
42643
42644         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
42645         not the default value.
42646
42647         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
42648         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
42649         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
42650         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
42651         Also check for iswcntrl, used for wcwidth fallback.
42652         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
42653         to Autoconf 2.13.
42654
42655 2001-08-03  Jim Meyering  <meyering@lucent.com>
42656
42657         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
42658         as it was in the original.  Reported by Paul Eggert.
42659
42660 2001-07-16  Jim Meyering  <meyering@lucent.com>
42661
42662         * m4/gettimeofday.m4: New file.
42663         Prompted by a report from Bernhard Baehr.
42664
42665 2001-07-15  Jim Meyering  <meyering@lucent.com>
42666
42667         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
42668         stuff. Now it's in ../Makefile.cfg.
42669
42670 2001-07-15  Jim Meyering  <meyering@lucent.com>
42671
42672         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
42673         (BUILT_SOURCES): Add unlocked-io.h.
42674         (io_functions): Define.
42675         (unlocked-io.h): New rule.
42676         (DISTCLEANFILES): Add unlocked-io.h.
42677         (all-local): Depend on unlocked-io.h, to ensure it is created.
42678
42679         * lib/unlocked-io.hin: New file
42680
42681         * lib/regex.c: Update from glibc.
42682
42683 2001-07-05  Jim Meyering  <meyering@lucent.com>
42684
42685         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
42686         recommendation.
42687         (libfetish_a_SOURCES): Put all .h files here instead.
42688         Remove a thus-exposed (better checks in automake) duplicate and
42689         two unnecessary .h files.
42690
42691 2001-07-04  Jim Meyering  <meyering@lucent.com>
42692
42693         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
42694         that generates jm-glibc-io.m4 so that it doesn't trigger any make
42695         distcheck failure.
42696
42697 2001-07-02  Jim Meyering  <meyering@lucent.com>
42698
42699         The following changes were prompted by suggestions from Bruno Haible.
42700
42701         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
42702         is now generated.
42703         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
42704         definition of EXTRA_DIST.
42705         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
42706         ensure that the generated file is created/updated whenever the list
42707         of $(unlocked_functions) is changed.
42708         (jm-glibc-io.m4): New rule.
42709         (unlocked-io.h): New rule -- currently unused.
42710
42711 2001-06-24  Jim Meyering  <meyering@lucent.com>
42712
42713         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
42714         unmatched right bracket, rather than kludging it with an extra,
42715         falsely-matching quote in a comment.  Patch by Akim Demaille.
42716
42717 2001-06-11  Jim Meyering  <meyering@lucent.com>
42718
42719         * lib/regex.c: Update from GNU libc.
42720
42721 2001-05-27  Jim Meyering  <meyering@lucent.com>
42722
42723         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
42724         Check for ut_type in struct utmp.
42725
42726 2001-05-27  Jim Meyering  <meyering@lucent.com>
42727
42728         * lib/readutmp.h (UT_TYPE): Define.
42729
42730 2001-05-24  Jim Meyering  <meyering@lucent.com>
42731
42732         * lib/argmatch.c: Include "quote.h".
42733         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
42734         quote function.  Reported by Göran Uddeborg.
42735
42736 2001-05-22  Jim Meyering  <meyering@lucent.com>
42737
42738         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
42739         now that we use the package-supplied version unconditionally.
42740         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
42741
42742 2001-05-21  Jim Meyering  <meyering@lucent.com>
42743
42744         * m4/regex.m4: Change a couple backticks to single quotes to avoid
42745         shell syntax errors.
42746
42747 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
42748
42749         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
42750
42751 2001-05-20  Paul Eggert  <eggert@twinsun.com>
42752
42753         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
42754         Don't bother to check library strftime, since
42755         we'll be using our own my_strftime function anyway.
42756         Define my_strftime instead of strftime.
42757
42758 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
42759
42760         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
42761         which is not yet declared.
42762
42763 2001-05-15  Jim Meyering  <meyering@lucent.com>
42764
42765         * m4/regex.m4: Use proper quoting so brackets appear in the test
42766         program.
42767         Reported by, and with help from, Bruno Haible.
42768
42769 2001-05-13  Jim Meyering  <meyering@lucent.com>
42770
42771         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
42772         undefined.
42773
42774 2001-05-11  Paul Eggert  <eggert@twinsun.com>
42775
42776         dirname code cleanup.  base_name now behaves more compatibly
42777         with POSIX basename when given file names that have trailing
42778         slashes, and similarly for dir_name.  Add new primitives
42779         base_len and dir_len.  Put the directory-name-related decls
42780         into dirname.h.
42781
42782         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
42783         * lib/backupfile.c (base_name): Likewise.
42784         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
42785         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
42786         * lib/makepath.c (strip_trailing_slashes): Likewise.
42787         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
42788         ISSLASH): Likewise.
42789         * lib/rename.c (strip_trailing_slashes): Likewise.
42790         * lib/same.c (base_name): Likewise.
42791         * lib/stripslash.c (ISSLASH): Likewise.
42792
42793         * lib/addext.c: Include <dirname.h> after size_t is defined.
42794         * lib/backupfile.c: Likewise.
42795
42796         * lib/addext.c (addext): Use base_len to trim redundant
42797         trailing slashes instead of doing it ourselves.
42798         But do not trim the last slash if it is not redundant.
42799
42800         * lib/backupfile.c (find_backup_file_name,
42801         max_backup_version): Use base_len instead of rolling it ourselves.
42802         Handle the case of "" and (on DOS) "C:" correctly.
42803
42804         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
42805         needed. Include <string.h>, <dirname.h>.
42806         (base_name): Allow file names ending in slashes, other than names
42807         that are all slashes.  In this case, return the basename followed
42808         by the slashes.  This is more general, and can be used in places
42809         where the original base_name purposely had an assertion failure.
42810         (base_len): New function.
42811
42812         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
42813         Do not include <assert.h>; no longer needed.
42814         Include xalloc.h.
42815         (memrchr): Remove decl.
42816         (dir_name_r): Remove.
42817         (dir_len): Renamed from dirlen.  All callers changed.
42818         Rewrite in terms of base_name, for simplicity and consistency.
42819         (dir_name): Never return NULL.  All callers changed.
42820         Do not include <stdlib.h> in test program; no longer needed.
42821         return 0; is fine for test program.
42822
42823         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
42824         New macros.
42825         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
42826
42827         * lib/path-concat.c (path_concat): Use base_len to compute
42828         base length, not strlen; this means we cannot rely on memcpy
42829         to null-terminate.
42830
42831         * lib/same.c (STREQ): Remove.
42832         (same_name): Handle the case where the basename ends in trailing '/'.
42833
42834         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
42835         a slash was stripped.  Do not strip the last slash after a
42836         file system prefix.
42837
42838 2001-05-11  Paul Eggert  <eggert@twinsun.com>
42839
42840         * lib/Makefile.am (libfetish_a_SOURCES):
42841         Add strftime.c, since we now compile it on all hosts.
42842
42843         * lib/strftime.c (my_strftime):
42844         Define to nstrftime if emacs, but only if my_strftime is not defined.
42845         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
42846         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
42847         Add one more extra argument: a nanoseconds value.
42848         All uses changed.
42849         (ns): New macro.
42850         (my_strftime function): Add %N format.
42851         (emacs_strftimeu): Renamed from emacs_strftime,
42852         with extra ut argument.
42853
42854 2001-05-09  Paul Eggert  <eggert@twinsun.com>
42855
42856         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
42857
42858 2001-04-21  Jim Meyering  <meyering@lucent.com>
42859
42860         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
42861         doesn't interfere.
42862
42863 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
42864
42865         * m4/ftruncate.m4: Check for chsize.
42866         Link with ftruncate.o unconditionally if ftruncate is missing.
42867         This was required when cross-compiling to i586-mingw32msvc.
42868
42869 2001-04-08  Jim Meyering  <meyering@lucent.com>
42870
42871         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
42872         recomputed; that's necessary when the offset spans a DST transition.
42873         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
42874
42875 2001-04-02  Jim Meyering  <meyering@lucent.com>
42876
42877         * lib/regex.h, regex.c: Update from GNU libc.
42878
42879 2001-03-24  Jim Meyering  <meyering@lucent.com>
42880
42881         * m4/jm-macros.m4: Require autoconf-2.49d.
42882
42883 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
42884
42885         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
42886
42887 2001-03-19  Paul Eggert  <eggert@twinsun.com>
42888
42889         * lib/version-etc.c (version_etc_copyright): Update to 2001.
42890
42891 2001-03-17  Jim Meyering  <meyering@lucent.com>
42892
42893         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
42894         now that the version in autoconf is equivalent.
42895         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
42896
42897         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
42898         Suggestion from Akim Demaille.
42899
42900         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
42901         (jm_PREREQ_TEMPNAME): New function.
42902
42903 2001-03-16  Paul Eggert  <eggert@twinsun.com>
42904
42905         * lib/tempname.c (uint64_t): Define to uintmax_t if
42906         not defined, and if UINT64_MAX is not defined.
42907         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
42908         Reported by John David Anglin.
42909
42910 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
42911
42912         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
42913         resolve alias if codeset is empty.
42914         * lib/config.charset (BeOS): Use wildcard syntax.
42915
42916 2001-03-13  Jim Meyering  <meyering@lucent.com>
42917
42918         * lib/path-concat.c (path_concat)
42919         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
42920         concatenating e.g., `C:' and `foo'.
42921         From Bruno Haible.
42922
42923 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
42924
42925         * lib/localcharset.c (locale_charset): Don't use
42926         setlocale(LC_CTYPE,NULL). Don't return NULL.
42927         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
42928
42929 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
42930
42931         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
42932         support for DOS/DJGPP.
42933
42934 2001-03-01  Paul Eggert  <eggert@twinsun.com>
42935
42936         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
42937         lacks mkstemp.  Compile our own tempname.c if we compile our own
42938         mkstemp.c, as mkstemp relies on tempname.
42939
42940 2001-03-01  Jim Meyering  <meyering@lucent.com>
42941
42942         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
42943         AH_VERBATIM really does output its argument verbatim.
42944
42945 2001-02-28  Paul Eggert  <eggert@twinsun.com>
42946
42947         * lib/Makefile.am (libfetish_a_SOURCES):
42948         Add dup-safer.c, fopen-safer.c.
42949         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
42950
42951         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
42952         * lib/unistd-safer.h: New files.
42953
42954 2001-02-25  Paul Eggert  <eggert@twinsun.com>
42955
42956         The mkstemp replacement is taken from glibc 2.2.2, with some
42957         portability fixes for use outside glibc, as follows:
42958
42959         * lib/tempname.c (struct_stat64): New macro.
42960         (direxists, __gen_tempname): Use it.
42961         This avoids a portability problem with Solaris 8.
42962
42963         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
42964         (<stddef.h>, <stdint.h>, <string.h>):
42965         Include only if STDC_HEADERS || _LIBC.
42966         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
42967         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
42968         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
42969         (__set_errno): Define this macro if <errno.h> doesn't.
42970         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
42971         Define these macros if <stdio.h> doesn't.
42972         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
42973         Define these macros if <sys/stat.h>
42974         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
42975         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
42976         __xstat64): Define if not _LIBC.
42977         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
42978         (__gen_tempname): Invoke gettimeofday only if
42979         HAVE_GETTIMEOFDAY || _LIBC;
42980         otherwise, fall back on plain "time".
42981         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
42982
42983         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
42984
42985         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
42986
42987 2001-02-18  Paul Eggert  <eggert@twinsun.com>
42988
42989         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
42990
42991 2001-02-17  Paul Eggert  <eggert@twinsun.com>
42992
42993         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
42994         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
42995         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
42996         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
42997
42998 2001-02-17  Paul Eggert  <eggert@twinsun.com>
42999
43000         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
43001         Remove workaround macros for hosts that have mbrtowc but not
43002         mbstate_t, as we now insist on proper declarations for both
43003         before using mbrtowc.
43004
43005 2001-02-17  Jim Meyering  <meyering@lucent.com>
43006
43007         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
43008         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
43009         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
43010         UnixWare 7.1.1.
43011
43012         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
43013         rather than AC_CACHE_VAL.
43014
43015 2001-02-17  Jim Meyering  <meyering@lucent.com>
43016
43017         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
43018         around included file name.
43019
43020         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
43021
43022         * lib/strftime.c: Update from GNU libc (the only changes were to
43023         comments).
43024
43025 2001-02-17  Jim Meyering  <meyering@lucent.com>
43026
43027         * lib/regex.c: Update from libc.
43028
43029 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
43030
43031         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
43032         clash.
43033
43034 2001-02-16  Paul Eggert  <eggert@twinsun.com>
43035
43036         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
43037         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
43038         Reported by Mark Hounschell via Paul Eggert.
43039
43040 2001-02-07  Jim Meyering  <meyering@lucent.com>
43041
43042         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
43043
43044 2001-02-05  Jim Meyering  <meyering@lucent.com>
43045
43046         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
43047         it includes the patch required for `large file' support with at least
43048         HP-UX's 10.20 /bin/cc.
43049
43050 2001-02-03  Jim Meyering  <meyering@lucent.com>
43051
43052         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
43053         AS_IF, now that it works once again (mysteriously).
43054         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
43055
43056 2001-01-30  Jim Meyering  <meyering@lucent.com>
43057
43058         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
43059         * m4/chown.m4: Rename conftestchown to conftest.chown.
43060         * m4/rename.m4: s/conftestdir/conftest.d1/ and
43061         s/conftestdir2/conftest.d2/.
43062         * m4/utimes.m4: s/conftestdata/conftest.data/
43063         Inspired by Pavel Roskin's change in autoconf.
43064
43065 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
43066
43067         * lib/config.charset: Update for FreeBSD 4.2.
43068
43069 2001-01-27  Jim Meyering  <meyering@lucent.com>
43070
43071         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
43072         a use of AS_IF.
43073         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
43074
43075 2001-01-26  Jim Meyering  <meyering@lucent.com>
43076
43077         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
43078         quotearg.c includes it.
43079
43080 2001-01-26  Jim Meyering  <meyering@lucent.com>
43081
43082         * lib/quotearg.c: Include stddef.h.
43083         * lib/quote.c: Include stddef.h.
43084         Reported by Axel Kittenberger.
43085
43086         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
43087         line in double quotes so that it evokes a better diagnostic.
43088         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
43089         Reported by Axel Kittenberger.
43090
43091 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
43092
43093         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
43094         as if it was a `charset'.
43095
43096 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
43097
43098         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
43099         has const.
43100
43101 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
43102
43103         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
43104         to avoid a warning.  Add back 'const' to inptr.
43105
43106 2001-01-20  Jim Meyering  <meyering@lucent.com>
43107
43108         Be sure that headers are checked before used in code compiled
43109         for the type checks.
43110         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
43111         In place of that, invoke jm_CHECK_ALL_TYPES.
43112         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
43113         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
43114         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
43115         The check for ssize_t was mistakenly run before the test for unistd.h.
43116
43117         The configure-time check for stdbool.h was missing.
43118         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
43119         (jm_PREREQ_HASH): New function.
43120
43121 2001-01-17  Jim Meyering  <meyering@lucent.com>
43122
43123         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
43124         for autoconf-2.49c.
43125         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
43126
43127 2001-01-16  Jim Meyering  <meyering@lucent.com>
43128
43129         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
43130         From Bruno Haible.
43131
43132 2001-01-14  Jim Meyering  <meyering@lucent.com>
43133
43134         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
43135         foo and bar.  Create conftestdir/ in the script, not in the C code.
43136         Remove directories in the script, not in the C code.
43137         Remove conftestdir{,2} before trying to create the directory.
43138         Make the entire configure script fail if the mkdir fails.
43139
43140 2001-01-14  Jim Meyering  <meyering@lucent.com>
43141
43142         * lib/rename.c: New file.  From Volker Borchert.
43143         Include stdlib.h, string.h or strings.h, and xalloc.h.
43144         Use strip_trailing_slashes rather than open-coding it.
43145
43146 2001-01-03  Paul Eggert  <eggert@twinsun.com>
43147
43148         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
43149
43150 2001-01-03  Jim Meyering  <meyering@lucent.com>
43151
43152         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
43153         of local `inptr' to avoid warning with some system declarations of
43154         iconv.
43155
43156 2001-01-02  Volker Borchert  <bt@teknon.de>
43157
43158         * m4/rename.m4: New file.
43159         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
43160
43161 2001-01-01  Jim Meyering  <meyering@lucent.com>
43162
43163         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
43164         even on systems with utmpx.h.  It's necessary for the declaration of
43165         utmp's ut_user member.  Reported by Andreas Jaeger.
43166
43167         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
43168         available. They are required for the declarations of getgrgid and
43169         getpwuid resp.
43170         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
43171         Reported by Andreas Jaeger.
43172
43173 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
43174
43175         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
43176         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
43177         so `make install' also works in VPATH builds.
43178
43179 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
43180
43181         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
43182         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
43183         can be used in subdirectories.
43184
43185 2000-12-29  Paul Eggert  <eggert@twinsun.com>
43186
43187         * lib/modechange.c: Do not assume that mode_t uses the
43188         traditional octal encoding.  E.g. "chmod 1 FOO" should set
43189         the other-execute bit of FOO even if S_IXOTH != 1.
43190
43191         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
43192         WOTH, XOTH, ALLM): New macros.
43193         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
43194          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
43195         Use them.
43196         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
43197         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
43198         (mode_compile):
43199         No need to use uintmax_t; unsigned long is long enough.
43200         Don't bother to get suffix since we don't use it.
43201
43202 2000-12-26  Jim Meyering  <meyering@lucent.com>
43203
43204         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
43205         better with autoheader.
43206
43207 2000-12-24  Jim Meyering  <meyering@lucent.com>
43208
43209         * lib/hash.c (is_prime): Return explicit boolean values.
43210         (hash_get_first): Return NULL to appease Irix5.6's 89.
43211         Reported by Nelson Beebe.
43212
43213 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
43214
43215         * lib/localcharset.c (locale_charset): Add support for Win32.
43216
43217 2000-12-18  Paul Eggert  <eggert@twinsun.com>
43218
43219         * lib/physmem.h, lib/physmem.c: New files.
43220
43221         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
43222         (noinst_HEADERS): Add physmem.h.
43223
43224         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
43225         't' for compatibility with Solaris 8 sort.
43226
43227 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
43228
43229         * lib/config.charset: Add support for BeOS.
43230
43231 2000-12-17  Jim Meyering  <meyering@lucent.com>
43232
43233         * m4/dos.m4 (jm_AC_DOS): New file and macro.
43234         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
43235
43236 2000-12-16  Jim Meyering  <meyering@lucent.com>
43237
43238         This bug had a serious impact on chown: `chown N:M FILE' (for integer
43239         N and M) would have treated it like `chown N:N FILE'.
43240
43241         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
43242
43243 2000-12-16  Jim Meyering  <meyering@lucent.com>
43244
43245         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
43246         SHELLS_FILE to a file name that's useful on djgpp systems.
43247         Include stdlib.h.
43248         (ADDITIONAL_DEFAULT_SHELLS): Define.
43249         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
43250         Based mostly on a patch from Prashant TR.
43251
43252 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
43253
43254         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
43255         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
43256         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
43257
43258 2000-12-08  Andreas Schwab  <schwab@suse.de>
43259
43260         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
43261         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
43262
43263 2000-12-07  Jim Meyering  <meyering@lucent.com>
43264
43265         * lib/stripslash.c (ISSLASH): Define.
43266         (strip_trailing_slashes): Use ISSLASH rather than comparing against
43267         `/'.
43268         From Prashant TR.
43269
43270         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
43271         (dir_name_r): Declare this function as static.
43272         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
43273         manifest itself on a name containing a mix of slashes and
43274         backslashes.
43275         Make this function work with names starting with a DOS-style
43276         drive letter and colon prefix.
43277         (dir_name): Append `.' if necessary.
43278         Based mostly on patches from Prashant TR and Eli Zaretskii.
43279
43280         * lib/dirname.h (dir_name_r): Remove prototype.
43281
43282 2000-12-06  Paul Eggert  <eggert@twinsun.com>
43283
43284         * m4/off_t-format.m4: Remove this file.
43285         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
43286
43287 2000-12-06  Jim Meyering  <meyering@lucent.com>
43288
43289         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
43290         replacement strtoull, we may well need the replacement strtoul, too.
43291         Check for declarations of strtoul and strtoull.
43292         Check for strtol.  Mainly as a cue to cause automake to include
43293         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
43294         Check for limits.h -- strtol.c needs it.
43295
43296 2000-12-05  Jim Meyering  <meyering@lucent.com>
43297
43298         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
43299
43300 2000-12-04  Jim Meyering  <meyering@lucent.com>
43301
43302         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
43303         Also include memory.h, stdlib.h, unistd.h if appropriate.
43304         Reported by Andreas Jaeger (conflicting declaration of malloc).
43305
43306 2000-12-02  Jim Meyering  <meyering@lucent.com>
43307
43308         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
43309         * m4/jm-macros.m4 (jm_MACROS): require it.
43310
43311 2000-12-02  Jim Meyering  <meyering@lucent.com>
43312
43313         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
43314
43315 2000-12-01  Paul Eggert  <eggert@twinsun.com>
43316
43317         * lib/memrchr.c: Include <config.h> before any system include file.
43318
43319 2000-11-30  Jim Meyering  <meyering@lucent.com>
43320
43321         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
43322
43323 2000-11-30  Jim Meyering  <meyering@lucent.com>
43324
43325         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
43326
43327 2000-11-29  Paul Eggert  <eggert@twinsun.com>
43328
43329         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
43330
43331 2000-11-26  Jim Meyering  <meyering@lucent.com>
43332
43333         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
43334
43335 2000-11-22  Paul Eggert  <eggert@twinsun.com>
43336
43337         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
43338         size of (size_t) -1; it's not portable.
43339
43340 2000-11-17  Jim Meyering  <meyering@lucent.com>
43341
43342         * lib/strstr.c: Update from GNU libc.
43343
43344 2000-11-17  Akim Demaille  <akim@epita.fr>
43345
43346         * lib/obstack.h: Formatting changes.
43347         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
43348         prevent type checking.
43349         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
43350         cast the value to (void *): assigning a `foo *' to a `void *'
43351         variable is valid.
43352         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
43353
43354 2000-11-16  Jim Meyering  <meyering@lucent.com>
43355
43356         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
43357
43358 2000-11-11  Jim Meyering  <meyering@lucent.com>
43359
43360         * lib/error.c: Add a couple #includes, merging from GNU libc version.
43361
43362 2000-11-10  Jim Meyering  <meyering@lucent.com>
43363
43364         * lib/obstack.h: Update from GNU libc.
43365         * lib/obstack.c: Likewise.
43366
43367 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
43368
43369         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
43370
43371 2000-11-06  Paul Eggert  <eggert@twinsun.com>
43372
43373         * lib/getusershell.c (setusershell): Use rewind rather than
43374         fseek/fseeko, to avoid configuration hassles with fseeko.
43375         Don't bother opening SHELLS_FILE if shellstream is NULL;
43376         it's not necessary.
43377
43378 2000-11-05  Jim Meyering  <meyering@lucent.com>
43379
43380         * lib/makepath.h (make_dir): Declare.
43381         * lib/makepath.c (make_dir): Remove `static' attribute.
43382         Tweak a comment.
43383
43384 2000-11-04  Jim Meyering  <meyering@lucent.com>
43385
43386         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
43387
43388 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
43389
43390         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
43391         last one in a bucket, advance to the next bucket.
43392
43393 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
43394
43395         * lib/fnmatch.c: Do not comment out all the code if we are using
43396         the GNU C library, because in some cases we are replacing buggy
43397         code in the GNU C library itself.
43398
43399 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
43400
43401         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
43402         (regex_compile): Catch bogus \(\1\).
43403
43404 2000-10-30  Paul Eggert  <eggert@twinsun.com>
43405
43406         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
43407         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
43408         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
43409
43410 2000-10-30  Paul Eggert  <eggert@twinsun.com>
43411
43412         * lib/error.h, getline.h, modechange.h:
43413         Remove "2000" from Copyright line, as the file hasn't been
43414         changed this year other than in the copyright notice.
43415
43416         * lib/xalloc.h: Add "2000" to Copyright line, as this file
43417         was changed this year.
43418
43419 2000-10-29  Jim Meyering  <meyering@lucent.com>
43420
43421         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
43422         renaming.
43423         * m4/ls-mntd-fs.m4: Likewise
43424
43425 2000-10-29  Jim Meyering  <meyering@lucent.com>
43426
43427         * lib/xstat.in: Fix grammar in comment.
43428
43429 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
43430
43431         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
43432         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
43433         doesn't define __restrict_arr.
43434
43435 2000-10-28  Jim Meyering  <meyering@lucent.com>
43436
43437         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
43438         (jm_PREREQ_MEMCHR): New function.
43439
43440 2000-10-28  Jim Meyering  <meyering@lucent.com>
43441
43442         * lib/memchr.c: Update from libc.
43443         Adjust for portability:
43444         [HAVE_STDLIB_H]: Include stdlib.h.
43445         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
43446         Undef __memchr, too.
43447         [!weak_alias]: Define __memchr to memchr.
43448
43449         * lib/regex.c: Update from libc.
43450         * lib/regex.h: Likewise.
43451         * lib/getopt1.c: Likewise.
43452         * lib/memcmp.c: Likewise.
43453
43454         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
43455         Avoid using fseek, when possible -- it's broken by design.
43456         Patch by Ulrich Drepper.
43457
43458 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
43459
43460         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
43461         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
43462         Giving in to popular pressure to shut up the compiler with casts.
43463
43464 2000-10-26  Jim Meyering  <meyering@lucent.com>
43465
43466         * lib/strftime.c: Update from libc.
43467
43468 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
43469
43470         * regex.c: More `unsigned char' -> `re_char' changes.
43471         Also change several `int' into `re_wchar_t'.
43472         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
43473         (PUSH_FAILURE_POINTER): Don't cast any more.
43474         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
43475         We want GCC to complain, since this piece of code makes
43476         re_match non-reentrant, which *should* be fixed.
43477         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
43478         (EXTEND_BUFFER): Use RETALLOC.
43479         (SET_LIST_BIT): Don't cast.
43480         (re_wchar_t): New type.
43481         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
43482         that those two functions will always properly return.
43483         (IMMEDIATE_QUIT_CHECK): Cast to void.
43484         (analyse_first): Use recursion rather than an explicit stack.
43485         (re_compile_fastmap): Can't fail anymore.
43486         (re_search_2): Don't check re_compile_fastmap for failure.
43487         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
43488         Now also sets the new value (passed in a new argument).
43489         (re_match_2_internal): Use it.
43490         Also, use a new var `reg' of type size_t when looping through regs
43491         rather than reuse the inappropriate `mcnt'.
43492
43493 2000-10-25  Jim Meyering  <meyering@lucent.com>
43494
43495         * lib/obstack.c: Update from libc.
43496
43497 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
43498
43499         * regex.c (regex_compile): Change the way of handling a range from
43500         a char less than 256 to a char not less than 256.
43501
43502 2000-10-24  Andrew Innes  <andrewi@gnu.org>
43503
43504         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
43505         NT-Emacs only.
43506         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
43507         so that re_search functions only quit when callers expect them to.
43508
43509 2000-10-23  Jim Meyering  <meyering@lucent.com>
43510
43511         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
43512         wrong.  That set_locale call must not have any side effects.
43513         From Paul Eggert.
43514
43515 2000-10-22  Jim Meyering  <meyering@lucent.com>
43516
43517         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
43518         [CYCLIC]: Remove now-unused definition.
43519
43520         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
43521         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
43522         Suggestion from Ulrich Drepper.
43523
43524 2000-10-21  Jim Meyering  <meyering@lucent.com>
43525
43526         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
43527         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
43528         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
43529
43530 2000-10-21  Jim Meyering  <meyering@lucent.com>
43531
43532         * lib/dirname.c (memrchr): Declare if necessary.
43533         (dir_name): Remove the restriction that there be no
43534         trailing slashes.  Now, this code skips past them, effectively
43535         ignoring them.
43536         [TEST_DIRNAME] (main): New unit tests.
43537
43538         * lib/memrchr.c: New file from GNU libc.
43539         Undef __memrchr, too.
43540         [!weak_alias]: Define __memrchr to memrchr.
43541         Guard weak_alias use with `#ifdef weak_alias'.
43542
43543 2000-10-21  Jim Meyering  <meyering@lucent.com>
43544
43545         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
43546         (dir_name): Use dir_name_r.
43547         * lib/dirname.h (dir_name_r): Declare it.
43548
43549 2000-10-17  Jim Meyering  <meyering@lucent.com>
43550
43551         * lib/quote.h (PARAMS): Define and use.
43552         Reported by Akim Demaille.
43553
43554         * lib/getopt.c: Update from libc.
43555
43556 2000-10-16  Jim Meyering  <meyering@lucent.com>
43557
43558         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
43559         setlocale.
43560         From Jan Fedak.
43561
43562 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
43563
43564         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
43565
43566 2000-09-25  Jim Meyering  <meyering@lucent.com>
43567
43568         * lib/md5.h (rol): Define (from GnuPG).
43569
43570         * lib/sha.c: Give credit (GnuPG) where due.
43571         (M): Use rol rather than open-coding it.
43572         Add a FIXME comment.
43573
43574 2000-09-21  Jim Meyering  <meyering@lucent.com>
43575
43576         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
43577         Reported by Michael Stone.
43578
43579 2000-09-20  Jim Meyering  <meyering@lucent.com>
43580
43581         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
43582         (noinst_HEADERS): Add sha.h.
43583         Based on code from Scott G. Miller and from GnuPG.
43584
43585 2000-09-18  Jim Meyering  <meyering@lucent.com>
43586
43587         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
43588         LIBS. Otherwise, everyone ends up linking with -lelf for some
43589         configurations.
43590         Reported by Mike Stone.
43591
43592 2000-09-15  Jim Meyering  <meyering@lucent.com>
43593
43594         * lib/regex.c: Update from libc.
43595
43596 2000-09-10  Jim Meyering  <meyering@lucent.com>
43597
43598         * lib/getopt.c (_getopt_internal): Update from glibc.
43599
43600 2000-09-09  Jim Meyering  <meyering@lucent.com>
43601
43602         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
43603         think it should be used as a general replacement for isascii.
43604         * lib/fnmatch.c: Likewise.
43605         * lib/mbswidth.c: Likewise
43606         * lib/regex.c: Likewise.
43607
43608         Don't use atoi.
43609         * lib/userspec.c: Include sys/param.h and limits.h.
43610         Include xstrtol.h.
43611         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
43612         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
43613         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
43614         UID, GID.  Check range.
43615
43616 2000-09-06  Jim Meyering  <meyering@lucent.com>
43617
43618         * lib/getopt.c (_getopt_internal): Update from glibc.
43619
43620 2000-08-30  Jim Meyering  <meyering@lucent.com>
43621
43622         * lib/strftime.c: Merge in changes from GNU libc.
43623
43624 2000-08-26  Jim Meyering  <meyering@lucent.com>
43625
43626         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
43627         * m4/fpending.m4: New file.
43628
43629 2000-08-26  Jim Meyering  <meyering@lucent.com>
43630
43631         * lib/closeout.c: Include "__fpending.h".
43632         (close_stdout_status): Return right away if there's nothing to flush.
43633
43634         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
43635         * lib/__fpending.c: New file.
43636         * lib/__fpending.h: New file.
43637
43638 2000-08-20  Jim Meyering  <meyering@lucent.com>
43639
43640         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
43641         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
43642         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
43643
43644 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
43645
43646         Improve fileutils installation on systems where running
43647         programs (like install) can't be unlinked.
43648         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
43649         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
43650
43651 2000-08-07  Paul Eggert  <eggert@twinsun.com>
43652
43653         Standardize on "memory exhausted" instead of "Memory exhausted"
43654         or "virtual memory exhausted".
43655         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
43656         "virtual memory exhausted".
43657         * lib/same.c (same_name): Invoke xalloc_die instead of printing
43658         our own message.
43659         * lib/userspec.c (parse_user_spec): Likewise.
43660         * lib/bumpalloc.h: comment fix
43661         * lib/same.c, userspec.c: Include xalloc.h.
43662
43663         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
43664         not char *const and pointing to a constant array.
43665         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
43666         (xrealloc): Comment fix.
43667
43668         * lib/userspec.c (parse_user_spec):
43669         Don't translate a message until just before returning,
43670         to avoid unnecessary translation.
43671
43672 2000-08-07  Jim Meyering  <meyering@lucent.com>
43673
43674         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
43675         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
43676         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
43677         getgroups.c, gethostname.c, getopt.h, group-member.c,
43678         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
43679         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
43680         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
43681         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
43682         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
43683         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
43684         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
43685         yesno.c: Back out Copyright date changes for each file with no change
43686         this year.  This eases coordination with other programs using the same
43687         source code modules.  From Paul Eggert.
43688
43689 2000-08-06  Paul Eggert  <eggert@twinsun.com>
43690
43691         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
43692         not char, for compatibility with glibc 2.1.3 strftime.c.
43693
43694 2000-08-03  Greg McGary  <greg@mcgary.org>
43695
43696         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
43697         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
43698         (EXTEND_BUFFER): Use them.
43699
43700 2000-08-01  Jim Meyering  <meyering@lucent.com>
43701
43702         * lib/dirname.c (ISSLASH): Define.
43703         (BACKSLASH_IS_PATH_SEPARATOR): Define.
43704         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
43705         both `\' and `/' may be use as path separators.
43706         Based on a patch from Prashant TR.
43707
43708 2000-07-31  Paul Eggert  <eggert@twinsun.com>
43709
43710         * lib/quotearg.c (quotearg_n_options): Don't make the initial
43711         slot vector a constant, since it might get modified.
43712
43713 2000-07-31  Jim Meyering  <meyering@lucent.com>
43714
43715         * lib/xmalloc.c: Use `virtual memory exhausted', not
43716         `Memory exhausted'.
43717         * lib/obstack.c (print_and_abort): Likewise.
43718
43719 2000-07-30  Paul Eggert  <eggert@twinsun.com>
43720
43721         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
43722         buffer, so that the caller can always quote one small
43723         component of a "memory exhausted" message in slot 0.
43724         From a suggestion by Jim Meyering.
43725
43726 2000-07-30  Jim Meyering  <meyering@lucent.com>
43727
43728         * lib/makepath.c (make_path): Quote the other instance, too.
43729
43730         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
43731         (STATIC_BUF_SIZE): Define.
43732         (quotearg_n_options): Use only statically allocated storage when
43733         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
43734         than STATIC_BUF_SIZE.
43735
43736 2000-07-29  Jim Meyering  <meyering@lucent.com>
43737
43738         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
43739         * lib/dirname.c (dir_name): Likewise.
43740
43741         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
43742         `/'.
43743
43744         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
43745         (dir_name): Assert that there are no trailing slashes.
43746
43747 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
43748
43749         * lib/mbswidth.h (mbswidth): Add a flags argument.
43750         (mbswidth): New declaration.
43751         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
43752         * lib/mbswidth.c (mbswidth): Add a flags argument.
43753         (mbsnwidth): New function.
43754
43755 2000-07-24  Jim Meyering  <meyering@lucent.com>
43756
43757         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
43758
43759 2000-07-23  Paul Eggert  <eggert@twinsun.com>
43760
43761         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
43762
43763 2000-07-23  Paul Eggert  <eggert@twinsun.com>
43764
43765         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
43766         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
43767         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
43768         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
43769         invoke multibyte primitives.
43770
43771 2000-07-23  Paul Eggert  <eggert@twinsun.com>
43772
43773         * lib/quotearg.c:
43774         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
43775         so that mbstate_t is always defined.
43776
43777         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
43778         be 1 in at least one GCC installation, and this configuration
43779         error is likely to be common.  Ignoring MB_LEN_MAX hurts
43780         performance on hosts that have mbrtowc but have only unibyte
43781         locales, but I assume these hosts are rare.
43782
43783 2000-07-23  Paul Eggert  <eggert@twinsun.com>
43784
43785         * lib/mbswidth.c (_XOPEN_SOURCE):
43786         Don't define; this causes problems on Solaris 7.
43787         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
43788
43789 2000-07-23  Jim Meyering  <meyering@lucent.com>
43790
43791         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
43792         too: getgrgid, getpwuid, getuid.
43793
43794 2000-07-23  Jim Meyering  <meyering@lucent.com>
43795
43796         * lib/basename.c (base_name): Add an assertion.
43797
43798 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
43799
43800         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
43801         shadow its mbsinit function.
43802
43803 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
43804
43805         * lib/mbswidth.h: New file.
43806         * lib/mbswidth.c: New file.
43807         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
43808         (noinst_HEADERS): Add mbswidth.h.
43809
43810 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
43811
43812         * lib/config.charset: Add support for FreeBSD. Improve support for
43813         HP-UX and IRIX 6.
43814
43815 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
43816
43817         * m4/mbswidth.m4: New file.
43818         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
43819
43820 2000-07-15  Jim Meyering  <meyering@lucent.com>
43821
43822         * lib/makepath.c: Include quote.h.
43823         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
43824         corresponding argument in a `quote (...)' call.
43825         Give better diagnostics.
43826
43827         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
43828         (noinst_HEADERS): Add quote.h.
43829
43830         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
43831         from tar's src/misc.c.
43832         * lib/quote.h: New file.  Prototypes for same.
43833
43834 2000-07-14  Paul Eggert  <eggert@twinsun.com>
43835
43836         From a suggestion by Bruno Haible.
43837         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
43838         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
43839         to decide whether to define the BeOS workaround macro;
43840         this adjusts to the change to AC_MBSTATE_T.
43841
43842 2000-07-14  Jim Meyering  <meyering@lucent.com>
43843
43844         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
43845         jm_AC_TYPE_UINTMAX_T.
43846
43847 2000-07-13  Paul Eggert  <eggert@twinsun.com>
43848
43849         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
43850
43851         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
43852         quotearg_buffer_restyled): Add support for
43853         clocale_quoting_style.  Undo previous change to
43854         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
43855         and "{RIGHT QUOTATION MARK}" msgids.
43856
43857 2000-07-10  Paul Eggert  <eggert@twinsun.com>
43858
43859         From a suggestion by Bruno Haible.
43860         * m4/mbstate_t.m4 (AC_MBSTATE_T):
43861         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
43862         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
43863         and mbstate_t, to a single-part test that simply defines mbstate_t.
43864         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
43865         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
43866
43867 2000-07-10  Jim Meyering  <meyering@lucent.com>
43868
43869         * m4/strerror_r.m4: Mirror the correction made in autoconf.
43870
43871         * m4/gnu-source.m4: Output to confdefs.h directly.
43872         Suggestion from Akim Demaille.
43873
43874 2000-07-09  Paul Eggert  <eggert@twinsun.com>
43875
43876         The old behavior of quoting `like this' doesn't look good with
43877         newer, ISO-style fonts.  See:
43878         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
43879
43880         Instead, quote "like this" by default.  Let the translator
43881         tailor the locale-specific quoting behavior by providing
43882         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
43883
43884         * lib/quotearg.c (N_): New macro.
43885         (gettext_default): New function.
43886         (quotearg_buffer_restyled): Use
43887         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
43888         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
43889
43890 2000-07-09  Jim Meyering  <meyering@lucent.com>
43891
43892         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
43893         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
43894
43895         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
43896         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
43897
43898 2000-07-09  Jim Meyering  <meyering@lucent.com>
43899
43900         * lib/Most files: Update copyright dates to include 2000.
43901
43902 2000-07-08  Jim Meyering  <meyering@lucent.com>
43903
43904         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
43905         if not defined.
43906         (xgethostname): Remove now-unnecessary #ifdef.
43907         Move declaration of `err' into loop where it's used.
43908
43909 2000-07-05  Paul Eggert  <eggert@twinsun.com>
43910         and Bruno Haible  <haible@clisp.cons.org>
43911
43912         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
43913         only if the test for an object-type mbstate_t fails.  This
43914         prevents us from mistakenly reporting that mbstate_t is a
43915         system object type after we "#define mbstate_t int" to work
43916         around its lack.
43917
43918 2000-07-05  Paul Eggert  <eggert@twinsun.com>
43919         and Bruno Haible  <haible@clisp.cons.org>
43920
43921         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
43922
43923 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
43924
43925         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
43926         to strerror_r.
43927         Include <ctype.h> for use of isalpha.
43928
43929 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
43930
43931         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
43932         by allocating a larger buffer. Test the gethostname return value for
43933         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
43934         returns an error and ENAMETOOLONG isn't defined.
43935
43936 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
43937
43938         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
43939         dimension.
43940
43941 2000-07-04  Jim Meyering  <meyering@lucent.com>
43942
43943         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
43944         of the deprecated AC_CHECKING.
43945
43946 2000-07-04  Jim Meyering  <meyering@lucent.com>
43947
43948         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
43949         Reported by Bruno Haible.
43950
43951 2000-07-04  Jim Meyering  <meyering@lucent.com>
43952
43953         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
43954         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
43955         lacks mbrtowc.
43956
43957 2000-07-03  Paul Eggert  <eggert@twinsun.com>
43958
43959         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
43960         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
43961
43962 2000-07-03  Paul Eggert  <eggert@twinsun.com>
43963         and Bruno Haible  <haible@clisp.cons.org>
43964
43965         * lib/quotearg.c (mbrtowc):
43966         Assign to *pwc, and return 1 only if result is nonzero.
43967         (iswprint): Use ISPRINT when substituting our own mbrtowc.
43968
43969 2000-07-03  Jim Meyering  <meyering@lucent.com>
43970
43971         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
43972
43973 2000-07-03  Jim Meyering  <meyering@lucent.com>
43974
43975         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
43976         This is necessary to get a definition of e.g., UTMP_FILE on
43977         HP-UX 10.20.
43978         From Bob Proulx.
43979
43980 2000-07-02  Jim Meyering  <meyering@lucent.com>
43981
43982         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
43983
43984         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
43985         AC_LIBOBJ(function_name).
43986         * m4/chown.m4: Likewise.
43987         * m4/fnmatch.m4: Likewise.
43988         * m4/ftruncate.m4: Likewise.
43989         * m4/getgroups.m4: Likewise.
43990         * m4/getline.m4: Likewise.
43991         * m4/group-member.m4: Likewise.
43992         * m4/jm-macros.m4: Likewise.
43993         * m4/lstat.m4: Likewise.
43994         * m4/malloc.m4: Likewise.
43995         * m4/memcmp.m4: Likewise.
43996         * m4/nanosleep.m4: Likewise.
43997         * m4/putenv.m4: Likewise.
43998         * m4/realloc.m4: Likewise.
43999         * m4/regex.m4: Likewise.
44000         * m4/stat.m4: Likewise.
44001         * m4/strftime.m4: Likewise.
44002
44003 2000-07-02  Jim Meyering  <meyering@lucent.com>
44004
44005         * lib/quotearg.c (mbstate_t): Don't define here.
44006
44007 2000-07-02  Jim Meyering  <meyering@lucent.com>
44008
44009         * lib/nanosleep.c (SIGCONT): Define if not already defined.
44010
44011 2000-07-01  Jim Meyering  <meyering@lucent.com>
44012
44013         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
44014
44015 2000-07-01  Jim Meyering  <meyering@lucent.com>
44016
44017         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
44018         problem.
44019
44020 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
44021
44022         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
44023         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
44024
44025 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
44026
44027         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
44028         per change in ../m4/ls-mntd-fs.m4.
44029         (read_filesystem_list): Ignore symbolic links.
44030
44031 2000-06-29  Jim Meyering  <meyering@lucent.com>
44032
44033         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
44034         for declaration of strcmp.
44035
44036         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
44037
44038         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
44039         Avoid warning by casting result to `char *' to remove `const'.
44040
44041 2000-06-28  Jim Meyering  <meyering@lucent.com>
44042
44043         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
44044         included by quotearg.c, for which we perform this test.  From
44045         Bruno Haible.
44046
44047 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
44048
44049         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
44050         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
44051         <utmpx.h> exists, put readutmp.o into LIBOBJS.
44052
44053 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
44054
44055         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
44056
44057 2000-06-26  Paul Eggert  <eggert@twinsun.com>
44058
44059         savedir now sets errno on failure and invokes xmalloc to get memory.
44060         Fix a couple of other minor bugs while we're at it.
44061
44062         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
44063         (NAMLEN): Remove macro.
44064         (malloc, realloc): Remove decls.
44065         (stpcpy): Likewise.
44066         ("xalloc.h"): Include.
44067         (NAME_SIZE_DEFAULT): New macro.
44068         (savedir): Use xmalloc / xrealloc to allocate memory.
44069         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
44070         Skip "" directory entries.
44071         Use strlen to calculate directory entry length, since the old method
44072         is rarely used these days and isn't worth supporting.
44073         Don't use a pointer after freeing it.
44074         Check for integer overflow when calculating allocation size.
44075         Use memcpy to copy entries, instead of stpcpy.
44076         Set errno properly when returning NULL.
44077         Check for readdir error.
44078
44079 2000-06-26  Jim Meyering  <meyering@lucent.com>
44080
44081         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
44082
44083 2000-06-25  Jim Meyering  <meyering@lucent.com>
44084
44085         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
44086         Linux header bug when _XOPEN_SOURCE is defined to 500.
44087
44088 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
44089
44090         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
44091         deficiency.
44092
44093 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
44094
44095         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
44096         Include xalloc.h.
44097         Don't include <stdlib.h>.  Don't declare malloc, realloc.
44098
44099 2000-06-24  Jim Meyering  <meyering@lucent.com>
44100
44101         * m4/strerror_r.m4: Revive this file -- to try out an experimental
44102         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
44103         for which strerror does return char*, but which lacks a conveniently
44104         accessible declaration of the function.  If the compile-test says
44105         strerror_r doesn't work, then resort to a `run'-test that works on
44106         BeOS and segfaults on DEC Unix.
44107
44108 2000-06-24  Jim Meyering  <meyering@lucent.com>
44109
44110         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
44111
44112 2000-06-23  Paul Eggert  <eggert@twinsun.com>
44113
44114         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
44115         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
44116
44117 2000-06-23  Paul Eggert  <eggert@twinsun.com>
44118
44119         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
44120         (mbrtowc, mbstate_t): Define substitutes if
44121         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
44122         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
44123         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
44124
44125 2000-06-23  Jim Meyering  <meyering@lucent.com>
44126
44127         * m4/afs.m4: Add missing AC_MSG_RESULT.
44128         Reported by Bruno Haible.
44129
44130         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
44131         Suggestion from Bruno Haible.
44132
44133 2000-06-23  Jim Meyering  <meyering@lucent.com>
44134
44135         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
44136
44137 2000-06-21  Jim Meyering  <meyering@lucent.com>
44138
44139         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
44140
44141 2000-06-21  Jim Meyering  <meyering@lucent.com>
44142
44143         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
44144         (noinst_HEADERS): Add getstr.h.
44145
44146         * lib/getline.c (getstr): Move into a separate file.
44147         * lib/getstr.c (getstr): New file, extracted from getline.c, with
44148         the following changes: new parameter, delim2; both delim[12]
44149         parameters have type `int', not `char'.  The latter would lose
44150         with 8-bit delimiters.
44151         * lib/getstr.h: New file.
44152
44153 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
44154
44155         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
44156         than 1024, return a memory chunk of least possible size, instead
44157         of size PATH_MAX + 2. In the loop, increment the size proportionally.
44158         Use free/xmalloc instead of xrealloc to avoid copying for very long
44159         paths.
44160
44161 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
44162
44163         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
44164         the empty string.
44165
44166 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
44167
44168         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
44169         address, not strdup.  Include <stdlib.h> and don't declare free().
44170
44171 2000-06-19  Jim Meyering  <meyering@lucent.com>
44172
44173         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
44174
44175 2000-06-18  Jim Meyering  <meyering@lucent.com>
44176
44177         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
44178
44179         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
44180         `checking whether...' message to be consistent with that of the
44181         lstat test.
44182
44183 2000-06-18  Jim Meyering  <meyering@lucent.com>
44184
44185         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
44186         Besides, these days every porting target provides a mkdir function.
44187
44188         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
44189         needed. (this snippet comes from src/system.h).
44190
44191 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
44192
44193         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
44194
44195 2000-06-15  Paul Eggert  <eggert@twinsun.com>
44196
44197         * lib/human.c (adjust_value): New function.
44198         (human_readable_inexact): Apply rounding style even when
44199         printing approximate values.
44200
44201 2000-06-14  Paul Eggert  <eggert@twinsun.com>
44202
44203         * lib/human.c (human_readable_inexact): Allow an input block
44204         size that is not a multiple of the output block size, and vice versa.
44205         Reported by Piergiorgio Sartor.
44206
44207 2000-06-14  Paul Eggert  <eggert@twinsun.com>
44208
44209         * lib/getdate.y (get_date): Apply relative times after time
44210         zone indicator, not before.  Reported by Todd A. Jacobs.
44211
44212 2000-06-13  Jim Meyering  <meyering@lucent.com>
44213
44214         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
44215
44216         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
44217
44218 2000-06-12  Paul Eggert  <eggert@twinsun.com>
44219
44220         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
44221
44222 2000-06-12  Jim Meyering  <meyering@lucent.com>
44223
44224         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
44225         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
44226         optional argument.
44227         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
44228         the optional argument, `lib'.
44229
44230 2000-06-08  Jim Meyering  <meyering@lucent.com>
44231
44232         * m4/largefile.m4: Remove file (now that it's part of autoconf).
44233
44234 2000-06-04  Paul Eggert  <eggert@twinsun.com>
44235
44236         Rewrite largefile configuration so that we don't need to run
44237         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
44238         AC_CANONICAL_HOST in configure.in -- jmm]
44239
44240         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
44241         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
44242         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
44243         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
44244         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
44245         All uses changed.
44246         Instead of inspecting the output of getconf, try to compile the
44247         test program without and with the macro definition.
44248         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
44249         for getconf.  Instead, check for the needed flags by compiling
44250         test programs.
44251
44252 2000-06-04  Paul Eggert  <eggert@twinsun.com>
44253
44254         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
44255
44256 2000-06-04  Jim Meyering  <meyering@lucent.com>
44257
44258         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
44259         SunOS 4.1.4 for which gid_t is an unsigned type.
44260
44261 2000-06-03  Jim Meyering  <meyering@lucent.com>
44262
44263         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
44264         now that autoconf requires that.
44265
44266         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
44267         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
44268         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
44269
44270 2000-06-03  Jim Meyering  <meyering@lucent.com>
44271
44272         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
44273
44274 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
44275
44276         * m4/glibc21.m4: New file.
44277         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
44278
44279 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
44280
44281         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
44282         newer, don't install charset.alias.
44283         * lib/config.charset: Change the Linux/glibc rules so they become empty
44284         on glibc-2.1 or newer.
44285
44286 2000-06-02  Jim Meyering  <meyering@lucent.com>
44287
44288         * lib/mountlist.c: Back out last change.  Instead, do this...
44289         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
44290         me_dummy member using the same `ignore'-testing code.
44291         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
44292         fs_type strings.
44293         From Mark D. Roth.
44294
44295 2000-05-29  Jim Meyering  <meyering@lucent.com>
44296
44297         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
44298         mounts with the `ignore' attribute.  Based on a patch from
44299         Mark D. Roth.
44300
44301 2000-05-28  Jim Meyering  <meyering@lucent.com>
44302
44303         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
44304         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
44305         * m4/stat.m4: Likewise.
44306         * m4/lstat.m4: Likewise.
44307         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
44308
44309         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
44310         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
44311
44312 2000-05-26  Jim Meyering  <meyering@lucent.com>
44313
44314         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
44315
44316 2000-05-24  Jim Meyering  <meyering@lucent.com>
44317
44318         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
44319         autoconf requires that.
44320         * m4/lib-check.m4: Likewise.
44321         * m4/jm-macros.m4: Likewise.
44322         * m4/strftime.m4: Likewise.
44323
44324         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
44325         AC_CHECK_DECLS, now that autoconf requires that.
44326
44327 2000-05-22  Jim Meyering  <meyering@lucent.com>
44328
44329         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
44330         * m4/lstat.m4: Likewise.
44331
44332 2000-05-22  Jim Meyering  <meyering@lucent.com>
44333
44334         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
44335
44336 2000-05-20  Jim Meyering  <meyering@lucent.com>
44337
44338         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
44339         (jm_PREREQ): Use it.
44340
44341 2000-05-18  Jim Meyering  <meyering@lucent.com>
44342
44343         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
44344         back, too, since it may have been modified by allocate_entry.
44345         (hash_delete): Rewrite to use neither the assignment operator
44346         nor the comma operator in an if-expression.
44347
44348 2000-05-15  Paul Eggert  <eggert@twinsun.com>
44349
44350         * lib/closeout.c:
44351         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
44352         Remove; no longer needed.
44353         "quotearg.h": Add include.
44354         (file_name): Do not bother to explicitly initialize to NULL; it's less
44355         efficient on some hosts.
44356         (close_stdout_status): Remove test as to whether stdout was already
44357         closed; it breaks for the case "echo x | sort >&-".
44358         Quote file name colons.
44359         Do not assume that _("write error") lacks format strings.
44360
44361 2000-05-15  Jim Meyering  <meyering@lucent.com>
44362
44363         * lib/version-etc.c (version_etc_copyright): Update the copyright
44364         string used in all --version output.
44365
44366 2000-05-14  Jim Meyering  <meyering@lucent.com>
44367
44368         * lib/closeout.c (close_stdout_set_file_name): New function.
44369         (close_stdout_status): Use new file-scoped global.
44370         Return right away if fstat says the stdout file descriptor is invalid.
44371         * lib/closeout.h (close_stdout_set_file_name): Declare.
44372
44373 2000-05-10  Jim Meyering  <meyering@lucent.com>
44374
44375         * lib/closeout.c [default_exit_status]: New file-scoped variable.
44376         (close_stdout_set_status): New function.
44377         * lib/closeout.h (close_stdout_set_status): Declare.
44378
44379 2000-05-09  Jim Meyering  <meyering@lucent.com>
44380
44381         * m4/gettext.m4: Rename this...
44382         * m4/libintl.m4: ...to this.
44383
44384 2000-05-08  Jim Meyering  <meyering@lucent.com>
44385
44386         * lib/long-options.c: Don't include closeout.h.
44387         (parse_long_options): Don't call close_stdout for --version.
44388
44389 2000-05-06  Paul Eggert  <eggert@twinsun.com>
44390
44391         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
44392         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
44393         2.1.3 bug.  This avoids a clash when files like regex.c define
44394         _GNU_SOURCE.
44395
44396 2000-05-06  Jim Meyering  <meyering@lucent.com>
44397
44398         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
44399         (AC_REPLACE_FUNCS): Add strnlen.
44400
44401         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
44402         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
44403
44404         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
44405         AC_SEARCH_LIBS call for nanosleep.
44406         (LIB_NANOSLEEP): Set and AC_SUBST.
44407
44408 2000-05-06  Jim Meyering  <meyering@lucent.com>
44409
44410         * lib/strnlen.c: Undefine __strnlen and strnlen.
44411         [!weak_alias]: Define __strnlen to strnlen.
44412
44413         * lib/atexit.c: New file, from libiberty.
44414
44415 2000-05-06  Jim Meyering  <meyering@lucent.com>
44416
44417         * lib/closeout.c (close_stdout_status): Also check for errors on the
44418         stderr stream.
44419
44420 2000-05-05  Jim Meyering  <meyering@lucent.com>
44421
44422         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
44423         AC_SEARCH_LIBS call for clock_gettime.
44424         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
44425
44426         * m4/search-libs.m4: Update from autoconf.
44427
44428         su doesn't work on Solaris 2.6.
44429         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
44430         <shadow.h>.  Reported by Dragos Harabor.
44431
44432 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
44433
44434         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
44435         memcpy instead of xmalloc, xrealloc, path_concat.
44436         (locale_charset): Treat empty environment variables as absent.
44437         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
44438
44439 2000-05-04  Jim Meyering  <meyering@lucent.com>
44440
44441         * lib/getopt.c: Update from glibc.
44442         * lib/obstack.c: Likewise.
44443         * lib/obstack.h: Likewise.
44444         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
44445         file
44446
44447         * lib/regex.h: Likewise.
44448         * lib/strndup.c: Likewise.
44449         * lib/strnlen.c: New file, from glibc.
44450
44451 2000-05-03  Jim Meyering  <meyering@lucent.com>
44452
44453         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
44454
44455 2000-05-02  Paul Eggert  <eggert@twinsun.com>
44456
44457         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
44458         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
44459         compile-time test, rather than inspecting host and OS, to
44460         decide whether to define _LARGEFILE_SOURCE.
44461
44462 2000-05-01  Jim Meyering  <meyering@lucent.com>
44463
44464         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
44465
44466         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
44467         Based on a patch from Bruno Haible.
44468
44469 2000-05-01  Jim Meyering  <meyering@lucent.com>
44470
44471         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
44472
44473 2000-04-29  Jim Meyering  <meyering@lucent.com>
44474
44475         * lib/path-concat.c: Declare strdup only if it's not defined.
44476         * lib/canon-host.c: Likewise.
44477
44478 2000-04-28  Jim Meyering  <meyering@lucent.com>
44479
44480         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
44481         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
44482         is included first, then limits.h is included by locale.h by libintl.h.
44483         From John David Anglin.
44484
44485 2000-04-25  Jim Meyering  <meyering@lucent.com>
44486
44487         * lib/makepath.c (S_IRWXUGO): Define.
44488         (make_path): Always perform explicit chmod if MODE specifies any
44489         of the `special' permission bits.  Prompted by a bug report against
44490         install from Mate Wierdl and Joost van Baal.
44491
44492 2000-04-18  Jim Meyering  <meyering@lucent.com>
44493
44494         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
44495         (jm_PREREQ): Use it.
44496
44497 2000-04-18  Jim Meyering  <meyering@lucent.com>
44498
44499         * lib/README: New file.
44500
44501         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
44502         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
44503
44504 2000-04-17  Jim Meyering  <meyering@lucent.com>
44505
44506         Get it right :-)
44507         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
44508         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
44509         Suggestion from Akim Demaille.
44510
44511 2000-04-17  Jim Meyering  <meyering@lucent.com>
44512
44513         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
44514         the definition of it to rpl_strftime also defined-away the system's
44515         declaration.
44516
44517 2000-04-15  Jim Meyering  <meyering@lucent.com>
44518
44519         Use `C' to denote so-called `contiguous' files, the same way
44520         that tar does.
44521         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
44522         (ftypelet): Use S_ISCTG.
44523         From Michael Deutschmann.
44524
44525 2000-04-14  Jim Meyering  <meyering@lucent.com>
44526
44527         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
44528         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
44529         clobbered.
44530
44531 2000-04-14  Jim Meyering  <meyering@lucent.com>
44532
44533         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
44534
44535 2000-04-13  Jim Meyering  <meyering@lucent.com>
44536
44537         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
44538         AH_VERBATIM to insert required #ifndef into config.h.in.
44539         Suggestion from Akim Demaille.
44540
44541 2000-04-12  Jim Meyering  <meyering@lucent.com>
44542
44543         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
44544         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
44545         Christian Krackowizer.
44546
44547         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
44548         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
44549         (AC_SYS_LARGEFILE): Require.
44550         (AM_C_PROTOTYPES): Require.
44551
44552 2000-04-08  Jim Meyering  <meyering@lucent.com>
44553
44554         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
44555         names don't conflict.  Reported by Eli Zaretskii.
44556
44557 2000-04-07  Jim Meyering  <meyering@lucent.com>
44558
44559         * lib/putenv.c: Move inclusion of errno.h so it follows that of
44560         sys/types.h, to work around system header problems on AIX 3.2.5.
44561         From Bruno Haible.
44562
44563 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
44564
44565         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
44566         bug.  Deal with the different error behavior of Irix iconv.
44567
44568 2000-04-05  Paul Eggert  <eggert@twinsun.com>
44569
44570         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
44571         IRIX if the installer said otherwise.
44572
44573 2000-04-05  Jim Meyering  <meyering@lucent.com>
44574
44575         Portability tweaks required for ultrix4.3.
44576         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
44577         (jm_CHECK_DECLS): Add getutent to the list of functions.
44578         (_jm_DECL_HEADERS): Add utmpx.h.
44579         From John David Anglin.
44580
44581         * m4/strftime.m4: Back out the 2000-04-02 change.
44582         Instead of that change, simply undefine putenv in the test program.
44583
44584 2000-04-05  Jim Meyering  <meyering@lucent.com>
44585
44586         Portability tweaks required for ultrix4.3.
44587         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
44588         getutent.
44589         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
44590         * lib/canon-host.c: Declare strdup.
44591         * lib/path-concat.c: Likewise.
44592         From John David Anglin.
44593
44594 2000-04-04  Jim Meyering  <meyering@lucent.com>
44595
44596         Be more DOS 8.3-friendly.
44597         * lib/ref-add.sin: Renamed from ref-add.sed.in.
44598         * lib/ref-del.sin: Renamed from ref-del.sed.in.
44599         * lib/Makefile.am: Reflect renaming.
44600         Reported by Eli Zaretskii.
44601
44602         Use a temporary file name that won't clash with `charset.alias'
44603         in the DOS 8.3 name space.
44604         * lib/Makefile.am (charset_tmp): Define.
44605         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
44606         (uninstall-local): Likewise.
44607         Reported by Eli Zaretskii.
44608
44609 2000-04-03  Jim Meyering  <meyering@lucent.com>
44610
44611         * m4/gettext.m4: Fix typo in comment.
44612
44613         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
44614         textutils/configure.in).  Suggestion from Paul Eggert.
44615         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
44616
44617 2000-04-02  Paul Eggert  <eggert@twinsun.com>
44618
44619         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
44620         variable in the shell rather than using putenv, which isn't
44621         portable.  This avoids the configure-time inter-test dependency
44622         on the potentially-renamed putenv function.
44623
44624 2000-03-30  Paul Eggert  <eggert@twinsun.com>
44625
44626         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
44627         before checking struct stat.st_blksize, so that
44628         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
44629
44630 2000-03-29  Paul Eggert  <eggert@twinsun.com>
44631
44632         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
44633         since strftime.c uses HAVE_STRFTIME to decide whether to use
44634         the underlying strftime.
44635
44636 2000-03-29  Paul Eggert  <eggert@twinsun.com>
44637
44638         * lib/time/strftime.c (my_strftime): Make sure we call the system
44639         strftime, not ourselves, when invoking the underlying strftime.
44640
44641 2000-03-24  Jim Meyering  <meyering@lucent.com>
44642
44643         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
44644         (charset_alias): Define.
44645         (install-exec-local): Factor out common code.
44646         (uninstall-local): Split lines longer than 80.
44647         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
44648         (SUFFIXES): Define.
44649         (.sed.in.sed): New rule.  Don't redirect directly to $@.
44650         (CLEANFILES): Add ref-add.sed and ref-del.sed.
44651
44652 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
44653
44654         * lib/config.charset: Output a line containing "Packages using this
44655         file".
44656         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
44657         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
44658         ref-del.sed): New rules.
44659
44660 2000-03-17  Jim Meyering  <meyering@lucent.com>
44661
44662         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
44663         Otherwise, include <strings.h>
44664
44665 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
44666
44667         * lib/unicodeio.c (utf8_wctomb): New function.
44668         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
44669         format instead of in UCS-4 with platform dependent endianness.
44670
44671 2000-03-10  Jim Meyering  <meyering@lucent.com>
44672
44673         * m4/lib-check.m4: Look for getspnam in -lgen, too.
44674         From Marco Franzen.
44675
44676 2000-03-07  Paul Eggert  <eggert@twinsun.com>
44677
44678         * lib/savedir.c (savedir): Work even if directory size is
44679         negative; this can happen with some screwy NFS configurations.
44680
44681 2000-03-06  Jim Meyering  <meyering@lucent.com>
44682
44683         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
44684         if it's NULL (because we ran out of memory).  From Bruno Haible.
44685
44686 2000-03-05  Jim Meyering  <meyering@lucent.com>
44687
44688         * lib/localcharset.c ("path-concat.h"): Include.
44689         (get_charset_aliases): Use path_concat instead of ANSI string
44690         concatenation.
44691
44692         * lib/unicodeio.h (PARAMS): Define.
44693         Use it to guard prototype.
44694
44695 2000-03-04  Jim Meyering  <meyering@lucent.com>
44696
44697         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
44698         for lib/localcharset.c.
44699
44700 2000-03-04  Jim Meyering  <meyering@lucent.com>
44701
44702         * lib/Makefile.am (install-exec-local): Create $(libdir) before
44703         installing into it.
44704         (uninstall-local): Uncomment this rule so `make distcheck' works
44705         once again.
44706
44707         * lib/unicodeio.c (<errno.h>): Include it.
44708         (errno): Declare if not defined.
44709
44710         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
44711
44712         * lib/config.charset: New version, incorporating remarks from a linux
44713         i18n mailing list.  From Bruno Haible.
44714
44715 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
44716
44717         * m4/codeset.m4: New file.
44718         * m4/iconv.m4: New file.
44719         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
44720
44721 2000-03-03  Jim Meyering  <meyering@lucent.com>
44722
44723         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
44724
44725 2000-03-02  Jim Meyering  <meyering@lucent.com>
44726
44727         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
44728         the messages come out on separate lines.
44729
44730         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
44731         rather than jm_CHECK_DECLARATIONS.
44732         * m4/decl.m4: Remove now-unused file.
44733
44734         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
44735         geteuid.
44736
44737 2000-03-02  Jim Meyering  <meyering@lucent.com>
44738
44739         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
44740
44741 2000-03-01  Jim Meyering  <meyering@lucent.com>
44742
44743         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
44744         * lib/unicodeio.c: Likewise.
44745
44746 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
44747
44748         * lib/config.charset: New file.
44749         * lib/localcharset.c: New file.
44750         * lib/unicodeio.h, lib/unicodeio.c: New files.
44751         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
44752         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
44753         (noinst_HEADERS): Add unicodeio.h.
44754         (all-local, install-exec-local, charset.alias): New targets.
44755
44756 2000-02-28  Paul Eggert  <eggert@twinsun.com>
44757
44758         * lib/quotearg.c (ALERT_CHAR): New macro.
44759         (quotearg_buffer_restyled): Use it.
44760
44761 2000-02-27  Jim Meyering  <meyering@lucent.com>
44762
44763         * m4/check-decl.m4: Add getenv to the list.
44764
44765 2000-02-27  Jim Meyering  <meyering@lucent.com>
44766
44767         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
44768         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
44769
44770         * lib/backupfile.c: Guard inclusion of stdlib.h with
44771         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
44772         Declare malloc if needed.
44773
44774         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
44775         `#ifndef HAVE_DECL..'
44776         now that autoconf always defines the HAVE_DECL_ symbols.
44777         * lib/human.c: Likewise.
44778         * lib/same.c: Likewise.
44779         * lib/strtoumax.c: Likewise.
44780
44781         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
44782         declaration check was not run.
44783         * lib/hash.c: Likewise.
44784         * lib/human.c: Likewise.
44785         * lib/same.c: Likewise.
44786         * lib/strtoumax.c: Likewise.
44787
44788         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
44789         `.', then first look up the entire `.'-containing string as a login
44790         name.
44791
44792 2000-02-23  Jim Meyering  <meyering@lucent.com>
44793
44794         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
44795         in place of my hack.
44796
44797 2000-02-18  Paul Eggert  <eggert@twinsun.com>
44798
44799         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
44800         (textint): New typedef.
44801         (parser_control): Member year changed from int to textint.
44802         All uses changed.
44803         (YYSTYPE): Removed; replaced by %union with int and textint members.
44804         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
44805         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
44806         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
44807         (tSNUMBER, tUNUMBER): Now of type <textintval>.
44808         (date, number, to_year): Use width of number in digits, not its value,
44809         to determine whether it's a 2-digit year, or a 2-digit time.
44810         (yylex): Store number of digits of numeric tokens.
44811         Reported by John Kendall.
44812
44813         (parser_control): Changed from struct parser_control to typedef (for
44814         consistency).  All uses changed.
44815
44816         (tID): Removed; not used.
44817         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
44818
44819 2000-02-14  Paul Eggert  <eggert@twinsun.com>
44820
44821         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
44822         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
44823
44824 2000-02-12  Jim Meyering  <meyering@lucent.com>
44825
44826         * lib/userspec.c (ISDIGIT): Define it.
44827         (isdigit): Remove definition.
44828         (is_number): Use ISDIGIT, not isdigit.
44829         <libintl.h>: Include.
44830         (_ and N_): Define.
44831         (parse_user_spec): Mark translatable strings.
44832
44833 2000-02-10  Jim Meyering  <meyering@lucent.com>
44834
44835         With these changes, nanosleep.[ch] are finally enough like the other
44836         lib/* replacement files to compile on a few more losing systems.
44837
44838         * lib/nanosleep.h: Don't include config.h.
44839         Remove prototype from declaration of nanosleep.
44840         (PARAMS): Remove now-unneeded definition.
44841         * lib/nanosleep.c: #undef nanosleep.
44842         (rpl_nanosleep): Rename from nanosleep.
44843
44844 2000-02-10  Jim Meyering  <meyering@lucent.com>
44845
44846         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
44847         gnu_nanosleep to rpl_nanosleep.
44848
44849 2000-02-09  Jim Meyering  <meyering@lucent.com>
44850
44851         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
44852         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
44853
44854 2000-02-08  Akim Demaille  <akim@epita.fr>
44855
44856         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
44857         `[' and `]' and remove uses of `changequote'.
44858         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
44859         (AC_SYS_LARGEFILE): Likewise.
44860         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
44861         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
44862         of changequote.
44863         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
44864         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
44865         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
44866         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
44867
44868 2000-02-05  Jim Meyering  <meyering@lucent.com>
44869
44870         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
44871         Remove explicit use of AC_HEADER_TIME.  It is required by
44872         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
44873         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
44874         in autoconf whereby the expansion of the latter ended up preceding
44875         the expansion of its prerequisite, AC_HEADER_TIME.
44876         Reported by Volker Borchert.
44877
44878 2000-02-03  Jim Meyering  <meyering@lucent.com>
44879
44880         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
44881
44882 2000-02-03  Jim Meyering  <meyering@lucent.com>
44883
44884         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
44885         rather than with `#if HAVE_UTMPNAME'.
44886
44887 2000-02-02  Jim Meyering  <meyering@lucent.com>
44888
44889         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
44890         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
44891         Reported by Eli Zaretskii.
44892
44893 2000-02-01  Jim Meyering  <meyering@lucent.com>
44894
44895         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
44896
44897 2000-01-31  Jim Meyering  <meyering@lucent.com>
44898
44899         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
44900         functions.  Add the time.h and sys/time.h headers along with the
44901         AC_REQUIRE'ment of AC_HEADER_TIME.
44902
44903 2000-01-31  Jim Meyering  <meyering@lucent.com>
44904
44905         * lib/nanosleep.h (nanosleep): Guard declaration with
44906         `#if ! HAVE_DECL_NANOSLEEP'.
44907         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
44908         the declaration in that vendor's sys/timers.h.
44909         Reported by Christian Krackowizer.
44910
44911         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
44912         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
44913         (ISPRINT): Likewise.
44914         Reported by Tom Tromey.
44915
44916 2000-01-30  Jim Meyering  <meyering@lucent.com>
44917
44918         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
44919
44920         * m4/prereq.m4 (utmp_includes): Define.
44921         Check for ut_user and ut_name members in both struct utmpx
44922         and struct utmp.
44923
44924 2000-01-30  Jim Meyering  <meyering@lucent.com>
44925
44926         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
44927         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
44928         header files where only utmpx.ut_user is declared.
44929
44930         * lib/readutmp.h (UT_USER): Define.
44931
44932 2000-01-29  Jim Meyering  <meyering@lucent.com>
44933
44934         * m4/lib-check.m4: New file containing library-related checks from
44935         fileutils and sh-utils (textutils had none).
44936
44937 2000-01-28  Jim Meyering  <meyering@lucent.com>
44938
44939         * m4/perl.m4: Change format of warning message to look more like that
44940         from the missing script.  Suggestion from François Pinard.
44941
44942 2000-01-25  Jim Meyering  <meyering@lucent.com>
44943
44944         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
44945         well as time.h in the compile check.
44946         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
44947         Fix typo in cross-compiling case: s/yes/no/.
44948
44949 2000-01-23  Jim Meyering  <meyering@lucent.com>
44950
44951         * m4/jm-macros.m4: Move df-related tests here from
44952         fileutils/configure.in
44953
44954         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
44955         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
44956
44957         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
44958         s/space/ac_fsusage_space/.
44959         (jm_FILE_SYSTEM_USAGE): Take two parameters.
44960
44961         * m4/ftruncate.m4: New file (derived from part of
44962         fileutils/configure.in).
44963         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
44964         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
44965
44966         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
44967         AC_SUBST these here, rather than just in sh-util/configure.in, so
44968         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
44969         all the same.
44970         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
44971         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
44972         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
44973         (AC_SUBST(POW_LIBM)): Likewise.
44974         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
44975
44976 2000-01-23  Jim Meyering  <meyering@lucent.com>
44977
44978         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
44979         obstack.c.
44980
44981 2000-01-22  Jim Meyering  <meyering@lucent.com>
44982
44983         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
44984
44985         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
44986
44987         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
44988         configure.in
44989         (AC_CHECK_HEADERS): Likewise for sh-utils.
44990         (AC_CHECK_HEADERS): Likewise for textutils.
44991         Merge the three lists of headers.
44992
44993         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
44994         from fileutils' configure.in.
44995
44996         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
44997         code. Moved tests into their own function (_jm_DECL_HEADERS) in
44998         check-decl.m4.
44999
45000         * m4/check-decl.m4: Use #if rather than #ifdef.
45001         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
45002         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
45003         (_jm_DECL_HEADERS): Define new function.
45004         (jm_CHECK_DECLARATIONS): Require it.
45005
45006 2000-01-22  Jim Meyering  <meyering@lucent.com>
45007
45008         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
45009         [! HAVE_DECL_STRTOULL]: Declare strtoull.
45010         Required for some AIX systems.  Reported by Christian Krackowizer.
45011         [TESTING] (main): New function.
45012
45013         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
45014         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
45015         letters.
45016
45017         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
45018         iswprint.
45019
45020         * lib/strverscmp.c (ISDIGIT): Define.
45021         (strverscmp): Use ISDIGIT, not isdigit.
45022
45023 2000-01-19  Jim Meyering  <meyering@lucent.com>
45024
45025         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
45026         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
45027         defines `struct timespec' in <sys/time.h>
45028
45029         * m4/c-bs-a.m4: Remove uses of changequote altogether.
45030         Thanks to Akim for explaining.
45031
45032 2000-01-17  Paul Eggert  <eggert@twinsun.com>
45033
45034         * lib/nanosleep.c (nanosleep):
45035         Don't use SA_INTERRUPT to decide whether to call sigaction, as
45036         POSIX.1 doesn't require SA_INTERRUPT and some systems
45037         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
45038         it's been part of POSIX.1 since day 1 (in 1988).
45039
45040 2000-01-17  Jim Meyering  <meyering@lucent.com>
45041
45042         * lib/interlock: Remove unused file.  Reported by François Pinard.
45043
45044 2000-01-16  Paul Eggert  <eggert@twinsun.com>
45045
45046         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
45047         alert, backslash, formfeed, and vertical tab unnecessarily in
45048         shell quoting style.
45049
45050 2000-01-16  Jim Meyering  <meyering@lucent.com>
45051
45052         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
45053         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
45054         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
45055         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
45056
45057 2000-01-16  Jim Meyering  <meyering@lucent.com>
45058
45059         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
45060         because the latter didn't work.
45061
45062 2000-01-15  Jim Meyering  <meyering@lucent.com>
45063
45064         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
45065         (AC_REPLACE_FUNCS): Add memcpy and memset.
45066         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
45067         Add strpbrk.
45068         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
45069
45070 2000-01-12  Jim Meyering  <meyering@lucent.com>
45071
45072         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
45073         (jm_PREREQ): Use it.
45074         (jm_PREREQ_READUTMP): New macro.
45075         (jm_PREREQ): Use it.
45076
45077 2000-01-11  Paul Eggert  <eggert@twinsun.com>
45078
45079         Quote multibyte characters correctly.
45080         * m4/c-bs-a.m4: New file.
45081         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
45082         (jm_PREREQ): Use it.
45083
45084 2000-01-11  Paul Eggert  <eggert@twinsun.com>
45085
45086         * m4/uintmax_t.m4: Port to autoconf 2.13.
45087
45088 2000-01-08  Jim Meyering  <meyering@ascend.com>
45089
45090         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
45091         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
45092
45093 2000-01-04  Jim Meyering  <meyering@ascend.com>
45094
45095         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
45096         jm_STRUCT_DIRENT_D_TYPE.
45097         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
45098         jm_STRUCT_DIRENT_D_INO.
45099         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
45100         jm_STRUCT_UTIMBUF.
45101         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
45102         renamings.
45103         * m4/utime.m4: Likewise.
45104
45105         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
45106         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
45107
45108 2000-01-03  Paul Eggert  <eggert@twinsun.com>
45109
45110         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
45111         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
45112
45113 2000-01-02  Jim Meyering  <meyering@ascend.com>
45114
45115         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
45116         remember if this is necessary.
45117
45118 1999-12-26  Jim Meyering  <meyering@ascend.com>
45119
45120         * m4/jm-macros.m4: Use it here.
45121         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
45122
45123 1999-12-23  Jim Meyering  <meyering@ascend.com>
45124
45125         * m4/jm-macros.m4: Check for clock_gettime (moved from
45126         fileutils/configure.in)
45127         Check for gettimeofday.
45128
45129 1999-12-20  Jim Meyering  <meyering@ascend.com>
45130
45131         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
45132         autoconf-2.14a-1999-12-20.
45133
45134 1999-12-19  Jim Meyering  <meyering@ascend.com>
45135
45136         * m4/lstat-slash.m4: New file.
45137         * m4/jm-macros.m4: Use the new macro:
45138         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
45139
45140 1999-12-07  Jim Meyering  <meyering@ascend.com>
45141
45142         * m4/perl.m4: Require that File::Compare be available, too.
45143         Too many systems seem to lack it.
45144
45145         * m4/strftime.m4: Add checks for most of the cpp macros tested in
45146         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
45147
45148 1999-11-18  Paul Eggert  <eggert@twinsun.com>
45149
45150         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
45151         problem with the QNX 4.25 shell, which doesn't propagate exit
45152         status of failed commands inside shell assignments.
45153
45154 1999-11-17  Jim Meyering  <meyering@ascend.com>
45155
45156         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
45157
45158 1999-11-07  Jim Meyering  <meyering@ascend.com>
45159
45160         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
45161
45162 1999-11-06  Jim Meyering  <meyering@ascend.com>
45163
45164         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
45165         * m4/jm-macros.m4 (jm_MACROS): Use it here.
45166
45167 1999-11-05  Jim Meyering  <meyering@ascend.com>
45168
45169         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
45170         configure.in of textutils, fileutils, and sh-utils into this one
45171         (shared between those packages) file.
45172         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
45173         AC_STRUCT_ST_BLKSIZE.
45174
45175 1999-11-03  Jim Meyering  <meyering@ascend.com>
45176
45177         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
45178         of AC_CHECK_TYPE checks includes unistd.h.
45179         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
45180         Suggestion from Akim Demaille.
45181
45182 1999-10-30  Jim Meyering  <meyering@ascend.com>
45183
45184         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
45185         m4-quoted string.
45186         * m4/ls-mntd-fs.m4: Likewise.
45187         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
45188         * m4/jm-winsz1.m4: Likewise.
45189
45190         * m4/const.m4: Remove file, since the fix made it into the experimental
45191         version of autoconf.
45192         * m4/mktime.m4: Likewise.
45193
45194         * m4/check-type.m4: Remove file, now that the latest version of
45195         AC_CHECK_TYPE takes a third arg to specify additional #includes.
45196
45197         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
45198         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
45199         AC_CHECK_TYPE.
45200
45201 1999-10-04  Jim Meyering  <meyering@ascend.com>
45202
45203         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
45204
45205 1999-09-22  Paul Eggert  <eggert@twinsun.com>
45206
45207         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
45208         2.95.1 bug with HP-UX 10.20.
45209
45210 1999-09-17  Jim Meyering  <meyering@ascend.com>
45211
45212         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
45213         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
45214         due to missing strdup (against sh-utils-2.0).
45215
45216 1999-08-29  Jim Meyering  <meyering@ascend.com>
45217
45218         * m4/jm-macros.m4: Require jm_BISON.
45219         * m4/bison.m4: New file.
45220
45221 1999-08-17  Paul Eggert  <eggert@twinsun.com>
45222
45223         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
45224         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
45225
45226 1999-08-05  Jim Meyering  <meyering@ascend.com>
45227
45228         * m4/getline.m4: Rename test file from conftestdata to conftest.data
45229         to avoid conflicts with `conftest' on 8+3 filesystems.
45230         Suggestion from Eli Zaretskii.
45231
45232 1999-08-04  Jim Meyering  <meyering@ascend.com>
45233
45234         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
45235         fileutils and sh-utils (textutils's getline test was inadequate).
45236         (AM_FUNC_GETLINE): Run this test.
45237         (AC_CHECK_FUNCS): Check for getdelim.
45238         Reported by Bob Proulx.
45239
45240 1999-08-02  Jim Meyering  <meyering@ascend.com>
45241
45242         * m4/jm-macros.m4: Add a comment.
45243
45244 1999-08-01  Paul Eggert  <eggert@twinsun.com>
45245
45246         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
45247         <inttypes.h> defines strtoumax as a macro (and not as a
45248         function).
45249
45250 1999-08-01  Paul Eggert  <eggert@twinsun.com>
45251
45252         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
45253         that we can shift, multiply and divide unsigned long long
45254         values; Ultrix cc can't do it.
45255
45256 1999-08-01  Paul Eggert  <eggert@twinsun.com>
45257
45258         * m4/mktime.m4: New file, which is a preview of what should appear
45259         in the next public autoconf release.
45260
45261 1999-08-01  Paul Eggert  <eggert@twinsun.com>
45262
45263         * m4/lfs.m4: Remove this file.
45264         * m4/largefile.m4: New file.  It contains the old contents of
45265         lfs.m4, except that all names with prefix AC_LFS have been
45266         changed to use the prefix AC_SYS_LARGEFILE instead, to be
45267         compatible with future autoconf versions.  Also, some minor m4
45268         quoting problems have been fixed.
45269
45270 1999-08-01  Paul Eggert  <eggert@twinsun.com>
45271
45272         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
45273         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
45274         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
45275         and simplify the shell code.
45276
45277 1999-08-01  Jim Meyering  <meyering@ascend.com>
45278
45279         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
45280         m4.
45281
45282 1999-07-20  Jim Meyering  <meyering@ascend.com>
45283
45284         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
45285
45286 1999-07-15  Jim Meyering  <meyering@ascend.com>
45287
45288         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
45289
45290 1999-05-22  Jim Meyering  <meyering@ascend.com>
45291
45292         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
45293
45294 1999-05-20  Jim Meyering  <meyering@ascend.com>
45295
45296         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
45297         Add a colon after each `then' in case $4 is empty.
45298
45299 1999-05-16  Jim Meyering  <meyering@ascend.com>
45300
45301         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
45302
45303 1999-05-10  Jim Meyering  <meyering@ascend.com>
45304
45305         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
45306
45307         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
45308         AC_FUNC_MKTIME.
45309
45310 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
45311
45312         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
45313
45314 1999-05-04  Paul Eggert  <eggert@twinsun.com>
45315
45316         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
45317         not CPPFLAGS, so that linking works correctly in IRIX.
45318
45319 1999-04-30  Paul Eggert  <eggert@twinsun.com>
45320
45321         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
45322
45323 1999-04-20  Paul Eggert  <eggert@twinsun.com>
45324
45325         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
45326         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
45327         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
45328         jm_AC_TYPE_UNSIGNED_LONG_LONG.
45329         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
45330
45331         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
45332
45333 1999-04-20  Jim Meyering  <meyering@ascend.com>
45334
45335         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
45336         AC_REPLACE xstroull if necessary.  From Paul Eggert.
45337         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
45338
45339 1999-04-18  Jim Meyering  <meyering@ascend.com>
45340
45341         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
45342         * m4/jm-macros.m4: Use it.
45343
45344 1999-04-06  Jim Meyering  <meyering@ascend.com>
45345
45346         * m4/strftime.m4: Remove test for %f.
45347
45348 1999-03-29  Jim Meyering  <meyering@ascend.com>
45349
45350         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
45351         superset of the AC_TYPE_* checks in the textutils, fileutils,
45352         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
45353         AC_TYPE_PID_T.
45354
45355 1999-03-28  Jim Meyering  <meyering@ascend.com>
45356
45357         * m4/jm-macros.m4: Define GNU_PACKAGE here.
45358         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
45359         replaced e.g., in the *.sh files of the sh-utils.
45360
45361 1999-03-20  Jim Meyering  <meyering@ascend.com>
45362
45363         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
45364         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
45365         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
45366
45367 1999-03-19  Jim Meyering  <meyering@ascend.com>
45368
45369         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
45370
45371 1999-03-12  Jim Meyering  <meyering@ascend.com>
45372
45373         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
45374
45375 1999-03-07  Jim Meyering  <meyering@ascend.com>
45376
45377         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
45378         declared.
45379
45380 1999-02-17  Jim Meyering  <meyering@ascend.com>
45381
45382         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
45383         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
45384
45385 1999-02-07  Jim Meyering  <meyering@ascend.com>
45386
45387         * m4/group-member.m4: New file -- extracted from sh-utils'
45388         configure.in.
45389
45390         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
45391         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
45392
45393 1999-02-06  Jim Meyering  <meyering@ascend.com>
45394
45395         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
45396         * m4/fnmatch.m4: Likewise.
45397         * m4/getgroups.m4: Likewise.
45398         * m4/lstat.m4: Likewise.
45399         * m4/malloc.m4: Likewise.
45400         * m4/putenv.m4: Likewise.
45401         * m4/realloc.m4: Likewise.
45402         * m4/regex.m4: Likewise.
45403         * m4/stat.m4: Likewise.
45404         * m4/strftime.m4: Likewise.
45405         Suggestion from Alain Magloire.
45406
45407         * m4/chown.m4: Use `.$ac_objext', not `.o'.
45408         * m4/fnmatch.m4: Likewise.
45409         * m4/getgroups.m4: Likewise.
45410         * m4/getline.m4: Likewise.
45411         * m4/lstat.m4: Likewise.
45412         * m4/malloc.m4: Likewise.
45413         * m4/memcmp.m4: Likewise.
45414         * m4/putenv.m4: Likewise.
45415         * m4/realloc.m4: Likewise.
45416         * m4/regex.m4: Likewise.
45417         * m4/stat.m4: Likewise.
45418         * m4/strftime.m4: Likewise.
45419         Suggestion from Alain Magloire.
45420
45421         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
45422         an argument.
45423
45424         * m4/regex.m4: Add a run-time Test for proper operation of
45425         re_compile_pattern.
45426
45427 1999-01-31  Jim Meyering  <meyering@ascend.com>
45428
45429         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
45430
45431 1999-01-30  Jim Meyering  <meyering@ascend.com>
45432
45433         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
45434
45435         * m4/jm-mktime.m4: Make this a wrapper around the official
45436         AM_FUNC_MKTIME rather than my private copy, now that the official one
45437         is up to date.
45438         * m4/mktime.m4: Remove file.
45439
45440         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
45441         * m4/uptime.m4: Likewise.
45442         * m4/uintmax_t.m4: Likewise.
45443
45444 1999-01-28  Jim Meyering  <meyering@ascend.com>
45445
45446         * m4/jm-macros.m4: Use jm_AFS.
45447         * m4/afs.m4: New file (from fileutils' configure.in).
45448
45449         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
45450         * m4/chown.m4: Likewise.
45451         * m4/d-ino.m4: Likewise.
45452         * m4/d-type.m4: Likewise.
45453         * m4/fnmatch.m4: Likewise.
45454         * m4/getgroups.m4: Likewise.
45455         * m4/gettext.m4: Likewise.
45456         * m4/jm-mktime.m4: Likewise.
45457         * m4/jm-winsz2.m4: Likewise.
45458         * m4/lcmessage.m4: Likewise.
45459         * m4/ls-mntd-fs.m4: Likewise.
45460         * m4/malloc.m4: Likewise.
45461         * m4/memcmp.m4: Likewise.
45462         * m4/putenv.m4: Likewise.
45463         * m4/realloc.m4: Likewise.
45464         * m4/st_mtim.m4: Likewise.
45465         * m4/strftime.m4: Likewise.
45466
45467 1999-01-16  Jim Meyering  <meyering@ascend.com>
45468
45469         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
45470         (ARGMATCH_DIE_DECL): Define.
45471
45472 1999-01-12  Jim Meyering  <meyering@ascend.com>
45473
45474         * m4/Makefile.am.in: Rewrite to avoid using fmt.
45475         Reported by Lars Hecking.
45476
45477 1999-01-10  Jim Meyering  <meyering@ascend.com>
45478
45479         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
45480         gross kludge.
45481         * m4/inttypes_h.m4: Likewise.
45482         * m4/lstat.m4: Likewise.
45483         * m4/malloc.m4: Likewise.
45484         * m4/readdir.m4: Likewise.
45485         * m4/realloc.m4: Likewise.
45486         * m4/st_dm_mode.m4: Likewise.
45487         * m4/stat.m4: Likewise.
45488         * m4/utimbuf.m4: Likewise.
45489         * m4/utimes.m4: Likewise.
45490
45491         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
45492         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
45493         comments in config.h.in are meaningful.
45494
45495         * m4/jm-macros.m4: Require autoconf-2.13 here.
45496
45497         * m4/regex.m4: By default, don't use the included regex.c on systems
45498         with glibc 2.  Suggestion from Uli Drepper.
45499
45500 1999-01-02  Jim Meyering  <meyering@ascend.com>
45501
45502         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
45503
45504 1998-12-18  Jim Meyering  <meyering@ascend.com>
45505
45506         * m4/Makefile.am.in (Makefile.am): Simplify rule.
45507         Based on a suggestion from Lars Hecking.
45508
45509 1998-11-16  Paul Eggert  <eggert@twinsun.com>
45510
45511         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
45512
45513 1998-11-16  Jim Meyering  <meyering@ascend.com>
45514
45515         * m4/lfs.m4: Double-quote the `uname...` expression.
45516
45517 1998-11-14  Jim Meyering  <meyering@ascend.com>
45518
45519         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
45520         * m4/stat.m4: Likewise.
45521
45522 1998-11-03  Jim Meyering  <meyering@ascend.com>
45523
45524         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
45525         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
45526
45527 1998-10-18  Jim Meyering  <meyering@ascend.com>
45528
45529         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
45530
45531 1998-10-17  Jim Meyering  <meyering@ascend.com>
45532
45533         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
45534         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
45535         calls for those previously hard-coded headers.  Instead, take a new
45536         parameter.
45537         (jm_CHECK_DECLARATIONS): Reflect interface change.
45538         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
45539         (jm_CHECK_DECL_LOCALTIME_R): New macro.
45540
45541         * m4/mktime.m4: Test for spring-forward gap before long-running test.
45542
45543 1998-10-14  Jim Meyering  <meyering@ascend.com>
45544
45545         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
45546         instead of "TZ=America/Vancouver".  From Paul Eggert.
45547
45548 1998-10-11  Jim Meyering  <meyering@ascend.com>
45549
45550         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
45551         This adds a test for a recently added compatibility fix for mktime.c.
45552         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
45553
45554 1998-09-27  Jim Meyering  <meyering@ascend.com>
45555
45556         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
45557
45558         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
45559         ../configure.in, including a change from Gordon Matzigkeit to allow
45560         cross-compiling for the Hurd.
45561
45562         * m4/glibc.m4: New file/macro to test for the GNU C Library
45563         versions 1 and 2.  From Gordon Matzigkeit.
45564         Indent.
45565
45566 1998-09-21  Jim Meyering  <meyering@ascend.com>
45567
45568         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
45569
45570 1998-08-18  Paul Eggert  <eggert@twinsun.com>
45571
45572         Port nanosecond-resolution times to UnixWare 2.1.2 and
45573         pedantic Solaris 2.6.
45574
45575         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
45576         AC_STRUCT_ST_MTIM.
45577         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
45578         Generate name of ns member, instead of just 1 or undef.
45579         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
45580
45581 1998-08-15  Jim Meyering  <meyering@ascend.com>
45582
45583         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
45584         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
45585         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
45586         instead of jm_TYPE_SSIZE_T.
45587
45588 1998-08-12  Jim Meyering  <meyering@ascend.com>
45589
45590         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
45591
45592 1998-08-02  Jim Meyering  <meyering@ascend.com>
45593
45594         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
45595         in acconfig.h manually.
45596
45597 1998-07-31  Paul Eggert  <eggert@twinsun.com>
45598
45599         * m4/st_mtim.m4: New file.
45600
45601 1998-07-28  Jim Meyering  <meyering@ascend.com>
45602
45603         * m4/utimes.m4: Undef stat.
45604
45605 1998-07-25  Jim Meyering  <meyering@ascend.com>
45606
45607         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
45608         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
45609
45610 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
45611
45612         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
45613         uid and gid actually remain unchanged.
45614
45615 1998-07-07  Jim Meyering  <meyering@ascend.com>
45616
45617         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
45618
45619 1998-07-04  Jim Meyering  <meyering@ascend.com>
45620
45621         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
45622         to prove that this macro can be used in packages without regex.c.
45623
45624 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
45625
45626         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
45627         is to be used.
45628
45629 1998-07-03  Jim Meyering  <meyering@ascend.com>
45630
45631         * m4/gettext.m4: Add -lintl if it's found to be necessary.
45632
45633         * m4/gettext.m4: New file -- from gettext-0.10.35.
45634         * m4/lcmessage.m4: Likewise.
45635         * m4/progtest.m4: Likewise.
45636
45637         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
45638         * m4/jm-macros.m4: Require the new macro.
45639
45640 1998-06-29  Jim Meyering  <meyering@ascend.com>
45641
45642         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
45643         for the definition of NGROUPS (used in a system header included
45644         by sys/mount.h).
45645
45646 1998-06-28  Jim Meyering  <meyering@ascend.com>
45647
45648         * m4/ls-mntd-fs.m4: New file.
45649         * m4/fstypename.m4: New file.
45650
45651         * m4/jm-macros.m4: Require the new macro.
45652         * m4/jm-glibc-io.m4: New file.
45653
45654 1998-05-19  Jim Meyering  <meyering@ascend.com>
45655
45656         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
45657         * m4/lchown.m4: New file.
45658
45659         * m4/Makefile.am.in: New file.
45660         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
45661
45662 1998-05-14  Jim Meyering  <meyering@ascend.com>
45663
45664         * m4/Makefile.am (EXTRA_DIST): Add them.
45665         * m4/jm-macros.m4: New file.
45666         * m4/utimbuf.m4: New file.
45667
45668 1998-05-12  Jim Meyering  <meyering@ascend.com>
45669
45670         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
45671
45672 1998-05-11  Jim Meyering  <meyering@ascend.com>
45673
45674         * m4/isc-posix.m4: New file.
45675
45676 1998-05-10  Jim Meyering  <meyering@ascend.com>
45677
45678         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
45679
45680 1998-05-09  Jim Meyering  <meyering@ascend.com>
45681
45682         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
45683         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
45684         with automake.
45685
45686         * m4/ssize_t.m4: New file.
45687         * m4/mktime.m4: Remove file -- the new automake has this now.
45688
45689 1998-04-26  Jim Meyering  <meyering@ascend.com>
45690
45691         * m4/assert.m4: New file.
45692         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
45693
45694 1998-04-05  Jim Meyering  <meyering@ascend.com>
45695
45696         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
45697         (jm_PREREQ): Use it here.
45698
45699 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
45700
45701         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
45702         in acconfig.h.
45703
45704 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
45705
45706         * m4/prereq.m4: New file.
45707         * m4/error.m4: New file.
45708         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
45709
45710 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
45711
45712         * m4/getline.m4: Don't set am_cv_func_working_getline before the
45713         cache-check for the same variable -- that defeated the purpose of
45714         the test; the test program was never run.  This was a problem only
45715         on systems with losing getline functions -- HP-UX 10.20 is one.
45716         Reported by Bjorn Helgaas.
45717
45718 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
45719
45720         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
45721
45722 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
45723
45724         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
45725
45726         * m4/const.m4: New file.  Use an initializer in this declaration
45727         typedef int charset[2]; const charset x;
45728         Reported by Bob Glickstein.
45729
45730 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
45731
45732         * m4/chown.m4: Fix reversed types on -1 args to chown.
45733         From Kaveh Ghazi.
45734
45735 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
45736
45737         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
45738         Add lseek and memchr.
45739
45740         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
45741         T.E.Dickey <dickey@clark.net> said that some older preprocessors
45742         have a 20-character limit on names.
45743
45744 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
45745
45746         * m4/inttypes_h.m4: New file.
45747         * m4/uintmax_t.m4: New file.
45748         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
45749
45750
45751         -----
45752
45753         Local Variables:
45754         coding: utf-8
45755         End:
45756
45757         Copyright (C) 1997-2008 Free Software Foundation, Inc.
45758
45759         Copying and distribution of this file, with or without
45760         modification, are permitted provided the copyright notice
45761         and this notice are preserved.